Api-roll 42: 2016-11-08 R=whesse@google.com Review URL: https://codereview.chromium.org//2485703002 .
diff --git a/generated/googleapis/CHANGELOG.md b/generated/googleapis/CHANGELOG.md index 71b3c18..6027dda 100644 --- a/generated/googleapis/CHANGELOG.md +++ b/generated/googleapis/CHANGELOG.md
@@ -1,3 +1,48 @@ +## 0.32.0 + +* [api-new] dfareporting:v2_7 +* [api-new] firebasedynamicclicks:v1 +* [api-new] logging:v2 +* [api-new] manufactures:v1 +* [api-new] runtimeconfig:v1 +* [api-new] surveys:v2 +* [api-breaking] bigquery:v2: method changes +* [api-breaking] civicinfo:v2: method changes +* [api-breaking] doubleclickmanager:v1: resource changes +* [api-breaking] identitytoolkit:v3: schema changes +* [api-breaking] storage:v1: schema/method changes +* [api-breaking] youtube:v3: schema/method changes +* [api-removal] dfareporting:v2_2 +* [api-removal] dfareporting:v2_3 +* [api-removal] freebase:v1 +* [api] adexchangebuyer:v1_4: method/schema changes +* [api] admin:directory_v1: schema changes +* [api] analytics:v3: schema changes +* [api] androidenterprise:v1: method/schema changes +* [api] androidpublisher:v2: added resource +* [api] appengine:v1: schema changes +* [api] appsactivity:v1: schema changes +* [api] books:v1: schema changes +* [api] classroom:v1: method/schema changes +* [api] cloudbuild:v1: method/schema changes +* [api] cloudresourcemanager:v1: added resource +* [api] compute:v1: added resources, method changes +* [api] consumersurveys:v2: schema changes +* [api] content:v2sandbox: schema changes +* [api] content:v2: schema changes +* [api] dataproc:v1: schema changes +* [api] deploymentmanager:v2: schema changes +* [api] drive:v2: schema changes +* [api] drive:v3: schema changes +* [api] fitness:v1: schema changes +* [api] freebase:v1 +* [api] genomics:v1: schema changes +* [api] iam:v1: added resource +* [api] pubsub:v1: added resource +* [api] servicecontrol:v1: schema changes +* [api] servicemanagement:v1: schema changes +* [api] sheets:v4: schema/method changes + ## 0.31.0 * [api-new] datastore:v1
diff --git a/generated/googleapis/README.md b/generated/googleapis/README.md index 070fbd3..b631e8b 100644 --- a/generated/googleapis/README.md +++ b/generated/googleapis/README.md
@@ -273,7 +273,7 @@ ####  Google Cloud Dataproc API - dataproc v1 -Manages Hadoop-based clusters and jobs on Google Cloud Platform. +An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. Official API documentation: https://cloud.google.com/dataproc/ @@ -290,18 +290,6 @@ Official API documentation: https://cloud.google.com/deployment-manager/ -####  DCM/DFA Reporting And Trafficking API - dfareporting v2.2 - -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.3 - -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.4 Manages your DoubleClick Campaign Manager ad campaigns and reports. @@ -320,6 +308,12 @@ Official API documentation: https://developers.google.com/doubleclick-advertisers/ +####  DCM/DFA Reporting And Trafficking API - dfareporting v2.7 + +Manages your DoubleClick Campaign Manager ad campaigns and reports. + +Official API documentation: https://developers.google.com/doubleclick-advertisers/ + ####  APIs Discovery Service - discovery v1 Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API. @@ -356,12 +350,18 @@ Official API documentation: https://developers.google.com/drive/ +####  Firebase Dynamic Links API - firebasedynamiclinks v1 + +Firebase Dynamic Links API enables third party developers to programmatically create and manage Dynamic Links. + +Official API documentation: https://firebase.google.com/docs/dynamic-links/ + ####  Firebase Rules API - firebaserules v1 Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request. -Official API documentation: https://firebase.google.com/docs/storage/security/start +Official API documentation: https://firebase.google.com/docs/storage/security ####  Fitness - fitness v1 @@ -369,12 +369,6 @@ Official API documentation: https://developers.google.com/fit/rest/ -####  Freebase Search - freebase v1 - -Find Freebase entities using textual queries and other constraints. - -Official API documentation: https://developers.google.com/freebase/ - ####  Fusion Tables API - fusiontables v1 API for working with Fusion Tables data. @@ -429,7 +423,7 @@ Official API documentation: https://developers.google.com/google-apps/groups-settings/get_started -####  Google Identity and Access Management API - iam v1 +####  Google Identity and Access Management (IAM) API - iam v1 Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. @@ -453,15 +447,27 @@ Official API documentation: https://developers.google.com/google-apps/licensing/ +####  Stackdriver Logging API - logging v2 + +Writes log entries and manages your Stackdriver Logging configuration. + +Official API documentation: https://cloud.google.com/logging/docs/ + +####  Manufacturer Center API - manufacturers v1 + +Public API for managing Manufacturer Center related data. + +Official API documentation: https://developers.google.com/manufacturers/ + ####  Google Mirror API - mirror v1 Interacts with Glass users via the timeline. Official API documentation: https://developers.google.com/glass -####  Google Monitoring API - monitoring v3 +####  Stackdriver Monitoring API - monitoring v3 -Manages your Stackdriver monitoring data and configurations. Projects must be associated with a Stackdriver account, except for the following methods: [monitoredResourceDescriptors.list](v3/projects.monitoredResourceDescriptors/list), [monitoredResourceDescriptors.get](v3/projects.monitoredResourceDescriptors/get), [metricDescriptors.list](v3/projects.metricDescriptors/list), [metricDescriptors.get](v3/projects.metricDescriptors/get), and [timeSeries.list](v3/projects.timeSeries/list). +Manages your Stackdriver Monitoring data and configurations. Most projects must be associated with a Stackdriver account, with a few exceptions as noted on the individual method pages. Official API documentation: https://cloud.google.com/monitoring/api/ @@ -537,6 +543,13 @@ Official API documentation: https://developers.google.com/google-apps/reseller/ +####  Google Cloud RuntimeConfig API - runtimeconfig v1 + +Provides capabilities for dynamic configuration and coordination for applications running on Google Cloud Platform. + + +Official API documentation: https://cloud.google.com/deployment-manager/runtime-configurator/ + ####  Safe Browsing APIs - safebrowsing v4 Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. @@ -585,6 +598,10 @@ Official API documentation: https://cloud.google.com/storage/transfer +####  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 Accesses Tag Manager accounts and containers.
diff --git a/generated/googleapis/lib/adexchangebuyer/v1_3.dart b/generated/googleapis/lib/adexchangebuyer/v1_3.dart index 9dadb79..4b535ea 100644 --- a/generated/googleapis/lib/adexchangebuyer/v1_3.dart +++ b/generated/googleapis/lib/adexchangebuyer/v1_3.dart
@@ -1794,7 +1794,10 @@ * requests. */ core.int version; - /** The url to fetch a video ad. If set, HTMLSnippet should not be set. */ + /** + * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should + * not be set. + */ core.String videoURL; /** Ad width. */ core.int width;
diff --git a/generated/googleapis/lib/adexchangebuyer/v1_4.dart b/generated/googleapis/lib/adexchangebuyer/v1_4.dart index 99db416..b78b03e 100644 --- a/generated/googleapis/lib/adexchangebuyer/v1_4.dart +++ b/generated/googleapis/lib/adexchangebuyer/v1_4.dart
@@ -131,6 +131,9 @@ * * [id] - The account id * + * [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie + * matching urls. + * * Completes with a [Account]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -139,7 +142,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<Account> patch(Account request, core.int id) { + async.Future<Account> patch(Account request, core.int id, {core.bool confirmUnsafeAccountChange}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -153,6 +156,9 @@ if (id == null) { throw new core.ArgumentError("Parameter id is required."); } + if (confirmUnsafeAccountChange != null) { + _queryParams["confirmUnsafeAccountChange"] = ["${confirmUnsafeAccountChange}"]; + } _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); @@ -175,6 +181,9 @@ * * [id] - The account id * + * [confirmUnsafeAccountChange] - Confirmation for erasing bidder and cookie + * matching urls. + * * Completes with a [Account]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -183,7 +192,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<Account> update(Account request, core.int id) { + async.Future<Account> update(Account request, core.int id, {core.bool confirmUnsafeAccountChange}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -197,6 +206,9 @@ if (id == null) { throw new core.ArgumentError("Parameter id is required."); } + if (confirmUnsafeAccountChange != null) { + _queryParams["confirmUnsafeAccountChange"] = ["${confirmUnsafeAccountChange}"]; + } _url = 'accounts/' + commons.Escaper.ecapeVariable('$id'); @@ -679,6 +691,50 @@ } /** + * Lists the external deal ids associated with the creative. + * + * Request parameters: + * + * [accountId] - The id for the account that will serve this creative. + * + * [buyerCreativeId] - The buyer-specific id for this creative. + * + * Completes with a [CreativeDealIds]. + * + * 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<CreativeDealIds> listDeals(core.int accountId, core.String buyerCreativeId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (accountId == null) { + throw new core.ArgumentError("Parameter accountId is required."); + } + if (buyerCreativeId == null) { + throw new core.ArgumentError("Parameter buyerCreativeId is required."); + } + + _url = 'creatives/' + commons.Escaper.ecapeVariable('$accountId') + '/' + commons.Escaper.ecapeVariable('$buyerCreativeId') + '/listDeals'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new CreativeDealIds.fromJson(data)); + } + + /** * Remove a deal id associated with the creative. * * Request parameters: @@ -1610,11 +1666,13 @@ * thrown. The caller should then fetch the latest proposal at head revision * and retry the update at that revision. * - * [updateAction] - The proposed action to take on the proposal. + * [updateAction] - The proposed action to take on the proposal. This field is + * required and it must be set when updating a proposal. * Possible string values are: * - "accept" * - "cancel" * - "propose" + * - "proposeAndAccept" * - "unknownAction" * - "updateFinalized" * @@ -1751,11 +1809,13 @@ * thrown. The caller should then fetch the latest proposal at head revision * and retry the update at that revision. * - * [updateAction] - The proposed action to take on the proposal. + * [updateAction] - The proposed action to take on the proposal. This field is + * required and it must be set when updating a proposal. * Possible string values are: * - "accept" * - "cancel" * - "propose" + * - "proposeAndAccept" * - "unknownAction" * - "updateFinalized" * @@ -1857,10 +1917,11 @@ * The protocol that the bidder endpoint is using. By default, OpenRTB * protocols use JSON, except PROTOCOL_OPENRTB_PROTOBUF. * PROTOCOL_OPENRTB_PROTOBUF uses protobuf encoding over the latest OpenRTB - * protocol version, which is 2.3 right now. Allowed values: + * protocol version, which is 2.4 right now. Allowed values: * - PROTOCOL_ADX * - PROTOCOL_OPENRTB_2_2 * - PROTOCOL_OPENRTB_2_3 + * - PROTOCOL_OPENRTB_2_4 * - PROTOCOL_OPENRTB_PROTOBUF */ core.String bidProtocol; @@ -2665,7 +2726,10 @@ } } -/** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ +/** + * If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should + * not be set. (The videoURL inside nativeAd can be set.) + */ class CreativeNativeAd { core.String advertiser; /** The app icon, for app download ads. */ @@ -2674,6 +2738,8 @@ core.String body; /** A label for the button that the user is supposed to click. */ core.String callToAction; + /** The URL that the browser/SDK will load when the user clicks the ad. */ + core.String clickLinkUrl; /** The URL to use for click tracking. */ core.String clickTrackingUrl; /** A short title for the ad. */ @@ -2690,6 +2756,11 @@ core.double starRating; /** The URL to the app store to purchase/download the promoted app. */ core.String store; + /** + * The URL of the XML VAST for a native ad. Note this is a separate field from + * resource.video_url. + */ + core.String videoURL; CreativeNativeAd(); @@ -2706,6 +2777,9 @@ if (_json.containsKey("callToAction")) { callToAction = _json["callToAction"]; } + if (_json.containsKey("clickLinkUrl")) { + clickLinkUrl = _json["clickLinkUrl"]; + } if (_json.containsKey("clickTrackingUrl")) { clickTrackingUrl = _json["clickTrackingUrl"]; } @@ -2730,6 +2804,9 @@ if (_json.containsKey("store")) { store = _json["store"]; } + if (_json.containsKey("videoURL")) { + videoURL = _json["videoURL"]; + } } core.Map toJson() { @@ -2746,6 +2823,9 @@ if (callToAction != null) { _json["callToAction"] = callToAction; } + if (clickLinkUrl != null) { + _json["clickLinkUrl"] = clickLinkUrl; + } if (clickTrackingUrl != null) { _json["clickTrackingUrl"] = clickTrackingUrl; } @@ -2770,6 +2850,9 @@ if (store != null) { _json["store"] = store; } + if (videoURL != null) { + _json["videoURL"] = videoURL; + } return _json; } } @@ -2973,7 +3056,10 @@ * set in requests. */ core.List<core.String> languages; - /** If nativeAd is set, HTMLSnippet and videoURL should not be set. */ + /** + * If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should + * not be set. (The videoURL inside nativeAd can be set.) + */ CreativeNativeAd nativeAd; /** * Top-level open auction status. Read-only. This field should not be set in @@ -3011,7 +3097,11 @@ * requests. */ core.int version; - /** The url to fetch a video ad. If set, HTMLSnippet should not be set. */ + /** + * The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should + * not be set. Note, this is different from resource.native_ad.video_url + * above. + */ core.String videoURL; /** Ad width. */ core.int width; @@ -3195,6 +3285,73 @@ } } +class CreativeDealIdsDealStatuses { + /** ARC approval status. */ + core.String arcStatus; + /** External deal ID. */ + core.String dealId; + /** Publisher ID. */ + core.int webPropertyId; + + CreativeDealIdsDealStatuses(); + + CreativeDealIdsDealStatuses.fromJson(core.Map _json) { + if (_json.containsKey("arcStatus")) { + arcStatus = _json["arcStatus"]; + } + if (_json.containsKey("dealId")) { + dealId = _json["dealId"]; + } + if (_json.containsKey("webPropertyId")) { + webPropertyId = _json["webPropertyId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (arcStatus != null) { + _json["arcStatus"] = arcStatus; + } + if (dealId != null) { + _json["dealId"] = dealId; + } + if (webPropertyId != null) { + _json["webPropertyId"] = webPropertyId; + } + return _json; + } +} + +/** The external deal ids associated with a creative. */ +class CreativeDealIds { + /** A list of external deal ids and ARC approval status. */ + core.List<CreativeDealIdsDealStatuses> dealStatuses; + /** Resource type. */ + core.String kind; + + CreativeDealIds(); + + CreativeDealIds.fromJson(core.Map _json) { + if (_json.containsKey("dealStatuses")) { + dealStatuses = _json["dealStatuses"].map((value) => new CreativeDealIdsDealStatuses.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dealStatuses != null) { + _json["dealStatuses"] = dealStatuses.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + /** * The creatives feed lists the active creatives for the Ad Exchange buyer * accounts that the user has access to. Each entry in the feed corresponds to a @@ -3321,6 +3478,12 @@ class DealTerms { /** Visibilty of the URL in bid requests. */ core.String brandingType; + /** + * Indicates that this ExternalDealId exists under at least two different + * AdxInventoryDeals. Currently, the only case that the same ExternalDealId + * will exist is programmatic cross sell case. + */ + core.String crossListedExternalDealIdType; /** Description for the proposed terms of the deal. */ core.String description; /** @@ -3353,6 +3516,9 @@ if (_json.containsKey("brandingType")) { brandingType = _json["brandingType"]; } + if (_json.containsKey("crossListedExternalDealIdType")) { + crossListedExternalDealIdType = _json["crossListedExternalDealIdType"]; + } if (_json.containsKey("description")) { description = _json["description"]; } @@ -3384,6 +3550,9 @@ if (brandingType != null) { _json["brandingType"] = brandingType; } + if (crossListedExternalDealIdType != null) { + _json["crossListedExternalDealIdType"] = crossListedExternalDealIdType; + } if (description != null) { _json["description"] = description; } @@ -4077,6 +4246,11 @@ /** Description for the deal terms. (updatable) */ core.String inventoryDescription; /** + * Indicates whether the current deal is a RFP template. RFP template is + * created by buyer and not based on seller created products. + */ + core.bool isRfpTemplate; + /** * Identifies what kind of resource this is. Value: the fixed string * "adexchangebuyer#marketplaceDeal". */ @@ -4154,6 +4328,9 @@ if (_json.containsKey("inventoryDescription")) { inventoryDescription = _json["inventoryDescription"]; } + if (_json.containsKey("isRfpTemplate")) { + isRfpTemplate = _json["isRfpTemplate"]; + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -4227,6 +4404,9 @@ if (inventoryDescription != null) { _json["inventoryDescription"] = inventoryDescription; } + if (isRfpTemplate != null) { + _json["isRfpTemplate"] = isRfpTemplate; + } if (kind != null) { _json["kind"] = kind; } @@ -4915,6 +5095,13 @@ * section. */ core.List<core.String> supportedCreativeAttributes; + /** + * Requests containing the specified type of user data will match. Possible + * values are HOSTED_MATCH_DATA, which means the request is cookie-targetable + * and has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, + * which means the request has either a targetable cookie or an iOS IDFA. + */ + core.List<core.String> userIdentifierDataRequired; /** Requests containing any of these user list ids will match. */ core.List<core.String> userLists; /** @@ -4992,6 +5179,9 @@ if (_json.containsKey("supportedCreativeAttributes")) { supportedCreativeAttributes = _json["supportedCreativeAttributes"]; } + if (_json.containsKey("userIdentifierDataRequired")) { + userIdentifierDataRequired = _json["userIdentifierDataRequired"]; + } if (_json.containsKey("userLists")) { userLists = _json["userLists"]; } @@ -5068,6 +5258,9 @@ if (supportedCreativeAttributes != null) { _json["supportedCreativeAttributes"] = supportedCreativeAttributes; } + if (userIdentifierDataRequired != null) { + _json["userIdentifierDataRequired"] = userIdentifierDataRequired; + } if (userLists != null) { _json["userLists"] = userLists; } @@ -5509,6 +5702,8 @@ core.List<ContactInformation> buyerContacts; /** Private data for buyer. (hidden from seller). */ PrivateData buyerPrivateData; + /** IDs of DBM advertisers permission to this proposal. */ + core.List<core.String> dbmAdvertiserIds; /** * When an proposal is in an accepted state, indicates whether the buyer has * signed off. Once both sides have signed off on a deal, the proposal can be @@ -5584,6 +5779,9 @@ if (_json.containsKey("buyerPrivateData")) { buyerPrivateData = new PrivateData.fromJson(_json["buyerPrivateData"]); } + if (_json.containsKey("dbmAdvertiserIds")) { + dbmAdvertiserIds = _json["dbmAdvertiserIds"]; + } if (_json.containsKey("hasBuyerSignedOff")) { hasBuyerSignedOff = _json["hasBuyerSignedOff"]; } @@ -5654,6 +5852,9 @@ if (buyerPrivateData != null) { _json["buyerPrivateData"] = (buyerPrivateData).toJson(); } + if (dbmAdvertiserIds != null) { + _json["dbmAdvertiserIds"] = dbmAdvertiserIds; + } if (hasBuyerSignedOff != null) { _json["hasBuyerSignedOff"] = hasBuyerSignedOff; }
diff --git a/generated/googleapis/lib/admin/directory_v1.dart b/generated/googleapis/lib/admin/directory_v1.dart index de896fa..4cbac58 100644 --- a/generated/googleapis/lib/admin/directory_v1.dart +++ b/generated/googleapis/lib/admin/directory_v1.dart
@@ -324,6 +324,55 @@ _requester = client; /** + * Take action on Chrome OS Device + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [customerId] - Immutable id of the Google Apps account + * + * [resourceId] - Immutable id of Chrome OS Device + * + * 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 action(ChromeOsDeviceAction request, core.String customerId, core.String resourceId) { + 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 (customerId == null) { + throw new core.ArgumentError("Parameter customerId is required."); + } + if (resourceId == null) { + throw new core.ArgumentError("Parameter resourceId is required."); + } + + _downloadOptions = null; + + _url = 'customer/' + commons.Escaper.ecapeVariable('$customerId') + '/devices/chromeos/' + commons.Escaper.ecapeVariable('$resourceId') + '/action'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => null); + } + + /** * Retrieve Chrome OS Device * * Request parameters: @@ -5671,6 +5720,38 @@ } /** + * JSON request template for firing actions on ChromeOs Device in Directory + * Devices API. + */ +class ChromeOsDeviceAction { + /** Action to be taken on the ChromeOs Device */ + core.String action; + core.String deprovisionReason; + + ChromeOsDeviceAction(); + + ChromeOsDeviceAction.fromJson(core.Map _json) { + if (_json.containsKey("action")) { + action = _json["action"]; + } + if (_json.containsKey("deprovisionReason")) { + deprovisionReason = _json["deprovisionReason"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (action != null) { + _json["action"] = action; + } + if (deprovisionReason != null) { + _json["deprovisionReason"] = deprovisionReason; + } + return _json; + } +} + +/** * JSON response template for List Chrome OS Devices operation in Directory API. */ class ChromeOsDevices { @@ -6443,6 +6524,10 @@ core.List<MobileDeviceApplications> applications; /** Mobile Device Baseband version (Read-only) */ core.String basebandVersion; + /** Mobile Device Bootloader version (Read-only) */ + core.String bootloaderVersion; + /** Mobile Device Brand (Read-only) */ + core.String brand; /** Mobile Device Build number (Read-only) */ core.String buildNumber; /** The default locale used on the Mobile Device (Read-only) */ @@ -6453,8 +6538,12 @@ core.String deviceCompromisedStatus; /** Mobile Device serial number (Read-only) */ core.String deviceId; + /** DevicePasswordStatus (Read-only) */ + core.String devicePasswordStatus; /** List of owner user's email addresses (Read-only) */ core.List<core.String> email; + /** Mobile Device Encryption Status (Read-only) */ + core.String encryptionStatus; /** ETag of the resource. */ core.String etag; /** @@ -6462,6 +6551,8 @@ * the Google Apps administrator control panel (Read-only) */ core.DateTime firstSync; + /** Mobile Device Hardware (Read-only) */ + core.String hardware; /** Mobile Device Hardware Id (Read-only) */ core.String hardwareId; /** Mobile Device IMEI number (Read-only) */ @@ -6480,6 +6571,8 @@ * (Read-only) */ core.bool managedAccountIsOnOwnerProfile; + /** Mobile Device manufacturer (Read-only) */ + core.String manufacturer; /** Mobile Device MEID number (Read-only) */ core.String meid; /** Name of the model of the device */ @@ -6492,8 +6585,14 @@ core.String os; /** List of accounts added on device (Read-only) */ core.List<core.String> otherAccountsInfo; + /** DMAgentPermission (Read-only) */ + core.String privilege; + /** Mobile Device release version version (Read-only) */ + core.String releaseVersion; /** Unique identifier of Mobile Device (Read-only) */ core.String resourceId; + /** Mobile Device Security patch level (Read-only) */ + core.String securityPatchLevel; /** Mobile Device SSN or Serial Number (Read-only) */ core.String serialNumber; /** Status of the device (Read-only) */ @@ -6521,6 +6620,12 @@ if (_json.containsKey("basebandVersion")) { basebandVersion = _json["basebandVersion"]; } + if (_json.containsKey("bootloaderVersion")) { + bootloaderVersion = _json["bootloaderVersion"]; + } + if (_json.containsKey("brand")) { + brand = _json["brand"]; + } if (_json.containsKey("buildNumber")) { buildNumber = _json["buildNumber"]; } @@ -6536,15 +6641,24 @@ if (_json.containsKey("deviceId")) { deviceId = _json["deviceId"]; } + if (_json.containsKey("devicePasswordStatus")) { + devicePasswordStatus = _json["devicePasswordStatus"]; + } if (_json.containsKey("email")) { email = _json["email"]; } + if (_json.containsKey("encryptionStatus")) { + encryptionStatus = _json["encryptionStatus"]; + } if (_json.containsKey("etag")) { etag = _json["etag"]; } if (_json.containsKey("firstSync")) { firstSync = core.DateTime.parse(_json["firstSync"]); } + if (_json.containsKey("hardware")) { + hardware = _json["hardware"]; + } if (_json.containsKey("hardwareId")) { hardwareId = _json["hardwareId"]; } @@ -6563,6 +6677,9 @@ if (_json.containsKey("managedAccountIsOnOwnerProfile")) { managedAccountIsOnOwnerProfile = _json["managedAccountIsOnOwnerProfile"]; } + if (_json.containsKey("manufacturer")) { + manufacturer = _json["manufacturer"]; + } if (_json.containsKey("meid")) { meid = _json["meid"]; } @@ -6581,9 +6698,18 @@ if (_json.containsKey("otherAccountsInfo")) { otherAccountsInfo = _json["otherAccountsInfo"]; } + if (_json.containsKey("privilege")) { + privilege = _json["privilege"]; + } + if (_json.containsKey("releaseVersion")) { + releaseVersion = _json["releaseVersion"]; + } if (_json.containsKey("resourceId")) { resourceId = _json["resourceId"]; } + if (_json.containsKey("securityPatchLevel")) { + securityPatchLevel = _json["securityPatchLevel"]; + } if (_json.containsKey("serialNumber")) { serialNumber = _json["serialNumber"]; } @@ -6618,6 +6744,12 @@ if (basebandVersion != null) { _json["basebandVersion"] = basebandVersion; } + if (bootloaderVersion != null) { + _json["bootloaderVersion"] = bootloaderVersion; + } + if (brand != null) { + _json["brand"] = brand; + } if (buildNumber != null) { _json["buildNumber"] = buildNumber; } @@ -6633,15 +6765,24 @@ if (deviceId != null) { _json["deviceId"] = deviceId; } + if (devicePasswordStatus != null) { + _json["devicePasswordStatus"] = devicePasswordStatus; + } if (email != null) { _json["email"] = email; } + if (encryptionStatus != null) { + _json["encryptionStatus"] = encryptionStatus; + } if (etag != null) { _json["etag"] = etag; } if (firstSync != null) { _json["firstSync"] = (firstSync).toIso8601String(); } + if (hardware != null) { + _json["hardware"] = hardware; + } if (hardwareId != null) { _json["hardwareId"] = hardwareId; } @@ -6660,6 +6801,9 @@ if (managedAccountIsOnOwnerProfile != null) { _json["managedAccountIsOnOwnerProfile"] = managedAccountIsOnOwnerProfile; } + if (manufacturer != null) { + _json["manufacturer"] = manufacturer; + } if (meid != null) { _json["meid"] = meid; } @@ -6678,9 +6822,18 @@ if (otherAccountsInfo != null) { _json["otherAccountsInfo"] = otherAccountsInfo; } + if (privilege != null) { + _json["privilege"] = privilege; + } + if (releaseVersion != null) { + _json["releaseVersion"] = releaseVersion; + } if (resourceId != null) { _json["resourceId"] = resourceId; } + if (securityPatchLevel != null) { + _json["securityPatchLevel"] = securityPatchLevel; + } if (serialNumber != null) { _json["serialNumber"] = serialNumber; }
diff --git a/generated/googleapis/lib/adsense/v1_4.dart b/generated/googleapis/lib/adsense/v1_4.dart index a0df011..2b6fef1 100644 --- a/generated/googleapis/lib/adsense/v1_4.dart +++ b/generated/googleapis/lib/adsense/v1_4.dart
@@ -2706,7 +2706,9 @@ * leading hash. */ AdStyleColors colors; - /** The style of the corners in the ad. */ + /** + * The style of the corners in the ad (deprecated: never populated, ignored). + */ core.String corners; /** The font which is included in the style. */ AdStyleFont font;
diff --git a/generated/googleapis/lib/adsensehost/v4_1.dart b/generated/googleapis/lib/adsensehost/v4_1.dart index 4b750c6..3495164 100644 --- a/generated/googleapis/lib/adsensehost/v4_1.dart +++ b/generated/googleapis/lib/adsensehost/v4_1.dart
@@ -1794,8 +1794,7 @@ */ AdStyleColors colors; /** - * The style of the corners in the ad. Possible values are SQUARE, - * SLIGHTLY_ROUNDED and VERY_ROUNDED. + * The style of the corners in the ad (deprecated: never populated, ignored). */ core.String corners; /** The font which is included in the style. */
diff --git a/generated/googleapis/lib/analytics/v3.dart b/generated/googleapis/lib/analytics/v3.dart index 5313fb2..99a862a 100644 --- a/generated/googleapis/lib/analytics/v3.dart +++ b/generated/googleapis/lib/analytics/v3.dart
@@ -3285,15 +3285,16 @@ _requester = client; /** - * Gets remarketing audiences to which the user has access. + * Gets a remarketing audience to which the user has access. * * Request parameters: * - * [accountId] - Account ID for the remarketing audience to retrieve. + * [accountId] - The account ID of the remarketing audience to retrieve. * - * [webPropertyId] - Web property ID for the remarketing audience to retrieve. + * [webPropertyId] - The web property ID of the remarketing audience to + * retrieve. * - * [remarketingAudienceId] - The ID to retrieve the Remarketing Audience for. + * [remarketingAudienceId] - The ID of the remarketing audience to retrieve. * * Completes with a [RemarketingAudience]. * @@ -3334,15 +3335,16 @@ } /** - * Creates a new remarketing audiences. + * Creates a new remarketing audience. * * [request] - The metadata request object. * * Request parameters: * - * [accountId] - Account ID to create the remarketing audience for. + * [accountId] - The account ID for which to create the remarketing audience. * - * [webPropertyId] - Web property ID to create the remarketing audience for. + * [webPropertyId] - Web property ID for which to create the remarketing + * audience. * * Completes with a [RemarketingAudience]. * @@ -3387,9 +3389,10 @@ * * Request parameters: * - * [accountId] - Account ID for the remarketing audience to retrieve. + * [accountId] - The account ID of the remarketing audiences to retrieve. * - * [webPropertyId] - Web property ID for the remarketing audience to retrieve. + * [webPropertyId] - The web property ID of the remarketing audiences to + * retrieve. * * [max_results] - The maximum number of remarketing audiences to include in * this response. @@ -3444,19 +3447,19 @@ } /** - * Updates an existing remarketing audiences. This method supports patch + * Updates an existing remarketing audience. This method supports patch * semantics. * * [request] - The metadata request object. * * Request parameters: * - * [accountId] - Account ID for the remarketing audience to update. + * [accountId] - The account ID of the remarketing audience to update. * - * [webPropertyId] - Web property ID for the remarketing audience to update. + * [webPropertyId] - The web property ID of the remarketing audience to + * update. * - * [remarketingAudienceId] - Remarketing audience ID of the remarketing - * audience to update. + * [remarketingAudienceId] - The ID of the remarketing audience to update. * * Completes with a [RemarketingAudience]. * @@ -3500,18 +3503,18 @@ } /** - * Updates an existing remarketing audiences. + * Updates an existing remarketing audience. * * [request] - The metadata request object. * * Request parameters: * - * [accountId] - Account ID for the remarketing audience to update. + * [accountId] - The account ID of the remarketing audience to update. * - * [webPropertyId] - Web property ID for the remarketing audience to update. + * [webPropertyId] - The web property ID of the remarketing audience to + * update. * - * [remarketingAudienceId] - Remarketing audience ID of the remarketing - * audience to update. + * [remarketingAudienceId] - The ID of the remarketing audience to update. * * Completes with a [RemarketingAudience]. * @@ -8457,6 +8460,8 @@ core.List<GaDataColumnHeaders> columnHeaders; /** Determines if Analytics data contains samples. */ core.bool containsSampledData; + /** The last refreshed time in seconds for Analytics data. */ + core.String dataLastRefreshed; GaDataDataTable dataTable; /** Unique ID for this data response. */ core.String id; @@ -8513,6 +8518,9 @@ if (_json.containsKey("containsSampledData")) { containsSampledData = _json["containsSampledData"]; } + if (_json.containsKey("dataLastRefreshed")) { + dataLastRefreshed = _json["dataLastRefreshed"]; + } if (_json.containsKey("dataTable")) { dataTable = new GaDataDataTable.fromJson(_json["dataTable"]); } @@ -8565,6 +8573,9 @@ if (containsSampledData != null) { _json["containsSampledData"] = containsSampledData; } + if (dataLastRefreshed != null) { + _json["dataLastRefreshed"] = dataLastRefreshed; + } if (dataTable != null) { _json["dataTable"] = (dataTable).toJson(); } @@ -9173,11 +9184,7 @@ core.bool isSmartList; /** Resource type for include conditions. */ core.String kind; - /** - * Number of days a user remains in the audience. Use any integer from 1-540. - * In remarketing audiences for search ads, membership duration is truncated - * to 180 days. - */ + /** Number of days (in the range 1 to 540) a user remains in the audience. */ core.int membershipDurationDays; /** * The segment condition that will cause a user to be added to an audience. @@ -9869,9 +9876,10 @@ /** * The currency type associated with this view (profile), defaults to USD. The * supported values are: - * ARS, AUD, BGN, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, HUF, IDR, INR, - * JPY, KRW, LTL, MXN, NOK, NZD, PHP, PLN, RUB, SEK, THB, TRY, TWD, USD, VND, - * ZAR + * USD, JPY, EUR, GBP, AUD, KRW, BRL, CNY, DKK, RUB, SEK, NOK, PLN, TRY, TWD, + * HKD, THB, IDR, ARS, MXN, VND, PHP, INR, CHF, CAD, CZK, NZD, HUF, BGN, LTL, + * ZAR, UAH, AED, BOB, CLP, COP, EGP, HRK, ILS, MAD, MYR, PEN, PKR, RON, RSD, + * SAR, SGD, VEF, LVL */ core.String currency; /** Default page for this view (profile). */
diff --git a/generated/googleapis/lib/androidenterprise/v1.dart b/generated/googleapis/lib/androidenterprise/v1.dart index a08b316..d695c6c 100644 --- a/generated/googleapis/lib/androidenterprise/v1.dart +++ b/generated/googleapis/lib/androidenterprise/v1.dart
@@ -900,6 +900,53 @@ } /** + * Returns a unique token to access an embeddable UI. To generate a web UI, + * pass the generated token into the Play for Work javascript API. Each token + * may only be used to start one UI session. See the javascript API + * documentation for further information. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [enterpriseId] - The ID of the enterprise. + * + * Completes with a [AdministratorWebToken]. + * + * 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<AdministratorWebToken> createWebToken(AdministratorWebTokenSpec request, core.String enterpriseId) { + 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 (enterpriseId == null) { + throw new core.ArgumentError("Parameter enterpriseId is required."); + } + + _url = 'enterprises/' + commons.Escaper.ecapeVariable('$enterpriseId') + '/createWebToken'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new AdministratorWebToken.fromJson(data)); + } + + /** * Deletes the binding between the EMM and enterprise. This is now deprecated; * use this to unenroll customers that were previously enrolled with the * 'insert' call, then enroll them again with the 'enroll' call. @@ -1268,8 +1315,8 @@ * the service account authenticated for the request. The notification set may * be empty if no notification are pending. * A notification set returned needs to be acknowledged within 20 seconds by - * calling Enterprises.AcknowledgeNotificationSet, unless the notification set - * is empty. + * calling Enterprises​.AcknowledgeNotificationSet, unless the notification + * set is empty. * Notifications that are not acknowledged within the 20 seconds will * eventually be included again in the response to another PullNotificationSet * request, and those that are never acknowledged will ultimately be deleted @@ -1277,13 +1324,20 @@ * Multiple requests might be performed concurrently to retrieve * notifications, in which case the pending notifications (if any) will be * split among each caller, if any are pending. + * If no notifications are present, an empty notification list is returned. + * Subsequent requests may return more notifications once they become + * available. * * Request parameters: * - * [requestMode] - The request mode for pulling notifications. If omitted, - * defaults to WAIT_FOR_NOTIFCATIONS. - * If this is set to WAIT_FOR_NOTIFCATIONS, the request will eventually - * timeout, in which case it should be retried. + * [requestMode] - The request mode for pulling notifications. + * Specifying waitForNotifications will cause the request to block and wait + * until one or more notifications are present, or return an empty + * notification list if no notifications are present after some time. + * Speciying returnImmediately will cause the request to immediately return + * the pending notifications, or an empty list if no notifications are + * present. + * If omitted, defaults to waitForNotifications. * Possible string values are: * - "returnImmediately" * - "waitForNotifications" @@ -1406,7 +1460,13 @@ } /** - * Sets the store layout for the enterprise. + * Sets the store layout for the enterprise. By default, storeLayoutType is + * set to "basic" and the basic store layout is enabled. The basic layout only + * contains apps approved by the administrator, and that have been added to + * the available product set for a user (using the setAvailableProductSet + * call). Apps on the page are sorted in order of their product ID value. If + * you create a custom store layout (by setting storeLayoutType = "custom"), + * the basic store layout is disabled. * * [request] - The metadata request object. * @@ -4246,6 +4306,9 @@ * * The Users resource passed in the body of the request should include an * accountIdentifier and an accountType. + * If a corresponding user already exists with the same account identifier, + * the user will be updated with the resource. In this case only the + * displayName field can be changed. * * [request] - The metadata request object. * @@ -4565,6 +4628,94 @@ } } +/** A token authorizing an administrator to access an iframe. */ +class AdministratorWebToken { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "androidenterprise#administratorWebToken". + */ + core.String kind; + /** + * An opaque token to be passed to the Play front-end to generate an iframe. + */ + core.String token; + + AdministratorWebToken(); + + AdministratorWebToken.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("token")) { + token = _json["token"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (token != null) { + _json["token"] = token; + } + return _json; + } +} + +/** + * Specification for a token used to generate iframes. The token specifies what + * data the admin is allowed to modify and the URI the iframe is allowed to + * communiate with. + */ +class AdministratorWebTokenSpec { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "androidenterprise#administratorWebTokenSpec". + */ + core.String kind; + /** + * The URI of the parent frame hosting the iframe. To prevent XSS, the iframe + * may not be hosted at other URIs. This URI must be https. + */ + core.String parent; + /** + * The list of permissions the admin is granted within the iframe. The admin + * will only be allowed to view an iframe if they have all of the permissions + * associated with it. The only valid value is "approveApps" that will allow + * the admin to access the iframe in "approve" mode. + */ + core.List<core.String> permission; + + AdministratorWebTokenSpec(); + + AdministratorWebTokenSpec.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("parent")) { + parent = _json["parent"]; + } + if (_json.containsKey("permission")) { + permission = _json["permission"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (parent != null) { + _json["parent"] = parent; + } + if (permission != null) { + _json["permission"] = permission; + } + return _json; + } +} + /** * Represents the list of app restrictions available to be pre-configured for * the product. @@ -4635,7 +4786,10 @@ * configuration that may be pre-applied. */ class AppRestrictionsSchemaRestriction { - /** The default value of the restriction. */ + /** + * The default value of the restriction. bundle and bundleArray restrictions + * never have a default value. + */ AppRestrictionsSchemaRestrictionRestrictionValue defaultValue; /** * A longer description of the restriction, giving more detail of what it @@ -4649,7 +4803,9 @@ core.List<core.String> entry; /** * For choice or multiselect restrictions, the list of possible entries' - * machine-readable values. + * machine-readable values. These values should be used in the configuration, + * either as a single string value for a choice restriction or in a + * stringArray for a multiselect restriction. */ core.List<core.String> entryValue; /** @@ -4658,7 +4814,9 @@ */ core.String key; /** - * For bundle or bundleArray restrictions, the list of nested restrictions. + * For bundle or bundleArray restrictions, the list of nested restrictions. A + * bundle restriction is always nested within a bundleArray restriction, and a + * bundleArray restriction is at most two levels deep. */ core.List<AppRestrictionsSchemaRestriction> nestedRestriction; /** The type of the restriction. */ @@ -5099,17 +5257,19 @@ /** * Identifies the extent to which the device is controlled by an Android for * Work EMM in various deployment configurations. + * * Possible values include: - * - "managedDevice"—A device that has the EMM's device policy controller - * (DPC) as the device owner. - * - "managedProfile"—A device that has a work profile managed by the DPC (DPC - * is profile owner) in addition to a separate, personal profile that is - * unavailable to the DPC. - * - "containerApp"—A device running the Android for Work App. The Android for - * Work App is managed by the DPC. - * - "unmanagedProfile"—A device that has been allowed (by the domain's admin, - * using the Admin Console to enable the privilege) to use Android for Work - * apps or Google Apps for Work, but the profile is itself not owned by a DPC. + * - "managedDevice", a device that has the EMM's device policy controller + * (DPC) as the device owner, + * - "managedProfile", a device that has a work profile managed by the DPC + * (DPC is profile owner) in addition to a separate, personal profile that is + * unavailable to the DPC, + * - "containerApp", a device running the Android for Work App. The Android + * for Work App is managed by the DPC, + * - "unmanagedProfile", a device that has been allowed (by the domain's + * admin, using the Admin Console to enable the privilege) to use Android for + * Work apps or Google Apps for Work, but the profile is itself not owned by a + * DPC. */ core.String managementType; @@ -6704,6 +6864,14 @@ core.String kind; /** The list of product IDs making up the set of products. */ core.List<core.String> productId; + /** + * 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. + */ + core.String productSetBehavior; ProductSet(); @@ -6714,6 +6882,9 @@ if (_json.containsKey("productId")) { productId = _json["productId"]; } + if (_json.containsKey("productSetBehavior")) { + productSetBehavior = _json["productSetBehavior"]; + } } core.Map toJson() { @@ -6724,6 +6895,9 @@ if (productId != null) { _json["productId"] = productId; } + if (productSetBehavior != null) { + _json["productSetBehavior"] = productSetBehavior; + } return _json; } } @@ -7110,6 +7284,16 @@ * "androidenterprise#storeLayout". */ 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 + * 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 + * enterprise (if any). Should the enterprise use collectionViewers for + * controlling access rights, these will still be respected. + */ + core.String storeLayoutType; StoreLayout(); @@ -7120,6 +7304,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("storeLayoutType")) { + storeLayoutType = _json["storeLayoutType"]; + } } core.Map toJson() { @@ -7130,6 +7317,9 @@ if (kind != null) { _json["kind"] = kind; } + if (storeLayoutType != null) { + _json["storeLayoutType"] = storeLayoutType; + } return _json; } }
diff --git a/generated/googleapis/lib/androidpublisher/v2.dart b/generated/googleapis/lib/androidpublisher/v2.dart index 855d360..757fed2 100644 --- a/generated/googleapis/lib/androidpublisher/v2.dart +++ b/generated/googleapis/lib/androidpublisher/v2.dart
@@ -40,6 +40,7 @@ EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi(_requester); EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); + EditsDeobfuscationfilesResourceApi get deobfuscationfiles => new EditsDeobfuscationfilesResourceApi(_requester); EditsDetailsResourceApi get details => new EditsDetailsResourceApi(_requester); EditsExpansionfilesResourceApi get expansionfiles => new EditsExpansionfilesResourceApi(_requester); EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester); @@ -802,6 +803,89 @@ } +class EditsDeobfuscationfilesResourceApi { + final commons.ApiRequester _requester; + + EditsDeobfuscationfilesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Uploads the deobfuscation file of the specified APK. If a deobfuscation + * file already exists, it will be replaced. + * + * Request parameters: + * + * [packageName] - Unique identifier of the Android app for which the + * deobfuscatiuon files are being uploaded; for example, "com.spiffygame". + * + * [editId] - Unique identifier for this edit. + * + * [apkVersionCode] - The version code of the APK whose deobfuscation file is + * being uploaded. + * + * [deobfuscationFileType] - null + * Possible string values are: + * - "proguard" + * + * [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 [DeobfuscationFilesUploadResponse]. + * + * 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<DeobfuscationFilesUploadResponse> upload(core.String packageName, core.String editId, core.int apkVersionCode, core.String deobfuscationFileType, {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 (packageName == null) { + throw new core.ArgumentError("Parameter packageName is required."); + } + if (editId == null) { + throw new core.ArgumentError("Parameter editId is required."); + } + if (apkVersionCode == null) { + throw new core.ArgumentError("Parameter apkVersionCode is required."); + } + if (deobfuscationFileType == null) { + throw new core.ArgumentError("Parameter deobfuscationFileType is required."); + } + + _uploadMedia = uploadMedia; + _uploadOptions = uploadOptions; + + if (_uploadMedia == null) { + _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deobfuscationFiles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); + } else if (_uploadOptions is commons.ResumableUploadOptions) { + _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deobfuscationFiles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); + } else { + _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deobfuscationFiles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); + } + + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DeobfuscationFilesUploadResponse.fromJson(data)); + } + +} + + class EditsDetailsResourceApi { final commons.ApiRequester _requester; @@ -3497,6 +3581,48 @@ } } +/** Represents a deobfuscation file. */ +class DeobfuscationFile { + /** The type of the deobfuscation file. */ + core.String symbolType; + + DeobfuscationFile(); + + DeobfuscationFile.fromJson(core.Map _json) { + if (_json.containsKey("symbolType")) { + symbolType = _json["symbolType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (symbolType != null) { + _json["symbolType"] = symbolType; + } + return _json; + } +} + +class DeobfuscationFilesUploadResponse { + DeobfuscationFile deobfuscationFile; + + DeobfuscationFilesUploadResponse(); + + DeobfuscationFilesUploadResponse.fromJson(core.Map _json) { + if (_json.containsKey("deobfuscationFile")) { + deobfuscationFile = new DeobfuscationFile.fromJson(_json["deobfuscationFile"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (deobfuscationFile != null) { + _json["deobfuscationFile"] = (deobfuscationFile).toJson(); + } + return _json; + } +} + class DeveloperComment { /** The last time at which this comment was updated. */ Timestamp lastModified;
diff --git a/generated/googleapis/lib/appengine/v1.dart b/generated/googleapis/lib/appengine/v1.dart index fa4d0d5..122e859 100644 --- a/generated/googleapis/lib/appengine/v1.dart +++ b/generated/googleapis/lib/appengine/v1.dart
@@ -16,13 +16,20 @@ /** Provisions and manages App Engine applications. */ class AppengineApi { + /** View and manage your applications deployed on Google App Engine */ + static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.admin"; + /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services */ + static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"; + 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); @@ -40,6 +47,49 @@ _requester = client; /** + * 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). + * + * [request] - The metadata request object. + * + * Request parameters: + * + * 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> create(Application 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/apps'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * Gets information about an application. * * Request parameters: @@ -80,6 +130,56 @@ } /** + * Updates application fields. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [appsId] - Part of `name`. Name of the application to update. Example: + * `apps/myapp`. + * + * [updateMask] - Standard field mask for the set of fields to be 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> patch(Application request, core.String appsId, {core.String updateMask}) { + 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 (appsId == null) { + throw new core.ArgumentError("Parameter appsId is required."); + } + if (updateMask != null) { + _queryParams["updateMask"] = [updateMask]; + } + + _url = 'v1/apps/' + commons.Escaper.ecapeVariable('$appsId'); + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * 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, @@ -1123,6 +1223,138 @@ } +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 @@ -1582,14 +1814,28 @@ /** 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) + */ + core.String sshKey; DebugInstanceRequest(); DebugInstanceRequest.fromJson(core.Map _json) { + if (_json.containsKey("sshKey")) { + sshKey = _json["sshKey"]; + } } core.Map toJson() { var _json = new core.Map(); + if (sshKey != null) { + _json["sshKey"] = sshKey; + } return _json; } } @@ -1911,6 +2157,11 @@ */ core.String vmId; /** + * The IP address of this instance. Only applicable for instances in App + * 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 */ @@ -1965,6 +2216,9 @@ if (_json.containsKey("vmId")) { vmId = _json["vmId"]; } + if (_json.containsKey("vmIp")) { + vmIp = _json["vmIp"]; + } if (_json.containsKey("vmName")) { vmName = _json["vmName"]; } @@ -2014,6 +2268,9 @@ if (vmId != null) { _json["vmId"] = vmId; } + if (vmIp != null) { + _json["vmIp"] = vmIp; + } if (vmName != null) { _json["vmName"] = vmName; } @@ -2214,7 +2471,7 @@ * {"cloud.googleapis.com/region": "us-east1"} */ core.Map<core.String, core.String> labels; - /** The cononical 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 @@ -2432,7 +2689,7 @@ * 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 @@ -2577,6 +2834,67 @@ } /** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataExperimental { + /** Time that this operation completed. @OutputOnly */ + core.String endTime; + /** Time that this operation was created. @OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * `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 + */ + core.String target; + /** User who requested this operation. @OutputOnly */ + core.String user; + + OperationMetadataExperimental(); + + OperationMetadataExperimental.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ class OperationMetadataV1 { /** Time that this operation completed. @OutputOnly */ core.String endTime; @@ -3571,6 +3889,7 @@ } } +/** The zip file information for a zip deployment. */ class ZipInfo { /** * An estimate of the number of files in a zip for a zip deployment. If set,
diff --git a/generated/googleapis/lib/appsactivity/v1.dart b/generated/googleapis/lib/appsactivity/v1.dart index 76b54b6..38bdfab 100644 --- a/generated/googleapis/lib/appsactivity/v1.dart +++ b/generated/googleapis/lib/appsactivity/v1.dart
@@ -612,6 +612,8 @@ * name, photo and permission_id will be omitted. */ core.bool isDeleted; + /** Whether the user is the authenticated user. */ + core.bool isMe; /** The displayable name of the user. */ core.String name; /** @@ -632,6 +634,9 @@ if (_json.containsKey("isDeleted")) { isDeleted = _json["isDeleted"]; } + if (_json.containsKey("isMe")) { + isMe = _json["isMe"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -648,6 +653,9 @@ if (isDeleted != null) { _json["isDeleted"] = isDeleted; } + if (isMe != null) { + _json["isMe"] = isMe; + } if (name != null) { _json["name"] = name; }
diff --git a/generated/googleapis/lib/bigquery/v2.dart b/generated/googleapis/lib/bigquery/v2.dart index 7872979..7be48aa 100644 --- a/generated/googleapis/lib/bigquery/v2.dart +++ b/generated/googleapis/lib/bigquery/v2.dart
@@ -212,11 +212,9 @@ * [all] - Whether to list all datasets, including hidden ones * * [filter] - An expression for filtering the results of the request by label. - * The syntax is "labels.[:]". Multiple filters can be ANDed together by - * connecting with a space. Example: "labels.department:receiving - * labels.active". See - * https://cloud.google.com/bigquery/docs/labeling-datasets#filtering_datasets_using_labels - * for details. + * The syntax is "labels.<name>[:<value>]". Multiple filters can be ANDed + * together by connecting with a space. Example: "labels.department:receiving + * labels.active". See Filtering datasets using labels for details. * * [maxResults] - The maximum number of results to return * @@ -413,7 +411,7 @@ throw new core.ArgumentError("Parameter jobId is required."); } - _url = 'project/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/cancel'; + _url = 'projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/cancel'; var _response = _requester.request(_url, "POST", @@ -1686,12 +1684,8 @@ /** * [Experimental] The labels associated with this dataset. You can use these * to organize and group your datasets. You can set this property when - * inserting or updating a dataset. Label keys and values can be no longer - * than 63 characters, can only contain letters, numeric characters, - * underscores and dashes. International characters are allowed. Label values - * are optional. Label keys must start with a letter and must be unique within - * a dataset. Both keys and values are additionally constrained to be <= 128 - * bytes in size. + * inserting or updating a dataset. See Labeling Datasets for more + * information. */ core.Map<core.String, core.String> labels; /** @@ -2594,6 +2588,16 @@ core.bool dryRun; /** [Pick one] Configures an extract job. */ JobConfigurationExtract extract; + /** + * [Experimental] The labels associated with this job. You can use these to + * organize and group your jobs. Label keys and values can be no longer than + * 63 characters, can only contain letters, numeric characters, underscores + * and dashes. International characters are allowed. Label values are + * optional. Label keys must start with a letter and must be unique within a + * dataset. Both keys and values are additionally constrained to be <= 128 + * bytes in size. + */ + core.Map<core.String, core.String> labels; /** [Pick one] Configures a load job. */ JobConfigurationLoad load; /** [Pick one] Configures a query job. */ @@ -2611,6 +2615,9 @@ if (_json.containsKey("extract")) { extract = new JobConfigurationExtract.fromJson(_json["extract"]); } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("load")) { load = new JobConfigurationLoad.fromJson(_json["load"]); } @@ -2630,6 +2637,9 @@ if (extract != null) { _json["extract"] = (extract).toJson(); } + if (labels != null) { + _json["labels"] = labels; + } if (load != null) { _json["load"] = (load).toJson(); } @@ -3052,10 +3062,10 @@ core.String priority; /** [Required] BigQuery SQL query to execute. */ core.String query; - /** [Experimental] Query parameters for Standard SQL queries. */ + /** Query parameters for standard SQL queries. */ core.List<QueryParameter> queryParameters; /** - * [Experimental] Allows the schema of the desitination table to be updated as + * [Experimental] Allows the schema of the destination table to be updated as * a side effect of the query job. Schema update options are supported in two * cases: when writeDisposition is WRITE_APPEND; when writeDisposition is * WRITE_TRUNCATE and the destination table is a partition of a table, @@ -3074,10 +3084,10 @@ */ core.Map<core.String, ExternalDataConfiguration> tableDefinitions; /** - * [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for - * this query. The default value is true. If set to false, the query will use - * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ - * When useLegacySql is set to false, the values of allowLargeResults and + * Specifies whether to use BigQuery's legacy SQL dialect for this query. The + * default value is true. If set to false, the query will use BigQuery's + * standard SQL: https://cloud.google.com/bigquery/sql-reference/ When + * useLegacySql is set to false, the values of allowLargeResults and * flattenResults are ignored; query will be run as if allowLargeResults is * true and flattenResults is false. */ @@ -4057,7 +4067,7 @@ * [Optional] The struct field values, in order of the struct type's * declaration. */ - core.List<QueryParameterValue> structValues; + core.Map<core.String, QueryParameterValue> structValues; /** [Optional] The value of this value, if a simple scalar type. */ core.String value; @@ -4068,7 +4078,7 @@ arrayValues = _json["arrayValues"].map((value) => new QueryParameterValue.fromJson(value)).toList(); } if (_json.containsKey("structValues")) { - structValues = _json["structValues"].map((value) => new QueryParameterValue.fromJson(value)).toList(); + structValues = commons.mapMap(_json["structValues"], (item) => new QueryParameterValue.fromJson(item)); } if (_json.containsKey("value")) { value = _json["value"]; @@ -4081,7 +4091,7 @@ _json["arrayValues"] = arrayValues.map((value) => (value).toJson()).toList(); } if (structValues != null) { - _json["structValues"] = structValues.map((value) => (value).toJson()).toList(); + _json["structValues"] = commons.mapMap(structValues, (item) => (item).toJson()); } if (value != null) { _json["value"] = value; @@ -4140,10 +4150,10 @@ */ core.int timeoutMs; /** - * [Experimental] Specifies whether to use BigQuery's legacy SQL dialect for - * this query. The default value is true. If set to false, the query will use - * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ - * When useLegacySql is set to false, the values of allowLargeResults and + * Specifies whether to use BigQuery's legacy SQL dialect for this query. The + * default value is true. If set to false, the query will use BigQuery's + * standard SQL: https://cloud.google.com/bigquery/sql-reference/ When + * useLegacySql is set to false, the values of allowLargeResults and * flattenResults are ignored; query will be run as if allowLargeResults is * true and flattenResults is false. */ @@ -4889,8 +4899,8 @@ core.String name; /** * [Required] The field data type. Possible values include STRING, BYTES, - * INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that - * the field contains a nested schema). + * INTEGER, FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where + * RECORD indicates that the field contains a nested schema). */ core.String type; @@ -5202,10 +5212,10 @@ /** [Required] A query that BigQuery executes when the view is referenced. */ core.String query; /** - * [Experimental] Specifies whether to use BigQuery's legacy SQL for this - * view. The default value is true. If set to false, the view will use - * BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ - * Queries and views that reference this view must use the same flag value. + * Specifies whether to use BigQuery's legacy SQL for this view. The default + * value is true. If set to false, the view will use BigQuery's standard SQL: + * https://cloud.google.com/bigquery/sql-reference/ Queries and views that + * reference this view must use the same flag value. */ core.bool useLegacySql; /**
diff --git a/generated/googleapis/lib/books/v1.dart b/generated/googleapis/lib/books/v1.dart index cb5d2f4..9e06347 100644 --- a/generated/googleapis/lib/books/v1.dart +++ b/generated/googleapis/lib/books/v1.dart
@@ -2731,6 +2731,13 @@ * - "my-library" : Restrict to the user's library, any shelf. * - "no-restrict" : Do not restrict based on user's library. * + * [maxAllowedMaturityRating] - The maximum allowed maturity rating of + * returned recommendations. Books with a higher maturity rating are filtered + * out. + * Possible string values are: + * - "mature" : Show books which are rated mature or lower. + * - "not-mature" : Show books which are rated not mature. + * * [maxResults] - Maximum number of results to return. * Value must be between "0" and "40". * @@ -2767,7 +2774,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<Volumes> list(core.String q, {core.String download, core.String filter, core.String langRestrict, core.String libraryRestrict, core.int maxResults, core.String orderBy, core.String partner, core.String printType, core.String projection, core.bool showPreorders, core.String source, core.int startIndex}) { + async.Future<Volumes> list(core.String q, {core.String download, core.String filter, core.String langRestrict, core.String libraryRestrict, core.String maxAllowedMaturityRating, core.int maxResults, core.String orderBy, core.String partner, core.String printType, core.String projection, core.bool showPreorders, core.String source, core.int startIndex}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2791,6 +2798,9 @@ if (libraryRestrict != null) { _queryParams["libraryRestrict"] = [libraryRestrict]; } + if (maxAllowedMaturityRating != null) { + _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } @@ -6125,6 +6135,10 @@ 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/civicinfo/v2.dart b/generated/googleapis/lib/civicinfo/v2.dart index a4aff1d..125b081 100644 --- a/generated/googleapis/lib/civicinfo/v2.dart +++ b/generated/googleapis/lib/civicinfo/v2.dart
@@ -40,6 +40,8 @@ /** * Searches for political divisions by their natural name or OCD ID. * + * [request] - The metadata request object. + * * Request parameters: * * [query] - The search query. Queries can cover any parts of a OCD ID or a @@ -56,7 +58,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<DivisionSearchResponse> search({core.String query}) { + async.Future<DivisionSearchResponse> search(DivisionSearchRequest request, {core.String query}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -64,6 +66,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } if (query != null) { _queryParams["query"] = [query]; } @@ -92,6 +97,8 @@ /** * List of available elections to query. * + * [request] - The metadata request object. + * * Request parameters: * * Completes with a [ElectionsQueryResponse]. @@ -102,7 +109,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<ElectionsQueryResponse> electionQuery() { + async.Future<ElectionsQueryResponse> electionQuery(ElectionsQueryRequest request) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -110,6 +117,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } _url = 'elections'; @@ -127,6 +137,8 @@ * Looks up information relevant to a voter based on the voter's registered * address. * + * [request] - The metadata request object. + * * Request parameters: * * [address] - The registered address of the voter to look up. @@ -151,7 +163,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<VoterInfoResponse> voterInfoQuery(core.String address, {core.String electionId, core.bool officialOnly, core.bool returnAllAvailableData}) { + async.Future<VoterInfoResponse> voterInfoQuery(VoterInfoRequest request, core.String address, {core.String electionId, core.bool officialOnly, core.bool returnAllAvailableData}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -159,6 +171,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } if (address == null) { throw new core.ArgumentError("Parameter address is required."); } @@ -198,6 +213,8 @@ * Looks up political geography and representative information for a single * address. * + * [request] - The metadata request object. + * * Request parameters: * * [address] - The address to look up. May only be specified if the field @@ -223,7 +240,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<RepresentativeInfoResponse> representativeInfoByAddress({core.String address, core.bool includeOffices, core.List<core.String> levels, core.List<core.String> roles}) { + async.Future<RepresentativeInfoResponse> representativeInfoByAddress(RepresentativeInfoRequest request, {core.String address, core.bool includeOffices, core.List<core.String> levels, core.List<core.String> roles}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -231,6 +248,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } if (address != null) { _queryParams["address"] = [address]; } @@ -259,6 +279,8 @@ /** * Looks up representative information for a single geographic division. * + * [request] - The metadata request object. + * * Request parameters: * * [ocdId] - The Open Civic Data division identifier of the division to look @@ -285,7 +307,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<RepresentativeInfoData> representativeInfoByDivision(core.String ocdId, {core.List<core.String> levels, core.bool recursive, core.List<core.String> roles}) { + async.Future<RepresentativeInfoData> representativeInfoByDivision(DivisionRepresentativeInfoRequest request, core.String ocdId, {core.List<core.String> levels, core.bool recursive, core.List<core.String> roles}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -293,6 +315,9 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; + if (request != null) { + _body = convert.JSON.encode((request).toJson()); + } if (ocdId == null) { throw new core.ArgumentError("Parameter ocdId is required."); } @@ -542,7 +567,11 @@ core.List<Channel> channels; /** The email address for the candidate's campaign. */ core.String email; - /** The candidate's name. */ + /** + * The candidate's name. If this is a joint ticket it will indicate the name + * of the candidate at the top of a ticket followed by a / and that name of + * candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan" + */ core.String name; /** The order the candidate appears on the ballot for this contest. */ core.String orderOnBallot; @@ -915,6 +944,68 @@ } } +class ContextParams { + core.String clientProfile; + + ContextParams(); + + ContextParams.fromJson(core.Map _json) { + if (_json.containsKey("clientProfile")) { + clientProfile = _json["clientProfile"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (clientProfile != null) { + _json["clientProfile"] = clientProfile; + } + return _json; + } +} + +/** A request to look up representative information for a single division. */ +class DivisionRepresentativeInfoRequest { + ContextParams contextParams; + + DivisionRepresentativeInfoRequest(); + + DivisionRepresentativeInfoRequest.fromJson(core.Map _json) { + if (_json.containsKey("contextParams")) { + contextParams = new ContextParams.fromJson(_json["contextParams"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contextParams != null) { + _json["contextParams"] = (contextParams).toJson(); + } + return _json; + } +} + +/** A search request for political geographies. */ +class DivisionSearchRequest { + ContextParams contextParams; + + DivisionSearchRequest(); + + DivisionSearchRequest.fromJson(core.Map _json) { + if (_json.containsKey("contextParams")) { + contextParams = new ContextParams.fromJson(_json["contextParams"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contextParams != null) { + _json["contextParams"] = (contextParams).toJson(); + } + return _json; + } +} + /** The result of a division search query. */ class DivisionSearchResponse { /** @@ -1100,6 +1191,26 @@ } } +class ElectionsQueryRequest { + ContextParams contextParams; + + ElectionsQueryRequest(); + + ElectionsQueryRequest.fromJson(core.Map _json) { + if (_json.containsKey("contextParams")) { + contextParams = new ContextParams.fromJson(_json["contextParams"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contextParams != null) { + _json["contextParams"] = (contextParams).toJson(); + } + return _json; + } +} + /** The list of elections available for this version of the API. */ class ElectionsQueryResponse { /** A list of available elections */ @@ -1508,6 +1619,236 @@ } } +class PostalAddress { + core.List<core.String> addressLines; + core.String administrativeAreaName; + core.String countryName; + core.String countryNameCode; + core.String dependentLocalityName; + core.String dependentThoroughfareLeadingType; + core.String dependentThoroughfareName; + core.String dependentThoroughfarePostDirection; + core.String dependentThoroughfarePreDirection; + core.String dependentThoroughfareTrailingType; + core.String dependentThoroughfaresConnector; + core.String dependentThoroughfaresIndicator; + core.String dependentThoroughfaresType; + core.String firmName; + core.bool isDisputed; + core.String languageCode; + core.String localityName; + core.String postBoxNumber; + core.String postalCodeNumber; + core.String postalCodeNumberExtension; + core.String premiseName; + core.String recipientName; + core.String sortingCode; + core.String subAdministrativeAreaName; + core.String subPremiseName; + core.String thoroughfareLeadingType; + core.String thoroughfareName; + core.String thoroughfareNumber; + core.String thoroughfarePostDirection; + core.String thoroughfarePreDirection; + core.String thoroughfareTrailingType; + + PostalAddress(); + + PostalAddress.fromJson(core.Map _json) { + if (_json.containsKey("addressLines")) { + addressLines = _json["addressLines"]; + } + if (_json.containsKey("administrativeAreaName")) { + administrativeAreaName = _json["administrativeAreaName"]; + } + if (_json.containsKey("countryName")) { + countryName = _json["countryName"]; + } + if (_json.containsKey("countryNameCode")) { + countryNameCode = _json["countryNameCode"]; + } + if (_json.containsKey("dependentLocalityName")) { + dependentLocalityName = _json["dependentLocalityName"]; + } + if (_json.containsKey("dependentThoroughfareLeadingType")) { + dependentThoroughfareLeadingType = _json["dependentThoroughfareLeadingType"]; + } + if (_json.containsKey("dependentThoroughfareName")) { + dependentThoroughfareName = _json["dependentThoroughfareName"]; + } + if (_json.containsKey("dependentThoroughfarePostDirection")) { + dependentThoroughfarePostDirection = _json["dependentThoroughfarePostDirection"]; + } + if (_json.containsKey("dependentThoroughfarePreDirection")) { + dependentThoroughfarePreDirection = _json["dependentThoroughfarePreDirection"]; + } + if (_json.containsKey("dependentThoroughfareTrailingType")) { + dependentThoroughfareTrailingType = _json["dependentThoroughfareTrailingType"]; + } + if (_json.containsKey("dependentThoroughfaresConnector")) { + dependentThoroughfaresConnector = _json["dependentThoroughfaresConnector"]; + } + if (_json.containsKey("dependentThoroughfaresIndicator")) { + dependentThoroughfaresIndicator = _json["dependentThoroughfaresIndicator"]; + } + if (_json.containsKey("dependentThoroughfaresType")) { + dependentThoroughfaresType = _json["dependentThoroughfaresType"]; + } + if (_json.containsKey("firmName")) { + firmName = _json["firmName"]; + } + if (_json.containsKey("isDisputed")) { + isDisputed = _json["isDisputed"]; + } + if (_json.containsKey("languageCode")) { + languageCode = _json["languageCode"]; + } + if (_json.containsKey("localityName")) { + localityName = _json["localityName"]; + } + if (_json.containsKey("postBoxNumber")) { + postBoxNumber = _json["postBoxNumber"]; + } + if (_json.containsKey("postalCodeNumber")) { + postalCodeNumber = _json["postalCodeNumber"]; + } + if (_json.containsKey("postalCodeNumberExtension")) { + postalCodeNumberExtension = _json["postalCodeNumberExtension"]; + } + if (_json.containsKey("premiseName")) { + premiseName = _json["premiseName"]; + } + if (_json.containsKey("recipientName")) { + recipientName = _json["recipientName"]; + } + if (_json.containsKey("sortingCode")) { + sortingCode = _json["sortingCode"]; + } + if (_json.containsKey("subAdministrativeAreaName")) { + subAdministrativeAreaName = _json["subAdministrativeAreaName"]; + } + if (_json.containsKey("subPremiseName")) { + subPremiseName = _json["subPremiseName"]; + } + if (_json.containsKey("thoroughfareLeadingType")) { + thoroughfareLeadingType = _json["thoroughfareLeadingType"]; + } + if (_json.containsKey("thoroughfareName")) { + thoroughfareName = _json["thoroughfareName"]; + } + if (_json.containsKey("thoroughfareNumber")) { + thoroughfareNumber = _json["thoroughfareNumber"]; + } + if (_json.containsKey("thoroughfarePostDirection")) { + thoroughfarePostDirection = _json["thoroughfarePostDirection"]; + } + if (_json.containsKey("thoroughfarePreDirection")) { + thoroughfarePreDirection = _json["thoroughfarePreDirection"]; + } + if (_json.containsKey("thoroughfareTrailingType")) { + thoroughfareTrailingType = _json["thoroughfareTrailingType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (addressLines != null) { + _json["addressLines"] = addressLines; + } + if (administrativeAreaName != null) { + _json["administrativeAreaName"] = administrativeAreaName; + } + if (countryName != null) { + _json["countryName"] = countryName; + } + if (countryNameCode != null) { + _json["countryNameCode"] = countryNameCode; + } + if (dependentLocalityName != null) { + _json["dependentLocalityName"] = dependentLocalityName; + } + if (dependentThoroughfareLeadingType != null) { + _json["dependentThoroughfareLeadingType"] = dependentThoroughfareLeadingType; + } + if (dependentThoroughfareName != null) { + _json["dependentThoroughfareName"] = dependentThoroughfareName; + } + if (dependentThoroughfarePostDirection != null) { + _json["dependentThoroughfarePostDirection"] = dependentThoroughfarePostDirection; + } + if (dependentThoroughfarePreDirection != null) { + _json["dependentThoroughfarePreDirection"] = dependentThoroughfarePreDirection; + } + if (dependentThoroughfareTrailingType != null) { + _json["dependentThoroughfareTrailingType"] = dependentThoroughfareTrailingType; + } + if (dependentThoroughfaresConnector != null) { + _json["dependentThoroughfaresConnector"] = dependentThoroughfaresConnector; + } + if (dependentThoroughfaresIndicator != null) { + _json["dependentThoroughfaresIndicator"] = dependentThoroughfaresIndicator; + } + if (dependentThoroughfaresType != null) { + _json["dependentThoroughfaresType"] = dependentThoroughfaresType; + } + if (firmName != null) { + _json["firmName"] = firmName; + } + if (isDisputed != null) { + _json["isDisputed"] = isDisputed; + } + if (languageCode != null) { + _json["languageCode"] = languageCode; + } + if (localityName != null) { + _json["localityName"] = localityName; + } + if (postBoxNumber != null) { + _json["postBoxNumber"] = postBoxNumber; + } + if (postalCodeNumber != null) { + _json["postalCodeNumber"] = postalCodeNumber; + } + if (postalCodeNumberExtension != null) { + _json["postalCodeNumberExtension"] = postalCodeNumberExtension; + } + if (premiseName != null) { + _json["premiseName"] = premiseName; + } + if (recipientName != null) { + _json["recipientName"] = recipientName; + } + if (sortingCode != null) { + _json["sortingCode"] = sortingCode; + } + if (subAdministrativeAreaName != null) { + _json["subAdministrativeAreaName"] = subAdministrativeAreaName; + } + if (subPremiseName != null) { + _json["subPremiseName"] = subPremiseName; + } + if (thoroughfareLeadingType != null) { + _json["thoroughfareLeadingType"] = thoroughfareLeadingType; + } + if (thoroughfareName != null) { + _json["thoroughfareName"] = thoroughfareName; + } + if (thoroughfareNumber != null) { + _json["thoroughfareNumber"] = thoroughfareNumber; + } + if (thoroughfarePostDirection != null) { + _json["thoroughfarePostDirection"] = thoroughfarePostDirection; + } + if (thoroughfarePreDirection != null) { + _json["thoroughfarePreDirection"] = thoroughfarePreDirection; + } + if (thoroughfareTrailingType != null) { + _json["thoroughfareTrailingType"] = thoroughfareTrailingType; + } + return _json; + } +} + class RepresentativeInfoData { /** Political geographic divisions that contain the requested address. */ core.Map<core.String, GeographicDivision> divisions; @@ -1551,6 +1892,30 @@ } } +/** + * A request for political geography and representative information for an + * address. + */ +class RepresentativeInfoRequest { + ContextParams contextParams; + + RepresentativeInfoRequest(); + + RepresentativeInfoRequest.fromJson(core.Map _json) { + if (_json.containsKey("contextParams")) { + contextParams = new ContextParams.fromJson(_json["contextParams"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contextParams != null) { + _json["contextParams"] = (contextParams).toJson(); + } + return _json; + } +} + /** The result of a representative info lookup query. */ class RepresentativeInfoResponse { /** Political geographic divisions that contain the requested address. */ @@ -1716,6 +2081,34 @@ } } +/** A request for information about a voter. */ +class VoterInfoRequest { + ContextParams contextParams; + VoterInfoSegmentResult voterInfoSegmentResult; + + VoterInfoRequest(); + + VoterInfoRequest.fromJson(core.Map _json) { + if (_json.containsKey("contextParams")) { + contextParams = new ContextParams.fromJson(_json["contextParams"]); + } + if (_json.containsKey("voterInfoSegmentResult")) { + voterInfoSegmentResult = new VoterInfoSegmentResult.fromJson(_json["voterInfoSegmentResult"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contextParams != null) { + _json["contextParams"] = (contextParams).toJson(); + } + if (voterInfoSegmentResult != null) { + _json["voterInfoSegmentResult"] = (voterInfoSegmentResult).toJson(); + } + return _json; + } +} + /** The result of a voter info lookup query. */ class VoterInfoResponse { /** Contests that will appear on the voter's ballot. */ @@ -1837,3 +2230,44 @@ return _json; } } + +class VoterInfoSegmentResult { + core.String generatedMillis; + PostalAddress postalAddress; + VoterInfoRequest request; + VoterInfoResponse response; + + VoterInfoSegmentResult(); + + VoterInfoSegmentResult.fromJson(core.Map _json) { + if (_json.containsKey("generatedMillis")) { + generatedMillis = _json["generatedMillis"]; + } + if (_json.containsKey("postalAddress")) { + postalAddress = new PostalAddress.fromJson(_json["postalAddress"]); + } + if (_json.containsKey("request")) { + request = new VoterInfoRequest.fromJson(_json["request"]); + } + if (_json.containsKey("response")) { + response = new VoterInfoResponse.fromJson(_json["response"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (generatedMillis != null) { + _json["generatedMillis"] = generatedMillis; + } + if (postalAddress != null) { + _json["postalAddress"] = (postalAddress).toJson(); + } + if (request != null) { + _json["request"] = (request).toJson(); + } + if (response != null) { + _json["response"] = (response).toJson(); + } + return _json; + } +}
diff --git a/generated/googleapis/lib/classroom/v1.dart b/generated/googleapis/lib/classroom/v1.dart index 9b18567..dd43562 100644 --- a/generated/googleapis/lib/classroom/v1.dart +++ b/generated/googleapis/lib/classroom/v1.dart
@@ -241,6 +241,9 @@ * numeric identifier for the user * the email address of the user * the * string literal `"me"`, indicating the requesting user * + * [courseStates] - Restricts returned courses to those in one of the + * specified states + * * [pageSize] - Maximum number of items to return. Zero or unspecified * indicates that the server may assign a maximum. The server may return fewer * than the specified number of results. @@ -257,7 +260,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<ListCoursesResponse> list({core.String studentId, core.String teacherId, core.int pageSize, core.String pageToken}) { + async.Future<ListCoursesResponse> list({core.String studentId, core.String teacherId, core.List<core.String> courseStates, core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -271,6 +274,9 @@ if (teacherId != null) { _queryParams["teacherId"] = [teacherId]; } + if (courseStates != null) { + _queryParams["courseStates"] = courseStates; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -2137,9 +2143,10 @@ * permitted to view, filtered by the parameters provided. This method returns * the following error codes: * `PERMISSION_DENIED` if a `student_id` is * specified, and the requesting user is not permitted to view guardian - * invitations for that student, if guardians are not enabled for the domain - * in question, or for other access errors. * `INVALID_ARGUMENT` if a - * `student_id` is specified, but its format cannot be recognized (it is not + * invitations for that student, if `"-"` is specified as the `student_id` and + * the user is not a domain administrator, if guardians are not enabled for + * the domain in question, or for other access errors. * `INVALID_ARGUMENT` if + * a `student_id` is specified, but its format cannot be recognized (it is not * an email address, nor a `student_id` from the API, nor the literal string * `me`). May also be returned if an invalid `page_token` or `state` is * provided. * `NOT_FOUND` if a `student_id` is specified, and its format can @@ -2150,7 +2157,9 @@ * [studentId] - The ID of the student whose guardian invitations are to be * returned. The identifier can be one of the following: * the numeric * identifier for the user * the email address of the user * the string - * literal `"me"`, indicating the requesting user + * literal `"me"`, indicating the requesting user * the string literal `"-"`, + * indicating that results should be returned for all students that the + * requesting user is permitted to view guardian invitations. * * [invitedEmailAddress] - If specified, only results with the specified * `invited_email_address` will be returned. @@ -2401,24 +2410,29 @@ /** * Returns a list of guardians that the requesting user is permitted to view, - * restricted to those that match the request. This method returns the - * following error codes: * `PERMISSION_DENIED` if a `student_id` is - * specified, and the requesting user is not permitted to view guardian - * information for that student, if guardians are not enabled for the domain - * in question, if the `invited_email_address` filter is set by a user who is - * not a domain administrator, or for other access errors. * - * `INVALID_ARGUMENT` if a `student_id` is specified, but its format cannot be - * recognized (it is not an email address, nor a `student_id` from the API, - * nor the literal string `me`). May also be returned if an invalid - * `page_token` is provided. * `NOT_FOUND` if a `student_id` is specified, and - * its format can be recognized, but Classroom has no record of that student. + * restricted to those that match the request. To list guardians for any + * student that the requesting user may view guardians for, use the literal + * character `-` for the student ID. This method returns the following error + * codes: * `PERMISSION_DENIED` if a `student_id` is specified, and the + * requesting user is not permitted to view guardian information for that + * student, if `"-"` is specified as the `student_id` and the user is not a + * domain administrator, if guardians are not enabled for the domain in + * question, if the `invited_email_address` filter is set by a user who is not + * a domain administrator, or for other access errors. * `INVALID_ARGUMENT` if + * a `student_id` is specified, but its format cannot be recognized (it is not + * an email address, nor a `student_id` from the API, nor the literal string + * `me`). May also be returned if an invalid `page_token` is provided. * + * `NOT_FOUND` if a `student_id` is specified, and its format can be + * recognized, but Classroom has no record of that student. * * Request parameters: * * [studentId] - Filter results by the student who the guardian is linked to. * The identifier can be one of the following: * the numeric identifier for * the user * the email address of the user * the string literal `"me"`, - * indicating the requesting user + * indicating the requesting user * the string literal `"-"`, indicating that + * results should be returned for all students that the requesting user has + * access to view. * * [invitedEmailAddress] - Filter results by the email address that the * original invitation was sent to, resulting in this guardian link. This @@ -2629,6 +2643,11 @@ */ core.String enrollmentCode; /** + * Whether or not guardian notifications are enabled for this course. + * Read-only. + */ + core.bool guardiansEnabled; + /** * Identifier for this course assigned by Classroom. When creating a course, * you may optionally set this identifier to an alias string in the request to * create a corresponding alias. The `id` is still assigned by Classroom and @@ -2705,6 +2724,9 @@ if (_json.containsKey("enrollmentCode")) { enrollmentCode = _json["enrollmentCode"]; } + if (_json.containsKey("guardiansEnabled")) { + guardiansEnabled = _json["guardiansEnabled"]; + } if (_json.containsKey("id")) { id = _json["id"]; } @@ -2757,6 +2779,9 @@ if (enrollmentCode != null) { _json["enrollmentCode"] = enrollmentCode; } + if (guardiansEnabled != null) { + _json["guardiansEnabled"] = guardiansEnabled; + } if (id != null) { _json["id"] = id; }
diff --git a/generated/googleapis/lib/cloudbuild/v1.dart b/generated/googleapis/lib/cloudbuild/v1.dart index 99dca86..75b527f 100644 --- a/generated/googleapis/lib/cloudbuild/v1.dart +++ b/generated/googleapis/lib/cloudbuild/v1.dart
@@ -44,7 +44,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Operation]. * @@ -313,6 +313,8 @@ * * [pageSize] - Number of results to return in the list. * + * [filter] - The raw filter text to constrain the results. + * * [pageToken] - Token to provide to skip to a particular spot in the list. * * Completes with a [ListBuildsResponse]. @@ -323,7 +325,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<ListBuildsResponse> list(core.String projectId, {core.int pageSize, core.String pageToken}) { + async.Future<ListBuildsResponse> list(core.String projectId, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -337,6 +339,9 @@ if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -602,9 +607,26 @@ * At a high level, a Build describes where to find source code, how to build * it (for example, the builder image to run on the source), and what tag to * apply to the built image when it is pushed to Google Container Registry. + * + * Fields can include the following variables which will be expanded when the + * build is created: + * + * - $PROJECT_ID: the project ID of the build. + * - $BUILD_ID: the autogenerated ID of the build. + * - $REPO_NAME: the source repository name specified by RepoSource. + * - $BRANCH_NAME: the branch name specified by RepoSource. + * - $TAG_NAME: the tag name specified by RepoSource. + * - $REVISION_ID or $COMMIT_SHA: the commit SHA specified by RepoSource or + * resolved from the specified branch or tag. */ class Build { /** + * The ID of the BuildTrigger that triggered this build, if it was + * triggered automatically. + * @OutputOnly + */ + core.String buildTriggerId; + /** * Time at which the build was created. * @OutputOnly */ @@ -620,10 +642,16 @@ */ core.String id; /** - * List of images expected to be built and pushed to Google Container - * Registry. If an image is listed here and the image is not produced by - * one of the build steps, the build will fail. Any images present when - * the build steps are complete will be pushed to Container Registry. + * 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 digests of the pushed images will be stored in the Build resource's + * results field. + * + * If any of the images fail to be pushed, the build is marked FAILURE. */ core.List<core.String> images; /** @@ -696,6 +724,9 @@ Build(); Build.fromJson(core.Map _json) { + if (_json.containsKey("buildTriggerId")) { + buildTriggerId = _json["buildTriggerId"]; + } if (_json.containsKey("createTime")) { createTime = _json["createTime"]; } @@ -748,6 +779,9 @@ core.Map toJson() { var _json = new core.Map(); + if (buildTriggerId != null) { + _json["buildTriggerId"] = buildTriggerId; + } if (createTime != null) { _json["createTime"] = createTime; } @@ -825,7 +859,7 @@ /** Optional arguments to enable specific features of builds. */ class BuildOptions { /** - * Options for a verifiable build with details uploaded to the Analysis API. + * Requested verifiability options. * Possible string values are: * - "NOT_VERIFIED" : Not a verifiable build. (default) * - "VERIFIED" : Verified build. @@ -859,14 +893,26 @@ /** BuildStep describes a step to perform in the build pipeline. */ class BuildStep { - /** Command-line arguments to use when running this step's container. */ + /** + * A list of arguments that will be presented to the step when it is started. + * + * If the image used to run the step's container has an entrypoint, these args + * will be used as arguments to that entrypoint. If the image does not define + * an entrypoint, the first element in args will be used as the entrypoint, + * and the remainder will be used as arguments. + */ core.List<core.String> args; /** * Working directory (relative to project source root) to use when running * this operation's container. */ core.String dir; - /** Additional environment variables to set for this step's container. */ + /** + * A list of environment variable definitions to be used when running a step. + * + * The elements are of the form "KEY=VALUE" for the environment variable "KEY" + * being given the value "VALUE". + */ core.List<core.String> env; /** * Optional unique identifier for this build step, used in wait_for to @@ -874,8 +920,23 @@ */ core.String id; /** - * Name of the container image to use for creating this stage in the - * pipeline, as presented to `docker pull`. + * 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. + * + * The Docker daemon's cache will already have the latest versions of all of + * the officially supported build steps + * (https://github.com/GoogleCloudPlatform/cloud-builders). The Docker daemon + * will also have cached many of the layers for some popular images, like + * "ubuntu", "debian", but they will be refreshed at the time you attempt to + * use them. + * + * If you built an image in a previous build step, it will be stored in the + * host's Docker daemon's cache and is available to use as the name for a + * later build step. */ core.String name; /** @@ -947,6 +1008,10 @@ * @OutputOnly */ core.String createTime; + /** Human-readable description of this trigger. */ + core.String description; + /** If true, the trigger will never result in a build. */ + core.bool disabled; /** * Path, from the source root, to a file whose contents is used for the * template. @@ -976,6 +1041,12 @@ if (_json.containsKey("createTime")) { createTime = _json["createTime"]; } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("disabled")) { + disabled = _json["disabled"]; + } if (_json.containsKey("filename")) { filename = _json["filename"]; } @@ -995,6 +1066,12 @@ if (createTime != null) { _json["createTime"] = createTime; } + if (description != null) { + _json["description"] = description; + } + if (disabled != null) { + _json["disabled"] = disabled; + } if (filename != null) { _json["filename"] = filename; } @@ -1239,7 +1316,7 @@ * 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
diff --git a/generated/googleapis/lib/cloudresourcemanager/v1.dart b/generated/googleapis/lib/cloudresourcemanager/v1.dart index abdad5d..b85e5e7 100644 --- a/generated/googleapis/lib/cloudresourcemanager/v1.dart +++ b/generated/googleapis/lib/cloudresourcemanager/v1.dart
@@ -29,6 +29,7 @@ final commons.ApiRequester _requester; OperationsResourceApi get operations => new OperationsResourceApi(_requester); + OrganizationsResourceApi get organizations => new OrganizationsResourceApi(_requester); ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); CloudresourcemanagerApi(http.Client client, {core.String rootUrl: "https://cloudresourcemanager.googleapis.com/", core.String servicePath: ""}) : @@ -87,6 +88,245 @@ } +class OrganizationsResourceApi { + final commons.ApiRequester _requester; + + OrganizationsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Fetches an Organization resource identified by the specified resource name. + * + * Request parameters: + * + * [name] - The resource name of the Organization to fetch, e.g. + * "organizations/1234". + * Value must have pattern "^organizations/[^/]*$". + * + * Completes with a [Organization]. + * + * 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<Organization> get(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Organization.fromJson(data)); + } + + /** + * Gets the access control policy for an Organization resource. May be empty + * if no such policy or resource exists. 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 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/[^/]*$". + * + * Completes with a [Policy]. + * + * 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<Policy> getIamPolicy(GetIamPolicyRequest request, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** + * Searches Organization resources that are visible to the user and satisfy + * the specified filter. This method returns Organizations in an unspecified + * order. New Organizations do not necessarily appear at the end of the + * results. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [SearchOrganizationsResponse]. + * + * 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<SearchOrganizationsResponse> search(SearchOrganizationsRequest 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/organizations:search'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SearchOrganizationsResponse.fromJson(data)); + } + + /** + * Sets the access control policy on an Organization resource. Replaces any + * existing policy. 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 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/[^/]*$". + * + * Completes with a [Policy]. + * + * 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<Policy> setIamPolicy(SetIamPolicyRequest request, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** + * 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/[^/]*$". + * + * Completes with a [TestIamPermissionsResponse]. + * + * 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<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TestIamPermissionsResponse.fromJson(data)); + } + +} + + class ProjectsResourceApi { final commons.ApiRequester _requester; @@ -94,6 +334,51 @@ _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] - The metadata request object. + * + * Request parameters: + * + * 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> create(Project 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/projects'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + + /** * 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 @@ -193,10 +478,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * * Completes with a [Policy]. * @@ -310,27 +593,25 @@ * + Invitations to grant the owner role cannot be sent using * `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. + Members cannot be - * added to more than one role in the same policy. + 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. + * 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. * * [request] - The metadata request object. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * * Completes with a [Policy]. * @@ -375,10 +656,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * * Completes with a [TestIamPermissionsResponse]. * @@ -580,6 +859,98 @@ } } +/** 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. + */ + core.String destinationParent; + /** The display name of the folder. */ + core.String displayName; + /** + * The type of this operation. + * Possible string values are: + * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED. + * - "CREATE" : A CREATE. + * - "MOVE" : A MOVE. + */ + core.String operationType; + /** + * The resource name of the folder's parent. Only applicable when the + * operation_type is MOVE. + */ + core.String sourceParent; + + FolderOperation(); + + FolderOperation.fromJson(core.Map _json) { + if (_json.containsKey("destinationParent")) { + destinationParent = _json["destinationParent"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("operationType")) { + operationType = _json["operationType"]; + } + if (_json.containsKey("sourceParent")) { + sourceParent = _json["sourceParent"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (destinationParent != null) { + _json["destinationParent"] = destinationParent; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (operationType != null) { + _json["operationType"] = operationType; + } + if (sourceParent != null) { + _json["sourceParent"] = sourceParent; + } + return _json; + } +} + +/** A classification of the Folder Operation error. */ +class FolderOperationError { + /** + * 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. + */ + core.String errorMessageId; + + FolderOperationError(); + + FolderOperationError.fromJson(core.Map _json) { + if (_json.containsKey("errorMessageId")) { + errorMessageId = _json["errorMessageId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (errorMessageId != null) { + _json["errorMessageId"] = errorMessageId; + } + return _json; + } +} + /** Request message for `GetIamPolicy` method. */ class GetIamPolicyRequest { @@ -724,6 +1095,111 @@ } /** + * The root node in the resource hierarchy to which a particular entity's (e.g., + * company) resources belong. + */ +class Organization { + /** + * Timestamp when the Organization was created. Assigned by the server. + * @OutputOnly + */ + core.String creationTime; + /** + * 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 + */ + 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. + */ + core.String lifecycleState; + /** + * Output Only. The resource name of the organization. This is the + * organization's relative path in the API. Its format is + * "organizations/[organization_id]". For example, "organizations/1234". + */ + 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. + */ + OrganizationOwner owner; + + Organization(); + + Organization.fromJson(core.Map _json) { + if (_json.containsKey("creationTime")) { + creationTime = _json["creationTime"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("lifecycleState")) { + lifecycleState = _json["lifecycleState"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("owner")) { + owner = new OrganizationOwner.fromJson(_json["owner"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (creationTime != null) { + _json["creationTime"] = creationTime; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (lifecycleState != null) { + _json["lifecycleState"] = lifecycleState; + } + if (name != null) { + _json["name"] = name; + } + if (owner != null) { + _json["owner"] = (owner).toJson(); + } + return _json; + } +} + +/** + * The entity that owns an Organization. The lifetime of the Organization and + * all of its descendants are bound to the `OrganizationOwner`. If the + * `OrganizationOwner` is deleted, the Organization and all its descendants will + * be deleted. + */ +class OrganizationOwner { + /** The Google for Work customer id used in the Directory API. */ + core.String directoryCustomerId; + + OrganizationOwner(); + + OrganizationOwner.fromJson(core.Map _json) { + if (_json.containsKey("directoryCustomerId")) { + directoryCustomerId = _json["directoryCustomerId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (directoryCustomerId != null) { + _json["directoryCustomerId"] = directoryCustomerId; + } + return _json; + } +} + +/** * 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`, @@ -899,6 +1375,52 @@ } /** + * A status object which is used as the `metadata` field for the Operation + * returned by CreateProject. It provides insight for when significant phases of + * Project creation have completed. + */ +class ProjectCreationStatus { + /** Creation time of the project creation workflow. */ + core.String createTime; + /** + * True if the project can be retrieved using GetProject. No other operations + * on the project are guaranteed to work until the project creation is + * complete. + */ + core.bool gettable; + /** True if the project creation process is complete. */ + core.bool ready; + + ProjectCreationStatus(); + + ProjectCreationStatus.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("gettable")) { + gettable = _json["gettable"]; + } + if (_json.containsKey("ready")) { + ready = _json["ready"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (gettable != null) { + _json["gettable"] = gettable; + } + if (ready != null) { + _json["ready"] = ready; + } + return _json; + } +} + +/** * 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 @@ -939,6 +1461,98 @@ } } +/** 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| |------|-----------| + * |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. + */ + core.int pageSize; + /** + * A pagination token returned from a previous call to `SearchOrganizations` + * that indicates from where listing should continue. This field is optional. + */ + core.String pageToken; + + SearchOrganizationsRequest(); + + SearchOrganizationsRequest.fromJson(core.Map _json) { + if (_json.containsKey("filter")) { + filter = _json["filter"]; + } + if (_json.containsKey("pageSize")) { + pageSize = _json["pageSize"]; + } + if (_json.containsKey("pageToken")) { + pageToken = _json["pageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (filter != null) { + _json["filter"] = filter; + } + if (pageSize != null) { + _json["pageSize"] = pageSize; + } + if (pageToken != null) { + _json["pageToken"] = pageToken; + } + return _json; + } +} + +/** The response returned from the `SearchOrganizations` method. */ +class SearchOrganizationsResponse { + /** + * A pagination token to be used to retrieve the next page of results. If the + * result is too large to fit within the page size specified in the request, + * this field will be set with a token that can be used to fetch the next page + * of results. If this field is empty, it indicates that this response + * contains the last page of results. + */ + core.String nextPageToken; + /** + * The list of Organizations that matched the search query, possibly + * paginated. + */ + core.List<Organization> organizations; + + SearchOrganizationsResponse(); + + SearchOrganizationsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("organizations")) { + organizations = _json["organizations"].map((value) => new Organization.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (organizations != null) { + _json["organizations"] = organizations.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Request message for `SetIamPolicy` method. */ class SetIamPolicyRequest { /** @@ -1052,7 +1666,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. + * information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ core.List<core.String> permissions;
diff --git a/generated/googleapis/lib/compute/v1.dart b/generated/googleapis/lib/compute/v1.dart index efca81d..e956c2f 100644 --- a/generated/googleapis/lib/compute/v1.dart +++ b/generated/googleapis/lib/compute/v1.dart
@@ -47,6 +47,7 @@ GlobalAddressesResourceApi get globalAddresses => new GlobalAddressesResourceApi(_requester); GlobalForwardingRulesResourceApi get globalForwardingRules => new GlobalForwardingRulesResourceApi(_requester); GlobalOperationsResourceApi get globalOperations => new GlobalOperationsResourceApi(_requester); + HealthChecksResourceApi get healthChecks => new HealthChecksResourceApi(_requester); HttpHealthChecksResourceApi get httpHealthChecks => new HttpHealthChecksResourceApi(_requester); HttpsHealthChecksResourceApi get httpsHealthChecks => new HttpsHealthChecksResourceApi(_requester); ImagesResourceApi get images => new ImagesResourceApi(_requester); @@ -69,6 +70,7 @@ TargetHttpsProxiesResourceApi get targetHttpsProxies => new TargetHttpsProxiesResourceApi(_requester); TargetInstancesResourceApi get targetInstances => new TargetInstancesResourceApi(_requester); TargetPoolsResourceApi get targetPools => new TargetPoolsResourceApi(_requester); + TargetSslProxiesResourceApi get targetSslProxies => new TargetSslProxiesResourceApi(_requester); TargetVpnGatewaysResourceApi get targetVpnGateways => new TargetVpnGatewaysResourceApi(_requester); UrlMapsResourceApi get urlMaps => new UrlMapsResourceApi(_requester); VpnTunnelsResourceApi get vpnTunnels => new VpnTunnelsResourceApi(_requester); @@ -126,6 +128,17 @@ * 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. @@ -138,7 +151,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<AddressAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<AddressAggregatedList> 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; @@ -155,6 +168,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -373,6 +389,17 @@ * 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. @@ -385,7 +412,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<AddressList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<AddressList> 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; @@ -405,6 +432,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -470,6 +500,17 @@ * 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. @@ -482,7 +523,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<AutoscalerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<AutoscalerAggregatedList> 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; @@ -499,6 +540,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -718,6 +762,17 @@ * 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. @@ -730,7 +785,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<AutoscalerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<AutoscalerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -750,6 +805,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1132,6 +1190,17 @@ * 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. @@ -1144,7 +1213,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<BackendServiceList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<BackendServiceList> list(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; @@ -1161,6 +1230,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1178,10 +1250,10 @@ } /** - * Updates the entire content of the BackendService resource. 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. + * Updates the specified 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. * @@ -1233,9 +1305,10 @@ } /** - * Updates the entire content of the BackendService resource. There are - * several restrictions and guidelines to keep in mind when updating a backend - * service. Read Restrictions and Guidelines for more information. + * Updates the specified 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. * @@ -1335,6 +1408,17 @@ * 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. @@ -1347,7 +1431,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<DiskTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<DiskTypeAggregatedList> 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; @@ -1364,6 +1448,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1477,6 +1564,17 @@ * 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. @@ -1489,7 +1587,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<DiskTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<DiskTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1509,6 +1607,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1574,6 +1675,17 @@ * 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. @@ -1586,7 +1698,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<DiskAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<DiskAggregatedList> 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; @@ -1603,6 +1715,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1890,6 +2005,17 @@ * 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. @@ -1902,7 +2028,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<DiskList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<DiskList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1922,6 +2048,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -2186,6 +2315,17 @@ * 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. @@ -2198,7 +2338,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<FirewallList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<FirewallList> list(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; @@ -2215,6 +2355,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -2385,6 +2528,17 @@ * 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. @@ -2397,7 +2551,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<ForwardingRuleAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ForwardingRuleAggregatedList> 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; @@ -2414,6 +2568,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -2633,6 +2790,17 @@ * 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. @@ -2645,7 +2813,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<ForwardingRuleList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ForwardingRuleList> 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; @@ -2665,6 +2833,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -2932,6 +3103,17 @@ * 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. @@ -2944,7 +3126,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<AddressList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<AddressList> list(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; @@ -2961,6 +3143,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -3169,6 +3354,17 @@ * 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. @@ -3181,7 +3377,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<ForwardingRuleList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ForwardingRuleList> list(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; @@ -3198,6 +3394,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -3317,6 +3516,17 @@ * 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. @@ -3329,7 +3539,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<OperationAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<OperationAggregatedList> 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; @@ -3346,6 +3556,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -3498,6 +3711,17 @@ * 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. @@ -3510,7 +3734,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<OperationList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<OperationList> list(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; @@ -3527,6 +3751,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -3546,6 +3773,363 @@ } +class HealthChecksResourceApi { + final commons.ApiRequester _requester; + + HealthChecksResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes the specified HealthCheck 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])?))". + * + * [healthCheck] - Name of the HealthCheck 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 healthCheck) { + 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 (healthCheck == null) { + throw new core.ArgumentError("Parameter healthCheck is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck'); + + 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 HealthCheck resource. Get a list of available health + * checks by making a list() request. + * + * 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])?))". + * + * [healthCheck] - Name of the HealthCheck resource to return. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [HealthCheck]. + * + * 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<HealthCheck> get(core.String project, core.String healthCheck) { + 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 (healthCheck == null) { + throw new core.ArgumentError("Parameter healthCheck is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new HealthCheck.fromJson(data)); + } + + /** + * Creates a HealthCheck resource 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])?))". + * + * 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(HealthCheck request, core.String project) { + 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."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks'; + + 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 HealthCheck resources available to the specified + * project. + * + * 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])?))". + * + * [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 [HealthCheckList]. + * + * 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<HealthCheckList> list(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') + '/global/healthChecks'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new HealthCheckList.fromJson(data)); + } + + /** + * Updates a HealthCheck resource 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])?))". + * + * [healthCheck] - Name of the HealthCheck 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(HealthCheck request, core.String project, core.String healthCheck) { + 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 (healthCheck == null) { + throw new core.ArgumentError("Parameter healthCheck is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck'); + + 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 a HealthCheck resource 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])?))". + * + * [healthCheck] - Name of the HealthCheck 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(HealthCheck request, core.String project, core.String healthCheck) { + 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 (healthCheck == null) { + throw new core.ArgumentError("Parameter healthCheck is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/healthChecks/' + commons.Escaper.ecapeVariable('$healthCheck'); + + 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 HttpHealthChecksResourceApi { final commons.ApiRequester _requester; @@ -3735,6 +4319,17 @@ * 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. @@ -3747,7 +4342,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<HttpHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<HttpHealthCheckList> list(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; @@ -3764,6 +4359,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -4078,6 +4676,17 @@ * 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. @@ -4090,7 +4699,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<HttpsHealthCheckList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<HttpsHealthCheckList> list(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; @@ -4107,6 +4716,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -4527,6 +5139,17 @@ * 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. @@ -4539,7 +5162,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<ImageList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ImageList> list(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; @@ -4556,6 +5179,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -4684,6 +5310,17 @@ * 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. @@ -4696,7 +5333,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<InstanceGroupManagerAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceGroupManagerAggregatedList> 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; @@ -4713,6 +5350,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -4996,6 +5636,17 @@ * 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. @@ -5008,7 +5659,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<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceGroupManagerList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -5028,6 +5679,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -5061,6 +5715,13 @@ * * [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 @@ -5069,7 +5730,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) { + async.Future<InstanceGroupManagersListManagedInstancesResponse> listManagedInstances(core.String project, core.String zone, core.String instanceGroupManager, {core.String filter, core.int maxResults, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -5086,6 +5747,15 @@ 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'; @@ -5451,6 +6121,17 @@ * 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. @@ -5463,7 +6144,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<InstanceGroupAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceGroupAggregatedList> 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; @@ -5480,6 +6161,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -5696,6 +6380,17 @@ * 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. @@ -5708,7 +6403,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<InstanceGroupList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceGroupList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -5728,6 +6423,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -5791,6 +6489,17 @@ * 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. @@ -5803,7 +6512,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<InstanceGroupsListInstances> listInstances(InstanceGroupsListInstancesRequest request, core.String project, core.String zone, core.String instanceGroup, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceGroupsListInstances> listInstances(InstanceGroupsListInstancesRequest request, core.String project, core.String zone, 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; @@ -5829,6 +6538,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -6157,6 +6869,17 @@ * 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. @@ -6169,7 +6892,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<InstanceTemplateList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceTemplateList> list(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; @@ -6186,6 +6909,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -6316,6 +7042,17 @@ * 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. @@ -6328,7 +7065,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<InstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceAggregatedList> 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; @@ -6345,6 +7082,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -6806,6 +7546,17 @@ * 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. @@ -6818,7 +7569,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<InstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<InstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -6838,6 +7589,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -7485,6 +8239,17 @@ * 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. @@ -7497,7 +8262,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<MachineTypeAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<MachineTypeAggregatedList> 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; @@ -7514,6 +8279,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -7627,6 +8395,17 @@ * 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. @@ -7639,7 +8418,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<MachineTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<MachineTypeList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -7659,6 +8438,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -7866,6 +8648,17 @@ * 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. @@ -7878,7 +8671,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<NetworkList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<NetworkList> list(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; @@ -7895,6 +8688,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -7911,6 +8707,53 @@ return _response.then((data) => new NetworkList.fromJson(data)); } + /** + * Switches the network mode from auto subnet mode to custom subnet mode. + * + * 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])?))". + * + * [network] - Name of the network to be updated. + * 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> switchToCustomMode(core.String project, core.String network) { + 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 (network == null) { + throw new core.ArgumentError("Parameter network is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/networks/' + commons.Escaper.ecapeVariable('$network') + '/switchToCustomMode'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + } @@ -8308,6 +9151,17 @@ * 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. @@ -8320,7 +9174,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<OperationList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<OperationList> 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; @@ -8340,6 +9194,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -8453,6 +9310,17 @@ * 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. @@ -8465,7 +9333,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<RegionList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<RegionList> list(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; @@ -8482,6 +9350,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -8547,6 +9418,17 @@ * 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. @@ -8559,7 +9441,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<RouterAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<RouterAggregatedList> 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; @@ -8576,6 +9458,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -8848,6 +9733,17 @@ * 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. @@ -8860,7 +9756,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<RouterList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<RouterList> 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; @@ -8880,6 +9776,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -8897,8 +9796,8 @@ } /** - * Updates the entire content of the Router resource. This method supports - * patch semantics. + * Updates the specified Router resource with the data included in the + * request. This method supports patch semantics. * * [request] - The metadata request object. * @@ -9015,7 +9914,8 @@ } /** - * Updates the entire content of the Router resource. + * Updates the specified Router resource with the data included in the + * request. * * [request] - The metadata request object. * @@ -9263,6 +10163,17 @@ * 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. @@ -9275,7 +10186,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<RouteList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<RouteList> list(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; @@ -9292,6 +10203,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -9459,6 +10373,17 @@ * 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. @@ -9471,7 +10396,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<SnapshotList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<SnapshotList> list(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; @@ -9488,6 +10413,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -9696,6 +10624,17 @@ * 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. @@ -9708,7 +10647,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<SslCertificateList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<SslCertificateList> list(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; @@ -9725,6 +10664,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -9790,6 +10732,17 @@ * 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. @@ -9802,7 +10755,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<SubnetworkAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<SubnetworkAggregatedList> 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; @@ -9819,6 +10772,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -9889,6 +10845,64 @@ } /** + * Expands the IP CIDR range of the subnetwork to a specified value. + * + * [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])?". + * + * [subnetwork] - Name of the Subnetwork 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> expandIpCidrRange(SubnetworksExpandIpCidrRangeRequest request, core.String project, core.String region, core.String subnetwork) { + 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 (subnetwork == null) { + throw new core.ArgumentError("Parameter subnetwork is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/subnetworks/' + commons.Escaper.ecapeVariable('$subnetwork') + '/expandIpCidrRange'; + + 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 the specified subnetwork. Get a list of available subnetworks * list() request. * @@ -10038,6 +11052,17 @@ * 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. @@ -10050,7 +11075,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<SubnetworkList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<SubnetworkList> 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; @@ -10070,6 +11095,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -10278,6 +11306,17 @@ * 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. @@ -10290,7 +11329,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<TargetHttpProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetHttpProxyList> list(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; @@ -10307,6 +11346,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -10567,6 +11609,17 @@ * 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. @@ -10579,7 +11632,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<TargetHttpsProxyList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetHttpsProxyList> list(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; @@ -10596,6 +11649,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -10767,6 +11823,17 @@ * 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. @@ -10779,7 +11846,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<TargetInstanceAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetInstanceAggregatedList> 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; @@ -10796,6 +11863,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -11016,6 +12086,17 @@ * 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. @@ -11028,7 +12109,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<TargetInstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetInstanceList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -11048,6 +12129,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -11229,6 +12313,17 @@ * 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. @@ -11241,7 +12336,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<TargetPoolAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetPoolAggregatedList> 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; @@ -11258,6 +12353,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -11538,6 +12636,17 @@ * 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. @@ -11550,7 +12659,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<TargetPoolList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetPoolList> 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; @@ -11570,6 +12679,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -11768,6 +12880,416 @@ } +class TargetSslProxiesResourceApi { + final commons.ApiRequester _requester; + + TargetSslProxiesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes the specified TargetSslProxy 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])?))". + * + * [targetSslProxy] - Name of the TargetSslProxy 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 targetSslProxy) { + 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 (targetSslProxy == null) { + throw new core.ArgumentError("Parameter targetSslProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy'); + + 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 TargetSslProxy resource. Get a list of available + * target SSL proxies by making a list() request. + * + * 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])?))". + * + * [targetSslProxy] - Name of the TargetSslProxy resource to return. + * Value must have pattern "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?". + * + * Completes with a [TargetSslProxy]. + * + * 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<TargetSslProxy> get(core.String project, core.String targetSslProxy) { + 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 (targetSslProxy == null) { + throw new core.ArgumentError("Parameter targetSslProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetSslProxy.fromJson(data)); + } + + /** + * Creates a TargetSslProxy resource 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])?))". + * + * 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(TargetSslProxy request, core.String project) { + 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."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies'; + + 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 TargetSslProxy resources available to the specified + * project. + * + * 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])?))". + * + * [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 [TargetSslProxyList]. + * + * 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<TargetSslProxyList> list(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') + '/global/targetSslProxies'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetSslProxyList.fromJson(data)); + } + + /** + * Changes the BackendService for TargetSslProxy. + * + * [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])?))". + * + * [targetSslProxy] - Name of the TargetSslProxy resource whose BackendService + * resource is to be set. + * 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> setBackendService(TargetSslProxiesSetBackendServiceRequest request, core.String project, core.String targetSslProxy) { + 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 (targetSslProxy == null) { + throw new core.ArgumentError("Parameter targetSslProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy') + '/setBackendService'; + + 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 ProxyHeaderType for TargetSslProxy. + * + * [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])?))". + * + * [targetSslProxy] - Name of the TargetSslProxy resource whose ProxyHeader is + * to be set. + * 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> setProxyHeader(TargetSslProxiesSetProxyHeaderRequest request, core.String project, core.String targetSslProxy) { + 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 (targetSslProxy == null) { + throw new core.ArgumentError("Parameter targetSslProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy') + '/setProxyHeader'; + + 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 SslCertificates for TargetSslProxy. + * + * [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])?))". + * + * [targetSslProxy] - Name of the TargetSslProxy resource whose SslCertificate + * resource is to be set. + * 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> setSslCertificates(TargetSslProxiesSetSslCertificatesRequest request, core.String project, core.String targetSslProxy) { + 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 (targetSslProxy == null) { + throw new core.ArgumentError("Parameter targetSslProxy is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/targetSslProxies/' + commons.Escaper.ecapeVariable('$targetSslProxy') + '/setSslCertificates'; + + 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 TargetVpnGatewaysResourceApi { final commons.ApiRequester _requester; @@ -11814,6 +13336,17 @@ * 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. @@ -11826,7 +13359,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<TargetVpnGatewayAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetVpnGatewayAggregatedList> 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; @@ -11843,6 +13376,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -12063,6 +13599,17 @@ * 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. @@ -12075,7 +13622,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<TargetVpnGatewayList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TargetVpnGatewayList> 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; @@ -12095,6 +13642,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -12355,6 +13905,17 @@ * 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. @@ -12367,7 +13928,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<UrlMapList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<UrlMapList> list(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; @@ -12384,6 +13945,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -12401,8 +13965,8 @@ } /** - * Updates the entire content of the UrlMap resource. This method supports - * patch semantics. + * Updates the specified UrlMap resource with the data included in the + * request. This method supports patch semantics. * * [request] - The metadata request object. * @@ -12454,7 +14018,8 @@ } /** - * Updates the entire content of the UrlMap resource. + * Updates the specified UrlMap resource with the data included in the + * request. * * [request] - The metadata request object. * @@ -12608,6 +14173,17 @@ * 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. @@ -12620,7 +14196,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<VpnTunnelAggregatedList> aggregatedList(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<VpnTunnelAggregatedList> 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; @@ -12637,6 +14213,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -12857,6 +14436,17 @@ * 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. @@ -12869,7 +14459,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<VpnTunnelList> list(core.String project, core.String region, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<VpnTunnelList> 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; @@ -12889,6 +14479,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -13064,6 +14657,17 @@ * 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. @@ -13076,7 +14680,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<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<OperationList> list(core.String project, core.String zone, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -13096,6 +14700,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -13209,6 +14816,17 @@ * 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. @@ -13221,7 +14839,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<ZoneList> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ZoneList> list(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; @@ -13238,6 +14856,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -13793,8 +15414,14 @@ core.String mode; /** * Specifies a valid partial or full URL to an existing Persistent Disk - * resource. This field is only applicable for persistent disks. Note that for - * InstanceTemplate, it is just disk name, not URL for the disk. + * resource. When creating a new instance, one of initializeParams.sourceImage + * or disks.source is required. + * + * If desired, you can also attach existing non-root persistent disks using + * this property. This field is only applicable for persistent disks. + * + * Note that for InstanceTemplate, specify the disk name, not the URL for the + * disk. */ core.String source; /** @@ -13922,8 +15549,8 @@ */ core.String diskType; /** - * The source image used to create this disk. If the source image is deleted, - * this field will not be set. + * The source image to create this disk. When creating a new instance, one of + * initializeParams.sourceImage or disks.source is required. * * To create a disk with one of the public operating system images, specify * the image by its family name. For example, specify family/debian-8 to use @@ -13945,6 +15572,8 @@ * family/family-name: * * global/images/family/my-private-family + * + * If the source image is deleted later, this field will not be set. */ core.String sourceImage; /** @@ -14041,6 +15670,11 @@ * dash. */ core.String name; + /** + * [Output Only] URL of the region where the instance group resides (for + * autoscalers living in regional scope). + */ + core.String region; /** [Output Only] Server-defined URL for the resource. */ core.String selfLink; /** URL of the managed instance group that this autoscaler will scale. */ @@ -14072,6 +15706,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("region")) { + region = _json["region"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -14103,6 +15740,9 @@ if (name != null) { _json["name"] = name; } + if (region != null) { + _json["region"] = region; + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -14501,7 +16141,7 @@ /** Custom utilization metric policy. */ class AutoscalingPolicyCustomMetricUtilization { /** - * The identifier of the Cloud Monitoring metric. The metric cannot have + * The identifier of the Stackdriver Monitoring metric. The metric cannot have * negative values and should be a utilization metric, which means that the * number of virtual machines handling requests should increase or decrease * proportionally to the metric. The metric must also have a label of @@ -14510,8 +16150,6 @@ * * For example, the following is a valid metric: * compute.googleapis.com/instance/network/received_bytes_count - * - * * The following is not a valid metric because it does not increase or * decrease based on usage: * compute.googleapis.com/instance/cpu/reserved_cores @@ -14523,9 +16161,9 @@ */ core.double utilizationTarget; /** - * Defines how target utilization value is expressed for a Cloud Monitoring - * metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If not - * specified, the default is GAUGE. + * Defines how target utilization value is expressed for a Stackdriver + * Monitoring metric. Either GAUGE, DELTA_PER_SECOND, or DELTA_PER_MINUTE. If + * not specified, the default is GAUGE. * Possible string values are: * - "DELTA_PER_MINUTE" * - "DELTA_PER_SECOND" @@ -14591,22 +16229,23 @@ /** Message containing information of one individual backend. */ class Backend { /** - * Specifies the balancing mode for this backend. For global HTTP(S) load - * balancing, the default is UTILIZATION. Valid values are UTILIZATION and - * RATE. + * Specifies the balancing mode for this backend. For global HTTP(S) or + * TCP/SSL load balancing, the default is UTILIZATION. Valid values are + * UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL). * * This cannot be used for internal load balancing. * Possible string values are: + * - "CONNECTION" * - "RATE" * - "UTILIZATION" */ core.String balancingMode; /** - * A multiplier applied to the group's maximum servicing capacity (either - * UTILIZATION or RATE). Default value is 1, which means the group will serve - * up to 100% of its configured CPU or RPS (depending on balancingMode). A - * setting of 0 means the group is completely drained, offering 0% of its - * available CPU or RPS. Valid range is [0.0,1.0]. + * A multiplier applied to the group's maximum servicing capacity (based on + * UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group + * will serve up to 100% of its configured capacity (depending on + * balancingMode). A setting of 0 means the group is completely drained, + * offering 0% of its available Capacity. Valid range is [0.0,1.0]. * * This cannot be used for internal load balancing. */ @@ -14631,6 +16270,23 @@ */ core.String group; /** + * The max number of simultaneous connections for the group. Can be used with + * either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, + * either maxConnections or maxConnectionsPerInstance must be set. + * + * This cannot be used for internal load balancing. + */ + core.int maxConnections; + /** + * The max number of simultaneous connections that a single backend instance + * can handle. This is used to calculate the capacity of the group. Can be + * used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION + * mode, either maxConnections or maxConnectionsPerInstance must be set. + * + * This cannot be used for internal load balancing. + */ + core.int maxConnectionsPerInstance; + /** * The max requests per second (RPS) of the group. Can be used with either * RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE * mode, either maxRate or maxRatePerInstance must be set. @@ -14671,6 +16327,12 @@ if (_json.containsKey("group")) { group = _json["group"]; } + if (_json.containsKey("maxConnections")) { + maxConnections = _json["maxConnections"]; + } + if (_json.containsKey("maxConnectionsPerInstance")) { + maxConnectionsPerInstance = _json["maxConnectionsPerInstance"]; + } if (_json.containsKey("maxRate")) { maxRate = _json["maxRate"]; } @@ -14696,6 +16358,12 @@ if (group != null) { _json["group"] = group; } + if (maxConnections != null) { + _json["maxConnections"] = maxConnections; + } + if (maxConnectionsPerInstance != null) { + _json["maxConnectionsPerInstance"] = maxConnectionsPerInstance; + } if (maxRate != null) { _json["maxRate"] = maxRate; } @@ -14725,6 +16393,7 @@ core.int affinityCookieTtlSec; /** The list of backends that serve this BackendService. */ core.List<Backend> backends; + ConnectionDraining connectionDraining; /** [Output Only] Creation timestamp in RFC3339 text format. */ core.String creationTimestamp; /** @@ -14806,6 +16475,8 @@ * Possible string values are: * - "HTTP" * - "HTTPS" + * - "SSL" + * - "TCP" */ core.String protocol; /** @@ -14847,6 +16518,9 @@ if (_json.containsKey("backends")) { backends = _json["backends"].map((value) => new Backend.fromJson(value)).toList(); } + if (_json.containsKey("connectionDraining")) { + connectionDraining = new ConnectionDraining.fromJson(_json["connectionDraining"]); + } if (_json.containsKey("creationTimestamp")) { creationTimestamp = _json["creationTimestamp"]; } @@ -14902,6 +16576,9 @@ if (backends != null) { _json["backends"] = backends.map((value) => (value).toJson()).toList(); } + if (connectionDraining != null) { + _json["connectionDraining"] = (connectionDraining).toJson(); + } if (creationTimestamp != null) { _json["creationTimestamp"] = creationTimestamp; } @@ -15061,6 +16738,31 @@ } } +/** Message containing connection draining configuration. */ +class ConnectionDraining { + /** + * Time for which instance will be drained (not accept new connections, but + * still work to finish started). + */ + core.int drainingTimeoutSec; + + ConnectionDraining(); + + ConnectionDraining.fromJson(core.Map _json) { + if (_json.containsKey("drainingTimeoutSec")) { + drainingTimeoutSec = _json["drainingTimeoutSec"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (drainingTimeoutSec != null) { + _json["drainingTimeoutSec"] = drainingTimeoutSec; + } + return _json; + } +} + /** Represents a customer-supplied encryption key */ class CustomerEncryptionKey { /** @@ -15135,18 +16837,21 @@ /** Deprecation status for a public resource. */ class DeprecationStatus { /** - * An optional RFC3339 timestamp on or after which the deprecation state of - * this resource will be changed to DELETED. + * An optional RFC3339 timestamp on or after which the state of this resource + * is intended to change to DELETED. This is only informational and the status + * will not change unless the client explicitly changes it. */ core.String deleted; /** - * An optional RFC3339 timestamp on or after which the deprecation state of - * this resource will be changed to DEPRECATED. + * An optional RFC3339 timestamp on or after which the state of this resource + * is intended to change to DEPRECATED. This is only informational and the + * status will not change unless the client explicitly changes it. */ core.String deprecated; /** - * An optional RFC3339 timestamp on or after which the deprecation state of - * this resource will be changed to OBSOLETE. + * An optional RFC3339 timestamp on or after which the state of this resource + * is intended to change to OBSOLETE. This is only informational and the + * status will not change unless the client explicitly changes it. */ core.String obsolete; /** @@ -15333,8 +17038,7 @@ */ core.String sourceSnapshotId; /** - * [Output Only] The status of disk creation. Applicable statuses includes: - * CREATING, FAILED, READY, RESTORING. + * [Output Only] The status of disk creation. * Possible string values are: * - "CREATING" * - "FAILED" @@ -16876,6 +18580,460 @@ } } +class HTTP2HealthCheck { + /** + * 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. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** + * The request path of the HTTP/2 health check request. The default value is + * /. + */ + core.String requestPath; + + HTTP2HealthCheck(); + + 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"]; + } + } + + 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; + } + return _json; + } +} + +class HTTPHealthCheck { + /** + * The value of the host header in the HTTP 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 80. + */ + 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. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** + * The request path of the HTTP health check request. The default value is /. + */ + core.String requestPath; + + HTTPHealthCheck(); + + HTTPHealthCheck.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"]; + } + } + + 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; + } + return _json; + } +} + +class HTTPSHealthCheck { + /** + * The value of the host header in the HTTPS 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. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** + * The request path of the HTTPS health check request. The default value is /. + */ + core.String requestPath; + + HTTPSHealthCheck(); + + HTTPSHealthCheck.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"]; + } + } + + 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; + } + return _json; + } +} + +/** + * An HealthCheck resource. This resource defines a template for how individual + * virtual machines should be checked for health, via one of the supported + * protocols. + */ +class HealthCheck { + /** + * How often (in seconds) to send a health check. The default value is 5 + * seconds. + */ + core.int checkIntervalSec; + /** [Output Only] Creation timestamp in 3339 text format. */ + core.String creationTimestamp; + /** + * An optional description of this resource. Provide this property when you + * create the resource. + */ + core.String description; + /** + * A so-far unhealthy instance will be marked healthy after this many + * consecutive successes. The default value is 2. + */ + core.int healthyThreshold; + HTTP2HealthCheck http2HealthCheck; + HTTPHealthCheck httpHealthCheck; + HTTPSHealthCheck httpsHealthCheck; + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** Type of the resource. */ + core.String kind; + /** + * 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 + * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must + * be a lowercase letter, and all following characters must be a dash, + * lowercase letter, or digit, except the last character, which cannot be a + * dash. + */ + core.String name; + /** [Output Only] Server-defined URL for the resource. */ + core.String selfLink; + SSLHealthCheck sslHealthCheck; + TCPHealthCheck tcpHealthCheck; + /** + * How long (in seconds) to wait before claiming failure. The default value is + * 5 seconds. It is invalid for timeoutSec to have greater value than + * checkIntervalSec. + */ + 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. + * Possible string values are: + * - "HTTP" + * - "HTTP2" + * - "HTTPS" + * - "INVALID" + * - "SSL" + * - "TCP" + */ + core.String type; + /** + * A so-far healthy instance will be marked unhealthy after this many + * consecutive failures. The default value is 2. + */ + core.int unhealthyThreshold; + + HealthCheck(); + + HealthCheck.fromJson(core.Map _json) { + if (_json.containsKey("checkIntervalSec")) { + checkIntervalSec = _json["checkIntervalSec"]; + } + if (_json.containsKey("creationTimestamp")) { + creationTimestamp = _json["creationTimestamp"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + 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"]); + } + if (_json.containsKey("httpsHealthCheck")) { + httpsHealthCheck = new HTTPSHealthCheck.fromJson(_json["httpsHealthCheck"]); + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("sslHealthCheck")) { + sslHealthCheck = new SSLHealthCheck.fromJson(_json["sslHealthCheck"]); + } + if (_json.containsKey("tcpHealthCheck")) { + tcpHealthCheck = new TCPHealthCheck.fromJson(_json["tcpHealthCheck"]); + } + if (_json.containsKey("timeoutSec")) { + timeoutSec = _json["timeoutSec"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("unhealthyThreshold")) { + unhealthyThreshold = _json["unhealthyThreshold"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (checkIntervalSec != null) { + _json["checkIntervalSec"] = checkIntervalSec; + } + if (creationTimestamp != null) { + _json["creationTimestamp"] = creationTimestamp; + } + if (description != null) { + _json["description"] = description; + } + if (healthyThreshold != null) { + _json["healthyThreshold"] = healthyThreshold; + } + if (http2HealthCheck != null) { + _json["http2HealthCheck"] = (http2HealthCheck).toJson(); + } + if (httpHealthCheck != null) { + _json["httpHealthCheck"] = (httpHealthCheck).toJson(); + } + if (httpsHealthCheck != null) { + _json["httpsHealthCheck"] = (httpsHealthCheck).toJson(); + } + if (id != null) { + _json["id"] = id; + } + if (kind != null) { + _json["kind"] = kind; + } + if (name != null) { + _json["name"] = name; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + if (sslHealthCheck != null) { + _json["sslHealthCheck"] = (sslHealthCheck).toJson(); + } + if (tcpHealthCheck != null) { + _json["tcpHealthCheck"] = (tcpHealthCheck).toJson(); + } + if (timeoutSec != null) { + _json["timeoutSec"] = timeoutSec; + } + if (type != null) { + _json["type"] = type; + } + if (unhealthyThreshold != null) { + _json["unhealthyThreshold"] = unhealthyThreshold; + } + return _json; + } +} + +/** Contains a list of HealthCheck resources. */ +class HealthCheckList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** A list of HealthCheck resources. */ + core.List<HealthCheck> items; + /** Type of resource. */ + 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 this resource. */ + core.String selfLink; + + HealthCheckList(); + + HealthCheckList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new HealthCheck.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; + } +} + /** * A full or valid partial URL to a health check. For example, the following are * valid URLs: @@ -17565,8 +19723,8 @@ * rawDisk.source property but not both to create an image. For example, the * following are valid values: * - - * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disk/disk - * - projects/project/zones/zone/disk/disk + * https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk + * - projects/project/zones/zone/disks/disk * - zones/zone/disks/disk */ core.String sourceDisk; @@ -17870,7 +20028,7 @@ core.List<ServiceAccount> serviceAccounts; /** * [Output Only] The status of the instance. One of the following values: - * PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDED, SUSPENDING, and + * PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and * TERMINATED. * Possible string values are: * - "PROVISIONING" @@ -18104,8 +20262,8 @@ fingerprint = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } /** - * [Output Only] A unique identifier for this resource type. The server - * generates this identifier. + * [Output Only] A unique identifier for this instance group, generated by the + * server. */ core.String id; /** @@ -18133,6 +20291,11 @@ */ core.String network; /** + * The URL of the region where the instance group is located (for regional + * resources). + */ + core.String region; + /** * [Output Only] The URL for this instance group. The server generates this * URL. */ @@ -18177,6 +20340,9 @@ if (_json.containsKey("network")) { network = _json["network"]; } + if (_json.containsKey("region")) { + region = _json["region"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -18217,6 +20383,9 @@ if (network != null) { _json["network"] = network; } + if (region != null) { + _json["region"] = region; + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -18436,6 +20605,11 @@ */ core.List<NamedPort> namedPorts; /** + * [Output Only] The URL of the region where the managed instance group + * resides (for regional resources). + */ + core.String region; + /** * [Output Only] The URL for this managed instance group. The server defines * this URL. */ @@ -18494,6 +20668,9 @@ if (_json.containsKey("namedPorts")) { namedPorts = _json["namedPorts"].map((value) => new NamedPort.fromJson(value)).toList(); } + if (_json.containsKey("region")) { + region = _json["region"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -18543,6 +20720,9 @@ if (namedPorts != null) { _json["namedPorts"] = namedPorts.map((value) => (value).toJson()).toList(); } + if (region != null) { + _json["region"] = region; + } if (selfLink != null) { _json["selfLink"] = selfLink; } @@ -18580,7 +20760,7 @@ * [Output Only] The number of instances that the managed instance group will * attempt to create. The group attempts to create each instance only once. If * the group fails to create any of these instances, it decreases the group's - * target_size value accordingly. + * targetSize value accordingly. */ core.int creatingWithoutRetries; /** @@ -18763,10 +20943,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** - * [Output Only] The URL for this resource type. The server generates this - * URL. - */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; InstanceGroupManagerList(); @@ -21135,7 +23312,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for this resource . */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; NetworkList(); @@ -21438,7 +23615,11 @@ * of the target resource. */ core.String targetId; - /** [Output Only] The URL of the resource that the operation modifies. */ + /** + * [Output Only] The URL of the resource that the operation modifies. For + * operations related to creating a snapshot, this points to the persistent + * disk that the snapshot was created from. + */ core.String targetLink; /** * [Output Only] User who requested the operation, for example: @@ -22114,6 +24295,9 @@ * - "IN_USE_ADDRESSES" * - "LOCAL_SSD_TOTAL_GB" * - "NETWORKS" + * - "PREEMPTIBLE_CPUS" + * - "REGIONAL_AUTOSCALERS" + * - "REGIONAL_INSTANCE_GROUP_MANAGERS" * - "ROUTERS" * - "ROUTES" * - "SNAPSHOTS" @@ -22336,7 +24520,7 @@ class ResourceGroupReference { /** - * A URI referencing one of the resource views listed in the backend service. + * A URI referencing one of the instance groups listed in the backend service. */ core.String group; @@ -22735,7 +24919,8 @@ core.String id; /** * Router interfaces. Each interface requires either one linked resource (e.g. - * linkedVpnTunnel) or IP address and IP address range (e.g. ipRange). + * linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or + * both. */ core.List<RouterInterface> interfaces; /** [Output Only] Type of resource. Always compute#router for routers. */ @@ -23060,7 +25245,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; RouterList(); @@ -23425,6 +25610,79 @@ } } +class SSLHealthCheck { + /** + * 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. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** + * The application data to send once the SSL connection has been established + * (default value is empty). If both request and response are empty, the + * connection establishment alone will indicate health. The request data can + * only be ASCII. + */ + core.String request; + /** + * The bytes to match against the beginning of the response data. If left + * empty (the default value), any response will indicate health. The response + * data can only be ASCII. + */ + core.String response; + + SSLHealthCheck(); + + SSLHealthCheck.fromJson(core.Map _json) { + if (_json.containsKey("port")) { + port = _json["port"]; + } + if (_json.containsKey("portName")) { + portName = _json["portName"]; + } + if (_json.containsKey("proxyHeader")) { + proxyHeader = _json["proxyHeader"]; + } + if (_json.containsKey("request")) { + request = _json["request"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (port != null) { + _json["port"] = port; + } + if (portName != null) { + _json["portName"] = portName; + } + if (proxyHeader != null) { + _json["proxyHeader"] = proxyHeader; + } + if (request != null) { + _json["request"] = request; + } + if (response != null) { + _json["response"] = response; + } + return _json; + } +} + /** Sets the scheduling options for an Instance. */ class Scheduling { /** @@ -23485,7 +25743,7 @@ * serial port output. */ core.String kind; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; SerialPortOutput(); @@ -24228,6 +26486,32 @@ } } +class SubnetworksExpandIpCidrRangeRequest { + /** + * The IP (in CIDR format or netmask) of internal addresses that are legal on + * this Subnetwork. This range should be disjoint from other subnetworks + * within this network. This range can only be larger than (i.e. a superset + * of) the range previously defined before the update. + */ + core.String ipCidrRange; + + SubnetworksExpandIpCidrRangeRequest(); + + SubnetworksExpandIpCidrRangeRequest.fromJson(core.Map _json) { + if (_json.containsKey("ipCidrRange")) { + ipCidrRange = _json["ipCidrRange"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (ipCidrRange != null) { + _json["ipCidrRange"] = ipCidrRange; + } + return _json; + } +} + class SubnetworksScopedListWarningData { /** * [Output Only] A key that provides more detail on the warning being @@ -24360,6 +26644,79 @@ } } +class TCPHealthCheck { + /** + * The TCP port number for the health check request. The default value is 80. + */ + 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. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** + * The application data to send once the TCP connection has been established + * (default value is empty). If both request and response are empty, the + * connection establishment alone will indicate health. The request data can + * only be ASCII. + */ + core.String request; + /** + * The bytes to match against the beginning of the response data. If left + * empty (the default value), any response will indicate health. The response + * data can only be ASCII. + */ + core.String response; + + TCPHealthCheck(); + + TCPHealthCheck.fromJson(core.Map _json) { + if (_json.containsKey("port")) { + port = _json["port"]; + } + if (_json.containsKey("portName")) { + portName = _json["portName"]; + } + if (_json.containsKey("proxyHeader")) { + proxyHeader = _json["proxyHeader"]; + } + if (_json.containsKey("request")) { + request = _json["request"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (port != null) { + _json["port"] = port; + } + if (portName != null) { + _json["portName"] = portName; + } + if (proxyHeader != null) { + _json["proxyHeader"] = proxyHeader; + } + if (request != null) { + _json["request"] = request; + } + if (response != null) { + _json["response"] = response; + } + return _json; + } +} + /** A set of instance tags. */ class Tags { /** @@ -25731,6 +28088,253 @@ } } +class TargetSslProxiesSetBackendServiceRequest { + /** The URL of the new BackendService resource for the targetSslProxy. */ + core.String service; + + TargetSslProxiesSetBackendServiceRequest(); + + TargetSslProxiesSetBackendServiceRequest.fromJson(core.Map _json) { + if (_json.containsKey("service")) { + service = _json["service"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (service != null) { + _json["service"] = service; + } + return _json; + } +} + +class TargetSslProxiesSetProxyHeaderRequest { + /** + * The new type of proxy header to append before sending data to the backend. + * NONE or PROXY_V1 are allowed. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + + TargetSslProxiesSetProxyHeaderRequest(); + + TargetSslProxiesSetProxyHeaderRequest.fromJson(core.Map _json) { + if (_json.containsKey("proxyHeader")) { + proxyHeader = _json["proxyHeader"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (proxyHeader != null) { + _json["proxyHeader"] = proxyHeader; + } + return _json; + } +} + +class TargetSslProxiesSetSslCertificatesRequest { + /** + * New set of URLs to SslCertificate resources to associate with this + * TargetSslProxy. Currently exactly one ssl certificate must be specified. + */ + core.List<core.String> sslCertificates; + + TargetSslProxiesSetSslCertificatesRequest(); + + TargetSslProxiesSetSslCertificatesRequest.fromJson(core.Map _json) { + if (_json.containsKey("sslCertificates")) { + sslCertificates = _json["sslCertificates"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (sslCertificates != null) { + _json["sslCertificates"] = sslCertificates; + } + return _json; + } +} + +/** A TargetSslProxy resource. This resource defines an SSL proxy. */ +class TargetSslProxy { + /** [Output Only] Creation timestamp in RFC3339 text format. */ + core.String creationTimestamp; + /** + * An optional description of this resource. Provide this property when you + * create the resource. + */ + core.String description; + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** + * [Output Only] Type of the resource. Always compute#targetSslProxy for + * target SSL proxies. + */ + core.String kind; + /** + * 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 + * expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must + * be a lowercase letter, and all following characters must be a dash, + * lowercase letter, or digit, except the last character, which cannot be a + * dash. + */ + core.String name; + /** + * Specifies the type of proxy header to append before sending data to the + * backend, either NONE or PROXY_V1. The default is NONE. + * Possible string values are: + * - "NONE" + * - "PROXY_V1" + */ + core.String proxyHeader; + /** [Output Only] Server-defined URL for the resource. */ + core.String selfLink; + /** URL to the BackendService resource. */ + core.String service; + /** + * URLs to SslCertificate resources that are used to authenticate connections + * to Backends. Currently exactly one SSL certificate must be specified. + */ + core.List<core.String> sslCertificates; + + TargetSslProxy(); + + TargetSslProxy.fromJson(core.Map _json) { + if (_json.containsKey("creationTimestamp")) { + creationTimestamp = _json["creationTimestamp"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("proxyHeader")) { + proxyHeader = _json["proxyHeader"]; + } + if (_json.containsKey("selfLink")) { + selfLink = _json["selfLink"]; + } + if (_json.containsKey("service")) { + service = _json["service"]; + } + if (_json.containsKey("sslCertificates")) { + sslCertificates = _json["sslCertificates"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (creationTimestamp != null) { + _json["creationTimestamp"] = creationTimestamp; + } + if (description != null) { + _json["description"] = description; + } + if (id != null) { + _json["id"] = id; + } + if (kind != null) { + _json["kind"] = kind; + } + if (name != null) { + _json["name"] = name; + } + if (proxyHeader != null) { + _json["proxyHeader"] = proxyHeader; + } + if (selfLink != null) { + _json["selfLink"] = selfLink; + } + if (service != null) { + _json["service"] = service; + } + if (sslCertificates != null) { + _json["sslCertificates"] = sslCertificates; + } + return _json; + } +} + +/** Contains a list of TargetSslProxy resources. */ +class TargetSslProxyList { + /** + * [Output Only] The unique identifier for the resource. This identifier is + * defined by the server. + */ + core.String id; + /** A list of TargetSslProxy resources. */ + core.List<TargetSslProxy> items; + /** Type of resource. */ + 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 this resource. */ + core.String selfLink; + + TargetSslProxyList(); + + TargetSslProxyList.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("items")) { + items = _json["items"].map((value) => new TargetSslProxy.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; + } +} + /** Represents a Target VPN gateway resource. */ class TargetVpnGateway { /** [Output Only] Creation timestamp in RFC3339 text format. */ @@ -25888,7 +28492,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; TargetVpnGatewayAggregatedList(); @@ -25954,7 +28558,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; TargetVpnGatewayList(); @@ -26855,7 +29459,7 @@ * continue paging through the results. */ core.String nextPageToken; - /** [Output Only] Server-defined URL for the resource. */ + /** [Output Only] Server-defined URL for this resource. */ core.String selfLink; VpnTunnelList();
diff --git a/generated/googleapis/lib/consumersurveys/v2.dart b/generated/googleapis/lib/consumersurveys/v2.dart index 5dc1689..6dadc12 100644 --- a/generated/googleapis/lib/consumersurveys/v2.dart +++ b/generated/googleapis/lib/consumersurveys/v2.dart
@@ -192,7 +192,8 @@ /** * Retrieves any survey results that have been produced so far. Results are - * formatted as an Excel file. + * formatted as an Excel file. You must add "?alt=media" to the URL as an + * argument to get results. * * [request] - The metadata request object. * @@ -584,38 +585,12 @@ } } -/** - * Representation of an individual pre-defined panel object defining a targeted - * audience of opinion rewards mobile app users. - */ class MobileAppPanel { - /** - * Country code for the country of the users that the panel contains. Uses - * standard ISO 3166-1 2-character language codes. For instance, 'US' for the - * United States, and 'GB' for the United Kingdom. Any survey created - * targeting this panel must also target the corresponding country. - */ core.String country; - /** Whether or not the panel is accessible to all API users. */ core.bool isPublicPanel; - /** - * Language code that the panel can target. For instance, 'en-US'. Uses - * standard BCP47 language codes. See specification. Any survey created - * targeting this panel must also target the corresponding language. - */ core.String language; - /** - * Unique panel ID string. This corresponds to the mobile_app_panel_id used in - * Survey Insert requests. - */ core.String mobileAppPanelId; - /** Human readable name of the audience panel. */ core.String name; - /** - * List of email addresses for users who can target members of this panel. - * Must contain at least the address of the user making the API call for - * panels that are not public. This field will be empty for public panels. - */ core.List<core.String> owners; MobileAppPanel(); @@ -792,17 +767,9 @@ } } -/** Representation of an individual survey object. */ class Survey { - /** Targeting-criteria message containing demographic information */ SurveyAudience audience; - /** Cost to run the survey and collect the necessary number of responses. */ SurveyCost cost; - /** - * Additional information to store on behalf of the API consumer and associate - * with this question. This binary blob is treated as opaque. This field is - * limited to 64K bytes. - */ core.String customerData; core.List<core.int> get customerDataAsBytes { return convert.BASE64.decode(customerData); @@ -811,22 +778,13 @@ void set customerDataAsBytes(core.List<core.int> _bytes) { customerData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - /** Text description of the survey. */ core.String description; - /** - * List of email addresses for survey owners. Must contain at least the - * address of the user making the API call. - */ core.List<core.String> owners; - /** List of questions defining the survey. */ core.List<SurveyQuestion> questions; - /** State that the survey is in. */ + SurveyRejection rejectionReason; core.String state; - /** Unique survey ID, that is viewable in the URL of the Survey Creator UI */ core.String surveyUrlId; - /** Optional name that will be given to the survey. */ core.String title; - /** Number of responses desired for the survey. */ core.int wantedResponseCount; Survey(); @@ -850,6 +808,9 @@ if (_json.containsKey("questions")) { questions = _json["questions"].map((value) => new SurveyQuestion.fromJson(value)).toList(); } + if (_json.containsKey("rejectionReason")) { + rejectionReason = new SurveyRejection.fromJson(_json["rejectionReason"]); + } if (_json.containsKey("state")) { state = _json["state"]; } @@ -884,6 +845,9 @@ if (questions != null) { _json["questions"] = questions.map((value) => (value).toJson()).toList(); } + if (rejectionReason != null) { + _json["rejectionReason"] = (rejectionReason).toJson(); + } if (state != null) { _json["state"] = state; } @@ -900,45 +864,13 @@ } } -/** Specifications for the target audience of a survey run through the API. */ class SurveyAudience { - /** - * Optional list of age buckets to target. Supported age buckets are: - * ['18-24', '25-34', '35-44', '45-54', '55-64', '65+'] - */ core.List<core.String> ages; - /** - * Required country code that surveys should be targeted to. Accepts standard - * ISO 3166-1 2 character language codes. For instance, 'US' for the United - * States, and 'GB' for the United Kingdom. - */ core.String country; - /** - * Country subdivision (states/provinces/etc) that surveys should be targeted - * to. For all countries except GB, ISO-3166-2 subdivision code is required - * (eg. 'US-OH' for Ohio, United States). For GB, NUTS 1 statistical region - * codes for the United Kingdom is required (eg. 'UK-UKC' for North East - * England). - */ core.String countrySubdivision; - /** Optional gender to target. */ core.String gender; - /** - * Language code that surveys should be targeted to. For instance, 'en-US'. - * Surveys may target bilingual users by specifying a list of language codes - * (for example, 'de' and 'en-US'). In that case, all languages will be used - * for targeting users but the survey content (which is displayed) must match - * the first language listed. Accepts standard BCP47 language codes. See - * specification. - */ core.List<core.String> languages; - /** - * Key for predefined panel that causes survey to be sent to a predefined set - * of Opinion Rewards App users. You must set PopulationSource to - * ANDROID_APP_PANEL to use this field. - */ core.String mobileAppPanelId; - /** Online population source where the respondents are sampled from. */ core.String populationSource; SurveyAudience(); @@ -994,38 +926,10 @@ } } -/** Message defining the cost to run a given survey through API. */ class SurveyCost { - /** - * Cost per survey response in nano units of the given currency. To get the - * total cost for a survey, multiply this value by wanted_response_count. - */ core.String costPerResponseNanos; - /** Currency code that the cost is given in. */ core.String currencyCode; - /** - * Threshold to start a survey automatically if the quoted price is at most - * this value. When a survey has a Screener (threshold) question, it must go - * through an incidence pricing test to determine the final cost per response. - * Typically you will have to make a followup call to start the survey giving - * the final computed cost per response. If the survey has no - * threshold_answers, setting this property will return an error. By - * specifying this property, you indicate the max price per response you are - * willing to pay in advance of the incidence test. If the price turns out to - * be lower than the specified value, the survey will begin immediately and - * you will be charged at the rate determined by the incidence pricing test. - * If the price turns out to be greater than the specified value the survey - * will not be started and you will instead be notified what price was - * determined by the incidence test. At that point, you must raise the value - * of this property to be greater than or equal to that cost before attempting - * to start the survey again. This will immediately start the survey as long - * the incidence test was run within the last 21 days. - */ core.String maxCostPerResponseNanos; - /** - * Cost of survey in nano units of the given currency. DEPRECATED in favor of - * cost_per_response_nanos - */ core.String nanos; SurveyCost(); @@ -1063,81 +967,24 @@ } } -/** Message defining the question specifications. */ class SurveyQuestion { - /** - * The randomization option for multiple choice and multi-select questions. If - * not specified, this option defaults to randomize. - */ core.String answerOrder; - /** Required list of answer options for a question. */ core.List<core.String> answers; - /** - * Option to allow open-ended text box for Single Answer and Multiple Answer - * question types. This can be used with SINGLE_ANSWER, - * SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE - * question types. - */ core.bool hasOther; - /** - * For rating questions, the text for the higher end of the scale, such as - * 'Best'. For numeric questions, a string representing a floating-point that - * is the maximum allowed number for a response. - */ core.String highValueLabel; core.List<SurveyQuestionImage> images; - /** Currently only support pinning an answer option to the last position. */ core.bool lastAnswerPositionPinned; - /** - * For rating questions, the text for the lower end of the scale, such as - * 'Worst'. For numeric questions, a string representing a floating-point that - * is the minimum allowed number for a response. - */ core.String lowValueLabel; - /** - * Option to force the user to pick one of the open text suggestions. This - * requires that suggestions are provided for this question. - */ core.bool mustPickSuggestion; - /** Number of stars to use for ratings questions. */ core.String numStars; - /** Placeholder text for an open text question. */ core.String openTextPlaceholder; - /** - * A list of suggested answers for open text question auto-complete. This is - * only valid if single_line_response is true. - */ core.List<core.String> openTextSuggestions; - /** Required question text shown to the respondent. */ core.String question; - /** - * Used by the Rating Scale with Text question type. This text goes along with - * the question field that is presented to the respondent, and is the actual - * text that the respondent is asked to rate. - */ core.String sentimentText; - /** - * Option to allow multiple line open text responses instead of a single line - * response. Note that we don't show auto-complete suggestions with multiple - * line responses. - */ core.bool singleLineResponse; - /** - * The threshold/screener answer options, which will screen a user into the - * rest of the survey. These will be a subset of the answer option strings. - */ core.List<core.String> thresholdAnswers; - /** - * Required field defining the question type. For details about configuring - * different type of questions, consult the question configuration guide. - */ core.String type; - /** - * Optional unit of measurement for display (for example: hours, people, - * miles). - */ core.String unitOfMeasurementLabel; - /** The YouTube video ID to be show in video questions. */ core.String videoId; SurveyQuestion(); @@ -1259,14 +1106,8 @@ } } -/** Container object for image data and alt_text. */ class SurveyQuestionImage { - /** The alt text property used in image tags is required for all images. */ core.String altText; - /** - * Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question - * types. - */ core.String data; core.List<core.int> get dataAsBytes { return convert.BASE64.decode(data); @@ -1275,7 +1116,6 @@ void set dataAsBytes(core.List<core.int> _bytes) { data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - /** The read-only URL for the hosted images. */ core.String url; SurveyQuestionImage(); @@ -1307,11 +1147,35 @@ } } -/** Reference to the current results for a given survey. */ +class SurveyRejection { + core.String explanation; + core.String type; + + SurveyRejection(); + + SurveyRejection.fromJson(core.Map _json) { + if (_json.containsKey("explanation")) { + explanation = _json["explanation"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (explanation != null) { + _json["explanation"] = explanation; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + class SurveyResults { - /** Human readable string describing the status of the request. */ core.String status; - /** External survey ID as viewable by survey owners in the editor view. */ core.String surveyUrlId; SurveyResults();
diff --git a/generated/googleapis/lib/content/v2.dart b/generated/googleapis/lib/content/v2.dart index 77054cd..6d4b4e6 100644 --- a/generated/googleapis/lib/content/v2.dart +++ b/generated/googleapis/lib/content/v2.dart
@@ -6214,6 +6214,13 @@ * Loyalty points that users receive after purchasing the item. Japan only. */ LoyaltyPoints loyaltyPoints; + /** + * Store pickup information. Only supported for local inventory. Not setting + * pickup means "don't update" while setting it to the empty value ({} in + * JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set + * together, unless pickupMethod is "not supported". + */ + InventoryPickup pickup; /** The price of the product. */ Price price; /** @@ -6252,6 +6259,9 @@ if (_json.containsKey("loyaltyPoints")) { loyaltyPoints = new LoyaltyPoints.fromJson(_json["loyaltyPoints"]); } + if (_json.containsKey("pickup")) { + pickup = new InventoryPickup.fromJson(_json["pickup"]); + } if (_json.containsKey("price")) { price = new Price.fromJson(_json["price"]); } @@ -6283,6 +6293,9 @@ if (loyaltyPoints != null) { _json["loyaltyPoints"] = (loyaltyPoints).toJson(); } + if (pickup != null) { + _json["pickup"] = (pickup).toJson(); + } if (price != null) { _json["price"] = (price).toJson(); } @@ -6453,6 +6466,44 @@ } } +class InventoryPickup { + /** + * Whether store pickup is available for this offer and whether the pickup + * option should be shown as buy, reserve, or not supported. Only supported + * for local inventory. Unless the value is "not supported", must be submitted + * together with pickupSla. + */ + core.String pickupMethod; + /** + * The expected date that an order will be ready for pickup, relative to when + * the order is placed. Only supported for local inventory. Must be submitted + * together with pickupMethod. + */ + core.String pickupSla; + + InventoryPickup(); + + InventoryPickup.fromJson(core.Map _json) { + if (_json.containsKey("pickupMethod")) { + pickupMethod = _json["pickupMethod"]; + } + if (_json.containsKey("pickupSla")) { + pickupSla = _json["pickupSla"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (pickupMethod != null) { + _json["pickupMethod"] = pickupMethod; + } + if (pickupSla != null) { + _json["pickupSla"] = pickupSla; + } + return _json; + } +} + class InventorySetRequest { /** The availability of the product. */ core.String availability; @@ -6462,6 +6513,13 @@ * Loyalty points that users receive after purchasing the item. Japan only. */ LoyaltyPoints loyaltyPoints; + /** + * Store pickup information. Only supported for local inventory. Not setting + * pickup means "don't update" while setting it to the empty value ({} in + * JSON) means "delete". Otherwise, pickupMethod and pickupSla must be set + * together, unless pickupMethod is "not supported". + */ + InventoryPickup pickup; /** The price of the product. */ Price price; /** @@ -6497,6 +6555,9 @@ if (_json.containsKey("loyaltyPoints")) { loyaltyPoints = new LoyaltyPoints.fromJson(_json["loyaltyPoints"]); } + if (_json.containsKey("pickup")) { + pickup = new InventoryPickup.fromJson(_json["pickup"]); + } if (_json.containsKey("price")) { price = new Price.fromJson(_json["price"]); } @@ -6525,6 +6586,9 @@ if (loyaltyPoints != null) { _json["loyaltyPoints"] = (loyaltyPoints).toJson(); } + if (pickup != null) { + _json["pickup"] = (pickup).toJson(); + } if (price != null) { _json["price"] = (price).toJson(); } @@ -6639,6 +6703,8 @@ class Order { /** Whether the order was acknowledged. */ core.bool acknowledged; + /** The channel type of the order: "purchaseOnGoogle" or "googleExpress". */ + core.String channelType; /** The details of the customer who placed the order. */ OrderCustomer customer; /** The details for the delivery. */ @@ -6691,6 +6757,9 @@ if (_json.containsKey("acknowledged")) { acknowledged = _json["acknowledged"]; } + if (_json.containsKey("channelType")) { + channelType = _json["channelType"]; + } if (_json.containsKey("customer")) { customer = new OrderCustomer.fromJson(_json["customer"]); } @@ -6752,6 +6821,9 @@ if (acknowledged != null) { _json["acknowledged"] = acknowledged; } + if (channelType != null) { + _json["channelType"] = channelType; + } if (customer != null) { _json["customer"] = (customer).toJson(); }
diff --git a/generated/googleapis/lib/content/v2sandbox.dart b/generated/googleapis/lib/content/v2sandbox.dart index 3121526..75a15e9 100644 --- a/generated/googleapis/lib/content/v2sandbox.dart +++ b/generated/googleapis/lib/content/v2sandbox.dart
@@ -875,6 +875,8 @@ class Order { /** Whether the order was acknowledged. */ core.bool acknowledged; + /** The channel type of the order: "purchaseOnGoogle" or "googleExpress". */ + core.String channelType; /** The details of the customer who placed the order. */ OrderCustomer customer; /** The details for the delivery. */ @@ -927,6 +929,9 @@ if (_json.containsKey("acknowledged")) { acknowledged = _json["acknowledged"]; } + if (_json.containsKey("channelType")) { + channelType = _json["channelType"]; + } if (_json.containsKey("customer")) { customer = new OrderCustomer.fromJson(_json["customer"]); } @@ -988,6 +993,9 @@ if (acknowledged != null) { _json["acknowledged"] = acknowledged; } + if (channelType != null) { + _json["channelType"] = channelType; + } if (customer != null) { _json["customer"] = (customer).toJson(); }
diff --git a/generated/googleapis/lib/dataproc/v1.dart b/generated/googleapis/lib/dataproc/v1.dart index 933de56..b21cef1 100644 --- a/generated/googleapis/lib/dataproc/v1.dart +++ b/generated/googleapis/lib/dataproc/v1.dart
@@ -14,7 +14,9 @@ const core.String USER_AGENT = 'dart-api-client dataproc/v1'; -/** Manages Hadoop-based clusters and jobs on Google Cloud Platform. */ +/** + * An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. + */ class DataprocApi { /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; @@ -278,9 +280,24 @@ * [region] - [Required] The Cloud Dataproc region in which to handle the * request. * - * [pageSize] - The standard List page size. + * [filter] - [Optional] A filter constraining the clusters to list. Filters + * are case-sensitive and have the following syntax: field:value [field:value] + * ... or field = value [AND [field = value]] ... where **field** is one of + * `status.state`, `clusterName`, or `labels.[KEY]`, and `[KEY]` is a label + * key. **value** can be `*` to match all values. `status.state` can be one of + * the following: `ACTIVE`, `INACTIVE`, `CREATING`, `RUNNING`, `ERROR`, + * `DELETING`, or `UPDATING`. `ACTIVE` contains the `CREATING`, `UPDATING`, + * and `RUNNING` states. `INACTIVE` contains the `DELETING` and `ERROR` + * states. `clusterName` is the name of the cluster provided at creation time. + * Only the logical `AND` operator is supported; space-separated items are + * treated as having an implicit `AND` operator. Example valid filters are: + * status.state:ACTIVE clusterName:mycluster labels.env:staging \ + * labels.starred:* and status.state = ACTIVE AND clusterName = mycluster \ + * AND labels.env = staging AND labels.starred = * * - * [pageToken] - The standard List page token. + * [pageSize] - [Optional] The standard List page size. + * + * [pageToken] - [Optional] The standard List page token. * * Completes with a [ListClustersResponse]. * @@ -290,7 +307,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<ListClustersResponse> list(core.String projectId, core.String region, {core.int pageSize, core.String pageToken}) { + async.Future<ListClustersResponse> list(core.String projectId, core.String region, {core.String filter, core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -304,6 +321,9 @@ if (region == null) { throw new core.ArgumentError("Parameter region is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -588,12 +608,22 @@ * jobs that were submitted to the named cluster. * * [jobStateMatcher] - [Optional] Specifies enumerated categories of jobs to - * list. + * list (default = match ALL jobs). * Possible string values are: * - "ALL" : A ALL. * - "ACTIVE" : A ACTIVE. * - "NON_ACTIVE" : A NON_ACTIVE. * + * [filter] - [Optional] A filter constraining the jobs to list. Filters are + * case-sensitive and have the following syntax: field:value] ... or [field = + * value] AND [field [= value]] ... where **field** is `status.state` or + * `labels.[KEY]`, and `[KEY]` is a label key. **value** can be `*` to match + * all values. `status.state` can be either `ACTIVE` or `INACTIVE`. Only the + * logical `AND` operator is supported; space-separated items are treated as + * having an implicit `AND` operator. Example valid filters are: + * status.state:ACTIVE labels.env:staging labels.starred:* and status.state = + * ACTIVE AND labels.env = staging AND labels.starred = * + * * Completes with a [ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -602,7 +632,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<ListJobsResponse> list(core.String projectId, core.String region, {core.int pageSize, core.String pageToken, core.String clusterName, core.String jobStateMatcher}) { + async.Future<ListJobsResponse> list(core.String projectId, core.String region, {core.int pageSize, core.String pageToken, core.String clusterName, core.String jobStateMatcher, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -628,6 +658,9 @@ if (jobStateMatcher != null) { _queryParams["jobStateMatcher"] = [jobStateMatcher]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs'; @@ -707,13 +740,15 @@ * 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. + * 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 parameters: * * [name] - The name of the operation resource to be cancelled. - * Value must have pattern "^projects/[^/] * / regions/[^/] * / - * operations/[^/]*$". + * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations/[^/]+$". * * Completes with a [Empty]. * @@ -756,8 +791,7 @@ * Request parameters: * * [name] - The name of the operation resource to be deleted. - * Value must have pattern "^projects/[^/] * / regions/[^/] * / - * operations/[^/]*$". + * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations/[^/]+$". * * Completes with a [Empty]. * @@ -799,8 +833,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^projects/[^/] * / regions/[^/] * / - * operations/[^/]*$". + * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations/[^/]+$". * * Completes with a [Operation]. * @@ -843,7 +876,7 @@ * Request parameters: * * [name] - The name of the operation collection. - * Value must have pattern "^projects/[^/] * / regions/[^/] * / operations$". + * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$". * * [filter] - The standard list filter. * @@ -931,6 +964,21 @@ */ ClusterConfig config; /** + * [Optional] The labels to associate with this cluster. Label **keys** must + * contain 1 to 63 characters, and must conform to [RFC + * 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, + * but, if present, must contain 1 to 63 characters, and must conform to [RFC + * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + * associated with a cluster. + */ + core.Map<core.String, core.String> labels; + /** + * Contains cluster daemon metrics such as HDFS and YARN stats. **Beta + * Feature**: This report is available for testing purposes only. It may be + * changed before final release. + */ + ClusterMetrics metrics; + /** * [Required] The Google Cloud Platform project ID that the cluster belongs * to. */ @@ -952,6 +1000,12 @@ if (_json.containsKey("config")) { config = new ClusterConfig.fromJson(_json["config"]); } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + if (_json.containsKey("metrics")) { + metrics = new ClusterMetrics.fromJson(_json["metrics"]); + } if (_json.containsKey("projectId")) { projectId = _json["projectId"]; } @@ -974,6 +1028,12 @@ if (config != null) { _json["config"] = (config).toJson(); } + if (labels != null) { + _json["labels"] = labels; + } + if (metrics != null) { + _json["metrics"] = (metrics).toJson(); + } if (projectId != null) { _json["projectId"] = projectId; } @@ -1007,9 +1067,11 @@ * [Optional] Commands to execute on each node after config is completed. By * default, executables are run on master and all worker nodes. You can test a * node's role metadata to run an executable on a master or worker node, as - * shown below: ROLE=$(/usr/share/google/get_metadata_value attributes/role) - * if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else - * ... worker specific actions ... fi + * shown below using `curl` (you can also use `wget`): ROLE=$(curl -H + * Metadata-Flavor:Google + * http://metadata/computeMetadata/v1/instance/attributes/dataproc-role) if [[ + * "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... + * worker specific actions ... fi */ core.List<NodeInitializationAction> initializationActions; /** @@ -1083,14 +1145,50 @@ } } +/** + * Contains cluster daemon metrics, such as HDFS and YARN stats. **Beta + * Feature**: This report is available for testing purposes only. It may be + * changed before final release. + */ +class ClusterMetrics { + /** The HDFS metrics. */ + core.Map<core.String, core.String> hdfsMetrics; + /** The YARN metrics. */ + core.Map<core.String, core.String> yarnMetrics; + + ClusterMetrics(); + + ClusterMetrics.fromJson(core.Map _json) { + if (_json.containsKey("hdfsMetrics")) { + hdfsMetrics = _json["hdfsMetrics"]; + } + if (_json.containsKey("yarnMetrics")) { + yarnMetrics = _json["yarnMetrics"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (hdfsMetrics != null) { + _json["hdfsMetrics"] = hdfsMetrics; + } + if (yarnMetrics != null) { + _json["yarnMetrics"] = yarnMetrics; + } + return _json; + } +} + /** Metadata describing the operation. */ class ClusterOperationMetadata { - /** Name of the cluster for the operation. */ + /** [Output-only] Name of the cluster for the operation. */ core.String clusterName; - /** Cluster UUId for the operation. */ + /** [Output-only] Cluster UUID for the operation. */ core.String clusterUuid; /** [Output-only] Short description of operation. */ core.String description; + /** [Output-only] labels associated with the operation */ + core.Map<core.String, core.String> labels; /** [Output-only] The operation type. */ core.String operationType; /** [Output-only] Current operation status. */ @@ -1110,6 +1208,9 @@ if (_json.containsKey("description")) { description = _json["description"]; } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("operationType")) { operationType = _json["operationType"]; } @@ -1132,6 +1233,9 @@ if (description != null) { _json["description"] = description; } + if (labels != null) { + _json["labels"] = labels; + } if (operationType != null) { _json["operationType"] = operationType; } @@ -1147,12 +1251,12 @@ /** The status of the operation. */ class ClusterOperationStatus { - /** A message containing any operation metadata details. */ + /** [Output-only]A message containing any operation metadata details. */ core.String details; - /** A message containing the detailed operation state. */ + /** [Output-only] A message containing the detailed operation state. */ core.String innerState; /** - * A message containing the operation state. + * [Output-only] A message containing the operation state. * Possible string values are: * - "UNKNOWN" : A UNKNOWN. * - "PENDING" : A PENDING. @@ -1160,7 +1264,7 @@ * - "DONE" : A DONE. */ core.String state; - /** The time this state was entered. */ + /** [Output-only] The time this state was entered. */ core.String stateStartTime; ClusterOperationStatus(); @@ -1200,10 +1304,10 @@ /** The status of a cluster and its instances. */ class ClusterStatus { - /** Optional details of cluster's state. */ + /** [Output-only] Optional details of cluster's state. */ core.String detail; /** - * The cluster's state. + * [Output-only] The cluster's state. * Possible string values are: * - "UNKNOWN" : A UNKNOWN. * - "CREATING" : A CREATING. @@ -1213,7 +1317,7 @@ * - "UPDATING" : A UPDATING. */ core.String state; - /** Time when this state was entered. */ + /** [Output-only] Time when this state was entered. */ core.String stateStartTime; ClusterStatus(); @@ -1287,8 +1391,8 @@ /** The location of diagnostic output. */ class DiagnoseClusterResults { /** - * [Output-only] The Google Cloud Storage URI of the diagnostic output. This - * is a plain text file with a summary of collected diagnostics. + * [Output-only] The Google Cloud Storage URI of the diagnostic output. The + * output report is a plain text file with a summary of collected diagnostics. */ core.String outputUri; @@ -1315,7 +1419,8 @@ core.int bootDiskSizeGb; /** * [Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are - * not attached, the boot disk is used to store runtime logs and HDFS data. If + * not attached, the boot disk is used to store runtime logs and + * [HDFS](https://hadoop.apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If * one or more SSDs are attached, this runtime bulk data is spread across * them, and the boot disk contains only basic config and installed binaries. */ @@ -1369,24 +1474,37 @@ * instances, applicable to all instances in the cluster. */ class GceClusterConfig { - /** The Google Compute Engine metadata entries to add to all instances. */ + /** + * [Optional] If true, all instances in the cluster will only have internal IP + * addresses. By default, clusters are not restricted to internal IP + * addresses, and will have ephemeral external IP addresses assigned to each + * instance. This `internal_ip_only` restriction can only be enabled for + * subnetwork enabled networks, and all off-cluster dependencies must be + * configured to be accessible without external IP addresses. + */ + core.bool internalIpOnly; + /** + * The Google Compute Engine metadata entries to add to all instances (see + * [Project and instance + * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)). + */ core.Map<core.String, core.String> metadata; /** - * The Google Compute Engine network to be used for machine communications. - * Cannot be specified with subnetwork_uri. If neither network_uri nor - * subnetwork_uri is specified, the "default" network of the project is used, - * if it exists. Cannot be a "Custom Subnet Network" (see - * https://cloud.google.com/compute/docs/subnetworks for more information). + * [Optional] The Google Compute Engine network to be used for machine + * communications. Cannot be specified with subnetwork_uri. If neither + * `network_uri` nor `subnetwork_uri` is specified, the "default" network of + * the project is used, if it exists. Cannot be a "Custom Subnet Network" (see + * [Using Subnetworks](/compute/docs/subnetworks) for more information). * Example: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`. */ core.String networkUri; /** - * The URIs of service account scopes to be included in Google Compute Engine - * instances. The following base set of scopes is always included: * - * https://www.googleapis.com/auth/cloud.useraccounts.readonly * + * [Optional] The URIs of service account scopes to be included in Google + * Compute Engine instances. The following base set of scopes is always + * included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * * https://www.googleapis.com/auth/devstorage.read_write * - * https://www.googleapis.com/auth/logging.write If no scopes are specfied, + * https://www.googleapis.com/auth/logging.write If no scopes are specified, * the following defaults are also provided: * * https://www.googleapis.com/auth/bigquery * * https://www.googleapis.com/auth/bigtable.admin.table * @@ -1395,12 +1513,15 @@ */ core.List<core.String> serviceAccountScopes; /** - * The Google Compute Engine subnetwork to be used for machine communications. - * Cannot be specified with network_uri. Example: + * [Optional] The Google Compute Engine subnetwork to be used for machine + * communications. Cannot be specified with network_uri. Example: * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`. */ core.String subnetworkUri; - /** The Google Compute Engine tags to add to all instances. */ + /** + * The Google Compute Engine tags to add to all instances (see [Tagging + * instances](/compute/docs/label-or-tag-resources#tags)). + */ core.List<core.String> tags; /** * [Required] The zone where the Google Compute Engine cluster will be @@ -1412,6 +1533,9 @@ GceClusterConfig(); GceClusterConfig.fromJson(core.Map _json) { + if (_json.containsKey("internalIpOnly")) { + internalIpOnly = _json["internalIpOnly"]; + } if (_json.containsKey("metadata")) { metadata = _json["metadata"]; } @@ -1434,6 +1558,9 @@ core.Map toJson() { var _json = new core.Map(); + if (internalIpOnly != null) { + _json["internalIpOnly"] = internalIpOnly; + } if (metadata != null) { _json["metadata"] = metadata; } @@ -1456,7 +1583,12 @@ } } -/** A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. */ +/** + * A Cloud Dataproc job for running [Apache Hadoop + * MapReduce](https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html) + * jobs on [Apache Hadoop + * YARN](https://hadoop.apache.org/docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html). + */ class HadoopJob { /** * [Optional] HCFS URIs of archives to be extracted in the working directory @@ -1562,7 +1694,10 @@ } } -/** A Cloud Dataproc job for running Hive queries on YARN. */ +/** + * A Cloud Dataproc job for running [Apache Hive](https://hive.apache.org/) + * queries on YARN. + */ class HiveJob { /** * [Optional] Whether to continue executing queries if a query fails. The @@ -1640,11 +1775,11 @@ } /** - * The config settings for Google Compute Engine resources in an instance group, - * such as a master or worker group. + * [Optional] The config settings for Google Compute Engine resources in an + * instance group, such as a master or worker group. */ class InstanceGroupConfig { - /** Disk option config settings. */ + /** [Optional] Disk option config settings. */ DiskConfig diskConfig; /** * [Output-only] The Google Compute Engine image resource used for cluster @@ -1652,15 +1787,19 @@ */ core.String imageUri; /** - * The list of instance names. Cloud Dataproc derives the names from - * `cluster_name`, `num_instances`, and the instance group if not set by user - * (recommended practice is to let Cloud Dataproc derive the name). + * [Optional] The list of instance names. Cloud Dataproc derives the names + * from `cluster_name`, `num_instances`, and the instance group if not set by + * user (recommended practice is to let Cloud Dataproc derive the name). */ core.List<core.String> instanceNames; - /** Specifies that this instance group contains Preemptible Instances. */ + /** + * [Optional] Specifies that this instance group contains preemptible + * instances. + */ core.bool isPreemptible; /** - * The Google Compute Engine machine type used for cluster instances. Example: + * [Required] The Google Compute Engine machine type used for cluster + * instances. Example: * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`. */ core.String machineTypeUri; @@ -1670,8 +1809,8 @@ */ ManagedGroupConfig managedGroupConfig; /** - * The number of VM instances in the instance group. For master instance - * groups, must be set to 1. + * [Required] The number of VM instances in the instance group. For master + * instance groups, must be set to 1. */ core.int numInstances; @@ -1745,6 +1884,15 @@ HadoopJob hadoopJob; /** Job is a Hive job. */ HiveJob hiveJob; + /** + * [Optional] The labels to associate with this job. Label **keys** must + * contain 1 to 63 characters, and must conform to [RFC + * 1035](https://www.ietf.org/rfc/rfc1035.txt). Label **values** may be empty, + * but, if present, must contain 1 to 63 characters, and must conform to [RFC + * 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be + * associated with a job. + */ + core.Map<core.String, core.String> labels; /** Job is a Pig job. */ PigJob pigJob; /** @@ -1770,6 +1918,12 @@ JobStatus status; /** [Output-only] The previous job status. */ core.List<JobStatus> statusHistory; + /** + * [Output-only] The collection of YARN applications spun up by this job. + * **Beta** Feature: This report is available for testing purposes only. It + * may be changed before final release. + */ + core.List<YarnApplication> yarnApplications; Job(); @@ -1786,6 +1940,9 @@ if (_json.containsKey("hiveJob")) { hiveJob = new HiveJob.fromJson(_json["hiveJob"]); } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("pigJob")) { pigJob = new PigJob.fromJson(_json["pigJob"]); } @@ -1810,6 +1967,9 @@ if (_json.containsKey("statusHistory")) { statusHistory = _json["statusHistory"].map((value) => new JobStatus.fromJson(value)).toList(); } + if (_json.containsKey("yarnApplications")) { + yarnApplications = _json["yarnApplications"].map((value) => new YarnApplication.fromJson(value)).toList(); + } } core.Map toJson() { @@ -1826,6 +1986,9 @@ if (hiveJob != null) { _json["hiveJob"] = (hiveJob).toJson(); } + if (labels != null) { + _json["labels"] = labels; + } if (pigJob != null) { _json["pigJob"] = (pigJob).toJson(); } @@ -1850,6 +2013,9 @@ if (statusHistory != null) { _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).toList(); } + if (yarnApplications != null) { + _json["yarnApplications"] = yarnApplications.map((value) => (value).toJson()).toList(); + } return _json; } } @@ -1890,7 +2056,7 @@ /** Encapsulates the full scoping used to reference a job. */ class JobReference { /** - * [Required] The job ID, which must be unique within the project. The job ID + * [Optional] The job ID, which must be unique within the project. The job ID * is generated by the server upon job submission or provided by the user as a * means to perform retries without creating duplicate jobs. The ID must * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens @@ -1929,12 +2095,12 @@ /** Cloud Dataproc job status. */ class JobStatus { /** - * [Optional] Job state details, such as an error description if the state is - * ERROR. + * [Output-only] Optional job state details, such as an error description if + * the state is ERROR. */ core.String details; /** - * [Required] A state message specifying the overall job state. + * [Output-only] A state message specifying the overall job state. * Possible string values are: * - "STATE_UNSPECIFIED" : A STATE_UNSPECIFIED. * - "PENDING" : A PENDING. @@ -1984,8 +2150,8 @@ /** [Output-only] The clusters in the project. */ core.List<Cluster> clusters; /** - * [Optional] This token is included in the response if there are more results - * to fetch. To fetch additional results, provide this value as the + * [Output-only] This token is included in the response if there are more + * results to fetch. To fetch additional results, provide this value as the * `page_token` in a subsequent ListClustersRequest. */ core.String nextPageToken; @@ -2185,7 +2351,7 @@ * 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 @@ -2428,7 +2594,10 @@ } } -/** A Cloud Dataproc job for running Pig queries on YARN. */ +/** + * A Cloud Dataproc job for running [Apache Pig](https://pig.apache.org/) + * queries on YARN. + */ class PigJob { /** * [Optional] Whether to continue executing queries if a query fails. The @@ -2513,7 +2682,11 @@ } } -/** A Cloud Dataproc job for running PySpark applications on YARN. */ +/** + * A Cloud Dataproc job for running [Apache + * PySpark](https://spark.apache.org/docs/0.9.0/python-programming-guide.html) + * applications on YARN. + */ class PySparkJob { /** * [Optional] HCFS URIs of archives to be extracted in the working directory @@ -2684,7 +2857,10 @@ } } -/** A Cloud Dataproc job for running Spark applications on YARN. */ +/** + * A Cloud Dataproc job for running [Apache Spark](http://spark.apache.org/) + * applications on YARN. + */ class SparkJob { /** * [Optional] HCFS URIs of archives to be extracted in the working directory @@ -2784,7 +2960,10 @@ } } -/** A Cloud Dataproc job for running Spark SQL queries. */ +/** + * A Cloud Dataproc job for running [Apache Spark + * SQL](http://spark.apache.org/sql/) queries. + */ class SparkSqlJob { /** [Optional] HCFS URIs of jar files to be added to the Spark CLASSPATH. */ core.List<core.String> jarFileUris; @@ -2956,3 +3135,71 @@ return _json; } } + +/** + * A YARN application created by a job. Application information is a subset of + * org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. **Beta + * Feature**: This report is available for testing purposes only. It may be + * changed before final release. + */ +class YarnApplication { + /** [Required] The application name. */ + core.String name; + /** [Required] The numerical progress of the application, from 1 to 100. */ + core.double progress; + /** + * [Required] The application state. + * Possible string values are: + * - "STATE_UNSPECIFIED" : A STATE_UNSPECIFIED. + * - "NEW" : A NEW. + * - "NEW_SAVING" : A NEW_SAVING. + * - "SUBMITTED" : A SUBMITTED. + * - "ACCEPTED" : A ACCEPTED. + * - "RUNNING" : A RUNNING. + * - "FINISHED" : A FINISHED. + * - "FAILED" : A FAILED. + * - "KILLED" : A KILLED. + */ + core.String state; + /** + * [Optional] The HTTP URL of the ApplicationMaster, HistoryServer, or + * TimelineServer that provides application-specific information. The URL uses + * the internal hostname, and requires a proxy server for resolution and, + * possibly, access. + */ + core.String trackingUrl; + + YarnApplication(); + + YarnApplication.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("progress")) { + progress = _json["progress"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("trackingUrl")) { + trackingUrl = _json["trackingUrl"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (name != null) { + _json["name"] = name; + } + if (progress != null) { + _json["progress"] = progress; + } + if (state != null) { + _json["state"] = state; + } + if (trackingUrl != null) { + _json["trackingUrl"] = trackingUrl; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/deploymentmanager/v2.dart b/generated/googleapis/lib/deploymentmanager/v2.dart index a1021db..2c7949c 100644 --- a/generated/googleapis/lib/deploymentmanager/v2.dart +++ b/generated/googleapis/lib/deploymentmanager/v2.dart
@@ -203,6 +203,54 @@ } /** + * Gets the access control policy for a resource. May be empty if no such + * policy or resource exists. + * + * 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])?))". + * + * [resource] - Name of the resource for this request. + * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". + * + * Completes with a [Policy]. + * + * 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<Policy> getIamPolicy(core.String project, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/getIamPolicy'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** * Creates a deployment and all of the resources described by the deployment * manifest. * @@ -301,6 +349,17 @@ * 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. @@ -313,7 +372,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<DeploymentsListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<DeploymentsListResponse> list(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; @@ -330,6 +389,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -430,6 +492,59 @@ } /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. + * + * [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])?))". + * + * [resource] - Name of the resource for this request. + * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". + * + * Completes with a [Policy]. + * + * 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<Policy> setIamPolicy(Policy request, core.String project, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/setIamPolicy'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** * Stops an ongoing operation. This does not roll back any work that has * already been completed, but prevents any new work from being started. * @@ -483,6 +598,58 @@ } /** + * Returns permissions that a caller has on the specified resource. + * + * [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])?))". + * + * [resource] - Name of the resource for this request. + * Value must have pattern "[a-z](?:[-a-z0-9_]{0,61}[a-z0-9])?". + * + * Completes with a [TestPermissionsResponse]. + * + * 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<TestPermissionsResponse> testIamPermissions(TestPermissionsRequest request, core.String project, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = commons.Escaper.ecapeVariable('$project') + '/global/deployments/' + commons.Escaper.ecapeVariable('$resource') + '/testIamPermissions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TestPermissionsResponse.fromJson(data)); + } + + /** * Updates a deployment and all of the resources described by the deployment * manifest. * @@ -670,6 +837,17 @@ * 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. @@ -682,7 +860,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<ManifestsListResponse> list(core.String project, core.String deployment, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ManifestsListResponse> list(core.String project, core.String deployment, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -702,6 +880,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -813,6 +994,17 @@ * 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. @@ -825,7 +1017,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<OperationsListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<OperationsListResponse> list(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; @@ -842,6 +1034,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -962,6 +1157,17 @@ * 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. @@ -974,7 +1180,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<ResourcesListResponse> list(core.String project, core.String deployment, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<ResourcesListResponse> list(core.String project, core.String deployment, {core.String filter, core.int maxResults, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -994,6 +1200,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1059,6 +1268,17 @@ * 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. @@ -1071,7 +1291,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<TypesListResponse> list(core.String project, {core.String filter, core.int maxResults, core.String pageToken}) { + async.Future<TypesListResponse> list(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; @@ -1088,6 +1308,9 @@ if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (orderBy != null) { + _queryParams["orderBy"] = [orderBy]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1108,6 +1331,168 @@ +/** + * Enables "data access" audit logging for a service and specifies a list of + * members that are log-exempted. + */ +class AuditConfig { + /** + * 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. + * 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("exemptedMembers")) { + exemptedMembers = _json["exemptedMembers"]; + } + if (_json.containsKey("service")) { + service = _json["service"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (exemptedMembers != null) { + _json["exemptedMembers"] = exemptedMembers; + } + if (service != null) { + _json["service"] = service; + } + 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`. + */ + core.List<core.String> members; + /** + * Role that is assigned to `members`. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. + */ + core.String role; + + Binding(); + + Binding.fromJson(core.Map _json) { + if (_json.containsKey("members")) { + members = _json["members"]; + } + if (_json.containsKey("role")) { + role = _json["role"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (members != null) { + _json["members"] = members; + } + if (role != null) { + _json["role"] = role; + } + return _json; + } +} + +/** A condition to be met. */ +class Condition { + /** Trusted attributes supplied by the IAM system. */ + core.String iam; + /** An operator to apply the subject with. */ + core.String op; + /** Trusted attributes discharged by the service. */ + core.String svc; + /** + * Trusted attributes supplied by any service that owns resources and uses the + * IAM system for access control. + */ + core.String sys; + /** DEPRECATED. Use 'values' instead. */ + core.String value; + /** The objects of the condition. This is mutually exclusive with 'value'. */ + core.List<core.String> values; + + Condition(); + + Condition.fromJson(core.Map _json) { + if (_json.containsKey("iam")) { + iam = _json["iam"]; + } + if (_json.containsKey("op")) { + op = _json["op"]; + } + if (_json.containsKey("svc")) { + svc = _json["svc"]; + } + if (_json.containsKey("sys")) { + sys = _json["sys"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + if (_json.containsKey("values")) { + values = _json["values"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (iam != null) { + _json["iam"] = iam; + } + if (op != null) { + _json["op"] = op; + } + if (svc != null) { + _json["svc"] = svc; + } + if (sys != null) { + _json["sys"] = sys; + } + if (value != null) { + _json["value"] = value; + } + if (values != null) { + _json["values"] = values; + } + return _json; + } +} + class ConfigFile { /** The contents of the file. */ core.String content; @@ -1512,6 +1897,58 @@ } } +/** Specifies what kind of log the caller must write */ +class LogConfig { + /** Counter options. */ + LogConfigCounterOptions counter; + + LogConfig(); + + LogConfig.fromJson(core.Map _json) { + if (_json.containsKey("counter")) { + counter = new LogConfigCounterOptions.fromJson(_json["counter"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (counter != null) { + _json["counter"] = (counter).toJson(); + } + return _json; + } +} + +/** Options for counters */ +class LogConfigCounterOptions { + /** The field value to attribute. */ + core.String field; + /** The metric to update. */ + core.String metric; + + LogConfigCounterOptions(); + + LogConfigCounterOptions.fromJson(core.Map _json) { + if (_json.containsKey("field")) { + field = _json["field"]; + } + if (_json.containsKey("metric")) { + metric = _json["metric"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (field != null) { + _json["field"] = field; + } + if (metric != null) { + _json["metric"] = metric; + } + return _json; + } +} + class Manifest { /** [Output Only] The YAML configuration for this manifest. */ ConfigFile config; @@ -1869,9 +2306,9 @@ */ core.String targetId; /** - * [Output Only] The URL of the resource that the operation modifies. If - * creating a persistent disk snapshot, this points to the persistent disk - * that the snapshot was created from. + * [Output Only] The URL of the resource that the operation modifies. For + * operations related to creating a snapshot, this points to the persistent + * disk that the snapshot was created from. */ core.String targetLink; /** @@ -2072,6 +2509,124 @@ } } +/** + * 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 { + /** + * Specifies audit logging configs for "data access". "data access": generally + * refers to data reads/writes and admin reads. "admin activity": generally + * refers to admin writes. + * + * Note: `AuditConfig` doesn't apply to "admin activity", which always enables + * audit logging. + */ + core.List<AuditConfig> auditConfigs; + /** + * 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 + * 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. + */ + core.String etag; + core.List<core.int> get etagAsBytes { + return convert.BASE64.decode(etag); + } + + void set etagAsBytes(core.List<core.int> _bytes) { + etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + core.bool iamOwned; + /** + * If more than one rule is specified, the rules are applied in the following + * manner: - All matching LOG rules are always applied. - If any + * DENY/DENY_WITH_LOG rule matches, permission is denied. Logging will be + * applied if one or more matching rule requires logging. - Otherwise, if any + * ALLOW/ALLOW_WITH_LOG rule matches, permission is granted. Logging will be + * applied if one or more matching rule requires logging. - Otherwise, if no + * rule applies, permission is denied. + */ + core.List<Rule> rules; + /** Version of the `Policy`. The default version is 0. */ + core.int version; + + Policy(); + + Policy.fromJson(core.Map _json) { + if (_json.containsKey("auditConfigs")) { + auditConfigs = _json["auditConfigs"].map((value) => new AuditConfig.fromJson(value)).toList(); + } + if (_json.containsKey("bindings")) { + bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).toList(); + } + if (_json.containsKey("etag")) { + etag = _json["etag"]; + } + if (_json.containsKey("iamOwned")) { + iamOwned = _json["iamOwned"]; + } + if (_json.containsKey("rules")) { + rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); + } + if (_json.containsKey("version")) { + version = _json["version"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (auditConfigs != null) { + _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toList(); + } + if (bindings != null) { + _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); + } + if (etag != null) { + _json["etag"] = etag; + } + if (iamOwned != null) { + _json["iamOwned"] = iamOwned; + } + if (rules != null) { + _json["rules"] = rules.map((value) => (value).toJson()).toList(); + } + if (version != null) { + _json["version"] = version; + } + return _json; + } +} + class ResourceWarningsData { /** * [Output Only] A key that provides more detail on the warning being @@ -2154,6 +2709,8 @@ } class Resource { + /** The Access Control Policy set on this resource. */ + ResourceAccessControl accessControl; /** * [Output Only] The evaluated properties of the resource with references * expanded. Returned as serialized YAML. @@ -2208,6 +2765,9 @@ Resource(); Resource.fromJson(core.Map _json) { + if (_json.containsKey("accessControl")) { + accessControl = new ResourceAccessControl.fromJson(_json["accessControl"]); + } if (_json.containsKey("finalProperties")) { finalProperties = _json["finalProperties"]; } @@ -2245,6 +2805,9 @@ core.Map toJson() { var _json = new core.Map(); + if (accessControl != null) { + _json["accessControl"] = (accessControl).toJson(); + } if (finalProperties != null) { _json["finalProperties"] = finalProperties; } @@ -2282,6 +2845,28 @@ } } +/** The access controls set on the resource. */ +class ResourceAccessControl { + /** The GCP IAM Policy to set on the resource. */ + core.String gcpIamPolicy; + + ResourceAccessControl(); + + ResourceAccessControl.fromJson(core.Map _json) { + if (_json.containsKey("gcpIamPolicy")) { + gcpIamPolicy = _json["gcpIamPolicy"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (gcpIamPolicy != null) { + _json["gcpIamPolicy"] = gcpIamPolicy; + } + return _json; + } +} + class ResourceUpdateErrorErrors { /** [Output Only] The error type identifier for this error. */ core.String code; @@ -2433,6 +3018,11 @@ class ResourceUpdate { /** + * The Access Control Policy to set on this resource after updating the + * resource itself. + */ + ResourceAccessControl accessControl; + /** * [Output Only] If errors are generated during update of the resource, this * field will be populated. */ @@ -2465,6 +3055,9 @@ ResourceUpdate(); ResourceUpdate.fromJson(core.Map _json) { + if (_json.containsKey("accessControl")) { + accessControl = new ResourceAccessControl.fromJson(_json["accessControl"]); + } if (_json.containsKey("error")) { error = new ResourceUpdateError.fromJson(_json["error"]); } @@ -2490,6 +3083,9 @@ core.Map toJson() { var _json = new core.Map(); + if (accessControl != null) { + _json["accessControl"] = (accessControl).toJson(); + } if (error != null) { _json["error"] = (error).toJson(); } @@ -2548,6 +3144,89 @@ } } +/** A rule to be applied in a Policy. */ +class Rule { + /** Required */ + core.String action; + /** Additional restrictions that must be met */ + core.List<Condition> conditions; + /** Human-readable description of the rule. */ + core.String description; + /** + * If one or more 'in' clauses are specified, the rule matches if the + * PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries. + */ + core.List<core.String> ins; + /** + * The config returned to callers of tech.iam.IAM.CheckPolicy for any entries + * that match the LOG action. + */ + core.List<LogConfig> logConfigs; + /** + * If one or more 'not_in' clauses are specified, the rule matches if the + * PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. + */ + core.List<core.String> notIns; + /** + * A permission is a string of form '..' (e.g., 'storage.buckets.list'). A + * value of '*' matches all permissions, and a verb part of '*' (e.g., + * 'storage.buckets.*') matches all verbs. + */ + core.List<core.String> permissions; + + Rule(); + + Rule.fromJson(core.Map _json) { + if (_json.containsKey("action")) { + action = _json["action"]; + } + if (_json.containsKey("conditions")) { + conditions = _json["conditions"].map((value) => new Condition.fromJson(value)).toList(); + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("ins")) { + ins = _json["ins"]; + } + if (_json.containsKey("logConfigs")) { + logConfigs = _json["logConfigs"].map((value) => new LogConfig.fromJson(value)).toList(); + } + if (_json.containsKey("notIns")) { + notIns = _json["notIns"]; + } + if (_json.containsKey("permissions")) { + permissions = _json["permissions"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (action != null) { + _json["action"] = action; + } + if (conditions != null) { + _json["conditions"] = conditions.map((value) => (value).toJson()).toList(); + } + if (description != null) { + _json["description"] = description; + } + if (ins != null) { + _json["ins"] = ins; + } + if (logConfigs != null) { + _json["logConfigs"] = logConfigs.map((value) => (value).toJson()).toList(); + } + if (notIns != null) { + _json["notIns"] = notIns; + } + if (permissions != null) { + _json["permissions"] = permissions; + } + return _json; + } +} + class TargetConfiguration { /** The configuration to use for this deployment. */ ConfigFile config; @@ -2581,6 +3260,54 @@ } } +class TestPermissionsRequest { + /** + * The set of permissions to check for the 'resource'. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. + */ + core.List<core.String> permissions; + + TestPermissionsRequest(); + + TestPermissionsRequest.fromJson(core.Map _json) { + if (_json.containsKey("permissions")) { + permissions = _json["permissions"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (permissions != null) { + _json["permissions"] = permissions; + } + return _json; + } +} + +class TestPermissionsResponse { + /** + * A subset of `TestPermissionsRequest.permissions` that the caller is + * allowed. + */ + core.List<core.String> permissions; + + TestPermissionsResponse(); + + TestPermissionsResponse.fromJson(core.Map _json) { + if (_json.containsKey("permissions")) { + permissions = _json["permissions"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (permissions != null) { + _json["permissions"] = permissions; + } + return _json; + } +} + /** A resource type supported by Deployment Manager. */ class Type { /**
diff --git a/generated/googleapis/lib/dfareporting/v2_2.dart b/generated/googleapis/lib/dfareporting/v2_2.dart deleted file mode 100644 index fe7ef7e..0000000 --- a/generated/googleapis/lib/dfareporting/v2_2.dart +++ /dev/null
@@ -1,26762 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.dfareporting.v2_2; - -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.2'; - -/** 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.2/"}) : - _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. - * - * 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. - * - * 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. - * - * 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. WEB and WEB_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" - * - "IN_STREAM_VIDEO" - * - "WEB" - * - "WEB_INTERSTITIAL" - * - * [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" - * - "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" - * - "VAST_REDIRECT" - * - "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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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_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. - * - * 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.2/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; - } else { - _url = '/upload/dfareporting/v2.2/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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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; - - /** - * Deletes an existing floodlight activity group. - * - * Request parameters: - * - * [profileId] - User profile ID associated with this request. - * - * [id] - Floodlight activity 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') + '/floodlightActivityGroups/' + 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 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. - * - * 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. - * - * 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" - * - * 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}) { - 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]; - } - - _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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. WEB and WEB_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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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. - * - * 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_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_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. */ - 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. */ - 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. - * WEB and WEB_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" - * - "IN_STREAM_VIDEO" - * - "WEB" - * - "WEB_INTERSTITIAL" - */ - 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. WEB and WEB_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. - * Possible string values are: - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP_INTERSTITIAL" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_IN_STREAM_VIDEO" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB_INTERSTITIAL" - */ - 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; - /** - * 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. - * WEB and WEB_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. - * Applicable to all creative types. - * - * Acceptable values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - "WEB" - * - "WEB_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" - * - "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" - * - "VAST_REDIRECT" - * - "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("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 (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 { - /** 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("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 (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; - /** - * Whether floodlight activities owned by this configuration are required to - * be SSL-compliant. - */ - core.bool sslRequired; - /** - * 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("sslRequired")) { - sslRequired = _json["sslRequired"]; - } - 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 (sslRequired != null) { - _json["sslRequired"] = sslRequired; - } - 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; - - 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"]; - } - } - - 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; - } - 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. WEB and WEB_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. This field is required on insertion. - * Possible string values are: - * - "APP" - * - "APP_INTERSTITIAL" - * - "IN_STREAM_VIDEO" - * - "WEB" - * - "WEB_INTERSTITIAL" - */ - 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; - - 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"]); - } - } - - 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(); - } - 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/dfareporting/v2_4.dart b/generated/googleapis/lib/dfareporting/v2_4.dart index ef85847..e4acf43 100644 --- a/generated/googleapis/lib/dfareporting/v2_4.dart +++ b/generated/googleapis/lib/dfareporting/v2_4.dart
@@ -423,7 +423,8 @@ } /** - * Retrieves a list of account user profiles, possibly filtered. + * Retrieves a list of account user profiles, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -668,7 +669,8 @@ } /** - * Retrieves the list of accounts, possibly filtered. + * Retrieves the list of accounts, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -945,7 +947,7 @@ } /** - * Retrieves a list of ads, possibly filtered. + * Retrieves a list of ads, possibly filtered. This method supports paging. * * Request parameters: * @@ -1390,7 +1392,8 @@ } /** - * Retrieves a list of advertiser groups, possibly filtered. + * Retrieves a list of advertiser groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -1662,7 +1665,8 @@ } /** - * Retrieves a list of advertisers, possibly filtered. + * Retrieves a list of advertisers, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -1983,6 +1987,7 @@ /** * Retrieves the list of creative IDs associated with the specified campaign. + * This method supports paging. * * Request parameters: * @@ -2154,7 +2159,8 @@ } /** - * Retrieves a list of campaigns, possibly filtered. + * Retrieves a list of campaigns, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -2421,7 +2427,7 @@ } /** - * Retrieves a list of change logs. + * Retrieves a list of change logs. This method supports paging. * * Request parameters: * @@ -2501,6 +2507,7 @@ * - "OBJECT_REMARKETING_LIST" * - "OBJECT_RICHMEDIA_CREATIVE" * - "OBJECT_SD_SITE" + * - "OBJECT_SEARCH_LIFT_STUDY" * - "OBJECT_SIZE" * - "OBJECT_SUBACCOUNT" * - "OBJECT_TARGETING_TEMPLATE" @@ -2879,7 +2886,8 @@ } /** - * Retrieves a list of content categories, possibly filtered. + * Retrieves a list of content categories, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3375,7 +3383,8 @@ } /** - * Retrieves a list of creative field values, possibly filtered. + * Retrieves a list of creative field values, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3702,7 +3711,8 @@ } /** - * Retrieves a list of creative fields, possibly filtered. + * Retrieves a list of creative fields, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3981,7 +3991,8 @@ } /** - * Retrieves a list of creative groups, possibly filtered. + * Retrieves a list of creative groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4265,7 +4276,8 @@ } /** - * Retrieves a list of creatives, possibly filtered. + * Retrieves a list of creatives, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -4611,7 +4623,8 @@ } /** - * Retrieves a list of directory site contacts, possibly filtered. + * Retrieves a list of directory site contacts, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4796,7 +4809,8 @@ } /** - * Retrieves a list of directory sites, possibly filtered. + * Retrieves a list of directory sites, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -5596,7 +5610,8 @@ } /** - * Retrieves a list of floodlight activities, possibly filtered. + * Retrieves a list of floodlight activities, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -5919,7 +5934,8 @@ } /** - * Retrieves a list of floodlight activity groups, possibly filtered. + * Retrieves a list of floodlight activity groups, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -6373,7 +6389,8 @@ } /** - * Retrieves a list of inventory items, possibly filtered. + * Retrieves a list of inventory items, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7159,7 +7176,8 @@ } /** - * Retrieves a list of order documents, possibly filtered. + * Retrieves a list of order documents, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7320,7 +7338,7 @@ } /** - * Retrieves a list of orders, possibly filtered. + * Retrieves a list of orders, possibly filtered. This method supports paging. * * Request parameters: * @@ -7507,7 +7525,8 @@ } /** - * Retrieves a list of placement groups, possibly filtered. + * Retrieves a list of placement groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7912,7 +7931,8 @@ } /** - * Retrieves a list of placement strategies, possibly filtered. + * Retrieves a list of placement strategies, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8241,7 +8261,8 @@ } /** - * Retrieves a list of placements, possibly filtered. + * Retrieves a list of placements, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -8753,7 +8774,8 @@ } /** - * Retrieves a list of projects, possibly filtered. + * Retrieves a list of projects, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -9131,7 +9153,8 @@ } /** - * Retrieves a list of remarketing lists, possibly filtered. + * Retrieves a list of remarketing lists, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -9981,7 +10004,7 @@ } /** - * Retrieves a list of sites, possibly filtered. + * Retrieves a list of sites, possibly filtered. This method supports paging. * * Request parameters: * @@ -10457,7 +10480,7 @@ } /** - * Gets a list of subaccounts, possibly filtered. + * Gets a list of subaccounts, possibly filtered. This method supports paging. * * Request parameters: * @@ -10685,7 +10708,8 @@ } /** - * Retrieves a list of targetable remarketing lists, possibly filtered. + * Retrieves a list of targetable remarketing lists, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -11186,7 +11210,8 @@ } /** - * Retrieves a list of user roles, possibly filtered. + * Retrieves a list of user roles, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -11396,6 +11421,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -11656,6 +11682,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -12230,7 +12257,7 @@ * Account ID of this ad. This is a read-only field that can be left blank. */ core.String accountId; - /** Whether this ad is active. */ + /** 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; @@ -12239,7 +12266,7 @@ * auto-generated field. */ DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. */ + /** 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
diff --git a/generated/googleapis/lib/dfareporting/v2_5.dart b/generated/googleapis/lib/dfareporting/v2_5.dart index faad78f..dec2cac 100644 --- a/generated/googleapis/lib/dfareporting/v2_5.dart +++ b/generated/googleapis/lib/dfareporting/v2_5.dart
@@ -428,7 +428,8 @@ } /** - * Retrieves a list of account user profiles, possibly filtered. + * Retrieves a list of account user profiles, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -673,7 +674,8 @@ } /** - * Retrieves the list of accounts, possibly filtered. + * Retrieves the list of accounts, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -950,7 +952,7 @@ } /** - * Retrieves a list of ads, possibly filtered. + * Retrieves a list of ads, possibly filtered. This method supports paging. * * Request parameters: * @@ -1395,7 +1397,8 @@ } /** - * Retrieves a list of advertiser groups, possibly filtered. + * Retrieves a list of advertiser groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -1667,7 +1670,8 @@ } /** - * Retrieves a list of advertisers, possibly filtered. + * Retrieves a list of advertisers, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -1988,6 +1992,7 @@ /** * Retrieves the list of creative IDs associated with the specified campaign. + * This method supports paging. * * Request parameters: * @@ -2159,7 +2164,8 @@ } /** - * Retrieves a list of campaigns, possibly filtered. + * Retrieves a list of campaigns, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -2426,7 +2432,7 @@ } /** - * Retrieves a list of change logs. + * Retrieves a list of change logs. This method supports paging. * * Request parameters: * @@ -2506,6 +2512,7 @@ * - "OBJECT_REMARKETING_LIST" * - "OBJECT_RICHMEDIA_CREATIVE" * - "OBJECT_SD_SITE" + * - "OBJECT_SEARCH_LIFT_STUDY" * - "OBJECT_SIZE" * - "OBJECT_SUBACCOUNT" * - "OBJECT_TARGETING_TEMPLATE" @@ -2884,7 +2891,8 @@ } /** - * Retrieves a list of content categories, possibly filtered. + * Retrieves a list of content categories, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3433,7 +3441,8 @@ } /** - * Retrieves a list of creative field values, possibly filtered. + * Retrieves a list of creative field values, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3760,7 +3769,8 @@ } /** - * Retrieves a list of creative fields, possibly filtered. + * Retrieves a list of creative fields, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4039,7 +4049,8 @@ } /** - * Retrieves a list of creative groups, possibly filtered. + * Retrieves a list of creative groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4323,7 +4334,8 @@ } /** - * Retrieves a list of creatives, possibly filtered. + * Retrieves a list of creatives, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -4669,7 +4681,8 @@ } /** - * Retrieves a list of directory site contacts, possibly filtered. + * Retrieves a list of directory site contacts, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4854,7 +4867,8 @@ } /** - * Retrieves a list of directory sites, possibly filtered. + * Retrieves a list of directory sites, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -5840,7 +5854,8 @@ } /** - * Retrieves a list of floodlight activities, possibly filtered. + * Retrieves a list of floodlight activities, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -6163,7 +6178,8 @@ } /** - * Retrieves a list of floodlight activity groups, possibly filtered. + * Retrieves a list of floodlight activity groups, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -6617,7 +6633,8 @@ } /** - * Retrieves a list of inventory items, possibly filtered. + * Retrieves a list of inventory items, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7403,7 +7420,8 @@ } /** - * Retrieves a list of order documents, possibly filtered. + * Retrieves a list of order documents, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7564,7 +7582,7 @@ } /** - * Retrieves a list of orders, possibly filtered. + * Retrieves a list of orders, possibly filtered. This method supports paging. * * Request parameters: * @@ -7751,7 +7769,8 @@ } /** - * Retrieves a list of placement groups, possibly filtered. + * Retrieves a list of placement groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8156,7 +8175,8 @@ } /** - * Retrieves a list of placement strategies, possibly filtered. + * Retrieves a list of placement strategies, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8485,7 +8505,8 @@ } /** - * Retrieves a list of placements, possibly filtered. + * Retrieves a list of placements, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -8997,7 +9018,8 @@ } /** - * Retrieves a list of projects, possibly filtered. + * Retrieves a list of projects, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -9375,7 +9397,8 @@ } /** - * Retrieves a list of remarketing lists, possibly filtered. + * Retrieves a list of remarketing lists, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -10225,7 +10248,7 @@ } /** - * Retrieves a list of sites, possibly filtered. + * Retrieves a list of sites, possibly filtered. This method supports paging. * * Request parameters: * @@ -10701,7 +10724,7 @@ } /** - * Gets a list of subaccounts, possibly filtered. + * Gets a list of subaccounts, possibly filtered. This method supports paging. * * Request parameters: * @@ -10929,7 +10952,8 @@ } /** - * Retrieves a list of targetable remarketing lists, possibly filtered. + * Retrieves a list of targetable remarketing lists, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -11430,7 +11454,8 @@ } /** - * Retrieves a list of user roles, possibly filtered. + * Retrieves a list of user roles, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -11640,6 +11665,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -11900,6 +11926,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -12474,7 +12501,7 @@ * Account ID of this ad. This is a read-only field that can be left blank. */ core.String accountId; - /** Whether this ad is active. */ + /** 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; @@ -12483,7 +12510,7 @@ * auto-generated field. */ DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. */ + /** 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 @@ -14726,7 +14753,10 @@ * "dfareporting#conversion". */ core.String kind; - /** Whether the user has Limit Ad Tracking set. */ + /** + * Whether Limit Ad Tracking is enabled. When set to true, the conversion will + * be used for reporting but not targeting. This will prevent remarketing. + */ core.bool limitAdTracking; /** * The mobile device ID. This field is mutually exclusive with encryptedUserId
diff --git a/generated/googleapis/lib/dfareporting/v2_6.dart b/generated/googleapis/lib/dfareporting/v2_6.dart index fdd0947..44a25b0 100644 --- a/generated/googleapis/lib/dfareporting/v2_6.dart +++ b/generated/googleapis/lib/dfareporting/v2_6.dart
@@ -430,7 +430,8 @@ } /** - * Retrieves a list of account user profiles, possibly filtered. + * Retrieves a list of account user profiles, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -675,7 +676,8 @@ } /** - * Retrieves the list of accounts, possibly filtered. + * Retrieves the list of accounts, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -952,7 +954,7 @@ } /** - * Retrieves a list of ads, possibly filtered. + * Retrieves a list of ads, possibly filtered. This method supports paging. * * Request parameters: * @@ -1397,7 +1399,8 @@ } /** - * Retrieves a list of advertiser groups, possibly filtered. + * Retrieves a list of advertiser groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -1669,7 +1672,8 @@ } /** - * Retrieves a list of advertisers, possibly filtered. + * Retrieves a list of advertisers, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -1990,6 +1994,7 @@ /** * Retrieves the list of creative IDs associated with the specified campaign. + * This method supports paging. * * Request parameters: * @@ -2161,7 +2166,8 @@ } /** - * Retrieves a list of campaigns, possibly filtered. + * Retrieves a list of campaigns, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -2428,7 +2434,7 @@ } /** - * Retrieves a list of change logs. + * Retrieves a list of change logs. This method supports paging. * * Request parameters: * @@ -2508,6 +2514,7 @@ * - "OBJECT_REMARKETING_LIST" * - "OBJECT_RICHMEDIA_CREATIVE" * - "OBJECT_SD_SITE" + * - "OBJECT_SEARCH_LIFT_STUDY" * - "OBJECT_SIZE" * - "OBJECT_SUBACCOUNT" * - "OBJECT_TARGETING_TEMPLATE" @@ -2886,7 +2893,8 @@ } /** - * Retrieves a list of content categories, possibly filtered. + * Retrieves a list of content categories, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3435,7 +3443,8 @@ } /** - * Retrieves a list of creative field values, possibly filtered. + * Retrieves a list of creative field values, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3762,7 +3771,8 @@ } /** - * Retrieves a list of creative fields, possibly filtered. + * Retrieves a list of creative fields, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4041,7 +4051,8 @@ } /** - * Retrieves a list of creative groups, possibly filtered. + * Retrieves a list of creative groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4325,7 +4336,8 @@ } /** - * Retrieves a list of creatives, possibly filtered. + * Retrieves a list of creatives, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -4671,7 +4683,8 @@ } /** - * Retrieves a list of directory site contacts, possibly filtered. + * Retrieves a list of directory site contacts, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4856,7 +4869,8 @@ } /** - * Retrieves a list of directory sites, possibly filtered. + * Retrieves a list of directory sites, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -5842,7 +5856,8 @@ } /** - * Retrieves a list of floodlight activities, possibly filtered. + * Retrieves a list of floodlight activities, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -6165,7 +6180,8 @@ } /** - * Retrieves a list of floodlight activity groups, possibly filtered. + * Retrieves a list of floodlight activity groups, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -6619,7 +6635,8 @@ } /** - * Retrieves a list of inventory items, possibly filtered. + * Retrieves a list of inventory items, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7453,7 +7470,8 @@ } /** - * Retrieves a list of order documents, possibly filtered. + * Retrieves a list of order documents, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7614,7 +7632,7 @@ } /** - * Retrieves a list of orders, possibly filtered. + * Retrieves a list of orders, possibly filtered. This method supports paging. * * Request parameters: * @@ -7801,7 +7819,8 @@ } /** - * Retrieves a list of placement groups, possibly filtered. + * Retrieves a list of placement groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8206,7 +8225,8 @@ } /** - * Retrieves a list of placement strategies, possibly filtered. + * Retrieves a list of placement strategies, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8535,7 +8555,8 @@ } /** - * Retrieves a list of placements, possibly filtered. + * Retrieves a list of placements, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -9047,7 +9068,8 @@ } /** - * Retrieves a list of projects, possibly filtered. + * Retrieves a list of projects, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -9425,7 +9447,8 @@ } /** - * Retrieves a list of remarketing lists, possibly filtered. + * Retrieves a list of remarketing lists, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -10275,7 +10298,7 @@ } /** - * Retrieves a list of sites, possibly filtered. + * Retrieves a list of sites, possibly filtered. This method supports paging. * * Request parameters: * @@ -10751,7 +10774,7 @@ } /** - * Gets a list of subaccounts, possibly filtered. + * Gets a list of subaccounts, possibly filtered. This method supports paging. * * Request parameters: * @@ -10979,7 +11002,8 @@ } /** - * Retrieves a list of targetable remarketing lists, possibly filtered. + * Retrieves a list of targetable remarketing lists, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -11165,7 +11189,8 @@ } /** - * Retrieves a list of targeting templates, optionally filtered. + * Retrieves a list of targeting templates, optionally filtered. This method + * supports paging. * * Request parameters: * @@ -11758,7 +11783,8 @@ } /** - * Retrieves a list of user roles, possibly filtered. + * Retrieves a list of user roles, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -11968,6 +11994,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -12225,6 +12252,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -12799,7 +12827,7 @@ * Account ID of this ad. This is a read-only field that can be left blank. */ core.String accountId; - /** Whether this ad is active. */ + /** 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; @@ -12808,7 +12836,7 @@ * auto-generated field. */ DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. */ + /** 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 @@ -15080,7 +15108,10 @@ * "dfareporting#conversion". */ core.String kind; - /** Whether the user has Limit Ad Tracking set. */ + /** + * Whether Limit Ad Tracking is enabled. When set to true, the conversion will + * be used for reporting but not targeting. This will prevent remarketing. + */ core.bool limitAdTracking; /** * The mobile device ID. This field is mutually exclusive with encryptedUserId
diff --git a/generated/googleapis/lib/dfareporting/v2_3.dart b/generated/googleapis/lib/dfareporting/v2_7.dart similarity index 91% rename from generated/googleapis/lib/dfareporting/v2_3.dart rename to generated/googleapis/lib/dfareporting/v2_7.dart index d95e97c..3be632b 100644 --- a/generated/googleapis/lib/dfareporting/v2_3.dart +++ b/generated/googleapis/lib/dfareporting/v2_7.dart
@@ -1,6 +1,6 @@ // This is a generated file (see the discoveryapis_generator project). -library googleapis.dfareporting.v2_3; +library googleapis.dfareporting.v2_7; import 'dart:core' as core; import 'dart:async' as async; @@ -14,10 +14,13 @@ ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, ByteRange; -const core.String USER_AGENT = 'dart-api-client dfareporting/v2.3'; +const core.String USER_AGENT = 'dart-api-client dfareporting/v2.7'; /** Manages your DoubleClick Campaign Manager ad campaigns and reports. */ class DfareportingApi { + /** Manage DoubleClick Digital Marketing conversions */ + static const DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"; + /** View and manage DoubleClick for Advertisers reports */ static const DfareportingScope = "https://www.googleapis.com/auth/dfareporting"; @@ -45,6 +48,7 @@ CitiesResourceApi get cities => new CitiesResourceApi(_requester); ConnectionTypesResourceApi get connectionTypes => new ConnectionTypesResourceApi(_requester); ContentCategoriesResourceApi get contentCategories => new ContentCategoriesResourceApi(_requester); + ConversionsResourceApi get conversions => new ConversionsResourceApi(_requester); CountriesResourceApi get countries => new CountriesResourceApi(_requester); CreativeAssetsResourceApi get creativeAssets => new CreativeAssetsResourceApi(_requester); CreativeFieldValuesResourceApi get creativeFieldValues => new CreativeFieldValuesResourceApi(_requester); @@ -54,6 +58,7 @@ DimensionValuesResourceApi get dimensionValues => new DimensionValuesResourceApi(_requester); DirectorySiteContactsResourceApi get directorySiteContacts => new DirectorySiteContactsResourceApi(_requester); DirectorySitesResourceApi get directorySites => new DirectorySitesResourceApi(_requester); + DynamicTargetingKeysResourceApi get dynamicTargetingKeys => new DynamicTargetingKeysResourceApi(_requester); EventTagsResourceApi get eventTags => new EventTagsResourceApi(_requester); FilesResourceApi get files => new FilesResourceApi(_requester); FloodlightActivitiesResourceApi get floodlightActivities => new FloodlightActivitiesResourceApi(_requester); @@ -61,6 +66,7 @@ FloodlightConfigurationsResourceApi get floodlightConfigurations => new FloodlightConfigurationsResourceApi(_requester); InventoryItemsResourceApi get inventoryItems => new InventoryItemsResourceApi(_requester); LandingPagesResourceApi get landingPages => new LandingPagesResourceApi(_requester); + LanguagesResourceApi get languages => new LanguagesResourceApi(_requester); MetrosResourceApi get metros => new MetrosResourceApi(_requester); MobileCarriersResourceApi get mobileCarriers => new MobileCarriersResourceApi(_requester); OperatingSystemVersionsResourceApi get operatingSystemVersions => new OperatingSystemVersionsResourceApi(_requester); @@ -81,12 +87,14 @@ SizesResourceApi get sizes => new SizesResourceApi(_requester); SubaccountsResourceApi get subaccounts => new SubaccountsResourceApi(_requester); TargetableRemarketingListsResourceApi get targetableRemarketingLists => new TargetableRemarketingListsResourceApi(_requester); + TargetingTemplatesResourceApi get targetingTemplates => new TargetingTemplatesResourceApi(_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); + VideoFormatsResourceApi get videoFormats => new VideoFormatsResourceApi(_requester); - DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.3/"}) : + DfareportingApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dfareporting/v2.7/"}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); } @@ -423,7 +431,8 @@ } /** - * Retrieves a list of account user profiles, possibly filtered. + * Retrieves a list of account user profiles, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -668,7 +677,8 @@ } /** - * Retrieves the list of accounts, possibly filtered. + * Retrieves the list of accounts, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -945,7 +955,7 @@ } /** - * Retrieves a list of ads, possibly filtered. + * Retrieves a list of ads, possibly filtered. This method supports paging. * * Request parameters: * @@ -962,50 +972,23 @@ * [campaignIds] - Select only ads with these campaign IDs. * * [compatibility] - Select default ads with the specified compatibility. - * Applicable when type is AD_SERVING_DEFAULT_AD. WEB and WEB_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. + * 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" - * - "WEB" - * - "WEB_INTERSTITIAL" * * [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. @@ -1058,7 +1041,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<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}) { + 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.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; @@ -1093,9 +1076,6 @@ if (creativeOptimizationConfigurationIds != null) { _queryParams["creativeOptimizationConfigurationIds"] = creativeOptimizationConfigurationIds; } - if (creativeType != null) { - _queryParams["creativeType"] = [creativeType]; - } if (dynamicClickTracker != null) { _queryParams["dynamicClickTracker"] = ["${dynamicClickTracker}"]; } @@ -1390,7 +1370,8 @@ } /** - * Retrieves a list of advertiser groups, possibly filtered. + * Retrieves a list of advertiser groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -1662,7 +1643,8 @@ } /** - * Retrieves a list of advertisers, possibly filtered. + * Retrieves a list of advertisers, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -1983,6 +1965,7 @@ /** * Retrieves the list of creative IDs associated with the specified campaign. + * This method supports paging. * * Request parameters: * @@ -2154,7 +2137,8 @@ } /** - * Retrieves a list of campaigns, possibly filtered. + * Retrieves a list of campaigns, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -2421,7 +2405,7 @@ } /** - * Retrieves a list of change logs. + * Retrieves a list of change logs. This method supports paging. * * Request parameters: * @@ -2501,6 +2485,7 @@ * - "OBJECT_REMARKETING_LIST" * - "OBJECT_RICHMEDIA_CREATIVE" * - "OBJECT_SD_SITE" + * - "OBJECT_SEARCH_LIFT_STUDY" * - "OBJECT_SIZE" * - "OBJECT_SUBACCOUNT" * - "OBJECT_TARGETING_TEMPLATE" @@ -2879,7 +2864,8 @@ } /** - * Retrieves a list of content categories, possibly filtered. + * Retrieves a list of content categories, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3056,6 +3042,59 @@ } +class ConversionsResourceApi { + final commons.ApiRequester _requester; + + ConversionsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Inserts conversions. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * Completes with a [ConversionsBatchInsertResponse]. + * + * 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<ConversionsBatchInsertResponse> batchinsert(ConversionsBatchInsertRequest 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') + '/conversions/batchinsert'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ConversionsBatchInsertResponse.fromJson(data)); + } + +} + + class CountriesResourceApi { final commons.ApiRequester _requester; @@ -3202,9 +3241,9 @@ 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.3/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; + _url = '/resumable/upload/dfareporting/v2.7/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; } else { - _url = '/upload/dfareporting/v2.3/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; + _url = '/upload/dfareporting/v2.7/userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/creativeAssets/' + commons.Escaper.ecapeVariable('$advertiserId') + '/creativeAssets'; } @@ -3375,7 +3414,8 @@ } /** - * Retrieves a list of creative field values, possibly filtered. + * Retrieves a list of creative field values, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3702,7 +3742,8 @@ } /** - * Retrieves a list of creative fields, possibly filtered. + * Retrieves a list of creative fields, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3981,7 +4022,8 @@ } /** - * Retrieves a list of creative groups, possibly filtered. + * Retrieves a list of creative groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4265,7 +4307,8 @@ } /** - * Retrieves a list of creatives, possibly filtered. + * Retrieves a list of creatives, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -4611,7 +4654,8 @@ } /** - * Retrieves a list of directory site contacts, possibly filtered. + * Retrieves a list of directory site contacts, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4796,7 +4840,8 @@ } /** - * Retrieves a list of directory sites, possibly filtered. + * Retrieves a list of directory sites, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4918,6 +4963,192 @@ } +class DynamicTargetingKeysResourceApi { + final commons.ApiRequester _requester; + + DynamicTargetingKeysResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes an existing dynamic targeting key. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * [objectId] - ID of the object of this dynamic targeting key. This is a + * required field. + * + * [name] - Name of this dynamic targeting key. This is a required field. Must + * be less than 256 characters long and cannot contain commas. All characters + * are converted to lowercase. + * + * [objectType] - Type of the object of this dynamic targeting key. This is a + * required field. + * Possible string values are: + * - "OBJECT_AD" + * - "OBJECT_ADVERTISER" + * - "OBJECT_CREATIVE" + * - "OBJECT_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 delete(core.String profileId, core.String objectId, core.String name, core.String objectType) { + 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 (objectId == null) { + throw new core.ArgumentError("Parameter objectId is required."); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + _queryParams["name"] = [name]; + if (objectType == null) { + throw new core.ArgumentError("Parameter objectType is required."); + } + _queryParams["objectType"] = [objectType]; + + _downloadOptions = null; + + _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys/' + commons.Escaper.ecapeVariable('$objectId'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => null); + } + + /** + * Inserts a new dynamic targeting key. Keys must be created at the advertiser + * level before being assigned to the advertiser's ads, creatives, or + * placements. There is a maximum of 1000 keys per advertiser, out of which a + * maximum of 20 keys can be assigned per ad, creative, or placement. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * Completes with a [DynamicTargetingKey]. + * + * 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<DynamicTargetingKey> insert(DynamicTargetingKey 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') + '/dynamicTargetingKeys'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DynamicTargetingKey.fromJson(data)); + } + + /** + * Retrieves a list of dynamic targeting keys. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * [advertiserId] - Select only dynamic targeting keys whose object has this + * advertiser ID. + * + * [names] - Select only dynamic targeting keys exactly matching these names. + * + * [objectId] - Select only dynamic targeting keys with this object ID. + * + * [objectType] - Select only dynamic targeting keys with this object type. + * Possible string values are: + * - "OBJECT_AD" + * - "OBJECT_ADVERTISER" + * - "OBJECT_CREATIVE" + * - "OBJECT_PLACEMENT" + * + * Completes with a [DynamicTargetingKeysListResponse]. + * + * 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<DynamicTargetingKeysListResponse> list(core.String profileId, {core.String advertiserId, core.List<core.String> names, core.String objectId, core.String objectType}) { + 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 (names != null) { + _queryParams["names"] = names; + } + if (objectId != null) { + _queryParams["objectId"] = [objectId]; + } + if (objectType != null) { + _queryParams["objectType"] = [objectType]; + } + + _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/dynamicTargetingKeys'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new DynamicTargetingKeysListResponse.fromJson(data)); + } + +} + + class EventTagsResourceApi { final commons.ApiRequester _requester; @@ -5596,7 +5827,8 @@ } /** - * Retrieves a list of floodlight activities, possibly filtered. + * Retrieves a list of floodlight activities, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -5919,7 +6151,8 @@ } /** - * Retrieves a list of floodlight activity groups, possibly filtered. + * Retrieves a list of floodlight activity groups, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -6373,7 +6606,8 @@ } /** - * Retrieves a list of inventory items, possibly filtered. + * Retrieves a list of inventory items, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -6404,6 +6638,11 @@ * - "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 @@ -6412,7 +6651,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<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}) { + 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; @@ -6450,6 +6689,9 @@ if (sortOrder != null) { _queryParams["sortOrder"] = [sortOrder]; } + if (type != null) { + _queryParams["type"] = [type]; + } _url = 'userprofiles/' + commons.Escaper.ecapeVariable('$profileId') + '/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/inventoryItems'; @@ -6771,6 +7013,54 @@ } +class LanguagesResourceApi { + final commons.ApiRequester _requester; + + LanguagesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Retrieves a list of languages. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * Completes with a [LanguagesListResponse]. + * + * 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<LanguagesListResponse> 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') + '/languages'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LanguagesListResponse.fromJson(data)); + } + +} + + class MetrosResourceApi { final commons.ApiRequester _requester; @@ -7151,7 +7441,8 @@ } /** - * Retrieves a list of order documents, possibly filtered. + * Retrieves a list of order documents, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7312,7 +7603,7 @@ } /** - * Retrieves a list of orders, possibly filtered. + * Retrieves a list of orders, possibly filtered. This method supports paging. * * Request parameters: * @@ -7499,7 +7790,8 @@ } /** - * Retrieves a list of placement groups, possibly filtered. + * Retrieves a list of placement groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7904,7 +8196,8 @@ } /** - * Retrieves a list of placement strategies, possibly filtered. + * Retrieves a list of placement strategies, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8233,7 +8526,8 @@ } /** - * Retrieves a list of placements, possibly filtered. + * Retrieves a list of placements, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -8247,11 +8541,11 @@ * [campaignIds] - Select only placements that belong to these campaigns. * * [compatibilities] - Select only placements that are associated with these - * compatibilities. WEB and WEB_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. + * 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. @@ -8745,7 +9039,8 @@ } /** - * Retrieves a list of projects, possibly filtered. + * Retrieves a list of projects, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -9123,7 +9418,8 @@ } /** - * Retrieves a list of remarketing lists, possibly filtered. + * Retrieves a list of remarketing lists, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -9973,7 +10269,7 @@ } /** - * Retrieves a list of sites, possibly filtered. + * Retrieves a list of sites, possibly filtered. This method supports paging. * * Request parameters: * @@ -10449,7 +10745,7 @@ } /** - * Gets a list of subaccounts, possibly filtered. + * Gets a list of subaccounts, possibly filtered. This method supports paging. * * Request parameters: * @@ -10677,7 +10973,8 @@ } /** - * Retrieves a list of targetable remarketing lists, possibly filtered. + * Retrieves a list of targetable remarketing lists, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -10768,6 +11065,285 @@ } +class TargetingTemplatesResourceApi { + final commons.ApiRequester _requester; + + TargetingTemplatesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Gets one targeting template by ID. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * [id] - Targeting template ID. + * + * Completes with a [TargetingTemplate]. + * + * 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<TargetingTemplate> 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') + '/targetingTemplates/' + 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 TargetingTemplate.fromJson(data)); + } + + /** + * Inserts a new targeting template. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * Completes with a [TargetingTemplate]. + * + * 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<TargetingTemplate> insert(TargetingTemplate 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') + '/targetingTemplates'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetingTemplate.fromJson(data)); + } + + /** + * Retrieves a list of targeting templates, optionally filtered. This method + * supports paging. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * [advertiserId] - Select only targeting templates with this advertiser ID. + * + * [ids] - Select only targeting templates 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, "template*2015" will return objects with names + * like "template June 2015", "template April 2015", or simply "template + * 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 "template" + * will match objects with name "my template", "template 2015", or simply + * "template". + * + * [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 [TargetingTemplatesListResponse]. + * + * 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<TargetingTemplatesListResponse> list(core.String profileId, {core.String advertiserId, 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 (advertiserId != null) { + _queryParams["advertiserId"] = [advertiserId]; + } + 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') + '/targetingTemplates'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetingTemplatesListResponse.fromJson(data)); + } + + /** + * Updates an existing targeting template. This method supports patch + * semantics. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * [id] - Targeting template ID. + * + * Completes with a [TargetingTemplate]. + * + * 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<TargetingTemplate> patch(TargetingTemplate 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') + '/targetingTemplates'; + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetingTemplate.fromJson(data)); + } + + /** + * Updates an existing targeting template. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * Completes with a [TargetingTemplate]. + * + * 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<TargetingTemplate> update(TargetingTemplate 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') + '/targetingTemplates'; + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TargetingTemplate.fromJson(data)); + } + +} + + class UserProfilesResourceApi { final commons.ApiRequester _requester; @@ -11178,7 +11754,8 @@ } /** - * Retrieves a list of user roles, possibly filtered. + * Retrieves a list of user roles, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -11366,6 +11943,98 @@ } +class VideoFormatsResourceApi { + final commons.ApiRequester _requester; + + VideoFormatsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Gets one video format by ID. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * [id] - Video format ID. + * + * Completes with a [VideoFormat]. + * + * 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<VideoFormat> get(core.String profileId, core.int 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') + '/videoFormats/' + 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 VideoFormat.fromJson(data)); + } + + /** + * Lists available video formats. + * + * Request parameters: + * + * [profileId] - User profile ID associated with this request. + * + * Completes with a [VideoFormatsListResponse]. + * + * 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<VideoFormatsListResponse> 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') + '/videoFormats'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new VideoFormatsListResponse.fromJson(data)); + } + +} + + /** Contains properties of a DCM account. */ class Account { @@ -11388,6 +12057,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -11398,11 +12068,6 @@ 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; /** @@ -11503,6 +12168,8 @@ core.bool nielsenOcrEnabled; /** Reporting configuration of this account. */ ReportsConfiguration reportsConfiguration; + /** Share Path to Conversion reports with Twitter. */ + core.bool shareReportsWithTwitter; /** * File size limit in kilobytes of Rich Media teaser creatives. Must be * between 1 and 10240. @@ -11530,9 +12197,6 @@ if (_json.containsKey("availablePermissionIds")) { availablePermissionIds = _json["availablePermissionIds"]; } - if (_json.containsKey("comscoreVceEnabled")) { - comscoreVceEnabled = _json["comscoreVceEnabled"]; - } if (_json.containsKey("countryId")) { countryId = _json["countryId"]; } @@ -11566,6 +12230,9 @@ if (_json.containsKey("reportsConfiguration")) { reportsConfiguration = new ReportsConfiguration.fromJson(_json["reportsConfiguration"]); } + if (_json.containsKey("shareReportsWithTwitter")) { + shareReportsWithTwitter = _json["shareReportsWithTwitter"]; + } if (_json.containsKey("teaserSizeLimit")) { teaserSizeLimit = _json["teaserSizeLimit"]; } @@ -11591,9 +12258,6 @@ if (availablePermissionIds != null) { _json["availablePermissionIds"] = availablePermissionIds; } - if (comscoreVceEnabled != null) { - _json["comscoreVceEnabled"] = comscoreVceEnabled; - } if (countryId != null) { _json["countryId"] = countryId; } @@ -11627,6 +12291,9 @@ if (reportsConfiguration != null) { _json["reportsConfiguration"] = (reportsConfiguration).toJson(); } + if (shareReportsWithTwitter != null) { + _json["shareReportsWithTwitter"] = shareReportsWithTwitter; + } if (teaserSizeLimit != null) { _json["teaserSizeLimit"] = teaserSizeLimit; } @@ -11648,6 +12315,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -12222,7 +12890,7 @@ * Account ID of this ad. This is a read-only field that can be left blank. */ core.String accountId; - /** Whether this ad is active. */ + /** 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; @@ -12231,7 +12899,7 @@ * auto-generated field. */ DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. */ + /** 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 @@ -12259,16 +12927,19 @@ core.String comments; /** * Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. - * WEB and WEB_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. + * 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" - * - "WEB" - * - "WEB_INTERSTITIAL" */ core.String compatibility; /** Information about the creation of this ad. This is a read-only field. */ @@ -12339,6 +13010,12 @@ */ core.String kind; /** + * Language 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. + */ + LanguageTargeting languageTargeting; + /** * Information about the most recent modification of this ad. This is a * read-only field. */ @@ -12378,6 +13055,14 @@ */ core.String subaccountId; /** + * Targeting template ID, used to apply preconfigured targeting information to + * this ad. This cannot be set while any of dayPartTargeting, geoTargeting, + * keyValueTargetingExpression, languageTargeting, remarketingListExpression, + * or technologyTargeting are set. Applicable when type is + * AD_SERVING_STANDARD_AD. + */ + core.String targetingTemplateId; + /** * 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. @@ -12475,6 +13160,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("languageTargeting")) { + languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]); + } if (_json.containsKey("lastModifiedInfo")) { lastModifiedInfo = new LastModifiedInfo.fromJson(_json["lastModifiedInfo"]); } @@ -12502,6 +13190,9 @@ if (_json.containsKey("subaccountId")) { subaccountId = _json["subaccountId"]; } + if (_json.containsKey("targetingTemplateId")) { + targetingTemplateId = _json["targetingTemplateId"]; + } if (_json.containsKey("technologyTargeting")) { technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); } @@ -12590,6 +13281,9 @@ if (kind != null) { _json["kind"] = kind; } + if (languageTargeting != null) { + _json["languageTargeting"] = (languageTargeting).toJson(); + } if (lastModifiedInfo != null) { _json["lastModifiedInfo"] = (lastModifiedInfo).toJson(); } @@ -12617,6 +13311,9 @@ if (subaccountId != null) { _json["subaccountId"] = subaccountId; } + if (targetingTemplateId != null) { + _json["targetingTemplateId"] = targetingTemplateId; + } if (technologyTargeting != null) { _json["technologyTargeting"] = (technologyTargeting).toJson(); } @@ -12632,17 +13329,17 @@ /** Comment for this ad slot. */ core.String comment; /** - * Ad slot compatibility. WEB and WEB_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. + * 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: - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_APP_INTERSTITIAL" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_IN_STREAM_VIDEO" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB" - * - "PLANNING_RENDERING_ENVIRONMENT_TYPE_WEB_INTERSTITIAL" + * - "APP" + * - "APP_INTERSTITIAL" + * - "DISPLAY" + * - "DISPLAY_INTERSTITIAL" + * - "IN_STREAM_VIDEO" */ core.String compatibility; /** Height of this ad slot. */ @@ -13343,8 +14040,6 @@ * 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. */ @@ -13443,9 +14138,6 @@ if (_json.containsKey("comment")) { comment = _json["comment"]; } - if (_json.containsKey("comscoreVceEnabled")) { - comscoreVceEnabled = _json["comscoreVceEnabled"]; - } if (_json.containsKey("createInfo")) { createInfo = new LastModifiedInfo.fromJson(_json["createInfo"]); } @@ -13531,9 +14223,6 @@ if (comment != null) { _json["comment"] = comment; } - if (comscoreVceEnabled != null) { - _json["comscoreVceEnabled"] = comscoreVceEnabled; - } if (createInfo != null) { _json["createInfo"] = (createInfo).toJson(); } @@ -14014,13 +14703,13 @@ 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 + * DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to DISPLAY + * 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 + * Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY + * creative assets, this field must match the value of the creative asset's * creativeAssetId.name field. */ core.String name; @@ -14186,6 +14875,58 @@ } } +/** Companion Settings */ +class CompanionSetting { + /** Whether companions are disabled for this placement. */ + core.bool companionsDisabled; + /** + * Whitelist of companion sizes to be served to this placement. Set this list + * to null or empty to serve all companion sizes. + */ + core.List<Size> enabledSizes; + /** Whether to serve only static images as companions. */ + core.bool imageOnly; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#companionSetting". + */ + core.String kind; + + CompanionSetting(); + + CompanionSetting.fromJson(core.Map _json) { + if (_json.containsKey("companionsDisabled")) { + companionsDisabled = _json["companionsDisabled"]; + } + if (_json.containsKey("enabledSizes")) { + enabledSizes = _json["enabledSizes"].map((value) => new Size.fromJson(value)).toList(); + } + if (_json.containsKey("imageOnly")) { + imageOnly = _json["imageOnly"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (companionsDisabled != null) { + _json["companionsDisabled"] = companionsDisabled; + } + if (enabledSizes != null) { + _json["enabledSizes"] = enabledSizes.map((value) => (value).toJson()).toList(); + } + if (imageOnly != null) { + _json["imageOnly"] = imageOnly; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + /** Represents a response to the queryCompatibleFields method. */ class CompatibleFields { /** @@ -14444,6 +15185,343 @@ } } +/** + * A Conversion represents when a user successfully performs a desired action + * after seeing an ad. + */ +class Conversion { + /** Whether the conversion was directed toward children. */ + core.bool childDirectedTreatment; + /** Custom floodlight variables. */ + core.List<CustomFloodlightVariable> customVariables; + /** + * The alphanumeric encrypted user ID. When set, encryptionInfo should also be + * specified. This field is mutually exclusive with + * encryptedUserIdCandidates[] and mobileDeviceId. This or + * encryptedUserIdCandidates[] or mobileDeviceId is a required field. + */ + core.String encryptedUserId; + /** + * A list of the alphanumeric encrypted user IDs. Any user ID with exposure + * prior to the conversion timestamp will be used in the inserted conversion. + * If no such user ID is found then the conversion will be rejected with + * NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be + * specified. This field should only be used when calling + * conversions.batchinsert. This field is mutually exclusive with + * encryptedUserId and mobileDeviceId. This or encryptedUserId or + * mobileDeviceId is a required field. + */ + core.List<core.String> encryptedUserIdCandidates; + /** Floodlight Activity ID of this conversion. This is a required field. */ + core.String floodlightActivityId; + /** + * Floodlight Configuration ID of this conversion. This is a required field. + */ + core.String floodlightConfigurationId; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#conversion". + */ + core.String kind; + /** + * Whether Limit Ad Tracking is enabled. When set to true, the conversion will + * be used for reporting but not targeting. This will prevent remarketing. + */ + core.bool limitAdTracking; + /** + * The mobile device ID. This field is mutually exclusive with encryptedUserId + * and encryptedUserIdCandidates[]. This or encryptedUserId or + * encryptedUserIdCandidates[] is a required field. + */ + core.String mobileDeviceId; + /** + * The ordinal of the conversion. Use this field to control how conversions of + * the same user and day are de-duplicated. This is a required field. + */ + core.String ordinal; + /** The quantity of the conversion. */ + core.String quantity; + /** + * The timestamp of conversion, in Unix epoch micros. This is a required + * field. + */ + core.String timestampMicros; + /** The value of the conversion. */ + core.double value; + + Conversion(); + + Conversion.fromJson(core.Map _json) { + if (_json.containsKey("childDirectedTreatment")) { + childDirectedTreatment = _json["childDirectedTreatment"]; + } + if (_json.containsKey("customVariables")) { + customVariables = _json["customVariables"].map((value) => new CustomFloodlightVariable.fromJson(value)).toList(); + } + if (_json.containsKey("encryptedUserId")) { + encryptedUserId = _json["encryptedUserId"]; + } + if (_json.containsKey("encryptedUserIdCandidates")) { + encryptedUserIdCandidates = _json["encryptedUserIdCandidates"]; + } + if (_json.containsKey("floodlightActivityId")) { + floodlightActivityId = _json["floodlightActivityId"]; + } + if (_json.containsKey("floodlightConfigurationId")) { + floodlightConfigurationId = _json["floodlightConfigurationId"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("limitAdTracking")) { + limitAdTracking = _json["limitAdTracking"]; + } + if (_json.containsKey("mobileDeviceId")) { + mobileDeviceId = _json["mobileDeviceId"]; + } + if (_json.containsKey("ordinal")) { + ordinal = _json["ordinal"]; + } + if (_json.containsKey("quantity")) { + quantity = _json["quantity"]; + } + if (_json.containsKey("timestampMicros")) { + timestampMicros = _json["timestampMicros"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (childDirectedTreatment != null) { + _json["childDirectedTreatment"] = childDirectedTreatment; + } + if (customVariables != null) { + _json["customVariables"] = customVariables.map((value) => (value).toJson()).toList(); + } + if (encryptedUserId != null) { + _json["encryptedUserId"] = encryptedUserId; + } + if (encryptedUserIdCandidates != null) { + _json["encryptedUserIdCandidates"] = encryptedUserIdCandidates; + } + if (floodlightActivityId != null) { + _json["floodlightActivityId"] = floodlightActivityId; + } + if (floodlightConfigurationId != null) { + _json["floodlightConfigurationId"] = floodlightConfigurationId; + } + if (kind != null) { + _json["kind"] = kind; + } + if (limitAdTracking != null) { + _json["limitAdTracking"] = limitAdTracking; + } + if (mobileDeviceId != null) { + _json["mobileDeviceId"] = mobileDeviceId; + } + if (ordinal != null) { + _json["ordinal"] = ordinal; + } + if (quantity != null) { + _json["quantity"] = quantity; + } + if (timestampMicros != null) { + _json["timestampMicros"] = timestampMicros; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + +/** + * The error code and description for a conversion that failed to insert or + * update. + */ +class ConversionError { + /** + * The error code. + * Possible string values are: + * - "INTERNAL" + * - "INVALID_ARGUMENT" + * - "NOT_FOUND" + * - "PERMISSION_DENIED" + */ + core.String code; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#conversionError". + */ + core.String kind; + /** A description of the error. */ + core.String message; + + ConversionError(); + + ConversionError.fromJson(core.Map _json) { + if (_json.containsKey("code")) { + code = _json["code"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("message")) { + message = _json["message"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (code != null) { + _json["code"] = code; + } + if (kind != null) { + _json["kind"] = kind; + } + if (message != null) { + _json["message"] = message; + } + return _json; + } +} + +/** + * The original conversion that was inserted or updated and whether there were + * any errors. + */ +class ConversionStatus { + /** The original conversion that was inserted or updated. */ + Conversion conversion; + /** A list of errors related to this conversion. */ + core.List<ConversionError> errors; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#conversionStatus". + */ + core.String kind; + + ConversionStatus(); + + ConversionStatus.fromJson(core.Map _json) { + if (_json.containsKey("conversion")) { + conversion = new Conversion.fromJson(_json["conversion"]); + } + if (_json.containsKey("errors")) { + errors = _json["errors"].map((value) => new ConversionError.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (conversion != null) { + _json["conversion"] = (conversion).toJson(); + } + if (errors != null) { + _json["errors"] = errors.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +/** Insert Conversions Request. */ +class ConversionsBatchInsertRequest { + /** The set of conversions to insert. */ + core.List<Conversion> conversions; + /** + * Describes how encryptedUserId or encryptedUserIdCandidates[] is encrypted. + * This is a required field if encryptedUserId or encryptedUserIdCandidates[] + * is used. + */ + EncryptionInfo encryptionInfo; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#conversionsBatchInsertRequest". + */ + core.String kind; + + ConversionsBatchInsertRequest(); + + ConversionsBatchInsertRequest.fromJson(core.Map _json) { + if (_json.containsKey("conversions")) { + conversions = _json["conversions"].map((value) => new Conversion.fromJson(value)).toList(); + } + if (_json.containsKey("encryptionInfo")) { + encryptionInfo = new EncryptionInfo.fromJson(_json["encryptionInfo"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (conversions != null) { + _json["conversions"] = conversions.map((value) => (value).toJson()).toList(); + } + if (encryptionInfo != null) { + _json["encryptionInfo"] = (encryptionInfo).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +/** Insert Conversions Response. */ +class ConversionsBatchInsertResponse { + /** Indicates that some or all conversions failed to insert. */ + core.bool hasFailures; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#conversionsBatchInsertResponse". + */ + core.String kind; + /** + * The status of each conversion's insertion status. The status is returned in + * the same order that conversions are inserted. + */ + core.List<ConversionStatus> status; + + ConversionsBatchInsertResponse(); + + ConversionsBatchInsertResponse.fromJson(core.Map _json) { + if (_json.containsKey("hasFailures")) { + hasFailures = _json["hasFailures"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("status")) { + status = _json["status"].map((value) => new ConversionStatus.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (hasFailures != null) { + _json["hasFailures"] = hasFailures; + } + if (kind != null) { + _json["kind"] = kind; + } + if (status != null) { + _json["status"] = status.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Country List Response */ class CountriesListResponse { /** Country collection. */ @@ -14602,8 +15680,8 @@ */ core.String authoringTool; /** - * Whether images are automatically advanced for enhanced image creatives. - * Applicable to the following creative types: ENHANCED_IMAGE. + * Whether images are automatically advanced for image gallery creatives. + * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY. */ core.bool autoAdvanceImages; /** @@ -14614,8 +15692,8 @@ 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. + * types: FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY when the + * primary asset type is not HTML_IMAGE. */ core.String backupImageClickThroughUrl; /** @@ -14626,34 +15704,35 @@ * 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. + * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type 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. + * Reporting label used for HTML5 banner backup image. Applicable to the + * following creative types: DISPLAY 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. + * FLASH_INPAGE and HTML5_BANNER. Applicable to DISPLAY 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. + * Click tags of the creative. For DISPLAY, 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 DISPLAY_IMAGE_GALLERY 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: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER. + * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ core.List<ClickTag> clickTags; /** @@ -14665,24 +15744,26 @@ /** * 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. + * Applicable to the following creative types: all VPAID and all + * INSTREAM_VIDEO with dynamicAssetSelection set to false. */ core.List<core.String> companionCreatives; /** * Compatibilities associated with this creative. This is a read-only field. - * WEB and WEB_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. - * Applicable to all creative types. + * 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" - * - "WEB" - * - "WEB_INTERSTITIAL" + * - "DISPLAY" + * - "DISPLAY_INTERSTITIAL" */ core.List<core.String> compatibility; /** @@ -14690,17 +15771,18 @@ * 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. + * Applicable to DISPLAY 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. + * List of counter events configured for the creative. For + * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated + * from clickTags. Applicable to the following creative types: + * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. */ core.List<CreativeCustomEvent> counterCustomEvents; + /** Required if dynamicAssetSelection is true. */ + CreativeAssetSelection creativeAssetSelection; /** * Assets associated with a creative. Applicable to all but the following * creative types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and @@ -14721,12 +15803,20 @@ */ 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 + * Set this to true to enable the use of rules to target individual assets in + * this creative. When set to true creativeAssetSelection must be set. This + * also controls asset-level companions. When this is true, companion + * creatives should be assigned to creative assets. Learn more. Applicable to + * INSTREAM_VIDEO creatives. + */ + core.bool dynamicAssetSelection; + /** + * List of exit events configured for the creative. For DISPLAY and + * DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated + * from clickTags, For DISPLAY, 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. + * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + * when the primary asset type is not HTML_IMAGE. */ core.List<CreativeCustomEvent> exitCustomEvents; /** @@ -14786,12 +15876,17 @@ */ core.String overrideCss; /** + * Amount of time to play the video before counting a view. Applicable to the + * following creative types: all INSTREAM_VIDEO. + */ + VideoOffset progressOffset; + /** * 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 + * DISPLAY_REDIRECT, INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and * INSTREAM_VIDEO_REDIRECT */ core.String redirectUrl; @@ -14814,22 +15909,27 @@ /** * 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. + * types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to DISPLAY + * 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 + * is a required field when applicable; however for IMAGE, FLASH_INPAGE + * creatives, and for DISPLAY 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. + * creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, + * IMAGE, and all RICH_MEDIA. */ Size size; /** + * Amount of time to play the video before the skip button appears. Applicable + * to the following creative types: all INSTREAM_VIDEO. + */ + VideoOffset skipOffset; + /** * Whether the user can choose to skip the creative. Applicable to the * following creative types: all INSTREAM_VIDEO and all VPAID. */ @@ -14884,11 +15984,11 @@ */ core.List<ThirdPartyTrackingUrl> thirdPartyUrls; /** - * List of timer events configured for the creative. For ENHANCED_IMAGE + * List of timer events configured for the creative. For DISPLAY_IMAGE_GALLERY * 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. + * Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, all + * RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset is + * not HTML_IMAGE. */ core.List<CreativeCustomEvent> timerCustomEvents; /** @@ -14897,14 +15997,19 @@ */ core.String totalFileSize; /** - * Type of this creative.This is a required field. Applicable to all creative + * Type of this creative. This is a required field. Applicable to all creative + * types. + * + * Note: FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing + * creatives. New creatives should use DISPLAY as a replacement for these * types. * Possible string values are: * - "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO" - * - "CUSTOM_INPAGE" - * - "CUSTOM_INTERSTITIAL" - * - "ENHANCED_BANNER" - * - "ENHANCED_IMAGE" + * - "CUSTOM_DISPLAY" + * - "CUSTOM_DISPLAY_INTERSTITIAL" + * - "DISPLAY" + * - "DISPLAY_IMAGE_GALLERY" + * - "DISPLAY_REDIRECT" * - "FLASH_INPAGE" * - "HTML5_BANNER" * - "IMAGE" @@ -14912,18 +16017,17 @@ * - "INSTREAM_VIDEO_REDIRECT" * - "INTERNAL_REDIRECT" * - "INTERSTITIAL_INTERNAL_REDIRECT" - * - "REDIRECT" - * - "RICH_MEDIA_EXPANDING" + * - "RICH_MEDIA_DISPLAY_BANNER" + * - "RICH_MEDIA_DISPLAY_EXPANDING" + * - "RICH_MEDIA_DISPLAY_INTERSTITIAL" + * - "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL" * - "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" + * - "VPAID_LINEAR_VIDEO" + * - "VPAID_NON_LINEAR_VIDEO" */ core.String type; /** @@ -15017,6 +16121,9 @@ if (_json.containsKey("counterCustomEvents")) { counterCustomEvents = _json["counterCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); } + if (_json.containsKey("creativeAssetSelection")) { + creativeAssetSelection = new CreativeAssetSelection.fromJson(_json["creativeAssetSelection"]); + } if (_json.containsKey("creativeAssets")) { creativeAssets = _json["creativeAssets"].map((value) => new CreativeAsset.fromJson(value)).toList(); } @@ -15026,6 +16133,9 @@ if (_json.containsKey("customKeyValues")) { customKeyValues = _json["customKeyValues"]; } + if (_json.containsKey("dynamicAssetSelection")) { + dynamicAssetSelection = _json["dynamicAssetSelection"]; + } if (_json.containsKey("exitCustomEvents")) { exitCustomEvents = _json["exitCustomEvents"].map((value) => new CreativeCustomEvent.fromJson(value)).toList(); } @@ -15059,6 +16169,9 @@ if (_json.containsKey("overrideCss")) { overrideCss = _json["overrideCss"]; } + if (_json.containsKey("progressOffset")) { + progressOffset = new VideoOffset.fromJson(_json["progressOffset"]); + } if (_json.containsKey("redirectUrl")) { redirectUrl = _json["redirectUrl"]; } @@ -15077,6 +16190,9 @@ if (_json.containsKey("size")) { size = new Size.fromJson(_json["size"]); } + if (_json.containsKey("skipOffset")) { + skipOffset = new VideoOffset.fromJson(_json["skipOffset"]); + } if (_json.containsKey("skippable")) { skippable = _json["skippable"]; } @@ -15195,6 +16311,9 @@ if (counterCustomEvents != null) { _json["counterCustomEvents"] = counterCustomEvents.map((value) => (value).toJson()).toList(); } + if (creativeAssetSelection != null) { + _json["creativeAssetSelection"] = (creativeAssetSelection).toJson(); + } if (creativeAssets != null) { _json["creativeAssets"] = creativeAssets.map((value) => (value).toJson()).toList(); } @@ -15204,6 +16323,9 @@ if (customKeyValues != null) { _json["customKeyValues"] = customKeyValues; } + if (dynamicAssetSelection != null) { + _json["dynamicAssetSelection"] = dynamicAssetSelection; + } if (exitCustomEvents != null) { _json["exitCustomEvents"] = exitCustomEvents.map((value) => (value).toJson()).toList(); } @@ -15237,6 +16359,9 @@ if (overrideCss != null) { _json["overrideCss"] = overrideCss; } + if (progressOffset != null) { + _json["progressOffset"] = (progressOffset).toJson(); + } if (redirectUrl != null) { _json["redirectUrl"] = redirectUrl; } @@ -15255,6 +16380,9 @@ if (size != null) { _json["size"] = (size).toJson(); } + if (skipOffset != null) { + _json["skipOffset"] = (skipOffset).toJson(); + } if (skippable != null) { _json["skippable"] = skippable; } @@ -15312,18 +16440,19 @@ /** * 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. + * to DISPLAY 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: + * VPAID_NON_LINEAR_VIDEO 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. + * the following creative types: + * RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL. * Possible string values are: * - "ALIGNMENT_BOTTOM" * - "ALIGNMENT_LEFT" @@ -15375,6 +16504,13 @@ */ Size collapsedSize; /** + * List of companion creatives assigned to an in-stream video creative asset. + * Acceptable values include IDs of existing flash and image creatives. + * Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set + * to true. + */ + core.List<core.String> companionCreativeIds; + /** * Custom start time in seconds for making the asset visible. Applicable to * the following creative types: all RICH_MEDIA. */ @@ -15384,7 +16520,8 @@ * 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. + * types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is + * not HTML_IMAGE. */ core.List<core.String> detectedFeatures; /** @@ -15405,7 +16542,7 @@ core.String displayType; /** * Duration in seconds for which an asset will be displayed. Applicable to the - * following creative types: INSTREAM_VIDEO and VPAID_LINEAR. + * following creative types: INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. */ core.int duration; /** @@ -15431,8 +16568,7 @@ /** * 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. + * Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. */ core.int flashVersion; /** @@ -15457,6 +16593,11 @@ */ core.String id; /** + * Dimension value for the ID of the asset. This is a read-only, + * auto-generated field. + */ + DimensionValue idDimensionValue; + /** * Detected MIME type for video asset. This is a read-only field. Applicable * to the following creative types: INSTREAM_VIDEO and all VPAID. */ @@ -15521,25 +16662,27 @@ * 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. + * PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, + * DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary + * assets), and all VPAID creatives. + * BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all + * VPAID creatives. Applicable to DISPLAY when the primary asset type is not + * HTML_IMAGE. * 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. + * to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. * TRANSCODED_VIDEO refers to videos transcoded by DCM from PARENT_VIDEO - * assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR creatives. + * assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO + * 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 + * For VPAID_LINEAR_VIDEO 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. + * removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. * Possible string values are: * - "ADDITIONAL_FLASH" * - "ADDITIONAL_IMAGE" @@ -15553,11 +16696,11 @@ 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, + * 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 + * DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all + * RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not * HTML_IMAGE. */ Size size; @@ -15596,8 +16739,8 @@ 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. + * types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, + * RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING. * Possible string values are: * - "OPAQUE" * - "TRANSPARENT" @@ -15652,6 +16795,9 @@ if (_json.containsKey("collapsedSize")) { collapsedSize = new Size.fromJson(_json["collapsedSize"]); } + if (_json.containsKey("companionCreativeIds")) { + companionCreativeIds = _json["companionCreativeIds"]; + } if (_json.containsKey("customStartTimeValue")) { customStartTimeValue = _json["customStartTimeValue"]; } @@ -15688,6 +16834,9 @@ if (_json.containsKey("id")) { id = _json["id"]; } + if (_json.containsKey("idDimensionValue")) { + idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); + } if (_json.containsKey("mimeType")) { mimeType = _json["mimeType"]; } @@ -15782,6 +16931,9 @@ if (collapsedSize != null) { _json["collapsedSize"] = (collapsedSize).toJson(); } + if (companionCreativeIds != null) { + _json["companionCreativeIds"] = companionCreativeIds; + } if (customStartTimeValue != null) { _json["customStartTimeValue"] = customStartTimeValue; } @@ -15818,6 +16970,9 @@ if (id != null) { _json["id"] = id; } + if (idDimensionValue != null) { + _json["idDimensionValue"] = (idDimensionValue).toJson(); + } if (mimeType != null) { _json["mimeType"] = mimeType; } @@ -15895,8 +17050,8 @@ */ 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. + * Type of asset to upload. This is a required field. FLASH and IMAGE are no + * longer supported for new uploads. All image assets should use HTML_IMAGE. * Possible string values are: * - "FLASH" * - "HTML" @@ -15949,6 +17104,13 @@ * read-only, auto-generated field. */ core.List<core.String> detectedFeatures; + /** Numeric ID of the asset. This is a read-only, auto-generated field. */ + core.String id; + /** + * Dimension value for the numeric ID of the asset. This is a read-only, + * auto-generated field. + */ + DimensionValue idDimensionValue; /** * Identifies what kind of resource this is. Value: the fixed string * "dfareporting#creativeAssetMetadata". @@ -15998,6 +17160,12 @@ if (_json.containsKey("detectedFeatures")) { detectedFeatures = _json["detectedFeatures"]; } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("idDimensionValue")) { + idDimensionValue = new DimensionValue.fromJson(_json["idDimensionValue"]); + } if (_json.containsKey("kind")) { kind = _json["kind"]; } @@ -16017,6 +17185,12 @@ if (detectedFeatures != null) { _json["detectedFeatures"] = detectedFeatures; } + if (id != null) { + _json["id"] = id; + } + if (idDimensionValue != null) { + _json["idDimensionValue"] = (idDimensionValue).toJson(); + } if (kind != null) { _json["kind"] = kind; } @@ -16027,6 +17201,47 @@ } } +/** + * Encapsulates the list of rules for asset selection and a default asset in + * case none of the rules match. Applicable to INSTREAM_VIDEO creatives. + */ +class CreativeAssetSelection { + /** + * A creativeAssets[].id. This should refer to one of the parent assets in + * this creative, and will be served if none of the rules match. This is a + * required field. + */ + core.String defaultAssetId; + /** + * Rules determine which asset will be served to a viewer. Rules will be + * evaluated in the order in which they are stored in this list. This list + * must contain at least one rule. Applicable to INSTREAM_VIDEO creatives. + */ + core.List<Rule> rules; + + CreativeAssetSelection(); + + CreativeAssetSelection.fromJson(core.Map _json) { + if (_json.containsKey("defaultAssetId")) { + defaultAssetId = _json["defaultAssetId"]; + } + if (_json.containsKey("rules")) { + rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (defaultAssetId != null) { + _json["defaultAssetId"] = defaultAssetId; + } + if (rules != null) { + _json["rules"] = rules.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Creative Assignment. */ class CreativeAssignment { /** @@ -17019,6 +18234,154 @@ } } +/** A custom floodlight variable. */ +class CustomFloodlightVariable { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#customFloodlightVariable". + */ + core.String kind; + /** + * The type of custom floodlight variable to supply a value for. These map to + * the "u[1-20]=" in the tags. + * 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 type; + /** + * The value of the custom floodlight variable. The length of string must not + * exceed 50 characters. + */ + core.String value; + + CustomFloodlightVariable(); + + CustomFloodlightVariable.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("value")) { + value = _json["value"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (type != null) { + _json["type"] = type; + } + if (value != null) { + _json["value"] = value; + } + return _json; + } +} + /** Represents a Custom Rich Media Events group. */ class CustomRichMediaEvents { /** @@ -18133,6 +19496,177 @@ } } +/** + * Contains properties of a dynamic targeting key. Dynamic targeting keys are + * unique, user-friendly labels, created at the advertiser level in DCM, that + * can be assigned to ads, creatives, and placements and used for targeting with + * DoubleClick Studio dynamic creatives. Use these labels instead of numeric DCM + * IDs (such as placement IDs) to save time and avoid errors in your dynamic + * feeds. + */ +class DynamicTargetingKey { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#dynamicTargetingKey". + */ + core.String kind; + /** + * Name of this dynamic targeting key. This is a required field. Must be less + * than 256 characters long and cannot contain commas. All characters are + * converted to lowercase. + */ + core.String name; + /** + * ID of the object of this dynamic targeting key. This is a required field. + */ + core.String objectId; + /** + * Type of the object of this dynamic targeting key. This is a required field. + * Possible string values are: + * - "OBJECT_AD" + * - "OBJECT_ADVERTISER" + * - "OBJECT_CREATIVE" + * - "OBJECT_PLACEMENT" + */ + core.String objectType; + + DynamicTargetingKey(); + + DynamicTargetingKey.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("objectId")) { + objectId = _json["objectId"]; + } + if (_json.containsKey("objectType")) { + objectType = _json["objectType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (name != null) { + _json["name"] = name; + } + if (objectId != null) { + _json["objectId"] = objectId; + } + if (objectType != null) { + _json["objectType"] = objectType; + } + return _json; + } +} + +/** Dynamic Targeting Key List Response */ +class DynamicTargetingKeysListResponse { + /** Dynamic targeting key collection. */ + core.List<DynamicTargetingKey> dynamicTargetingKeys; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#dynamicTargetingKeysListResponse". + */ + core.String kind; + + DynamicTargetingKeysListResponse(); + + DynamicTargetingKeysListResponse.fromJson(core.Map _json) { + if (_json.containsKey("dynamicTargetingKeys")) { + dynamicTargetingKeys = _json["dynamicTargetingKeys"].map((value) => new DynamicTargetingKey.fromJson(value)).toList(); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dynamicTargetingKeys != null) { + _json["dynamicTargetingKeys"] = dynamicTargetingKeys.map((value) => (value).toJson()).toList(); + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + +/** A description of how user IDs are encrypted. */ +class EncryptionInfo { + /** + * The encryption entity ID. This should match the encryption configuration + * for ad serving or Data Transfer. + */ + core.String encryptionEntityId; + /** + * The encryption entity type. This should match the encryption configuration + * for ad serving or Data Transfer. + * Possible string values are: + * - "ADWORDS_CUSTOMER" + * - "DBM_ADVERTISER" + * - "DBM_PARTNER" + * - "DCM_ACCOUNT" + * - "DCM_ADVERTISER" + * - "ENCRYPTION_ENTITY_TYPE_UNKNOWN" + */ + core.String encryptionEntityType; + /** + * Describes whether the encrypted cookie was received from ad serving (the %m + * macro) or from Data Transfer. + * Possible string values are: + * - "AD_SERVING" + * - "DATA_TRANSFER" + * - "ENCRYPTION_SCOPE_UNKNOWN" + */ + core.String encryptionSource; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#encryptionInfo". + */ + core.String kind; + + EncryptionInfo(); + + EncryptionInfo.fromJson(core.Map _json) { + if (_json.containsKey("encryptionEntityId")) { + encryptionEntityId = _json["encryptionEntityId"]; + } + if (_json.containsKey("encryptionEntityType")) { + encryptionEntityType = _json["encryptionEntityType"]; + } + if (_json.containsKey("encryptionSource")) { + encryptionSource = _json["encryptionSource"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (encryptionEntityId != null) { + _json["encryptionEntityId"] = encryptionEntityId; + } + if (encryptionEntityType != null) { + _json["encryptionEntityType"] = encryptionEntityType; + } + if (encryptionSource != null) { + _json["encryptionSource"] = encryptionSource; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + /** Contains properties of an event tag. */ class EventTag { /** @@ -19923,6 +21457,13 @@ 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(); @@ -19984,6 +21525,9 @@ if (_json.containsKey("subaccountId")) { subaccountId = _json["subaccountId"]; } + if (_json.containsKey("type")) { + type = _json["type"]; + } } core.Map toJson() { @@ -20045,6 +21589,9 @@ if (subaccountId != null) { _json["subaccountId"] = subaccountId; } + if (type != null) { + _json["type"] = type; + } return _json; } } @@ -20213,6 +21760,121 @@ } } +/** Contains information about a language that can be targeted by ads. */ +class Language { + /** + * Language ID of this language. This is the ID used for targeting and + * generating reports. + */ + core.String id; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#language". + */ + core.String kind; + /** + * Format of language code is an ISO 639 two-letter language code optionally + * followed by an underscore followed by an ISO 3166 code. Examples are "en" + * for English or "zh_CN" for Simplified Chinese. + */ + core.String languageCode; + /** Name of this language. */ + core.String name; + + Language(); + + Language.fromJson(core.Map _json) { + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("languageCode")) { + languageCode = _json["languageCode"]; + } + 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 (languageCode != null) { + _json["languageCode"] = languageCode; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** Language Targeting. */ +class LanguageTargeting { + /** + * Languages that this ad targets. For each language only languageId is + * required. The other fields are populated automatically when the ad is + * inserted or updated. + */ + core.List<Language> languages; + + LanguageTargeting(); + + LanguageTargeting.fromJson(core.Map _json) { + if (_json.containsKey("languages")) { + languages = _json["languages"].map((value) => new Language.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (languages != null) { + _json["languages"] = languages.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Language List Response */ +class LanguagesListResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#languagesListResponse". + */ + core.String kind; + /** Language collection. */ + core.List<Language> languages; + + LanguagesListResponse(); + + LanguagesListResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("languages")) { + languages = _json["languages"].map((value) => new Language.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (languages != null) { + _json["languages"] = languages.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Modification timestamp. */ class LastModifiedInfo { /** Timestamp of the last change in milliseconds since epoch. */ @@ -21670,17 +23332,19 @@ /** Comments for this placement. */ core.String comment; /** - * Placement compatibility. WEB and WEB_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. This field is required on insertion. + * 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" - * - "WEB" - * - "WEB_INTERSTITIAL" */ core.String compatibility; /** ID of the content category assigned to this placement. */ @@ -21821,6 +23485,33 @@ core.List<core.String> tagFormats; /** Tag settings for this placement. */ TagSetting tagSetting; + /** + * Whether Verification and ActiveView are disabled for in-stream video + * creatives for this placement. The same setting videoActiveViewOptOut exists + * on the 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; + /** + * A collection of settings which affect video creatives served through this + * placement. Applicable to placements with IN_STREAM_VIDEO compatibility. + */ + VideoSettings videoSettings; + /** + * VPAID adapter setting for this placement. Controls which VPAID format the + * measurement adapter will use for in-stream video creatives assigned to this + * placement. + * Possible string values are: + * - "BOTH" + * - "DEFAULT" + * - "FLASH" + * - "HTML5" + */ + core.String vpaidAdapterChoice; Placement(); @@ -21933,6 +23624,15 @@ if (_json.containsKey("tagSetting")) { tagSetting = new TagSetting.fromJson(_json["tagSetting"]); } + if (_json.containsKey("videoActiveViewOptOut")) { + videoActiveViewOptOut = _json["videoActiveViewOptOut"]; + } + if (_json.containsKey("videoSettings")) { + videoSettings = new VideoSettings.fromJson(_json["videoSettings"]); + } + if (_json.containsKey("vpaidAdapterChoice")) { + vpaidAdapterChoice = _json["vpaidAdapterChoice"]; + } } core.Map toJson() { @@ -22045,6 +23745,15 @@ if (tagSetting != null) { _json["tagSetting"] = (tagSetting).toJson(); } + if (videoActiveViewOptOut != null) { + _json["videoActiveViewOptOut"] = videoActiveViewOptOut; + } + if (videoSettings != null) { + _json["videoSettings"] = (videoSettings).toJson(); + } + if (vpaidAdapterChoice != null) { + _json["vpaidAdapterChoice"] = vpaidAdapterChoice; + } return _json; } } @@ -23247,6 +24956,8 @@ core.String targetCpaNanos; /** CPC that the advertiser is targeting. */ core.String targetCpcNanos; + /** vCPM from Active View that the advertiser is targeting. */ + core.String targetCpmActiveViewNanos; /** CPM that the advertiser is targeting. */ core.String targetCpmNanos; /** Number of impressions that the advertiser is targeting. */ @@ -23312,6 +25023,9 @@ if (_json.containsKey("targetCpcNanos")) { targetCpcNanos = _json["targetCpcNanos"]; } + if (_json.containsKey("targetCpmActiveViewNanos")) { + targetCpmActiveViewNanos = _json["targetCpmActiveViewNanos"]; + } if (_json.containsKey("targetCpmNanos")) { targetCpmNanos = _json["targetCpmNanos"]; } @@ -23379,6 +25093,9 @@ if (targetCpcNanos != null) { _json["targetCpcNanos"] = targetCpcNanos; } + if (targetCpmActiveViewNanos != null) { + _json["targetCpmActiveViewNanos"] = targetCpmActiveViewNanos; + } if (targetCpmNanos != null) { _json["targetCpmNanos"] = targetCpmNanos; } @@ -24983,39 +26700,90 @@ /** Rich Media Exit Override. */ class RichMediaExitOverride { /** - * Click-through URL to override the default exit URL. Applicable if the - * useCustomExitUrl field is set to true. + * Click-through URL of this rich media exit override. Applicable if the + * enabled field is set to true. */ - core.String customExitUrl; + ClickThroughUrl clickThroughUrl; + /** + * Whether to use the clickThroughUrl. If false, the creative-level exit will + * be used. + */ + core.bool enabled; /** 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("clickThroughUrl")) { + clickThroughUrl = new ClickThroughUrl.fromJson(_json["clickThroughUrl"]); + } + if (_json.containsKey("enabled")) { + enabled = _json["enabled"]; } 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 (clickThroughUrl != null) { + _json["clickThroughUrl"] = (clickThroughUrl).toJson(); + } + if (enabled != null) { + _json["enabled"] = enabled; } if (exitId != null) { _json["exitId"] = exitId; } - if (useCustomExitUrl != null) { - _json["useCustomExitUrl"] = useCustomExitUrl; + return _json; + } +} + +/** + * A rule associates an asset with a targeting template for asset-level + * targeting. Applicable to INSTREAM_VIDEO creatives. + */ +class Rule { + /** + * A creativeAssets[].id. This should refer to one of the parent assets in + * this creative. This is a required field. + */ + core.String assetId; + /** A user-friendly name for this rule. This is a required field. */ + core.String name; + /** + * A targeting template ID. The targeting from the targeting template will be + * used to determine whether this asset should be served. This is a required + * field. + */ + core.String targetingTemplateId; + + Rule(); + + Rule.fromJson(core.Map _json) { + if (_json.containsKey("assetId")) { + assetId = _json["assetId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("targetingTemplateId")) { + targetingTemplateId = _json["targetingTemplateId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (assetId != null) { + _json["assetId"] = assetId; + } + if (name != null) { + _json["name"] = name; + } + if (targetingTemplateId != null) { + _json["targetingTemplateId"] = targetingTemplateId; } return _json; } @@ -25252,16 +27020,28 @@ /** 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. + * Whether Verification and ActiveView for in-stream video creatives are + * disabled by default for new placements created under this site. This value + * will be used to populate the placement.videoActiveViewOptOut field, when no + * value is specified for the new placement. */ - core.bool videoActiveViewOptOut; + core.bool videoActiveViewOptOutTemplate; + /** + * Default VPAID adapter setting for new placements created under this site. + * This value will be used to populate the placements.vpaidAdapterChoice + * field, when no value is specified for the new placement. Controls which + * VPAID format the measurement adapter will use for in-stream video creatives + * assigned to the placement. The publisher's specifications will typically + * determine this setting. For VPAID creatives, the adapter format will match + * the VPAID format (HTML5 VPAID creatives use the HTML5 adapter, and Flash + * VPAID creatives use the Flash adapter). + * Possible string values are: + * - "BOTH" + * - "DEFAULT" + * - "FLASH" + * - "HTML5" + */ + core.String vpaidAdapterChoiceTemplate; SiteSettings(); @@ -25284,8 +27064,11 @@ if (_json.containsKey("tagSetting")) { tagSetting = new TagSetting.fromJson(_json["tagSetting"]); } - if (_json.containsKey("videoActiveViewOptOut")) { - videoActiveViewOptOut = _json["videoActiveViewOptOut"]; + if (_json.containsKey("videoActiveViewOptOutTemplate")) { + videoActiveViewOptOutTemplate = _json["videoActiveViewOptOutTemplate"]; + } + if (_json.containsKey("vpaidAdapterChoiceTemplate")) { + vpaidAdapterChoiceTemplate = _json["vpaidAdapterChoiceTemplate"]; } } @@ -25309,8 +27092,11 @@ if (tagSetting != null) { _json["tagSetting"] = (tagSetting).toJson(); } - if (videoActiveViewOptOut != null) { - _json["videoActiveViewOptOut"] = videoActiveViewOptOut; + if (videoActiveViewOptOutTemplate != null) { + _json["videoActiveViewOptOutTemplate"] = videoActiveViewOptOutTemplate; + } + if (vpaidAdapterChoiceTemplate != null) { + _json["vpaidAdapterChoiceTemplate"] = vpaidAdapterChoiceTemplate; } return _json; } @@ -25449,6 +27235,61 @@ } } +/** Skippable Settings */ +class SkippableSetting { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#skippableSetting". + */ + core.String kind; + /** + * Amount of time to play videos served to this placement before counting a + * view. Applicable when skippable is true. + */ + VideoOffset progressOffset; + /** + * Amount of time to play videos served to this placement before the skip + * button should appear. Applicable when skippable is true. + */ + VideoOffset skipOffset; + /** Whether the user can skip creatives served to this placement. */ + core.bool skippable; + + SkippableSetting(); + + SkippableSetting.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("progressOffset")) { + progressOffset = new VideoOffset.fromJson(_json["progressOffset"]); + } + if (_json.containsKey("skipOffset")) { + skipOffset = new VideoOffset.fromJson(_json["skipOffset"]); + } + if (_json.containsKey("skippable")) { + skippable = _json["skippable"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (progressOffset != null) { + _json["progressOffset"] = (progressOffset).toJson(); + } + if (skipOffset != null) { + _json["skipOffset"] = (skipOffset).toJson(); + } + if (skippable != null) { + _json["skippable"] = skippable; + } + return _json; + } +} + /** Represents a sorted dimension. */ class SortedDimension { /** @@ -25994,6 +27835,188 @@ } } +/** + * Contains properties of a targeting template. A targeting template + * encapsulates targeting information which can be reused across multiple ads. + */ +class TargetingTemplate { + /** + * Account ID of this targeting template. This field, if left unset, will be + * auto-generated on insert and is read-only after insert. + */ + core.String accountId; + /** + * Advertiser ID of this targeting template. This is a required field on + * insert and is read-only after insert. + */ + core.String advertiserId; + /** + * Dimension value for the ID of the advertiser. This is a read-only, + * auto-generated field. + */ + DimensionValue advertiserIdDimensionValue; + /** Time and day targeting criteria. */ + DayPartTargeting dayPartTargeting; + /** Geographical targeting criteria. */ + GeoTargeting geoTargeting; + /** + * ID of this targeting template. This is a read-only, auto-generated field. + */ + core.String id; + /** Key-value targeting criteria. */ + KeyValueTargetingExpression keyValueTargetingExpression; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#targetingTemplate". + */ + core.String kind; + /** Language targeting criteria. */ + LanguageTargeting languageTargeting; + /** Remarketing list targeting criteria. */ + ListTargetingExpression listTargetingExpression; + /** + * Name of this targeting template. This field is required. It must be less + * than 256 characters long and unique within an advertiser. + */ + core.String name; + /** + * Subaccount ID of this targeting template. This field, if left unset, will + * be auto-generated on insert and is read-only after insert. + */ + core.String subaccountId; + /** Technology platform targeting criteria. */ + TechnologyTargeting technologyTargeting; + + TargetingTemplate(); + + TargetingTemplate.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("dayPartTargeting")) { + dayPartTargeting = new DayPartTargeting.fromJson(_json["dayPartTargeting"]); + } + if (_json.containsKey("geoTargeting")) { + geoTargeting = new GeoTargeting.fromJson(_json["geoTargeting"]); + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("keyValueTargetingExpression")) { + keyValueTargetingExpression = new KeyValueTargetingExpression.fromJson(_json["keyValueTargetingExpression"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("languageTargeting")) { + languageTargeting = new LanguageTargeting.fromJson(_json["languageTargeting"]); + } + if (_json.containsKey("listTargetingExpression")) { + listTargetingExpression = new ListTargetingExpression.fromJson(_json["listTargetingExpression"]); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("subaccountId")) { + subaccountId = _json["subaccountId"]; + } + if (_json.containsKey("technologyTargeting")) { + technologyTargeting = new TechnologyTargeting.fromJson(_json["technologyTargeting"]); + } + } + + 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 (dayPartTargeting != null) { + _json["dayPartTargeting"] = (dayPartTargeting).toJson(); + } + if (geoTargeting != null) { + _json["geoTargeting"] = (geoTargeting).toJson(); + } + if (id != null) { + _json["id"] = id; + } + if (keyValueTargetingExpression != null) { + _json["keyValueTargetingExpression"] = (keyValueTargetingExpression).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (languageTargeting != null) { + _json["languageTargeting"] = (languageTargeting).toJson(); + } + if (listTargetingExpression != null) { + _json["listTargetingExpression"] = (listTargetingExpression).toJson(); + } + if (name != null) { + _json["name"] = name; + } + if (subaccountId != null) { + _json["subaccountId"] = subaccountId; + } + if (technologyTargeting != null) { + _json["technologyTargeting"] = (technologyTargeting).toJson(); + } + return _json; + } +} + +/** Targeting Template List Response */ +class TargetingTemplatesListResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#targetingTemplatesListResponse". + */ + core.String kind; + /** Pagination token to be used for the next list operation. */ + core.String nextPageToken; + /** Targeting template collection. */ + core.List<TargetingTemplate> targetingTemplates; + + TargetingTemplatesListResponse(); + + TargetingTemplatesListResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("targetingTemplates")) { + targetingTemplates = _json["targetingTemplates"].map((value) => new TargetingTemplate.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (targetingTemplates != null) { + _json["targetingTemplates"] = targetingTemplates.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + /** Technology Targeting. */ class TechnologyTargeting { /** @@ -26171,6 +28194,42 @@ } } +/** Transcode Settings */ +class TranscodeSetting { + /** + * Whitelist of video formats to be served to this placement. Set this list to + * null or empty to serve all video formats. + */ + core.List<core.int> enabledVideoFormats; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#transcodeSetting". + */ + core.String kind; + + TranscodeSetting(); + + TranscodeSetting.fromJson(core.Map _json) { + if (_json.containsKey("enabledVideoFormats")) { + enabledVideoFormats = _json["enabledVideoFormats"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (enabledVideoFormats != null) { + _json["enabledVideoFormats"] = enabledVideoFormats; + } + if (kind != null) { + _json["kind"] = kind; + } + return _json; + } +} + /** User Defined Variable configuration. */ class UserDefinedVariableConfiguration { /** @@ -26749,3 +28808,194 @@ return _json; } } + +/** Contains information about supported video formats. */ +class VideoFormat { + /** + * File type of the video format. + * Possible string values are: + * - "FLV" + * - "M3U8" + * - "MP4" + * - "THREEGPP" + * - "WEBM" + */ + core.String fileType; + /** ID of the video format. */ + core.int id; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#videoFormat". + */ + core.String kind; + /** The resolution of this video format. */ + Size resolution; + /** The target bit rate of this video format. */ + core.int targetBitRate; + + VideoFormat(); + + VideoFormat.fromJson(core.Map _json) { + if (_json.containsKey("fileType")) { + fileType = _json["fileType"]; + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("resolution")) { + resolution = new Size.fromJson(_json["resolution"]); + } + if (_json.containsKey("targetBitRate")) { + targetBitRate = _json["targetBitRate"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fileType != null) { + _json["fileType"] = fileType; + } + if (id != null) { + _json["id"] = id; + } + if (kind != null) { + _json["kind"] = kind; + } + if (resolution != null) { + _json["resolution"] = (resolution).toJson(); + } + if (targetBitRate != null) { + _json["targetBitRate"] = targetBitRate; + } + return _json; + } +} + +/** Video Format List Response */ +class VideoFormatsListResponse { + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#videoFormatsListResponse". + */ + core.String kind; + /** Video format collection. */ + core.List<VideoFormat> videoFormats; + + VideoFormatsListResponse(); + + VideoFormatsListResponse.fromJson(core.Map _json) { + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("videoFormats")) { + videoFormats = _json["videoFormats"].map((value) => new VideoFormat.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (kind != null) { + _json["kind"] = kind; + } + if (videoFormats != null) { + _json["videoFormats"] = videoFormats.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Video Offset */ +class VideoOffset { + /** + * Duration, as a percentage of video duration. Do not set when offsetSeconds + * is set. + */ + core.int offsetPercentage; + /** Duration, in seconds. Do not set when offsetPercentage is set. */ + core.int offsetSeconds; + + VideoOffset(); + + VideoOffset.fromJson(core.Map _json) { + if (_json.containsKey("offsetPercentage")) { + offsetPercentage = _json["offsetPercentage"]; + } + if (_json.containsKey("offsetSeconds")) { + offsetSeconds = _json["offsetSeconds"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (offsetPercentage != null) { + _json["offsetPercentage"] = offsetPercentage; + } + if (offsetSeconds != null) { + _json["offsetSeconds"] = offsetSeconds; + } + return _json; + } +} + +/** Video Settings */ +class VideoSettings { + /** + * Settings for the companion creatives of video creatives served to this + * placement. + */ + CompanionSetting companionSettings; + /** + * Identifies what kind of resource this is. Value: the fixed string + * "dfareporting#videoSettings". + */ + core.String kind; + /** + * Settings for the skippability of video creatives served to this placement. + * If this object is provided, the creative-level skippable settings will be + * overridden. + */ + SkippableSetting skippableSettings; + /** + * Settings for the transcodes of video creatives served to this placement. If + * this object is provided, the creative-level transcode settings will be + * overridden. + */ + TranscodeSetting transcodeSettings; + + VideoSettings(); + + VideoSettings.fromJson(core.Map _json) { + if (_json.containsKey("companionSettings")) { + companionSettings = new CompanionSetting.fromJson(_json["companionSettings"]); + } + if (_json.containsKey("kind")) { + kind = _json["kind"]; + } + if (_json.containsKey("skippableSettings")) { + skippableSettings = new SkippableSetting.fromJson(_json["skippableSettings"]); + } + if (_json.containsKey("transcodeSettings")) { + transcodeSettings = new TranscodeSetting.fromJson(_json["transcodeSettings"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (companionSettings != null) { + _json["companionSettings"] = (companionSettings).toJson(); + } + if (kind != null) { + _json["kind"] = kind; + } + if (skippableSettings != null) { + _json["skippableSettings"] = (skippableSettings).toJson(); + } + if (transcodeSettings != null) { + _json["transcodeSettings"] = (transcodeSettings).toJson(); + } + return _json; + } +}
diff --git a/generated/googleapis/lib/doubleclickbidmanager/v1.dart b/generated/googleapis/lib/doubleclickbidmanager/v1.dart index 7242de1..96b553b 100644 --- a/generated/googleapis/lib/doubleclickbidmanager/v1.dart +++ b/generated/googleapis/lib/doubleclickbidmanager/v1.dart
@@ -22,7 +22,7 @@ LineitemsResourceApi get lineitems => new LineitemsResourceApi(_requester); QueriesResourceApi get queries => new QueriesResourceApi(_requester); ReportsResourceApi get reports => new ReportsResourceApi(_requester); - RubiconResourceApi get rubicon => new RubiconResourceApi(_requester); + SdfResourceApi get sdf => new SdfResourceApi(_requester); DoubleclickbidmanagerApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "doubleclickbidmanager/v1/"}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); @@ -368,26 +368,28 @@ } -class RubiconResourceApi { +class SdfResourceApi { final commons.ApiRequester _requester; - RubiconResourceApi(commons.ApiRequester client) : + SdfResourceApi(commons.ApiRequester client) : _requester = client; /** - * Update proposal upon actions of Rubicon publisher. + * Retrieves entities in SDF format. * * [request] - The metadata request object. * * Request parameters: * + * Completes with a [DownloadResponse]. + * * 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 notifyproposalchange(NotifyProposalChangeRequest request) { + async.Future<DownloadResponse> download(DownloadRequest request) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -399,9 +401,7 @@ _body = convert.JSON.encode((request).toJson()); } - _downloadOptions = null; - - _url = 'rubicon/notifyproposalchange'; + _url = 'sdf/download'; var _response = _requester.request(_url, "POST", @@ -410,7 +410,7 @@ uploadOptions: _uploadOptions, uploadMedia: _uploadMedia, downloadOptions: _downloadOptions); - return _response.then((data) => null); + return _response.then((data) => new DownloadResponse.fromJson(data)); } } @@ -507,6 +507,115 @@ } } +/** + * Request to fetch stored insertion orders, line items, TrueView ad groups and + * ads. + */ +class DownloadRequest { + /** File types that will be returned. */ + core.List<core.String> fileTypes; + /** + * The IDs of the specified filter type. This is used to filter entities to + * fetch. At least one ID must be specified. Only one ID is allowed for the + * ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter + * types all IDs must be from the same Advertiser. + */ + core.List<core.String> filterIds; + /** + * Filter type used to filter line items to fetch. + * Possible string values are: + * - "ADVERTISER_ID" + * - "INSERTION_ORDER_ID" + * - "LINE_ITEM_ID" + */ + core.String filterType; + /** + * SDF Version (column names, types, order) in which the entities will be + * returned. Default to 3. + */ + core.String version; + + DownloadRequest(); + + DownloadRequest.fromJson(core.Map _json) { + if (_json.containsKey("fileTypes")) { + fileTypes = _json["fileTypes"]; + } + if (_json.containsKey("filterIds")) { + filterIds = _json["filterIds"]; + } + if (_json.containsKey("filterType")) { + filterType = _json["filterType"]; + } + if (_json.containsKey("version")) { + version = _json["version"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fileTypes != null) { + _json["fileTypes"] = fileTypes; + } + if (filterIds != null) { + _json["filterIds"] = filterIds; + } + if (filterType != null) { + _json["filterType"] = filterType; + } + if (version != null) { + _json["version"] = version; + } + return _json; + } +} + +/** Download response. */ +class DownloadResponse { + /** Retrieved ad groups in SDF format. */ + core.String adGroups; + /** Retrieved ads in SDF format. */ + core.String ads; + /** Retrieved insertion orders in SDF format. */ + core.String insertionOrders; + /** Retrieved line items in SDF format. */ + core.String lineItems; + + DownloadResponse(); + + DownloadResponse.fromJson(core.Map _json) { + if (_json.containsKey("adGroups")) { + adGroups = _json["adGroups"]; + } + if (_json.containsKey("ads")) { + ads = _json["ads"]; + } + if (_json.containsKey("insertionOrders")) { + insertionOrders = _json["insertionOrders"]; + } + if (_json.containsKey("lineItems")) { + lineItems = _json["lineItems"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (adGroups != null) { + _json["adGroups"] = adGroups; + } + if (ads != null) { + _json["ads"] = ads; + } + if (insertionOrders != null) { + _json["insertionOrders"] = insertionOrders; + } + if (lineItems != null) { + _json["lineItems"] = lineItems; + } + return _json; + } +} + /** Filter used to match traffic data in your report. */ class FilterPair { /** @@ -549,6 +658,7 @@ * - "FILTER_LINE_ITEM_DAILY_FREQUENCY" * - "FILTER_LINE_ITEM_LIFETIME_FREQUENCY" * - "FILTER_LINE_ITEM_TYPE" + * - "FILTER_MEDIA_PLAN" * - "FILTER_MOBILE_DEVICE_MAKE" * - "FILTER_MOBILE_DEVICE_MAKE_MODEL" * - "FILTER_MOBILE_DEVICE_TYPE" @@ -559,6 +669,7 @@ * - "FILTER_NIELSEN_COUNTRY_CODE" * - "FILTER_NIELSEN_DEVICE_ID" * - "FILTER_NIELSEN_GENDER" + * - "FILTER_NOT_SUPPORTED" * - "FILTER_ORDER_ID" * - "FILTER_OS" * - "FILTER_PAGE_CATEGORY" @@ -594,6 +705,8 @@ * - "FILTER_TRUEVIEW_IAR_REGION" * - "FILTER_TRUEVIEW_IAR_REMARKETING_LIST" * - "FILTER_TRUEVIEW_IAR_TIME_OF_DAY" + * - "FILTER_TRUEVIEW_IAR_YOUTUBE_CHANNEL" + * - "FILTER_TRUEVIEW_IAR_YOUTUBE_VIDEO" * - "FILTER_TRUEVIEW_IAR_ZIPCODE" * - "FILTER_TRUEVIEW_INTEREST" * - "FILTER_TRUEVIEW_KEYWORD" @@ -717,114 +830,6 @@ } } -/** Publisher comment from Rubicon. */ -class Note { - /** Note id. */ - core.String id; - /** Message from publisher. */ - core.String message; - /** Equals "publisher" for notification from Rubicon. */ - core.String source; - /** Time when the note was added, e.g. "2015-12-16T17:25:35.000-08:00". */ - core.String timestamp; - /** Publisher user name. */ - core.String username; - - Note(); - - Note.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - if (_json.containsKey("source")) { - source = _json["source"]; - } - if (_json.containsKey("timestamp")) { - timestamp = _json["timestamp"]; - } - if (_json.containsKey("username")) { - username = _json["username"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (message != null) { - _json["message"] = message; - } - if (source != null) { - _json["source"] = source; - } - if (timestamp != null) { - _json["timestamp"] = timestamp; - } - if (username != null) { - _json["username"] = username; - } - return _json; - } -} - -/** NotifyProposalChange request. */ -class NotifyProposalChangeRequest { - /** Action taken by publisher. One of: Accept, Decline, Append */ - core.String action; - /** URL to access proposal detail. */ - core.String href; - /** Below are contents of notification from Rubicon. Proposal id. */ - core.String id; - /** Notes from publisher */ - core.List<Note> notes; - /** Deal token, available when proposal is accepted by publisher. */ - core.String token; - - NotifyProposalChangeRequest(); - - NotifyProposalChangeRequest.fromJson(core.Map _json) { - if (_json.containsKey("action")) { - action = _json["action"]; - } - if (_json.containsKey("href")) { - href = _json["href"]; - } - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("notes")) { - notes = _json["notes"].map((value) => new Note.fromJson(value)).toList(); - } - if (_json.containsKey("token")) { - token = _json["token"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (action != null) { - _json["action"] = action; - } - if (href != null) { - _json["href"] = href; - } - if (id != null) { - _json["id"] = id; - } - if (notes != null) { - _json["notes"] = notes.map((value) => (value).toJson()).toList(); - } - if (token != null) { - _json["token"] = token; - } - return _json; - } -} - /** Parameters of a query or report. */ class Parameters { /** Filters used to match traffic data in your report. */
diff --git a/generated/googleapis/lib/drive/v2.dart b/generated/googleapis/lib/drive/v2.dart index f148373..02e4d64 100644 --- a/generated/googleapis/lib/drive/v2.dart +++ b/generated/googleapis/lib/drive/v2.dart
@@ -3413,6 +3413,12 @@ * * [fileId] - The ID of the file. * + * [maxResults] - Maximum number of revisions to return. + * + * [pageToken] - Page token for revisions. To get the next page of results, + * set this parameter to the value of "nextPageToken" from the previous + * response. + * * Completes with a [RevisionList]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -3421,7 +3427,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<RevisionList> list(core.String fileId) { + async.Future<RevisionList> list(core.String fileId, {core.int maxResults, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -3432,6 +3438,12 @@ if (fileId == null) { throw new core.ArgumentError("Parameter fileId is required."); } + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions'; @@ -5312,6 +5324,8 @@ class FileLabels { /** Deprecated. */ core.bool hidden; + /** Whether the file has been modified by this user. */ + core.bool modified; /** * Whether viewers and commenters are prevented from downloading, printing, * and copying this file. @@ -5334,6 +5348,9 @@ if (_json.containsKey("hidden")) { hidden = _json["hidden"]; } + if (_json.containsKey("modified")) { + modified = _json["modified"]; + } if (_json.containsKey("restricted")) { restricted = _json["restricted"]; } @@ -5353,6 +5370,9 @@ if (hidden != null) { _json["hidden"] = hidden; } + if (modified != null) { + _json["modified"] = modified; + } if (restricted != null) { _json["restricted"] = restricted; } @@ -6772,6 +6792,13 @@ core.List<Revision> items; /** This is always drive#revisionList. */ core.String kind; + /** + * The page token for the next page of revisions. This field will be absent if + * the end of the revisions list has been reached. If the token is rejected + * for any reason, it should be discarded and pagination should be restarted + * from the first page of results. + */ + core.String nextPageToken; /** A link back to this list. */ core.String selfLink; @@ -6787,6 +6814,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } if (_json.containsKey("selfLink")) { selfLink = _json["selfLink"]; } @@ -6803,6 +6833,9 @@ if (kind != null) { _json["kind"] = kind; } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } if (selfLink != null) { _json["selfLink"] = selfLink; }
diff --git a/generated/googleapis/lib/drive/v3.dart b/generated/googleapis/lib/drive/v3.dart index a11263a..1185d3c 100644 --- a/generated/googleapis/lib/drive/v3.dart +++ b/generated/googleapis/lib/drive/v3.dart
@@ -1892,6 +1892,12 @@ * * [fileId] - The ID of the file. * + * [pageSize] - The maximum number of revisions to return per page. + * + * [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 + * response. + * * Completes with a [RevisionList]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -1900,7 +1906,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<RevisionList> list(core.String fileId) { + async.Future<RevisionList> list(core.String fileId, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1911,6 +1917,12 @@ if (fileId == null) { throw new core.ArgumentError("Parameter fileId is required."); } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'files/' + commons.Escaper.ecapeVariable('$fileId') + '/revisions'; @@ -2042,7 +2054,10 @@ * A map of source MIME type to possible targets for all supported imports. */ core.Map<core.String, core.List<core.String>> importFormats; - /** This is always drive#about. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#about". + */ core.String kind; /** A map of maximum import sizes by MIME type, in bytes. */ core.Map<core.String, core.String> maxImportSizes; @@ -2129,7 +2144,10 @@ File file; /** The ID of the file which has changed. */ core.String fileId; - /** This is always drive#change. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#change". + */ core.String kind; /** * Whether the file has been removed from the view of the changes list, for @@ -2184,7 +2202,10 @@ class ChangeList { /** The page of changes. */ core.List<Change> changes; - /** This is always drive#changeList. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#changeList". + */ core.String kind; /** * The starting page token for future changes. This will be present only if @@ -2399,7 +2420,10 @@ core.String htmlContent; /** The ID of the comment. */ core.String id; - /** This is always drive#comment. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#comment". + */ core.String kind; /** * The last time the comment or any of its replies was modified (RFC 3339 @@ -2504,7 +2528,10 @@ class CommentList { /** The page of comments. */ core.List<Comment> comments; - /** This is always drive#commentList. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#commentList". + */ core.String kind; /** * The page token for the next page of comments. This will be absent if the @@ -3002,7 +3029,10 @@ FileImageMediaMetadata imageMediaMetadata; /** Whether the file was created or opened by the requesting app. */ core.bool isAppAuthorized; - /** This is always drive#file. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#file". + */ core.String kind; /** The last user to modify the file. */ User lastModifyingUser; @@ -3021,6 +3051,8 @@ * About resource. */ core.String mimeType; + /** Whether the file has been modified by this user. */ + core.bool modifiedByMe; /** The last time the file was modified by the user (RFC 3339 date-time). */ core.DateTime modifiedByMeTime; /** @@ -3190,6 +3222,9 @@ if (_json.containsKey("mimeType")) { mimeType = _json["mimeType"]; } + if (_json.containsKey("modifiedByMe")) { + modifiedByMe = _json["modifiedByMe"]; + } if (_json.containsKey("modifiedByMeTime")) { modifiedByMeTime = core.DateTime.parse(_json["modifiedByMeTime"]); } @@ -3326,6 +3361,9 @@ if (mimeType != null) { _json["mimeType"] = mimeType; } + if (modifiedByMe != null) { + _json["modifiedByMe"] = modifiedByMe; + } if (modifiedByMeTime != null) { _json["modifiedByMeTime"] = (modifiedByMeTime).toIso8601String(); } @@ -3412,7 +3450,10 @@ class FileList { /** The page of files. */ core.List<File> files; - /** This is always drive#fileList. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#fileList". + */ core.String kind; /** * The page token for the next page of files. This will be absent if the end @@ -3453,7 +3494,10 @@ class GeneratedIds { /** The IDs generated for the requesting user in the specified space. */ core.List<core.String> ids; - /** This is always drive#generatedIds */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#generatedIds". + */ core.String kind; /** The type of file that can be created with these IDs. */ core.String space; @@ -3512,7 +3556,10 @@ * is published in User resources as permissionId. */ core.String id; - /** This is always drive#permission. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#permission". + */ core.String kind; /** A link to the user's profile photo, if available. */ core.String photoLink; @@ -3606,7 +3653,10 @@ /** A list of permissions for a file. */ class PermissionList { - /** This is always drive#permissionList. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#permissionList". + */ core.String kind; /** The full list of permissions. */ core.List<Permission> permissions; @@ -3658,7 +3708,10 @@ core.String htmlContent; /** The ID of the reply. */ core.String id; - /** This is always drive#reply. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#reply". + */ core.String kind; /** The last time the reply was modified (RFC 3339 date-time). */ core.DateTime modifiedTime; @@ -3730,7 +3783,10 @@ /** A list of replies to a comment on a file. */ class ReplyList { - /** This is always drive#replyList. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#replyList". + */ core.String kind; /** * The page token for the next page of replies. This will be absent if the end @@ -3781,7 +3837,10 @@ * This field is only applicable to files with binary content in Drive. */ core.bool keepForever; - /** This is always drive#revision. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#revision". + */ core.String kind; /** The last user to modify this revision. */ User lastModifyingUser; @@ -3904,8 +3963,16 @@ /** A list of revisions of a file. */ class RevisionList { - /** This is always drive#revisionList. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#revisionList". + */ core.String kind; + /** + * The page token for the next page of revisions. This will be absent if the + * end of the revisions list has been reached. + */ + core.String nextPageToken; /** The full list of revisions. */ core.List<Revision> revisions; @@ -3915,6 +3982,9 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } if (_json.containsKey("revisions")) { revisions = _json["revisions"].map((value) => new Revision.fromJson(value)).toList(); } @@ -3925,6 +3995,9 @@ if (kind != null) { _json["kind"] = kind; } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } if (revisions != null) { _json["revisions"] = revisions.map((value) => (value).toJson()).toList(); } @@ -3933,7 +4006,10 @@ } class StartPageToken { - /** This is always drive#startPageToken. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#startPageToken". + */ core.String kind; /** The starting page token for listing changes. */ core.String startPageToken; @@ -3970,7 +4046,10 @@ * if the user has not made their email address visible to the requester. */ core.String emailAddress; - /** This is always drive#user. */ + /** + * Identifies what kind of resource this is. Value: the fixed string + * "drive#user". + */ core.String kind; /** Whether this user is the requesting user. */ core.bool me;
diff --git a/generated/googleapis/lib/firebasedynamiclinks/v1.dart b/generated/googleapis/lib/firebasedynamiclinks/v1.dart new file mode 100644 index 0000000..9d376bb --- /dev/null +++ b/generated/googleapis/lib/firebasedynamiclinks/v1.dart
@@ -0,0 +1,712 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.firebasedynamiclinks.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 firebasedynamiclinks/v1'; + +/** + * Firebase Dynamic Links API enables third party developers to programmatically + * create and manage Dynamic Links. + */ +class FirebasedynamiclinksApi { + /** View and administer all your Firebase data and settings */ + static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; + + + final commons.ApiRequester _requester; + + ShortLinksResourceApi get shortLinks => new ShortLinksResourceApi(_requester); + + FirebasedynamiclinksApi(http.Client client, {core.String rootUrl: "https://firebasedynamiclinks.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class ShortLinksResourceApi { + final commons.ApiRequester _requester; + + ShortLinksResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a short Dynamic Link given either a valid long Dynamic Link or + * details such as Dynamic Link domain, Android and iOS app information. + * The created short Dynamic Link will not expire. + * + * Repeated calls with the same long Dynamic Link or Dynamic Link information + * will produce the same short Dynamic Link. + * + * The Dynamic Link domain in the request must be owned by requester's + * Firebase project. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [CreateShortDynamicLinkResponse]. + * + * 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<CreateShortDynamicLinkResponse> create(CreateShortDynamicLinkRequest 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/shortLinks'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new CreateShortDynamicLinkResponse.fromJson(data)); + } + +} + + + +/** Tracking parameters supported by Dynamic Link. */ +class AnalyticsInfo { + /** Google Play Campaign Measurements. */ + GooglePlayAnalytics googlePlayAnalytics; + /** iTunes Connect App Analytics. */ + ITunesConnectAnalytics itunesConnectAnalytics; + + AnalyticsInfo(); + + AnalyticsInfo.fromJson(core.Map _json) { + if (_json.containsKey("googlePlayAnalytics")) { + googlePlayAnalytics = new GooglePlayAnalytics.fromJson(_json["googlePlayAnalytics"]); + } + if (_json.containsKey("itunesConnectAnalytics")) { + itunesConnectAnalytics = new ITunesConnectAnalytics.fromJson(_json["itunesConnectAnalytics"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (googlePlayAnalytics != null) { + _json["googlePlayAnalytics"] = (googlePlayAnalytics).toJson(); + } + if (itunesConnectAnalytics != null) { + _json["itunesConnectAnalytics"] = (itunesConnectAnalytics).toJson(); + } + return _json; + } +} + +/** Android related attributes to the Dynamic Link. */ +class AndroidInfo { + /** Link to open on Android if the app is not installed. */ + core.String androidFallbackLink; + /** If specified, this overrides the ‘link’ parameter on Android. */ + core.String androidLink; + /** + * Minimum version code for the Android app. If the installed app’s version + * code is lower, then the user is taken to the Play Store. + */ + core.String androidMinPackageVersionCode; + /** Android package name of the app. */ + core.String androidPackageName; + + AndroidInfo(); + + AndroidInfo.fromJson(core.Map _json) { + if (_json.containsKey("androidFallbackLink")) { + androidFallbackLink = _json["androidFallbackLink"]; + } + if (_json.containsKey("androidLink")) { + androidLink = _json["androidLink"]; + } + if (_json.containsKey("androidMinPackageVersionCode")) { + androidMinPackageVersionCode = _json["androidMinPackageVersionCode"]; + } + if (_json.containsKey("androidPackageName")) { + androidPackageName = _json["androidPackageName"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (androidFallbackLink != null) { + _json["androidFallbackLink"] = androidFallbackLink; + } + if (androidLink != null) { + _json["androidLink"] = androidLink; + } + if (androidMinPackageVersionCode != null) { + _json["androidMinPackageVersionCode"] = androidMinPackageVersionCode; + } + if (androidPackageName != null) { + _json["androidPackageName"] = androidPackageName; + } + return _json; + } +} + +/** Request to create a short Dynamic Link. */ +class CreateShortDynamicLinkRequest { + /** + * Information about the Dynamic Link to be shortened. + * [Learn + * more](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). + */ + DynamicLinkInfo dynamicLinkInfo; + /** + * Full long Dynamic Link URL with desired query parameters specified. + * For example, + * "https://sample.app.goo.gl/?link=http://www.google.com&apn=com.sample", + * [Learn + * more](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). + */ + core.String longDynamicLink; + /** Short Dynamic Link suffix. Optional. */ + Suffix suffix; + + CreateShortDynamicLinkRequest(); + + CreateShortDynamicLinkRequest.fromJson(core.Map _json) { + if (_json.containsKey("dynamicLinkInfo")) { + dynamicLinkInfo = new DynamicLinkInfo.fromJson(_json["dynamicLinkInfo"]); + } + if (_json.containsKey("longDynamicLink")) { + longDynamicLink = _json["longDynamicLink"]; + } + if (_json.containsKey("suffix")) { + suffix = new Suffix.fromJson(_json["suffix"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dynamicLinkInfo != null) { + _json["dynamicLinkInfo"] = (dynamicLinkInfo).toJson(); + } + if (longDynamicLink != null) { + _json["longDynamicLink"] = longDynamicLink; + } + if (suffix != null) { + _json["suffix"] = (suffix).toJson(); + } + return _json; + } +} + +/** Response to create a short Dynamic Link. */ +class CreateShortDynamicLinkResponse { + /** Preivew link to show the link flow chart. */ + core.String previewLink; + /** Short Dynamic Link value. e.g. https://abcd.app.goo.gl/wxyz */ + core.String shortLink; + /** Information about potential warnings on link creation. */ + core.List<DynamicLinkWarning> warning; + + CreateShortDynamicLinkResponse(); + + CreateShortDynamicLinkResponse.fromJson(core.Map _json) { + if (_json.containsKey("previewLink")) { + previewLink = _json["previewLink"]; + } + if (_json.containsKey("shortLink")) { + shortLink = _json["shortLink"]; + } + if (_json.containsKey("warning")) { + warning = _json["warning"].map((value) => new DynamicLinkWarning.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (previewLink != null) { + _json["previewLink"] = previewLink; + } + if (shortLink != null) { + _json["shortLink"] = shortLink; + } + if (warning != null) { + _json["warning"] = warning.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Information about a Dynamic Link. */ +class DynamicLinkInfo { + /** + * Parameters used for tracking. See all tracking parameters in the + * [documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). + */ + AnalyticsInfo analyticsInfo; + /** + * Android related information. See Android related parameters in the + * [documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). + */ + AndroidInfo androidInfo; + /** + * Dynamic Links domain that the project owns, e.g. abcd.app.goo.gl + * [Learn + * more](https://firebase.google.com/docs/dynamic-links/android#set-up-firebase-and-the-dynamic-links-sdk) + * on how to set up Dynamic Link domain associated with your Firebase project. + * + * Required. + */ + core.String dynamicLinkDomain; + /** + * iOS related information. See iOS related parameters in the + * [documentation](https://firebase.google.com/docs/dynamic-links/ios#create-a-dynamic-link-programmatically). + */ + 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 + * [documentation](https://firebase.google.com/docs/dynamic-links/android#create-a-dynamic-link-programmatically). + * + * Required. + */ + core.String link; + /** + * Parameters for social meta tag params. + * Used to set meta tag data for link previews on social sites. + */ + SocialMetaTagInfo socialMetaTagInfo; + + DynamicLinkInfo(); + + DynamicLinkInfo.fromJson(core.Map _json) { + if (_json.containsKey("analyticsInfo")) { + analyticsInfo = new AnalyticsInfo.fromJson(_json["analyticsInfo"]); + } + if (_json.containsKey("androidInfo")) { + androidInfo = new AndroidInfo.fromJson(_json["androidInfo"]); + } + if (_json.containsKey("dynamicLinkDomain")) { + dynamicLinkDomain = _json["dynamicLinkDomain"]; + } + if (_json.containsKey("iosInfo")) { + iosInfo = new IosInfo.fromJson(_json["iosInfo"]); + } + if (_json.containsKey("isAd")) { + isAd = _json["isAd"]; + } + if (_json.containsKey("link")) { + link = _json["link"]; + } + if (_json.containsKey("socialMetaTagInfo")) { + socialMetaTagInfo = new SocialMetaTagInfo.fromJson(_json["socialMetaTagInfo"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (analyticsInfo != null) { + _json["analyticsInfo"] = (analyticsInfo).toJson(); + } + if (androidInfo != null) { + _json["androidInfo"] = (androidInfo).toJson(); + } + if (dynamicLinkDomain != null) { + _json["dynamicLinkDomain"] = dynamicLinkDomain; + } + if (iosInfo != null) { + _json["iosInfo"] = (iosInfo).toJson(); + } + if (isAd != null) { + _json["isAd"] = isAd; + } + if (link != null) { + _json["link"] = link; + } + if (socialMetaTagInfo != null) { + _json["socialMetaTagInfo"] = (socialMetaTagInfo).toJson(); + } + return _json; + } +} + +/** Dynamic Links warning messages. */ +class DynamicLinkWarning { + /** + * The warning code. + * Possible string values are: + * - "CODE_UNSPECIFIED" : Unknown code. + * - "NOT_IN_PROJECT_ANDROID_PACKAGE_NAME" : The Android package does not + * match any in developer's DevConsole project. + * - "NOT_INTEGER_ANDROID_PACKAGE_MIN_VERSION" : The Android minimum version + * code has to be a valid integer. + * - "UNNECESSARY_ANDROID_PACKAGE_MIN_VERSION" : Android package min version + * param is not needed, e.g. when + * 'apn' is missing. + * - "NOT_URI_ANDROID_LINK" : Android link is not a valid URI. + * - "UNNECESSARY_ANDROID_LINK" : Android link param is not needed, e.g. when + * param 'al' and 'link' have + * the same value.. + * - "NOT_URI_ANDROID_FALLBACK_LINK" : Android fallback link is not a valid + * URI. + * - "BAD_URI_SCHEME_ANDROID_FALLBACK_LINK" : Android fallback link has an + * invalid (non http/https) URI scheme. + * - "NOT_IN_PROJECT_IOS_BUNDLE_ID" : The iOS bundle ID does not match any in + * developer's DevConsole project. + * - "NOT_IN_PROJECT_IPAD_BUNDLE_ID" : The iPad bundle ID does not match any + * in developer's DevConsole project. + * - "UNNECESSARY_IOS_URL_SCHEME" : iOS URL scheme is not needed, e.g. when + * 'ibi' are 'ipbi' are all missing. + * - "NOT_NUMERIC_IOS_APP_STORE_ID" : iOS app store ID format is incorrect, + * e.g. not numeric. + * - "UNNECESSARY_IOS_APP_STORE_ID" : iOS app store ID is not needed. + * - "NOT_URI_IOS_FALLBACK_LINK" : iOS fallback link is not a valid URI. + * - "BAD_URI_SCHEME_IOS_FALLBACK_LINK" : iOS fallback link has an invalid + * (non http/https) URI scheme. + * - "NOT_URI_IPAD_FALLBACK_LINK" : iPad fallback link is not a valid URI. + * - "BAD_URI_SCHEME_IPAD_FALLBACK_LINK" : iPad fallback link has an invalid + * (non http/https) URI scheme. + * - "BAD_DEBUG_PARAM" : Debug param format is incorrect. + * - "BAD_AD_PARAM" : isAd param format is incorrect. + * - "DEPRECATED_PARAM" : Indicates a certain param is deprecated. + * - "UNRECOGNIZED_PARAM" : Indicates certain paramater is not recognized. + * - "TOO_LONG_PARAM" : Indicates certain paramater is too long. + * - "NOT_URI_SOCIAL_IMAGE_LINK" : Social meta tag image link is not a valid + * URI. + * - "BAD_URI_SCHEME_SOCIAL_IMAGE_LINK" : Social meta tag image link has an + * invalid (non http/https) URI scheme. + * - "NOT_URI_SOCIAL_URL" + * - "BAD_URI_SCHEME_SOCIAL_URL" + * - "LINK_LENGTH_TOO_LONG" : Dynamic Link URL length is too long. + * - "LINK_WITH_FRAGMENTS" : Dynamic Link URL contains fragments. + * - "NOT_MATCHING_IOS_BUNDLE_ID_AND_STORE_ID" : The iOS bundle ID does not + * match with the given iOS store ID. + */ + core.String warningCode; + /** The warning message to help developers improve their requests. */ + core.String warningMessage; + + DynamicLinkWarning(); + + DynamicLinkWarning.fromJson(core.Map _json) { + if (_json.containsKey("warningCode")) { + warningCode = _json["warningCode"]; + } + if (_json.containsKey("warningMessage")) { + warningMessage = _json["warningMessage"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (warningCode != null) { + _json["warningCode"] = warningCode; + } + if (warningMessage != null) { + _json["warningMessage"] = warningMessage; + } + return _json; + } +} + +/** + * Parameters for Google Play Campaign Measurements. + * [Learn + * more](https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#campaign-params) + */ +class GooglePlayAnalytics { + /** + * [AdWords autotagging + * parameter](https://support.google.com/analytics/answer/1033981?hl=en); + * used to measure Google AdWords ads. This value is generated dynamically + * and should never be modified. + */ + core.String gclid; + /** + * Campaign name; used for keyword analysis to identify a specific product + * promotion or strategic campaign. + */ + core.String utmCampaign; + /** + * Campaign content; used for A/B testing and content-targeted ads to + * differentiate ads or links that point to the same URL. + */ + core.String utmContent; + /** + * Campaign medium; used to identify a medium such as email or cost-per-click. + */ + core.String utmMedium; + /** + * Campaign source; used to identify a search engine, newsletter, or other + * source. + */ + core.String utmSource; + /** Campaign term; used with paid search to supply the keywords for ads. */ + core.String utmTerm; + + GooglePlayAnalytics(); + + GooglePlayAnalytics.fromJson(core.Map _json) { + if (_json.containsKey("gclid")) { + gclid = _json["gclid"]; + } + if (_json.containsKey("utmCampaign")) { + utmCampaign = _json["utmCampaign"]; + } + if (_json.containsKey("utmContent")) { + utmContent = _json["utmContent"]; + } + if (_json.containsKey("utmMedium")) { + utmMedium = _json["utmMedium"]; + } + if (_json.containsKey("utmSource")) { + utmSource = _json["utmSource"]; + } + if (_json.containsKey("utmTerm")) { + utmTerm = _json["utmTerm"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (gclid != null) { + _json["gclid"] = gclid; + } + if (utmCampaign != null) { + _json["utmCampaign"] = utmCampaign; + } + if (utmContent != null) { + _json["utmContent"] = utmContent; + } + if (utmMedium != null) { + _json["utmMedium"] = utmMedium; + } + if (utmSource != null) { + _json["utmSource"] = utmSource; + } + if (utmTerm != null) { + _json["utmTerm"] = utmTerm; + } + return _json; + } +} + +/** Parameters for iTunes Connect App Analytics. */ +class ITunesConnectAnalytics { + /** Affiliate token used to create affiliate-coded links. */ + core.String at; + /** + * Campaign text that developers can optionally add to any link in order to + * track sales from a specific marketing campaign. + */ + core.String ct; + /** iTune media types, including music, podcasts, audiobooks and so on. */ + core.String mt; + /** + * Provider token that enables analytics for Dynamic Links from within iTunes + * Connect. + */ + core.String pt; + + ITunesConnectAnalytics(); + + ITunesConnectAnalytics.fromJson(core.Map _json) { + if (_json.containsKey("at")) { + at = _json["at"]; + } + if (_json.containsKey("ct")) { + ct = _json["ct"]; + } + if (_json.containsKey("mt")) { + mt = _json["mt"]; + } + if (_json.containsKey("pt")) { + pt = _json["pt"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (at != null) { + _json["at"] = at; + } + if (ct != null) { + _json["ct"] = ct; + } + if (mt != null) { + _json["mt"] = mt; + } + if (pt != null) { + _json["pt"] = pt; + } + return _json; + } +} + +/** iOS related attributes to the Dynamic Link.. */ +class IosInfo { + /** iOS App Store ID. */ + core.String iosAppStoreId; + /** iOS bundle ID of the app. */ + core.String iosBundleId; + /** + * Custom (destination) scheme to use for iOS. By default, we’ll use the + * bundle ID as the custom scheme. Developer can override this behavior using + * this param. + */ + core.String iosCustomScheme; + /** Link to open on iOS if the app is not installed. */ + core.String iosFallbackLink; + /** iPad bundle ID of the app. */ + core.String iosIpadBundleId; + /** If specified, this overrides the ios_fallback_link value on iPads. */ + core.String iosIpadFallbackLink; + + IosInfo(); + + IosInfo.fromJson(core.Map _json) { + if (_json.containsKey("iosAppStoreId")) { + iosAppStoreId = _json["iosAppStoreId"]; + } + if (_json.containsKey("iosBundleId")) { + iosBundleId = _json["iosBundleId"]; + } + if (_json.containsKey("iosCustomScheme")) { + iosCustomScheme = _json["iosCustomScheme"]; + } + if (_json.containsKey("iosFallbackLink")) { + iosFallbackLink = _json["iosFallbackLink"]; + } + if (_json.containsKey("iosIpadBundleId")) { + iosIpadBundleId = _json["iosIpadBundleId"]; + } + if (_json.containsKey("iosIpadFallbackLink")) { + iosIpadFallbackLink = _json["iosIpadFallbackLink"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (iosAppStoreId != null) { + _json["iosAppStoreId"] = iosAppStoreId; + } + if (iosBundleId != null) { + _json["iosBundleId"] = iosBundleId; + } + if (iosCustomScheme != null) { + _json["iosCustomScheme"] = iosCustomScheme; + } + if (iosFallbackLink != null) { + _json["iosFallbackLink"] = iosFallbackLink; + } + if (iosIpadBundleId != null) { + _json["iosIpadBundleId"] = iosIpadBundleId; + } + if (iosIpadFallbackLink != null) { + _json["iosIpadFallbackLink"] = iosIpadFallbackLink; + } + return _json; + } +} + +/** + * Parameters for social meta tag params. + * Used to set meta tag data for link previews on social sites. + */ +class SocialMetaTagInfo { + /** A short description of the link. Optional. */ + core.String socialDescription; + /** An image url string. Optional. */ + core.String socialImageLink; + /** Title to be displayed. Optional. */ + core.String socialTitle; + + SocialMetaTagInfo(); + + SocialMetaTagInfo.fromJson(core.Map _json) { + if (_json.containsKey("socialDescription")) { + socialDescription = _json["socialDescription"]; + } + if (_json.containsKey("socialImageLink")) { + socialImageLink = _json["socialImageLink"]; + } + if (_json.containsKey("socialTitle")) { + socialTitle = _json["socialTitle"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (socialDescription != null) { + _json["socialDescription"] = socialDescription; + } + if (socialImageLink != null) { + _json["socialImageLink"] = socialImageLink; + } + if (socialTitle != null) { + _json["socialTitle"] = socialTitle; + } + return _json; + } +} + +/** Short Dynamic Link suffix. */ +class Suffix { + /** + * Suffix option. + * Possible string values are: + * - "OPTION_UNSPECIFIED" : The suffix option is not specified, performs as + * NOT_GUESSABLE . + * - "UNGUESSABLE" : Short Dynamic Link suffix is a base62 [0-9A-Za-z] encoded + * string of + * a random generated 96 bit random number, which has a length of 17 chars. + * For example, "nlAR8U4SlKRZw1cb2". + * It prevents other people from guessing and crawling short Dynamic Links + * that contain personal identifiable information. + * - "SHORT" : Short Dynamic Link suffix is a base62 [0-9A-Za-z] string + * starting with a + * length of 4 chars. the length will increase when all the space is + * occupied. + */ + core.String option; + + Suffix(); + + Suffix.fromJson(core.Map _json) { + if (_json.containsKey("option")) { + option = _json["option"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (option != null) { + _json["option"] = option; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/firebaserules/v1.dart b/generated/googleapis/lib/firebaserules/v1.dart index f21af46..7453e95 100644 --- a/generated/googleapis/lib/firebaserules/v1.dart +++ b/generated/googleapis/lib/firebaserules/v1.dart
@@ -78,7 +78,7 @@ * [name] - Name of the project. * * Format: `projects/{project_id}` - * Value must have pattern "^projects/.*$". + * Value must have pattern "^projects/.+$". * * Completes with a [TestRulesetResponse]. * @@ -156,7 +156,7 @@ * [name] - Resource name for the project which owns this `Release`. * * Format: `projects/{project_id}` - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [Release]. * @@ -201,7 +201,7 @@ * [name] - Resource name for the `Release` to delete. * * Format: `projects/{project_id}/releases/{release_id}` - * Value must have pattern "^projects/[^/] * / releases/.*$". + * Value must have pattern "^projects/[^/]+/releases/.+$". * * Completes with a [Empty]. * @@ -244,7 +244,7 @@ * * * Format: `projects/{project_id}/releases/{release_id}` - * Value must have pattern "^projects/[^/] * / releases/.*$". + * Value must have pattern "^projects/[^/]+/releases/.+$". * * Completes with a [Release]. * @@ -287,7 +287,7 @@ * [name] - Resource name for the project. * * Format: `projects/{project_id}` - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. * Note: `page_size` is just a hint and the service may choose to load less @@ -399,7 +399,7 @@ * relationship between `Release` instances. * * Format: `projects/{project_id}/releases/{release_id}` - * Value must have pattern "^projects/[^/] * / releases/.*$". + * Value must have pattern "^projects/[^/]+/releases/.+$". * * Completes with a [Release]. * @@ -460,7 +460,7 @@ * [name] - Resource name for Project which owns this `Ruleset`. * * Format: `projects/{project_id}` - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [Ruleset]. * @@ -507,7 +507,7 @@ * [name] - Resource name for the ruleset to delete. * * Format: `projects/{project_id}/rulesets/{ruleset_id}` - * Value must have pattern "^projects/[^/] * / rulesets/[^/]*$". + * Value must have pattern "^projects/[^/]+/rulesets/[^/]+$". * * Completes with a [Empty]. * @@ -549,7 +549,7 @@ * [name] - Resource name for the ruleset to get. * * Format: `projects/{project_id}/rulesets/{ruleset_id}` - * Value must have pattern "^projects/[^/] * / rulesets/[^/]*$". + * Value must have pattern "^projects/[^/]+/rulesets/[^/]+$". * * Completes with a [Ruleset]. * @@ -595,7 +595,7 @@ * [name] - Resource name for the project. * * Format: `projects/{project_id}` - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Page size to load. Maximum of 100. Defaults to 10. * Note: `page_size` is just a hint and the service may choose to load less
diff --git a/generated/googleapis/lib/fitness/v1.dart b/generated/googleapis/lib/fitness/v1.dart index a0ad29d..1f2d007 100644 --- a/generated/googleapis/lib/fitness/v1.dart +++ b/generated/googleapis/lib/fitness/v1.dart
@@ -953,6 +953,7 @@ } } +/** Next id: 10 */ class AggregateRequest { /** * The specification of data to be aggregated. At least one aggregateBy spec @@ -1815,6 +1816,8 @@ * endTime frame. */ core.List<Session> deletedSession; + /** Flag to indicate server has more data to transfer */ + core.bool hasMoreData; /** * The continuation token, which is used to page through large result sets. * Provide this value in a subsequent request to return the next page of @@ -1833,6 +1836,9 @@ if (_json.containsKey("deletedSession")) { deletedSession = _json["deletedSession"].map((value) => new Session.fromJson(value)).toList(); } + if (_json.containsKey("hasMoreData")) { + hasMoreData = _json["hasMoreData"]; + } if (_json.containsKey("nextPageToken")) { nextPageToken = _json["nextPageToken"]; } @@ -1846,6 +1852,9 @@ if (deletedSession != null) { _json["deletedSession"] = deletedSession.map((value) => (value).toJson()).toList(); } + if (hasMoreData != null) { + _json["hasMoreData"] = hasMoreData; + } if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; }
diff --git a/generated/googleapis/lib/freebase/v1.dart b/generated/googleapis/lib/freebase/v1.dart deleted file mode 100644 index 6ccf220..0000000 --- a/generated/googleapis/lib/freebase/v1.dart +++ /dev/null
@@ -1,501 +0,0 @@ -// This is a generated file (see the discoveryapis_generator project). - -library googleapis.freebase.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, Media, UploadOptions, - ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, - ByteRange; - -const core.String USER_AGENT = 'dart-api-client freebase/v1'; - -/** Find Freebase entities using textual queries and other constraints. */ -class FreebaseApi { - - final commons.ApiRequester _requester; - - FreebaseApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "freebase/v1/"}) : - _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); - - /** - * Reconcile entities to Freebase open data. - * - * Request parameters: - * - * [confidence] - Required confidence for a candidate to match. Must be - * between .5 and 1.0 - * Value must be between "0.0" and "1.0". - * - * [kind] - Classifications of entity e.g. type, category, title. - * - * [lang] - Languages for names and values. First language is used for - * display. Default is 'en'. - * - * [limit] - Maximum number of candidates to return. - * Value must be between "0" and "25". - * - * [name] - Name of entity. - * - * [prop] - Property values for entity formatted as - * : - * - * Completes with a [ReconcileGet]. - * - * 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<ReconcileGet> reconcile({core.double confidence, core.List<core.String> kind, core.List<core.String> lang, core.int limit, core.String name, core.List<core.String> prop}) { - var _url = null; - var _queryParams = new core.Map(); - var _uploadMedia = null; - var _uploadOptions = null; - var _downloadOptions = commons.DownloadOptions.Metadata; - var _body = null; - - if (confidence != null) { - _queryParams["confidence"] = ["${confidence}"]; - } - if (kind != null) { - _queryParams["kind"] = kind; - } - if (lang != null) { - _queryParams["lang"] = lang; - } - if (limit != null) { - _queryParams["limit"] = ["${limit}"]; - } - if (name != null) { - _queryParams["name"] = [name]; - } - if (prop != null) { - _queryParams["prop"] = prop; - } - - _url = 'reconcile'; - - var _response = _requester.request(_url, - "GET", - body: _body, - queryParams: _queryParams, - uploadOptions: _uploadOptions, - uploadMedia: _uploadMedia, - downloadOptions: _downloadOptions); - return _response.then((data) => new ReconcileGet.fromJson(data)); - } - - /** - * Search Freebase open data. - * - * Request parameters: - * - * [asOfTime] - A mql as_of_time value to use with mql_output queries. - * - * [callback] - JS method name for JSONP callbacks. - * Value must have pattern "([A-Za-z0-9_$.]|\[|\])+". - * - * [cursor] - The cursor value to use for the next page of results. - * - * [domain] - Restrict to topics with this Freebase domain id. - * - * [encode] - The encoding of the response. You can use this parameter to - * enable html encoding. - * Possible string values are: - * - "html" : Encode certain characters in the response (such as tags and - * ambersands) using html encoding. - * - "off" : No encoding of the response. You should not print the results - * directly on an web page without html-escaping the content first. - * - * [exact] - Query on exact name and keys only. - * - * [filter] - A filter to apply to the query. - * Value must have pattern "^\(.*\)$". - * - * [format] - Structural format of the json response. - * Possible string values are: - * - "ac" : Compact format useful for autocomplete/suggest UIs. - * - "classic" : [DEPRECATED] Same format as was returned by api.freebase.com. - * - "entity" : Basic information about the entities. - * - "guids" : [DEPRECATED] Ordered list of a freebase guids. - * - "ids" : Ordered list of freebase ids. - * - "mids" : Ordered list of freebase mids. - * - * [help] - The keyword to request help on. - * Possible string values are: - * - "langs" : The language codes served by the service. - * - "mappings" : The property/path mappings supported by the filter and - * output request parameters. - * - "predicates" : The predicates and path-terminating properties supported - * by the filter and output request parameters. - * - * [indent] - Whether to indent the json results or not. - * - * [lang] - The code of the language to run the query with. Default is 'en'. - * - * [limit] - Maximum number of results to return. - * - * [mid] - A mid to use instead of a query. - * Value must have pattern "^/[mgtx]/[0-2][0-9bcdfghjklmnpqrstvwxyz_]{1,24}$". - * - * [mqlOutput] - The MQL query to run againist the results to extract more - * data. - * - * [output] - An output expression to request data from matches. - * Value must have pattern "^\(.*\)$". - * - * [prefixed] - Prefix match against names and aliases. - * - * [query] - Query term to search for. - * - * [scoring] - Relevance scoring algorithm to use. - * Possible string values are: - * - "entity" : Use freebase and popularity entity ranking. - * - "freebase" : Use freebase entity ranking. - * - "schema" : Use schema ranking for properties and types. - * - * [spell] - Request 'did you mean' suggestions - * Possible string values are: - * - "always" : Request spelling suggestions for any query at least three - * characters long. - * - "no_results" : Request spelling suggestions if no results were found. - * - "no_spelling" : Don't request spelling suggestions. - * - * [stemmed] - Query on stemmed names and aliases. May not be used with - * prefixed. - * - * [type] - Restrict to topics with this Freebase type id. - * - * [with_] - A rule to match against. - * - * [without] - A rule to not match against. - * - * [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 [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 search({core.String asOfTime, core.String callback, core.int cursor, core.List<core.String> domain, core.String encode, core.bool exact, core.List<core.String> filter, core.String format, core.String help, core.bool indent, core.List<core.String> lang, core.int limit, core.List<core.String> mid, core.String mqlOutput, core.String output, core.bool prefixed, core.String query, core.String scoring, core.String spell, core.bool stemmed, core.List<core.String> type, core.List<core.String> with_, core.List<core.String> without, 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 (asOfTime != null) { - _queryParams["as_of_time"] = [asOfTime]; - } - if (callback != null) { - _queryParams["callback"] = [callback]; - } - if (cursor != null) { - _queryParams["cursor"] = ["${cursor}"]; - } - if (domain != null) { - _queryParams["domain"] = domain; - } - if (encode != null) { - _queryParams["encode"] = [encode]; - } - if (exact != null) { - _queryParams["exact"] = ["${exact}"]; - } - if (filter != null) { - _queryParams["filter"] = filter; - } - if (format != null) { - _queryParams["format"] = [format]; - } - if (help != null) { - _queryParams["help"] = [help]; - } - if (indent != null) { - _queryParams["indent"] = ["${indent}"]; - } - if (lang != null) { - _queryParams["lang"] = lang; - } - if (limit != null) { - _queryParams["limit"] = ["${limit}"]; - } - if (mid != null) { - _queryParams["mid"] = mid; - } - if (mqlOutput != null) { - _queryParams["mql_output"] = [mqlOutput]; - } - if (output != null) { - _queryParams["output"] = [output]; - } - if (prefixed != null) { - _queryParams["prefixed"] = ["${prefixed}"]; - } - if (query != null) { - _queryParams["query"] = [query]; - } - if (scoring != null) { - _queryParams["scoring"] = [scoring]; - } - if (spell != null) { - _queryParams["spell"] = [spell]; - } - if (stemmed != null) { - _queryParams["stemmed"] = ["${stemmed}"]; - } - if (type != null) { - _queryParams["type"] = type; - } - if (with_ != null) { - _queryParams["with"] = with_; - } - if (without != null) { - _queryParams["without"] = without; - } - - _downloadOptions = downloadOptions; - - _url = 'search'; - - 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) => null); - } else { - return _response; - } - } - -} - - - -/** Type or profession the candidate is notable for. */ -class ReconcileCandidateNotable { - /** MID of notable category. */ - core.String id; - /** Name of notable category in specified language. */ - core.String name; - - ReconcileCandidateNotable(); - - ReconcileCandidateNotable.fromJson(core.Map _json) { - if (_json.containsKey("id")) { - id = _json["id"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (id != null) { - _json["id"] = id; - } - if (name != null) { - _json["name"] = name; - } - return _json; - } -} - -class ReconcileCandidate { - /** - * Percentage likelihood that this candidate is the unique matching entity. - * Value will be between 0.0 and 1.0 - */ - core.double confidence; - /** Language code that candidate and notable names are displayed in. */ - core.String lang; - /** Freebase MID of candidate entity. */ - core.String mid; - /** Freebase name of matching entity in specified language. */ - core.String name; - /** Type or profession the candidate is notable for. */ - ReconcileCandidateNotable notable; - - ReconcileCandidate(); - - ReconcileCandidate.fromJson(core.Map _json) { - if (_json.containsKey("confidence")) { - confidence = _json["confidence"]; - } - if (_json.containsKey("lang")) { - lang = _json["lang"]; - } - if (_json.containsKey("mid")) { - mid = _json["mid"]; - } - if (_json.containsKey("name")) { - name = _json["name"]; - } - if (_json.containsKey("notable")) { - notable = new ReconcileCandidateNotable.fromJson(_json["notable"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (confidence != null) { - _json["confidence"] = confidence; - } - if (lang != null) { - _json["lang"] = lang; - } - if (mid != null) { - _json["mid"] = mid; - } - if (name != null) { - _json["name"] = name; - } - if (notable != null) { - _json["notable"] = (notable).toJson(); - } - return _json; - } -} - -/** Server costs for reconciling. */ -class ReconcileGetCosts { - /** Total number of hits found. */ - core.int hits; - /** Total milliseconds spent. */ - core.int ms; - - ReconcileGetCosts(); - - ReconcileGetCosts.fromJson(core.Map _json) { - if (_json.containsKey("hits")) { - hits = _json["hits"]; - } - if (_json.containsKey("ms")) { - ms = _json["ms"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (hits != null) { - _json["hits"] = hits; - } - if (ms != null) { - _json["ms"] = ms; - } - return _json; - } -} - -class ReconcileGetWarning { - /** Location of warning in the request e.g. invalid predicate. */ - core.String location; - /** Warning message to display to the user. */ - core.String message; - /** Code for identifying classes of warnings. */ - core.String reason; - - ReconcileGetWarning(); - - ReconcileGetWarning.fromJson(core.Map _json) { - if (_json.containsKey("location")) { - location = _json["location"]; - } - if (_json.containsKey("message")) { - message = _json["message"]; - } - if (_json.containsKey("reason")) { - reason = _json["reason"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (location != null) { - _json["location"] = location; - } - if (message != null) { - _json["message"] = message; - } - if (reason != null) { - _json["reason"] = reason; - } - return _json; - } -} - -class ReconcileGet { - /** - * If filled, then the listed candidates are potential matches, and such - * should be evaluated by a more discerning algorithm or human. The matches - * are ordered by confidence. - */ - core.List<ReconcileCandidate> candidate; - /** Server costs for reconciling. */ - ReconcileGetCosts costs; - /** - * If filled, this entity is guaranteed to match at requested confidence - * probability (default 99%). - */ - ReconcileCandidate match; - /** - * If filled, then there were recoverable problems that affected the request. - * For example, some of the properties were ignored because they either are - * not valid Freebase predicates or are not indexed for reconciliation. The - * candidates returned should be considered valid results, with the caveat - * that sections of the request were ignored as specified by the warning text. - */ - core.List<ReconcileGetWarning> warning; - - ReconcileGet(); - - ReconcileGet.fromJson(core.Map _json) { - if (_json.containsKey("candidate")) { - candidate = _json["candidate"].map((value) => new ReconcileCandidate.fromJson(value)).toList(); - } - if (_json.containsKey("costs")) { - costs = new ReconcileGetCosts.fromJson(_json["costs"]); - } - if (_json.containsKey("match")) { - match = new ReconcileCandidate.fromJson(_json["match"]); - } - if (_json.containsKey("warning")) { - warning = _json["warning"].map((value) => new ReconcileGetWarning.fromJson(value)).toList(); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (candidate != null) { - _json["candidate"] = candidate.map((value) => (value).toJson()).toList(); - } - if (costs != null) { - _json["costs"] = (costs).toJson(); - } - if (match != null) { - _json["match"] = (match).toJson(); - } - if (warning != null) { - _json["warning"] = warning.map((value) => (value).toJson()).toList(); - } - return _json; - } -}
diff --git a/generated/googleapis/lib/genomics/v1.dart b/generated/googleapis/lib/genomics/v1.dart index 383cafc..a981d8a 100644 --- a/generated/googleapis/lib/genomics/v1.dart +++ b/generated/googleapis/lib/genomics/v1.dart
@@ -932,7 +932,7 @@ * * [resource] - REQUIRED: The resource for which policy is being specified. * Format is `datasets/`. - * Value must have pattern "^datasets/[^/]*$". + * Value must have pattern "^datasets/[^/]+$". * * Completes with a [Policy]. * @@ -976,7 +976,7 @@ * * Request parameters: * - * [projectId] - Required. The project to list datasets for. + * [projectId] - Required. The Google Cloud project ID to list datasets for. * * [pageSize] - The maximum number of results to return in a single page. If * unspecified, defaults to 50. The maximum value is 1024. @@ -1090,7 +1090,7 @@ * * [resource] - REQUIRED: The resource for which policy is being specified. * Format is `datasets/`. - * Value must have pattern "^datasets/[^/]*$". + * Value must have pattern "^datasets/[^/]+$". * * Completes with a [Policy]. * @@ -1139,7 +1139,7 @@ * * [resource] - REQUIRED: The resource for which policy is being specified. * Format is `datasets/`. - * Value must have pattern "^datasets/[^/]*$". + * Value must have pattern "^datasets/[^/]+$". * * Completes with a [TestIamPermissionsResponse]. * @@ -1245,7 +1245,7 @@ * Request parameters: * * [name] - The name of the operation resource to be cancelled. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Empty]. * @@ -1290,7 +1290,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Operation]. * @@ -1337,7 +1337,9 @@ * OperationMetadata.projectId. * createTime: The time this job was created, * in seconds from the [epoch](http://en.wikipedia.org/wiki/Unix_time). Can * use `>=` and/or `= 1432140000` * `projectId = my-project AND createTime >= - * 1432140000 AND createTime <= 1432150000 AND status = RUNNING` + * 1432140000 AND createTime <= 1432150000 AND status = RUNNING` * `projectId + * = my-project AND labels.color = *` * `projectId = my-project AND + * labels.color = red` * * [pageSize] - The maximum number of results to return. If unspecified, * defaults to 256. The maximum value is 2048. @@ -3515,7 +3517,7 @@ core.String id; /** The dataset name. */ core.String name; - /** The Google Developers Console project ID that this dataset belongs to. */ + /** The Google Cloud project ID that this dataset belongs to. */ core.String projectId; Dataset(); @@ -3722,8 +3724,8 @@ */ core.String exportUri; /** - * Required. The Google Developers Console project ID that owns this export. - * The caller must have WRITE access to this project. + * Required. The Google Cloud project ID that owns this export. The caller + * must have WRITE access to this project. */ core.String projectId; /** @@ -4323,7 +4325,7 @@ * 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; /** * An OperationMetadata object. This will always be returned with the @@ -4434,8 +4436,8 @@ /** Metadata describing an Operation. */ class OperationMetadata { /** - * Optionally provided by the caller when submitting the request that creates - * the operation. + * This field is deprecated. Use `labels` instead. Optionally provided by the + * caller when submitting the request that creates the operation. */ core.String clientId; /** The time at which the job was submitted to the Genomics service. */ @@ -4448,6 +4450,11 @@ * export. */ core.List<OperationEvent> events; + /** + * Optionally provided by the caller when submitting the request that creates + * the operation. + */ + core.Map<core.String, core.String> labels; /** The Google Cloud Project in which the job is scoped. */ core.String projectId; /** @@ -4484,6 +4491,9 @@ if (_json.containsKey("events")) { events = _json["events"].map((value) => new OperationEvent.fromJson(value)).toList(); } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("projectId")) { projectId = _json["projectId"]; } @@ -4512,6 +4522,9 @@ if (events != null) { _json["events"] = events.map((value) => (value).toJson()).toList(); } + if (labels != null) { + _json["labels"] = labels; + } if (projectId != null) { _json["projectId"] = projectId; } @@ -6566,8 +6579,8 @@ */ core.String end; /** - * The Google Developers Console project ID or number which will be billed for - * this access. The caller must have WRITE access to this project. Required. + * The Google Cloud project ID which will be billed for this access. The + * caller must have WRITE access to this project. Required. */ core.String projectId; /** The ID of the read group set from which to stream reads. */ @@ -6691,8 +6704,8 @@ */ core.String end; /** - * The Google Developers Console project ID or number which will be billed for - * this access. The caller must have WRITE access to this project. Required. + * The Google Cloud project ID which will be billed for this access. The + * caller must have WRITE access to this project. Required. */ core.String projectId; /** Required. Only return variants in this reference sequence. */
diff --git a/generated/googleapis/lib/gmail/v1.dart b/generated/googleapis/lib/gmail/v1.dart index a4884f4..c517a4a 100644 --- a/generated/googleapis/lib/gmail/v1.dart +++ b/generated/googleapis/lib/gmail/v1.dart
@@ -30,6 +30,12 @@ /** Manage mailbox labels */ static const GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"; + /** + * View your email message metadata such as labels and headers, but not the + * email body + */ + static const GmailMetadataScope = "https://www.googleapis.com/auth/gmail.metadata"; + /** View and modify but not delete your email */ static const GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"; @@ -4081,10 +4087,10 @@ */ core.String attachmentId; /** - * The body data of a MIME message part. May be empty for MIME container types - * that have no message body or when the body data is sent as a separate - * attachment. An attachment ID is present if the body data is contained in a - * separate attachment. + * The body data of a MIME message part as a base64url encoded string. May be + * empty for MIME container types that have no message body or when the body + * data is sent as a separate attachment. An attachment ID is present if the + * body data is contained in a separate attachment. */ core.String data; core.List<core.int> get dataAsBytes { @@ -4311,8 +4317,7 @@ /** * Settings associated with a send-as alias, which can be either the primary * login address associated with the account or a custom "from" address. Send-as - * aliases correspond to the "Send Mail As" feature in the web interface. See - * for more details. + * aliases correspond to the "Send Mail As" feature in the web interface. */ class SendAs { /** @@ -4361,9 +4366,8 @@ */ SmtpMsa smtpMsa; /** - * Whether Gmail should treat this address as an alias for the user's primary - * email address. See for more details. This setting only applies to custom - * "from" aliases. + * Whether Gmail should treat this address as an alias for the user's primary + * email address. This setting only applies to custom "from" aliases. */ core.bool treatAsAlias; /** @@ -4559,7 +4563,7 @@ /** * Vacation auto-reply settings for an account. These settings correspond to the - * "Vacation responder" feature in the web interface. See for more details. + * "Vacation responder" feature in the web interface. */ class VacationSettings { /** Flag that controls whether Gmail automatically replies to messages. */
diff --git a/generated/googleapis/lib/iam/v1.dart b/generated/googleapis/lib/iam/v1.dart index 2e29a75..d2b3f44 100644 --- a/generated/googleapis/lib/iam/v1.dart +++ b/generated/googleapis/lib/iam/v1.dart
@@ -27,6 +27,7 @@ final commons.ApiRequester _requester; ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); + RolesResourceApi get roles => new RolesResourceApi(_requester); IamApi(http.Client client, {core.String rootUrl: "https://iam.googleapis.com/", core.String servicePath: ""}) : _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); @@ -52,14 +53,14 @@ _requester = client; /** - * Creates a service account and returns it. + * Creates a ServiceAccount and returns it. * * [request] - The metadata request object. * * Request parameters: * * [name] - Required. The resource name of the project associated with the - * service accounts, such as "projects/123" + * service accounts, such as `projects/my-project-123`. * Value must have pattern "^projects/[^/]*$". * * Completes with a [ServiceAccount]. @@ -98,14 +99,14 @@ } /** - * Deletes a service acount. + * Deletes a ServiceAccount. * * Request parameters: * - * [name] - The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. + * [name] - The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for + * the project will infer the project from the account. The `account` value + * can be the `email` address or the `unique_id` of the service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [Empty]. @@ -141,14 +142,14 @@ } /** - * Gets a ServiceAccount + * Gets a ServiceAccount. * * Request parameters: * - * [name] - The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. + * [name] - The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for + * the project will infer the project from the account. The `account` value + * can be the `email` address or the `unique_id` of the service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [ServiceAccount]. @@ -184,15 +185,13 @@ } /** - * Returns the IAM access control policy for specified IAM resource. + * Returns the IAM access control policy for a ServiceAccount. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [Policy]. @@ -228,20 +227,20 @@ } /** - * Lists service accounts for a project. + * Lists ServiceAccounts for a project. * * Request parameters: * * [name] - Required. The resource name of the project associated with the - * service accounts, such as "projects/123" + * service accounts, such as `projects/my-project-123`. * Value must have pattern "^projects/[^/]*$". * * [pageSize] - Optional limit on the number of service accounts to include in * the response. Further accounts can subsequently be obtained by including - * the [ListServiceAccountsResponse.next_page_token] in a subsequent request. + * the ListServiceAccountsResponse.next_page_token in a subsequent request. * * [pageToken] - Optional pagination token returned in an earlier - * [ListServiceAccountsResponse.next_page_token]. + * ListServiceAccountsResponse.next_page_token. * * Completes with a [ListServiceAccountsResponse]. * @@ -282,17 +281,15 @@ } /** - * Sets the IAM access control policy for the specified IAM resource. + * Sets the IAM access control policy for a ServiceAccount. * * [request] - The metadata request object. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [Policy]. @@ -331,16 +328,16 @@ } /** - * Signs a blob using a service account. + * Signs a blob using a service account's system-managed private key. * * [request] - The metadata request object. * * Request parameters: * - * [name] - The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. + * [name] - The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for + * the project will infer the project from the account. The `account` value + * can be the `email` address or the `unique_id` of the service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [SignBlobResponse]. @@ -379,18 +376,16 @@ } /** - * Tests the specified permissions against the IAM access control policy for - * the specified IAM resource. + * Tests the specified permissions against the IAM access control policy for a + * ServiceAccount. * * [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, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [TestIamPermissionsResponse]. @@ -429,19 +424,19 @@ } /** - * Updates a service account. Currently, only the following fields are - * updatable: 'display_name' . The 'etag' is mandatory. + * Updates a ServiceAccount. Currently, only the following fields are + * updatable: `display_name` . The `etag` is mandatory. * * [request] - The metadata request object. * * Request parameters: * - * [name] - The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". In requests using '-' as a - * wildcard for the project, will infer the project from the account and the - * account value can be the email address or the unique_id of the service - * account. In responses the resource name will always be in the format - * "projects/{project}/serviceAccounts/{email}". + * [name] - The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Requests using `-` as a + * wildcard for the project will infer the project from the `account` and the + * `account` value can be the `email` address or the `unique_id` of the + * service account. In responses the resource name will always be in the + * format `projects/{project}/serviceAccounts/{email}`. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [ServiceAccount]. @@ -489,16 +484,16 @@ _requester = client; /** - * Creates a service account key and returns it. + * Creates a ServiceAccountKey and returns it. * * [request] - The metadata request object. * * Request parameters: * - * [name] - The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. + * [name] - The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for + * the project will infer the project from the account. The `account` value + * can be the `email` address or the `unique_id` of the service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * * Completes with a [ServiceAccountKey]. @@ -537,15 +532,15 @@ } /** - * Deletes a service account key. + * Deletes a ServiceAccountKey. * * Request parameters: * - * [name] - The resource name of the service account key in the format - * "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' as a - * wildcard for the project will infer the project from the account. The - * account value can be the email address or the unique_id of the service - * account. + * [name] - The resource name of the service account key in the following + * format: `projects/{project}/serviceAccounts/{account}/keys/{key}`. Using + * `-` as a wildcard for the project will infer the project from the account. + * The `account` value can be the `email` address or the `unique_id` of the + * service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/] * / * keys/[^/]*$". * @@ -586,14 +581,21 @@ * * Request parameters: * - * [name] - The resource name of the service account key in the format - * "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' as a - * wildcard for the project will infer the project from the account. The - * account value can be the email address or the unique_id of the service - * account. + * [name] - The resource name of the service account key in the following + * format: `projects/{project}/serviceAccounts/{account}/keys/{key}`. Using + * `-` as a wildcard for the project will infer the project from the account. + * The `account` value can be the `email` address or the `unique_id` of the + * service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/] * / * keys/[^/]*$". * + * [publicKeyType] - The output format of the public key requested. X509_PEM + * is the default output format. + * Possible string values are: + * - "TYPE_NONE" : A TYPE_NONE. + * - "TYPE_X509_PEM_FILE" : A TYPE_X509_PEM_FILE. + * - "TYPE_RAW_PUBLIC_KEY" : A TYPE_RAW_PUBLIC_KEY. + * * Completes with a [ServiceAccountKey]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -602,7 +604,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<ServiceAccountKey> get(core.String name) { + async.Future<ServiceAccountKey> get(core.String name, {core.String publicKeyType}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -613,6 +615,9 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } + if (publicKeyType != null) { + _queryParams["publicKeyType"] = [publicKeyType]; + } _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); @@ -627,18 +632,19 @@ } /** - * Lists service account keys + * Lists ServiceAccountKeys. * * Request parameters: * - * [name] - The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard for - * the project, will infer the project from the account. The account value can - * be the email address or the unique_id of the service account. + * [name] - The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for + * the project, will infer the project from the account. The `account` value + * can be the `email` address or the `unique_id` of the service account. * Value must have pattern "^projects/[^/] * / serviceAccounts/[^/]*$". * - * [keyTypes] - The type of keys the user wants to list. If empty, all key - * types are included in the response. Duplicate key types are not allowed. + * [keyTypes] - Filters the types of keys the user wants to include in the + * list response. Duplicate key types are not allowed. If no key type is + * provided, all keys are returned. * * Completes with a [ListServiceAccountKeysResponse]. * @@ -678,6 +684,81 @@ } +class RolesResourceApi { + final commons.ApiRequester _requester; + + RolesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Queries roles that can be granted on a particular resource. A role is + * grantable if it can be used as the role in a binding for a policy for that + * resource. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [QueryGrantableRolesResponse]. + * + * 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<QueryGrantableRolesResponse> queryGrantableRoles(QueryGrantableRolesRequest 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/roles:queryGrantableRoles'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new QueryGrantableRolesResponse.fromJson(data)); + } + +} + + + +/** + * Audit log information specific to Cloud IAM. This message is serialized as an + * `Any` type in the `ServiceData` message of an `AuditLog` message. + */ +class AuditData { + /** Policy delta between the original policy and the newly set policy. */ + PolicyDelta policyDelta; + + AuditData(); + + AuditData.fromJson(core.Map _json) { + if (_json.containsKey("policyDelta")) { + policyDelta = new PolicyDelta.fromJson(_json["policyDelta"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (policyDelta != null) { + _json["policyDelta"] = (policyDelta).toJson(); + } + return _json; + } +} /** Associates `members` with a `role`. */ class Binding { @@ -726,131 +807,54 @@ } } -/** Write a Cloud Audit log */ -class CloudAuditOptions { - - CloudAuditOptions(); - - CloudAuditOptions.fromJson(core.Map _json) { - } - - core.Map toJson() { - var _json = new core.Map(); - return _json; - } -} - -/** A condition to be met. */ -class Condition { +/** + * One delta entry for Binding. Each individual change (only one member in each + * entry) to a binding will be a separate entry. + */ +class BindingDelta { /** - * Trusted attributes supplied by the IAM system. + * The action that was performed on a Binding. Required * Possible string values are: - * - "NO_ATTR" : A NO_ATTR. - * - "AUTHORITY" : A AUTHORITY. - * - "ATTRIBUTION" : A ATTRIBUTION. + * - "ACTION_UNSPECIFIED" : A ACTION_UNSPECIFIED. + * - "ADD" : A ADD. + * - "REMOVE" : A REMOVE. */ - core.String iam; + core.String action; /** - * An operator to apply the subject with. - * Possible string values are: - * - "NO_OP" : A NO_OP. - * - "EQUALS" : A EQUALS. - * - "NOT_EQUALS" : A NOT_EQUALS. - * - "IN" : A IN. - * - "NOT_IN" : A NOT_IN. - * - "DISCHARGED" : A DISCHARGED. + * A single identity requesting access for a Cloud Platform resource. Follows + * the same format of Binding.members. Required */ - core.String op; - /** Trusted attributes discharged by the service. */ - core.String svc; + core.String member; /** - * Trusted attributes supplied by any service that owns resources and uses the - * IAM system for access control. - * Possible string values are: - * - "NO_ATTR" : A NO_ATTR. - * - "REGION" : A REGION. - * - "SERVICE" : A SERVICE. - * - "NAME" : A NAME. - * - "IP" : A IP. + * Role that is assigned to `members`. For example, `roles/viewer`, + * `roles/editor`, or `roles/owner`. Required */ - core.String sys; - /** The object of the condition. Exactly one of these must be set. */ - core.String value; - /** The objects of the condition. This is mutually exclusive with 'value'. */ - core.List<core.String> values; + core.String role; - Condition(); + BindingDelta(); - Condition.fromJson(core.Map _json) { - if (_json.containsKey("iam")) { - iam = _json["iam"]; + BindingDelta.fromJson(core.Map _json) { + if (_json.containsKey("action")) { + action = _json["action"]; } - if (_json.containsKey("op")) { - op = _json["op"]; + if (_json.containsKey("member")) { + member = _json["member"]; } - if (_json.containsKey("svc")) { - svc = _json["svc"]; - } - if (_json.containsKey("sys")) { - sys = _json["sys"]; - } - if (_json.containsKey("value")) { - value = _json["value"]; - } - if (_json.containsKey("values")) { - values = _json["values"]; + if (_json.containsKey("role")) { + role = _json["role"]; } } core.Map toJson() { var _json = new core.Map(); - if (iam != null) { - _json["iam"] = iam; + if (action != null) { + _json["action"] = action; } - if (op != null) { - _json["op"] = op; + if (member != null) { + _json["member"] = member; } - if (svc != null) { - _json["svc"] = svc; - } - if (sys != null) { - _json["sys"] = sys; - } - if (value != null) { - _json["value"] = value; - } - if (values != null) { - _json["values"] = values; - } - return _json; - } -} - -/** Options for counters */ -class CounterOptions { - /** The field value to attribute. */ - core.String field; - /** The metric to update. */ - core.String metric; - - CounterOptions(); - - CounterOptions.fromJson(core.Map _json) { - if (_json.containsKey("field")) { - field = _json["field"]; - } - if (_json.containsKey("metric")) { - metric = _json["metric"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (field != null) { - _json["field"] = field; - } - if (metric != null) { - _json["metric"] = metric; + if (role != null) { + _json["role"] = role; } return _json; } @@ -859,7 +863,17 @@ /** The service account key create request. */ class CreateServiceAccountKeyRequest { /** - * The type of the key requested. GOOGLE_CREDENTIALS is the default key type. + * Which type of key and algorithm to use for the key. The default is + * currently a 4K RSA key. However this may change in the future. + * Possible string values are: + * - "KEY_ALG_UNSPECIFIED" : A KEY_ALG_UNSPECIFIED. + * - "KEY_ALG_RSA_1024" : A KEY_ALG_RSA_1024. + * - "KEY_ALG_RSA_2048" : A KEY_ALG_RSA_2048. + */ + core.String keyAlgorithm; + /** + * The output format of the private key. `GOOGLE_CREDENTIALS_FILE` is the + * default output format. * Possible string values are: * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. * - "TYPE_PKCS12_FILE" : A TYPE_PKCS12_FILE. @@ -870,6 +884,9 @@ CreateServiceAccountKeyRequest(); CreateServiceAccountKeyRequest.fromJson(core.Map _json) { + if (_json.containsKey("keyAlgorithm")) { + keyAlgorithm = _json["keyAlgorithm"]; + } if (_json.containsKey("privateKeyType")) { privateKeyType = _json["privateKeyType"]; } @@ -877,6 +894,9 @@ core.Map toJson() { var _json = new core.Map(); + if (keyAlgorithm != null) { + _json["keyAlgorithm"] = keyAlgorithm; + } if (privateKeyType != null) { _json["privateKeyType"] = privateKeyType; } @@ -888,14 +908,14 @@ class CreateServiceAccountRequest { /** * Required. The account id that is used to generate the service account email - * address and a stable unique id. It is unique within a project, must be 1-63 - * characters long, and match the regular expression [a-z]([-a-z0-9]*[a-z0-9]) - * to comply with RFC1035. + * address and a stable unique id. It is unique within a project, must be 6-30 + * characters long, and match the regular expression + * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. */ core.String accountId; /** * The ServiceAccount resource to create. Currently, only the following values - * are user assignable: display_name . + * are user assignable: `display_name` . */ ServiceAccount serviceAccount; @@ -922,20 +942,6 @@ } } -/** Write a Data Access (Gin) log */ -class DataAccessOptions { - - DataAccessOptions(); - - DataAccessOptions.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 or @@ -984,7 +990,7 @@ core.List<ServiceAccount> accounts; /** * To retrieve the next page of results, set - * [ListServiceAccountsRequest.page_token] to this value. + * ListServiceAccountsRequest.page_token to this value. */ core.String nextPageToken; @@ -1012,57 +1018,6 @@ } /** - * Specifies what kind of log the caller must write Increment a streamz counter - * with the specified metric and field names. Metric names should start with a - * '/', generally be lowercase-only, and end in "_count". Field names should not - * contain an initial slash. The actual exported metric names will have - * "/iam/policy" prepended. Field names correspond to IAM request parameters and - * field values are their respective values. At present only "iam_principal", - * corresponding to IAMContext.principal, is supported. Examples: counter { - * metric: "/debug_access_count" field: "iam_principal" } ==> increment counter - * /iam/policy/backend_debug_access_count {iam_principal=[value of - * IAMContext.principal]} At this time we do not support: * multiple field names - * (though this may be supported in the future) * decrementing the counter * - * incrementing it by anything other than 1 - */ -class LogConfig { - /** Cloud audit options. */ - CloudAuditOptions cloudAudit; - /** Counter options. */ - CounterOptions counter; - /** Data access options. */ - DataAccessOptions dataAccess; - - LogConfig(); - - LogConfig.fromJson(core.Map _json) { - if (_json.containsKey("cloudAudit")) { - cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); - } - if (_json.containsKey("counter")) { - counter = new CounterOptions.fromJson(_json["counter"]); - } - if (_json.containsKey("dataAccess")) { - dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (cloudAudit != null) { - _json["cloudAudit"] = (cloudAudit).toJson(); - } - if (counter != null) { - _json["counter"] = (counter).toJson(); - } - if (dataAccess != null) { - _json["dataAccess"] = (dataAccess).toJson(); - } - return _json; - } -} - -/** * 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`, @@ -1070,7 +1025,7 @@ * 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": + * "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). @@ -1101,7 +1056,6 @@ void set etagAsBytes(core.List<core.int> _bytes) { etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - core.List<Rule> rules; /** Version of the `Policy`. The default version is 0. */ core.int version; @@ -1114,9 +1068,6 @@ if (_json.containsKey("etag")) { etag = _json["etag"]; } - if (_json.containsKey("rules")) { - rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); - } if (_json.containsKey("version")) { version = _json["version"]; } @@ -1130,9 +1081,6 @@ if (etag != null) { _json["etag"] = etag; } - if (rules != null) { - _json["rules"] = rules.map((value) => (value).toJson()).toList(); - } if (version != null) { _json["version"] = version; } @@ -1140,94 +1088,119 @@ } } -/** A rule to be applied in a Policy. */ -class Rule { - /** - * Required - * Possible string values are: - * - "NO_ACTION" : A NO_ACTION. - * - "ALLOW" : A ALLOW. - * - "ALLOW_WITH_LOG" : A ALLOW_WITH_LOG. - * - "DENY" : A DENY. - * - "DENY_WITH_LOG" : A DENY_WITH_LOG. - * - "LOG" : A LOG. - */ - core.String action; - /** Additional restrictions that must be met */ - core.List<Condition> conditions; - /** Human-readable description of the rule. */ - core.String description; - /** - * The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of - * entries. - */ - core.List<core.String> in_; - /** - * The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - * that match the LOG action. - */ - core.List<LogConfig> logConfig; - /** - * The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of - * entries. The format for in and not_in entries is the same as for members in - * a Binding (see google/iam/v1/policy.proto). - */ - core.List<core.String> notIn; - /** - * A permission is a string of form '..' (e.g., 'storage.buckets.list'). A - * value of '*' matches all permissions, and a verb part of '*' (e.g., - * 'storage.buckets.*') matches all verbs. - */ - core.List<core.String> permissions; +/** The difference delta between two policies. */ +class PolicyDelta { + /** The delta for Bindings between two policies. */ + core.List<BindingDelta> bindingDeltas; - Rule(); + PolicyDelta(); - Rule.fromJson(core.Map _json) { - if (_json.containsKey("action")) { - action = _json["action"]; - } - if (_json.containsKey("conditions")) { - conditions = _json["conditions"].map((value) => new Condition.fromJson(value)).toList(); - } - if (_json.containsKey("description")) { - description = _json["description"]; - } - if (_json.containsKey("in")) { - in_ = _json["in"]; - } - if (_json.containsKey("logConfig")) { - logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value)).toList(); - } - if (_json.containsKey("notIn")) { - notIn = _json["notIn"]; - } - if (_json.containsKey("permissions")) { - permissions = _json["permissions"]; + PolicyDelta.fromJson(core.Map _json) { + if (_json.containsKey("bindingDeltas")) { + bindingDeltas = _json["bindingDeltas"].map((value) => new BindingDelta.fromJson(value)).toList(); } } core.Map toJson() { var _json = new core.Map(); - if (action != null) { - _json["action"] = action; + if (bindingDeltas != null) { + _json["bindingDeltas"] = bindingDeltas.map((value) => (value).toJson()).toList(); } - if (conditions != null) { - _json["conditions"] = conditions.map((value) => (value).toJson()).toList(); + return _json; + } +} + +/** The grantable role query request. */ +class QueryGrantableRolesRequest { + /** + * Required. The full resource name to query from the list of grantable roles. + * The name follows the Google Cloud Platform resource format. For example, a + * Cloud Platform project with id `my-project` will be named + * `//cloudresourcemanager.googleapis.com/projects/my-project`. + */ + core.String fullResourceName; + + QueryGrantableRolesRequest(); + + QueryGrantableRolesRequest.fromJson(core.Map _json) { + if (_json.containsKey("fullResourceName")) { + fullResourceName = _json["fullResourceName"]; } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fullResourceName != null) { + _json["fullResourceName"] = fullResourceName; + } + return _json; + } +} + +/** The grantable role query response. */ +class QueryGrantableRolesResponse { + /** The list of matching roles. */ + core.List<Role> roles; + + QueryGrantableRolesResponse(); + + QueryGrantableRolesResponse.fromJson(core.Map _json) { + if (_json.containsKey("roles")) { + roles = _json["roles"].map((value) => new Role.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (roles != null) { + _json["roles"] = roles.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** A role in the Identity and Access Management API. */ +class Role { + /** Optional. A human-readable description for the role. */ + core.String description; + /** + * The name of the role. When Role is used in CreateRole, the role name must + * not be set. When Role is used in output and other input such as UpdateRole, + * the role name is the complete path, e.g., roles/logging.viewer for curated + * roles and organizations/{organization-id}/roles/logging.viewer for custom + * roles. + */ + core.String name; + /** + * Optional. A human-readable title for the role. Typically this is limited to + * 100 UTF-8 bytes. + */ + core.String title; + + Role(); + + Role.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); if (description != null) { _json["description"] = description; } - if (in_ != null) { - _json["in"] = in_; + if (name != null) { + _json["name"] = name; } - if (logConfig != null) { - _json["logConfig"] = logConfig.map((value) => (value).toJson()).toList(); - } - if (notIn != null) { - _json["notIn"] = notIn; - } - if (permissions != null) { - _json["permissions"] = permissions; + if (title != null) { + _json["title"] = title; } return _json; } @@ -1235,13 +1208,17 @@ /** * A service account in the Identity and Access Management API. To create a - * service account, you specify the project_id and account_id for the account. - * The account_id is unique within the project, and used to generate the service - * account email address and a stable unique id. All other methods can identify - * accounts using the format "projects/{project}/serviceAccounts/{account}". - * Using '-' as a wildcard for the project, will infer the project from the - * account. The account value can be the email address or the unique_id of the - * service account. + * service account, specify the `project_id` and the `account_id` for the + * account. The `account_id` is unique within the project, and is used to + * generate the service account email address and a stable `unique_id`. If the + * account already exists, the account's resource name is returned in + * util::Status's ResourceInfo.resource_name in the format of + * projects/{project}/serviceAccounts/{email}. The caller can use the name in + * other methods to access the account. All other methods can identify the + * service account using the format + * `projects/{project}/serviceAccounts/{account}`. Using `-` as a wildcard for + * the project will infer the project from the account. The `account` value can + * be the `email` address or the `unique_id` of the service account. */ class ServiceAccount { /** @@ -1249,7 +1226,7 @@ * fewer than 100 UTF-8 bytes. */ core.String displayName; - /** @OutputOnly Email address of the service account. */ + /** @OutputOnly The email address of the service account. */ core.String email; /** Used to perform a consistent read-modify-write. */ core.String etag; @@ -1261,12 +1238,12 @@ etag = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } /** - * The resource name of the service account in the format - * "projects/{project}/serviceAccounts/{account}". In requests using '-' as a - * wildcard for the project, will infer the project from the account and the - * account value can be the email address or the unique_id of the service - * account. In responses the resource name will always be in the format - * "projects/{project}/serviceAccounts/{email}". + * The resource name of the service account in the following format: + * `projects/{project}/serviceAccounts/{account}`. Requests using `-` as a + * wildcard for the project will infer the project from the `account` and the + * `account` value can be the `email` address or the `unique_id` of the + * service account. In responses the resource name will always be in the + * format `projects/{project}/serviceAccounts/{email}`. */ core.String name; /** @@ -1277,7 +1254,7 @@ core.String oauth2ClientId; /** @OutputOnly The id of the project that owns the service account. */ core.String projectId; - /** @OutputOnly unique and stable id of the service account. */ + /** @OutputOnly The unique and stable id of the service account. */ core.String uniqueId; ServiceAccount(); @@ -1334,17 +1311,33 @@ } /** - * Represents a service account key. A service account can have 0 or more key - * pairs. The private keys for these are not stored by Google. - * ServiceAccountKeys are immutable. + * Represents a service account key. A service account has two sets of + * key-pairs: user-managed, and system-managed. User-managed key-pairs can be + * created and deleted by users. Users are responsible for rotating these keys + * periodically to ensure security of their service accounts. Users retain the + * private key of these key-pairs, and Google retains ONLY the public key. + * System-managed key-pairs are managed automatically by Google, and rotated + * daily without user intervention. The private key never leaves Google's + * servers to maximize security. Public keys for all service accounts are also + * published at the OAuth2 Service Account API. */ class ServiceAccountKey { /** - * The resource name of the service account key in the format - * "projects/{project}/serviceAccounts/{email}/keys/{key}". + * Specifies the algorithm (and possibly key size) for the key. + * Possible string values are: + * - "KEY_ALG_UNSPECIFIED" : A KEY_ALG_UNSPECIFIED. + * - "KEY_ALG_RSA_1024" : A KEY_ALG_RSA_1024. + * - "KEY_ALG_RSA_2048" : A KEY_ALG_RSA_2048. + */ + core.String keyAlgorithm; + /** + * The resource name of the service account key in the following format + * `projects/{project}/serviceAccounts/{account}/keys/{key}`. */ core.String name; - /** The key data. */ + /** + * The private key data. Only provided in `CreateServiceAccountKey` responses. + */ core.String privateKeyData; core.List<core.int> get privateKeyDataAsBytes { return convert.BASE64.decode(privateKeyData); @@ -1354,13 +1347,27 @@ privateKeyData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } /** - * The type of the private key. + * The output format for the private key. Only provided in + * `CreateServiceAccountKey` responses, not in `GetServiceAccountKey` or + * `ListServiceAccountKey` responses. Google never exposes system-managed + * private keys, and never retains user-managed private keys. * Possible string values are: * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. * - "TYPE_PKCS12_FILE" : A TYPE_PKCS12_FILE. * - "TYPE_GOOGLE_CREDENTIALS_FILE" : A TYPE_GOOGLE_CREDENTIALS_FILE. */ core.String privateKeyType; + /** + * The public key data. Only provided in `GetServiceAccountKey` responses. + */ + core.String publicKeyData; + core.List<core.int> get publicKeyDataAsBytes { + return convert.BASE64.decode(publicKeyData); + } + + void set publicKeyDataAsBytes(core.List<core.int> _bytes) { + publicKeyData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } /** The key can be used after this timestamp. */ core.String validAfterTime; /** The key can be used before this timestamp. */ @@ -1369,6 +1376,9 @@ ServiceAccountKey(); ServiceAccountKey.fromJson(core.Map _json) { + if (_json.containsKey("keyAlgorithm")) { + keyAlgorithm = _json["keyAlgorithm"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -1378,6 +1388,9 @@ if (_json.containsKey("privateKeyType")) { privateKeyType = _json["privateKeyType"]; } + if (_json.containsKey("publicKeyData")) { + publicKeyData = _json["publicKeyData"]; + } if (_json.containsKey("validAfterTime")) { validAfterTime = _json["validAfterTime"]; } @@ -1388,6 +1401,9 @@ core.Map toJson() { var _json = new core.Map(); + if (keyAlgorithm != null) { + _json["keyAlgorithm"] = keyAlgorithm; + } if (name != null) { _json["name"] = name; } @@ -1397,6 +1413,9 @@ if (privateKeyType != null) { _json["privateKeyType"] = privateKeyType; } + if (publicKeyData != null) { + _json["publicKeyData"] = publicKeyData; + } if (validAfterTime != null) { _json["validAfterTime"] = validAfterTime; } @@ -1435,7 +1454,7 @@ /** The service account sign blob request. */ class SignBlobRequest { - /** The bytes to sign */ + /** The bytes to sign. */ core.String bytesToSign; core.List<core.int> get bytesToSignAsBytes { return convert.BASE64.decode(bytesToSign); @@ -1504,7 +1523,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. + * information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ core.List<core.String> permissions;
diff --git a/generated/googleapis/lib/identitytoolkit/v3.dart b/generated/googleapis/lib/identitytoolkit/v3.dart index a745589..cafd23c 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 administer all your Firebase data and settings */ + static const FirebaseScope = "https://www.googleapis.com/auth/firebase"; + final commons.ApiRequester _requester; @@ -1036,6 +1039,13 @@ */ core.String continueUri; /** + * The query parameter that client can customize by themselves in auth url. + * The following parameters are reserved for server so that they cannot be + * customized by clients: client_id, response_type, scope, redirect_uri, + * state, oauth_token. + */ + core.Map<core.String, core.String> customParameter; + /** * The hosted domain to restrict sign-in to accounts at that domain for Google * Apps hosted accounts. */ @@ -1083,6 +1093,9 @@ if (_json.containsKey("continueUri")) { continueUri = _json["continueUri"]; } + if (_json.containsKey("customParameter")) { + customParameter = _json["customParameter"]; + } if (_json.containsKey("hostedDomain")) { hostedDomain = _json["hostedDomain"]; } @@ -1126,6 +1139,9 @@ if (continueUri != null) { _json["continueUri"] = continueUri; } + if (customParameter != null) { + _json["customParameter"] = customParameter; + } if (hostedDomain != null) { _json["hostedDomain"] = hostedDomain; } @@ -1298,6 +1314,7 @@ core.List<core.String> authorizedDomains; /** Change email template. */ EmailTemplate changeEmailTemplate; + core.String dynamicLinksDomain; /** Whether anonymous user is enabled. */ core.bool enableAnonymousUser; /** OAuth2 provider configuration. */ @@ -1328,6 +1345,9 @@ if (_json.containsKey("changeEmailTemplate")) { changeEmailTemplate = new EmailTemplate.fromJson(_json["changeEmailTemplate"]); } + if (_json.containsKey("dynamicLinksDomain")) { + dynamicLinksDomain = _json["dynamicLinksDomain"]; + } if (_json.containsKey("enableAnonymousUser")) { enableAnonymousUser = _json["enableAnonymousUser"]; } @@ -1365,6 +1385,9 @@ if (changeEmailTemplate != null) { _json["changeEmailTemplate"] = (changeEmailTemplate).toJson(); } + if (dynamicLinksDomain != null) { + _json["dynamicLinksDomain"] = dynamicLinksDomain; + } if (enableAnonymousUser != null) { _json["enableAnonymousUser"] = enableAnonymousUser; } @@ -1845,16 +1868,24 @@ core.String captchaChallenge; /** Response to the captcha. */ core.String captchaResponse; + /** Whether to disable the user. Only can be used by service account. */ + core.bool disabled; /** The name of the user. */ core.String displayName; /** The email of the user. */ core.String email; + /** + * Mark the email as verified or not. Only can be used by service account. + */ + core.bool emailVerified; /** The GITKit token of the authenticated user. */ core.String idToken; /** Instance id token of the app. */ core.String instanceId; /** The new password of the user. */ core.String password; + /** The photo url of the user. */ + core.String photoUrl; IdentitytoolkitRelyingpartySignupNewUserRequest(); @@ -1865,12 +1896,18 @@ if (_json.containsKey("captchaResponse")) { captchaResponse = _json["captchaResponse"]; } + if (_json.containsKey("disabled")) { + disabled = _json["disabled"]; + } if (_json.containsKey("displayName")) { displayName = _json["displayName"]; } if (_json.containsKey("email")) { email = _json["email"]; } + if (_json.containsKey("emailVerified")) { + emailVerified = _json["emailVerified"]; + } if (_json.containsKey("idToken")) { idToken = _json["idToken"]; } @@ -1880,6 +1917,9 @@ if (_json.containsKey("password")) { password = _json["password"]; } + if (_json.containsKey("photoUrl")) { + photoUrl = _json["photoUrl"]; + } } core.Map toJson() { @@ -1890,12 +1930,18 @@ if (captchaResponse != null) { _json["captchaResponse"] = captchaResponse; } + if (disabled != null) { + _json["disabled"] = disabled; + } if (displayName != null) { _json["displayName"] = displayName; } if (email != null) { _json["email"] = email; } + if (emailVerified != null) { + _json["emailVerified"] = emailVerified; + } if (idToken != null) { _json["idToken"] = idToken; } @@ -1905,12 +1951,17 @@ if (password != null) { _json["password"] = password; } + if (photoUrl != null) { + _json["photoUrl"] = photoUrl; + } return _json; } } /** Request to upload user account in batch. */ class IdentitytoolkitRelyingpartyUploadAccountRequest { + /** Whether allow overwrite existing account when user local_id exists. */ + core.bool allowOverwrite; /** * GCP project number of the requesting delegated app. Currently only intended * for Firebase V1 migration. @@ -1931,6 +1982,11 @@ void set saltSeparatorAsBytes(core.List<core.int> _bytes) { saltSeparator = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } + /** + * If true, backend will do sanity check(including duplicate email and + * federated id) when uploading account. + */ + core.bool sanityCheck; /** The key for to hash the password. */ core.String signerKey; core.List<core.int> get signerKeyAsBytes { @@ -1940,12 +1996,20 @@ void set signerKeyAsBytes(core.List<core.int> _bytes) { signerKey = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } + /** + * Specify which project (field value is actually project id) to operate. Only + * used when provided credential. + */ + core.String targetProjectId; /** The account info to be stored. */ core.List<UserInfo> users; IdentitytoolkitRelyingpartyUploadAccountRequest(); IdentitytoolkitRelyingpartyUploadAccountRequest.fromJson(core.Map _json) { + if (_json.containsKey("allowOverwrite")) { + allowOverwrite = _json["allowOverwrite"]; + } if (_json.containsKey("delegatedProjectNumber")) { delegatedProjectNumber = _json["delegatedProjectNumber"]; } @@ -1961,9 +2025,15 @@ if (_json.containsKey("saltSeparator")) { saltSeparator = _json["saltSeparator"]; } + if (_json.containsKey("sanityCheck")) { + sanityCheck = _json["sanityCheck"]; + } if (_json.containsKey("signerKey")) { signerKey = _json["signerKey"]; } + if (_json.containsKey("targetProjectId")) { + targetProjectId = _json["targetProjectId"]; + } if (_json.containsKey("users")) { users = _json["users"].map((value) => new UserInfo.fromJson(value)).toList(); } @@ -1971,6 +2041,9 @@ core.Map toJson() { var _json = new core.Map(); + if (allowOverwrite != null) { + _json["allowOverwrite"] = allowOverwrite; + } if (delegatedProjectNumber != null) { _json["delegatedProjectNumber"] = delegatedProjectNumber; } @@ -1986,9 +2059,15 @@ if (saltSeparator != null) { _json["saltSeparator"] = saltSeparator; } + if (sanityCheck != null) { + _json["sanityCheck"] = sanityCheck; + } if (signerKey != null) { _json["signerKey"] = signerKey; } + if (targetProjectId != null) { + _json["targetProjectId"] = targetProjectId; + } if (users != null) { _json["users"] = users.map((value) => (value).toJson()).toList(); } @@ -2393,10 +2472,17 @@ /** Response of resetting the password. */ class ResetPasswordResponse { - /** The user's email. */ + /** + * The user's email. If the out-of-band code is for email recovery, the user's + * original email. + */ core.String email; /** The fixed string "identitytoolkit#ResetPasswordResponse". */ core.String kind; + /** If the out-of-band code is for email recovery, the user's new email. */ + core.String newEmail; + /** The request type. */ + core.String requestType; ResetPasswordResponse(); @@ -2407,6 +2493,12 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } + if (_json.containsKey("newEmail")) { + newEmail = _json["newEmail"]; + } + if (_json.containsKey("requestType")) { + requestType = _json["requestType"]; + } } core.Map toJson() { @@ -2417,6 +2509,12 @@ if (kind != null) { _json["kind"] = kind; } + if (newEmail != null) { + _json["newEmail"] = newEmail; + } + if (requestType != null) { + _json["requestType"] = requestType; + } return _json; } } @@ -2734,9 +2832,7 @@ core.String providerId; /** User's raw identifier directly returned from IDP. */ core.String rawId; - /** Raw IDP-returned user info. */ - core.String rawUserInfo; - /** User's screen name at Twitter. */ + /** User's screen name at Twitter or login name at Github. */ core.String screenName; UserInfoProviderUserInfo(); @@ -2760,9 +2856,6 @@ if (_json.containsKey("rawId")) { rawId = _json["rawId"]; } - if (_json.containsKey("rawUserInfo")) { - rawUserInfo = _json["rawUserInfo"]; - } if (_json.containsKey("screenName")) { screenName = _json["screenName"]; } @@ -2788,9 +2881,6 @@ if (rawId != null) { _json["rawId"] = rawId; } - if (rawUserInfo != null) { - _json["rawUserInfo"] = rawUserInfo; - } if (screenName != null) { _json["screenName"] = screenName; } @@ -2802,6 +2892,8 @@ class UserInfo { /** User creation timestamp. */ core.String createdAt; + /** Whether the user is authenticated by the developer. */ + core.bool customAuth; /** Whether the user is disabled. */ core.bool disabled; /** The name of the user. */ @@ -2829,6 +2921,8 @@ core.String photoUrl; /** The IDP of the user. */ core.List<UserInfoProviderUserInfo> providerUserInfo; + /** The user's plain text password. */ + core.String rawPassword; /** The user's password salt. */ core.String salt; core.List<core.int> get saltAsBytes { @@ -2838,7 +2932,7 @@ void set saltAsBytes(core.List<core.int> _bytes) { salt = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); } - /** User's screen name at Twitter. */ + /** User's screen name at Twitter or login name at Github. */ core.String screenName; /** Timestamp in seconds for valid login token. */ core.String validSince; @@ -2851,6 +2945,9 @@ if (_json.containsKey("createdAt")) { createdAt = _json["createdAt"]; } + if (_json.containsKey("customAuth")) { + customAuth = _json["customAuth"]; + } if (_json.containsKey("disabled")) { disabled = _json["disabled"]; } @@ -2881,6 +2978,9 @@ if (_json.containsKey("providerUserInfo")) { providerUserInfo = _json["providerUserInfo"].map((value) => new UserInfoProviderUserInfo.fromJson(value)).toList(); } + if (_json.containsKey("rawPassword")) { + rawPassword = _json["rawPassword"]; + } if (_json.containsKey("salt")) { salt = _json["salt"]; } @@ -2900,6 +3000,9 @@ if (createdAt != null) { _json["createdAt"] = createdAt; } + if (customAuth != null) { + _json["customAuth"] = customAuth; + } if (disabled != null) { _json["disabled"] = disabled; } @@ -2930,6 +3033,9 @@ if (providerUserInfo != null) { _json["providerUserInfo"] = providerUserInfo.map((value) => (value).toJson()).toList(); } + if (rawPassword != null) { + _json["rawPassword"] = rawPassword; + } if (salt != null) { _json["salt"] = salt; } @@ -3051,7 +3157,7 @@ core.String rawUserInfo; /** If idToken is STS id token, then this field will be refresh token. */ core.String refreshToken; - /** The screen_name of a Twitter user. */ + /** The screen_name of a Twitter user or the login name at Github. */ core.String screenName; /** The timezone of the user. */ core.String timeZone;
diff --git a/generated/googleapis/lib/logging/v2.dart b/generated/googleapis/lib/logging/v2.dart new file mode 100644 index 0000000..d7173b9 --- /dev/null +++ b/generated/googleapis/lib/logging/v2.dart
@@ -0,0 +1,3017 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.logging.v2; + +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 logging/v2'; + +/** Writes log entries and manages your Stackdriver Logging configuration. */ +class LoggingApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + + /** View your data across Google Cloud Platform services */ + static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"; + + /** Administrate log data for your projects */ + static const LoggingAdminScope = "https://www.googleapis.com/auth/logging.admin"; + + /** View log data for your projects */ + static const LoggingReadScope = "https://www.googleapis.com/auth/logging.read"; + + /** Submit log data for your projects */ + static const LoggingWriteScope = "https://www.googleapis.com/auth/logging.write"; + + + final commons.ApiRequester _requester; + + BillingAccountsResourceApi get billingAccounts => new BillingAccountsResourceApi(_requester); + EntriesResourceApi get entries => new EntriesResourceApi(_requester); + MonitoredResourceDescriptorsResourceApi get monitoredResourceDescriptors => new MonitoredResourceDescriptorsResourceApi(_requester); + OrganizationsResourceApi get organizations => new OrganizationsResourceApi(_requester); + ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); + + LoggingApi(http.Client client, {core.String rootUrl: "https://logging.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class BillingAccountsResourceApi { + final commons.ApiRequester _requester; + + BillingAccountsLogsResourceApi get logs => new BillingAccountsLogsResourceApi(_requester); + BillingAccountsSinksResourceApi get sinks => new BillingAccountsSinksResourceApi(_requester); + + BillingAccountsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class BillingAccountsLogsResourceApi { + final commons.ApiRequester _requester; + + BillingAccountsLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a log and all its log entries. + * The log will reappear if it receives new entries. + * + * Request parameters: + * + * [logName] - Required. The resource name of the log to delete. Example: + * `"projects/my-project/logs/syslog"`. + * Value must have pattern "^billingAccounts/[^/]+/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)); + } + +} + + +class BillingAccountsSinksResourceApi { + final commons.ApiRequester _requester; + + BillingAccountsSinksResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a 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. + * 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. + * + * 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. + * + * 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. + * Value must have pattern "^billingAccounts/[^/]+/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 resource name of the sink to return. + * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * Value must have pattern "^billingAccounts/[^/]+/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 resource name where this sink was created. + * Example: `"projects/my-logging-project"`. + * 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 [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 or creates a sink. + * + * [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"`. + * 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. + * + * 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 EntriesResourceApi { + final commons.ApiRequester _requester; + + EntriesResourceApi(commons.ApiRequester client) : + _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). + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [ListLogEntriesResponse]. + * + * 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<ListLogEntriesResponse> list(ListLogEntriesRequest 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 = 'v2/entries:list'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLogEntriesResponse.fromJson(data)); + } + + /** + * Writes log entries to Stackdriver Logging. All log entries are + * written by this method. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [WriteLogEntriesResponse]. + * + * 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<WriteLogEntriesResponse> write(WriteLogEntriesRequest 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 = 'v2/entries:write'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new WriteLogEntriesResponse.fromJson(data)); + } + +} + + +class MonitoredResourceDescriptorsResourceApi { + final commons.ApiRequester _requester; + + MonitoredResourceDescriptorsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Lists the monitored resource descriptors 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. + * + * [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 [ListMonitoredResourceDescriptorsResponse]. + * + * 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<ListMonitoredResourceDescriptorsResponse> list({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 (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v2/monitoredResourceDescriptors'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListMonitoredResourceDescriptorsResponse.fromJson(data)); + } + +} + + +class OrganizationsResourceApi { + final commons.ApiRequester _requester; + + OrganizationsLogsResourceApi get logs => new OrganizationsLogsResourceApi(_requester); + OrganizationsSinksResourceApi get sinks => new OrganizationsSinksResourceApi(_requester); + + OrganizationsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class OrganizationsLogsResourceApi { + final commons.ApiRequester _requester; + + OrganizationsLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a log and all its log entries. + * The log will reappear if it receives new entries. + * + * Request parameters: + * + * [logName] - Required. The resource name of the log to delete. Example: + * `"projects/my-project/logs/syslog"`. + * Value must have pattern "^organizations/[^/]+/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)); + } + +} + + +class OrganizationsSinksResourceApi { + final commons.ApiRequester _requester; + + OrganizationsSinksResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a 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. + * 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. + * + * 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. + * + * 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. + * Value must have pattern "^organizations/[^/]+/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 resource name of the sink to return. + * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * Value must have pattern "^organizations/[^/]+/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 resource name where this sink was created. + * Example: `"projects/my-logging-project"`. + * 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 [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 or creates a sink. + * + * [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"`. + * 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. + * + * 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 ProjectsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLogsResourceApi get logs => new ProjectsLogsResourceApi(_requester); + ProjectsMetricsResourceApi get metrics => new ProjectsMetricsResourceApi(_requester); + ProjectsSinksResourceApi get sinks => new ProjectsSinksResourceApi(_requester); + + ProjectsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class ProjectsLogsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a log and all its log entries. + * The log will reappear if it receives new entries. + * + * Request parameters: + * + * [logName] - Required. The resource name of the log to delete. Example: + * `"projects/my-project/logs/syslog"`. + * Value must have pattern "^projects/[^/]+/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)); + } + +} + + +class ProjectsMetricsResourceApi { + final commons.ApiRequester _requester; + + ProjectsMetricsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a logs-based metric. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - The resource name of the project in which to create the metric. + * Example: `"projects/my-project-id"`. + * + * The new metric must be provided in the request. + * Value must have pattern "^projects/[^/]+$". + * + * Completes with a [LogMetric]. + * + * 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<LogMetric> create(LogMetric request, core.String parent) { + 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."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LogMetric.fromJson(data)); + } + + /** + * Deletes a logs-based metric. + * + * Request parameters: + * + * [metricName] - The resource name of the metric to delete. + * Example: `"projects/my-project-id/metrics/my-metric-id"`. + * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". + * + * 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 metricName) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (metricName == null) { + throw new core.ArgumentError("Parameter metricName is required."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$metricName'); + + 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 logs-based metric. + * + * Request parameters: + * + * [metricName] - The resource name of the desired metric. + * Example: `"projects/my-project-id/metrics/my-metric-id"`. + * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". + * + * Completes with a [LogMetric]. + * + * 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<LogMetric> get(core.String metricName) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (metricName == null) { + throw new core.ArgumentError("Parameter metricName is required."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$metricName'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LogMetric.fromJson(data)); + } + + /** + * Lists logs-based metrics. + * + * Request parameters: + * + * [parent] - Required. The resource name containing the metrics. + * Example: `"projects/my-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. + * + * [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 [ListLogMetricsResponse]. + * + * 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<ListLogMetricsResponse> 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') + '/metrics'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListLogMetricsResponse.fromJson(data)); + } + + /** + * Creates or updates a logs-based metric. + * + * [request] - The metadata request object. + * + * 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. + * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". + * + * Completes with a [LogMetric]. + * + * 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<LogMetric> update(LogMetric request, core.String metricName) { + 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 (metricName == null) { + throw new core.ArgumentError("Parameter metricName is required."); + } + + _url = 'v2/' + commons.Escaper.ecapeVariableReserved('$metricName'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LogMetric.fromJson(data)); + } + +} + + +class ProjectsSinksResourceApi { + final commons.ApiRequester _requester; + + ProjectsSinksResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a 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. + * 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. + * + * 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. + * + * 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. + * Value must have pattern "^projects/[^/]+/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 resource name of the sink to return. + * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * Value must have pattern "^projects/[^/]+/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 resource name where this sink was created. + * Example: `"projects/my-logging-project"`. + * 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 [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 or creates a sink. + * + * [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"`. + * 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. + * + * 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)); + } + +} + + + +/** + * 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 `{}`. + */ +class Empty { + + Empty(); + + Empty.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + +/** + * 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 { + /** + * The number of HTTP response bytes inserted into cache. Set only when a + * cache fill was attempted. + */ + core.String cacheFillBytes; + /** + * 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 + * True. + */ + core.bool cacheValidatedWithOriginServer; + /** + * The request processing latency on the server, from the time the request was + * received until the response was sent. + */ + 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). + */ + 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"`. + */ + core.String remoteIp; + /** The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. */ + core.String requestMethod; + /** + * The size of the HTTP request message in bytes, including the request + * headers and the request body. + */ + 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"`. + */ + core.String requestUrl; + /** + * The size of the HTTP response message sent back to the client, in bytes, + * including the response headers and the response body. + */ + core.String responseSize; + /** + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. + */ + core.String serverIp; + /** + * 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)"`. + */ + core.String userAgent; + + HttpRequest(); + + HttpRequest.fromJson(core.Map _json) { + if (_json.containsKey("cacheFillBytes")) { + cacheFillBytes = _json["cacheFillBytes"]; + } + if (_json.containsKey("cacheHit")) { + cacheHit = _json["cacheHit"]; + } + if (_json.containsKey("cacheLookup")) { + cacheLookup = _json["cacheLookup"]; + } + if (_json.containsKey("cacheValidatedWithOriginServer")) { + cacheValidatedWithOriginServer = _json["cacheValidatedWithOriginServer"]; + } + if (_json.containsKey("latency")) { + latency = _json["latency"]; + } + if (_json.containsKey("referer")) { + referer = _json["referer"]; + } + if (_json.containsKey("remoteIp")) { + remoteIp = _json["remoteIp"]; + } + if (_json.containsKey("requestMethod")) { + requestMethod = _json["requestMethod"]; + } + if (_json.containsKey("requestSize")) { + requestSize = _json["requestSize"]; + } + if (_json.containsKey("requestUrl")) { + requestUrl = _json["requestUrl"]; + } + if (_json.containsKey("responseSize")) { + responseSize = _json["responseSize"]; + } + if (_json.containsKey("serverIp")) { + serverIp = _json["serverIp"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + if (_json.containsKey("userAgent")) { + userAgent = _json["userAgent"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (cacheFillBytes != null) { + _json["cacheFillBytes"] = cacheFillBytes; + } + if (cacheHit != null) { + _json["cacheHit"] = cacheHit; + } + if (cacheLookup != null) { + _json["cacheLookup"] = cacheLookup; + } + if (cacheValidatedWithOriginServer != null) { + _json["cacheValidatedWithOriginServer"] = cacheValidatedWithOriginServer; + } + if (latency != null) { + _json["latency"] = latency; + } + if (referer != null) { + _json["referer"] = referer; + } + if (remoteIp != null) { + _json["remoteIp"] = remoteIp; + } + if (requestMethod != null) { + _json["requestMethod"] = requestMethod; + } + if (requestSize != null) { + _json["requestSize"] = requestSize; + } + if (requestUrl != null) { + _json["requestUrl"] = requestUrl; + } + if (responseSize != null) { + _json["responseSize"] = responseSize; + } + if (serverIp != null) { + _json["serverIp"] = serverIp; + } + if (status != null) { + _json["status"] = status; + } + if (userAgent != null) { + _json["userAgent"] = userAgent; + } + return _json; + } +} + +/** A description of a label. */ +class LabelDescriptor { + /** A human-readable description for the label. */ + core.String description; + /** The label key. */ + core.String key; + /** + * The type of data that can be assigned to the label. + * Possible string values are: + * - "STRING" : A variable-length string. This is the default. + * - "BOOL" : Boolean; true or false. + * - "INT64" : A 64-bit signed integer. + */ + core.String valueType; + + LabelDescriptor(); + + LabelDescriptor.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("key")) { + key = _json["key"]; + } + if (_json.containsKey("valueType")) { + valueType = _json["valueType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (description != null) { + _json["description"] = description; + } + if (key != null) { + _json["key"] = key; + } + if (valueType != null) { + _json["valueType"] = valueType; + } + return _json; + } +} + +/** 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. + */ + 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`. + */ + 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 + * 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. + */ + 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. + */ + 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. + */ + core.List<core.String> resourceNames; + + ListLogEntriesRequest(); + + ListLogEntriesRequest.fromJson(core.Map _json) { + if (_json.containsKey("filter")) { + filter = _json["filter"]; + } + if (_json.containsKey("orderBy")) { + orderBy = _json["orderBy"]; + } + if (_json.containsKey("pageSize")) { + pageSize = _json["pageSize"]; + } + if (_json.containsKey("pageToken")) { + pageToken = _json["pageToken"]; + } + if (_json.containsKey("projectIds")) { + projectIds = _json["projectIds"]; + } + if (_json.containsKey("resourceNames")) { + resourceNames = _json["resourceNames"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (filter != null) { + _json["filter"] = filter; + } + if (orderBy != null) { + _json["orderBy"] = orderBy; + } + if (pageSize != null) { + _json["pageSize"] = pageSize; + } + if (pageToken != null) { + _json["pageToken"] = pageToken; + } + if (projectIds != null) { + _json["projectIds"] = projectIds; + } + if (resourceNames != null) { + _json["resourceNames"] = resourceNames; + } + return _json; + } +} + +/** 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`. + */ + core.String nextPageToken; + + ListLogEntriesResponse(); + + ListLogEntriesResponse.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = _json["entries"].map((value) => new LogEntry.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Result returned from ListLogMetrics. */ +class ListLogMetricsResponse { + /** A list of logs-based metrics. */ + 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`. + */ + core.String nextPageToken; + + ListLogMetricsResponse(); + + ListLogMetricsResponse.fromJson(core.Map _json) { + if (_json.containsKey("metrics")) { + metrics = _json["metrics"].map((value) => new LogMetric.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (metrics != null) { + _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); + } + 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`. + */ + core.String nextPageToken; + /** A list of resource descriptors. */ + core.List<MonitoredResourceDescriptor> resourceDescriptors; + + ListMonitoredResourceDescriptorsResponse(); + + ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("resourceDescriptors")) { + resourceDescriptors = _json["resourceDescriptors"].map((value) => new MonitoredResourceDescriptor.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (resourceDescriptors != null) { + _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** 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`. + */ + core.String nextPageToken; + /** A list of sinks. */ + core.List<LogSink> sinks; + + ListSinksResponse(); + + ListSinksResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("sinks")) { + sinks = _json["sinks"].map((value) => new LogSink.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (sinks != null) { + _json["sinks"] = sinks.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** An individual entry in a log. */ +class LogEntry { + /** + * 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. + */ + core.String insertId; + /** + * 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. + */ + core.Map<core.String, core.Object> jsonPayload; + /** + * Optional. A set of user-defined (key, value) data that provides additional + * information about the log entry. + */ + 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. + */ + core.String logName; + /** + * Optional. Information about an operation associated with the log entry, if + * applicable. + */ + 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 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. + */ + MonitoredResource resource; + /** + * Optional. The severity of the log entry. The default value is + * `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. + * - "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. + * - "ALERT" : (700) A person must take an action immediately. + * - "EMERGENCY" : (800) One or more systems are unusable. + */ + core.String severity; + /** 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 + * omitted, Stackdriver Logging will use the time the log entry is received. + */ + core.String timestamp; + + LogEntry(); + + LogEntry.fromJson(core.Map _json) { + if (_json.containsKey("httpRequest")) { + httpRequest = new HttpRequest.fromJson(_json["httpRequest"]); + } + if (_json.containsKey("insertId")) { + insertId = _json["insertId"]; + } + if (_json.containsKey("jsonPayload")) { + jsonPayload = _json["jsonPayload"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + if (_json.containsKey("logName")) { + logName = _json["logName"]; + } + if (_json.containsKey("operation")) { + operation = new LogEntryOperation.fromJson(_json["operation"]); + } + if (_json.containsKey("protoPayload")) { + protoPayload = _json["protoPayload"]; + } + if (_json.containsKey("resource")) { + resource = new MonitoredResource.fromJson(_json["resource"]); + } + if (_json.containsKey("severity")) { + severity = _json["severity"]; + } + if (_json.containsKey("textPayload")) { + textPayload = _json["textPayload"]; + } + if (_json.containsKey("timestamp")) { + timestamp = _json["timestamp"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (httpRequest != null) { + _json["httpRequest"] = (httpRequest).toJson(); + } + if (insertId != null) { + _json["insertId"] = insertId; + } + if (jsonPayload != null) { + _json["jsonPayload"] = jsonPayload; + } + if (labels != null) { + _json["labels"] = labels; + } + if (logName != null) { + _json["logName"] = logName; + } + if (operation != null) { + _json["operation"] = (operation).toJson(); + } + if (protoPayload != null) { + _json["protoPayload"] = protoPayload; + } + if (resource != null) { + _json["resource"] = (resource).toJson(); + } + if (severity != null) { + _json["severity"] = severity; + } + if (textPayload != null) { + _json["textPayload"] = textPayload; + } + if (timestamp != null) { + _json["timestamp"] = timestamp; + } + return _json; + } +} + +/** + * Additional information about a potentially long-running operation with which + * a log entry is associated. + */ +class LogEntryOperation { + /** + * Optional. Set this to True if this is the first log entry in the operation. + */ + core.bool first; + /** + * Optional. An arbitrary operation identifier. Log entries with the + * same identifier are assumed to be part of the same operation. + */ + core.String id; + /** + * Optional. Set this to True if this is the last log entry in the operation. + */ + 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"`. + */ + core.String producer; + + LogEntryOperation(); + + LogEntryOperation.fromJson(core.Map _json) { + if (_json.containsKey("first")) { + first = _json["first"]; + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + if (_json.containsKey("last")) { + last = _json["last"]; + } + if (_json.containsKey("producer")) { + producer = _json["producer"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (first != null) { + _json["first"] = first; + } + if (id != null) { + _json["id"] = id; + } + if (last != null) { + _json["last"] = last; + } + if (producer != null) { + _json["producer"] = producer; + } + return _json; + } +} + +/** Application log line emitted while processing a request. */ +class LogLine { + /** App-provided log message. */ + core.String logMessage; + /** + * Severity of this log entry. + * 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. + * - "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. + * - "ALERT" : (700) A person must take an action immediately. + * - "EMERGENCY" : (800) One or more systems are unusable. + */ + core.String severity; + /** Where in the source code this log message was written. */ + SourceLocation sourceLocation; + /** Approximate time when this log entry was made. */ + core.String time; + + LogLine(); + + LogLine.fromJson(core.Map _json) { + if (_json.containsKey("logMessage")) { + logMessage = _json["logMessage"]; + } + if (_json.containsKey("severity")) { + severity = _json["severity"]; + } + if (_json.containsKey("sourceLocation")) { + sourceLocation = new SourceLocation.fromJson(_json["sourceLocation"]); + } + if (_json.containsKey("time")) { + time = _json["time"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (logMessage != null) { + _json["logMessage"] = logMessage; + } + if (severity != null) { + _json["severity"] = severity; + } + if (sourceLocation != null) { + _json["sourceLocation"] = (sourceLocation).toJson(); + } + if (time != null) { + _json["time"] = time; + } + return _json; + } +} + +/** + * Describes a logs-based metric. The value of the metric is the + * number of log entries that match a logs filter. + */ +class LogMetric { + /** + * Optional. A description of this metric, which is used in documentation. + */ + core.String description; + /** + * Required. An [advanced logs filter](/logging/docs/view/advanced_filters). + * Example: `"resource.type=gae_app AND severity>=ERROR"`. + */ + 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. + */ + 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. + * Possible string values are: + * - "V2" : Stackdriver Logging API v2. + * - "V1" : Stackdriver Logging API v1. + */ + core.String version; + + LogMetric(); + + LogMetric.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("filter")) { + filter = _json["filter"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("version")) { + version = _json["version"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (description != null) { + _json["description"] = description; + } + if (filter != null) { + _json["filter"] = filter; + } + if (name != null) { + _json["name"] = name; + } + if (version != null) { + _json["version"] = version; + } + return _json; + } +} + +/** + * 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`. + */ +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" + */ + 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`. + */ + 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 + */ + 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. + */ + 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. + * 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. + */ + 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`. + */ + 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. + */ + core.String writerIdentity; + + LogSink(); + + LogSink.fromJson(core.Map _json) { + if (_json.containsKey("destination")) { + destination = _json["destination"]; + } + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("filter")) { + filter = _json["filter"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("outputVersionFormat")) { + outputVersionFormat = _json["outputVersionFormat"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("writerIdentity")) { + writerIdentity = _json["writerIdentity"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (destination != null) { + _json["destination"] = destination; + } + if (endTime != null) { + _json["endTime"] = endTime; + } + if (filter != null) { + _json["filter"] = filter; + } + if (name != null) { + _json["name"] = name; + } + if (outputVersionFormat != null) { + _json["outputVersionFormat"] = outputVersionFormat; + } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (writerIdentity != null) { + _json["writerIdentity"] = writerIdentity; + } + return _json; + } +} + +/** + * 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" }} + */ +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"`. + */ + 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"`. + */ + core.String type; + + MonitoredResource(); + + MonitoredResource.fromJson(core.Map _json) { + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (labels != null) { + _json["labels"] = labels; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * 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. + */ +class MonitoredResourceDescriptor { + /** + * Optional. A detailed description of the monitored resource type that might + * be used in documentation. + */ + core.String description; + /** + * 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"`. + */ + 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"`. + */ + 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}"`. + */ + 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. + */ + core.String type; + + MonitoredResourceDescriptor(); + + MonitoredResourceDescriptor.fromJson(core.Map _json) { + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("labels")) { + labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value)).toList(); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (description != null) { + _json["description"] = description; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (labels != null) { + _json["labels"] = labels.map((value) => (value).toJson()).toList(); + } + if (name != null) { + _json["name"] = name; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * Complete log information about a single HTTP request to an App Engine + * application. + */ +class RequestLog { + /** App Engine release version. */ + core.String appEngineRelease; + /** Application that handled this request. */ + core.String appId; + /** An indication of the relative cost of serving this request. */ + core.double cost; + /** Time when the request finished. */ + core.String endTime; + /** 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. + */ + core.bool first; + /** Internet host and port number of the resource being requested. */ + core.String host; + /** HTTP version of request. Example: `"HTTP/1.1"`. */ + core.String httpVersion; + /** An identifier for the instance that handled the request. */ + core.String instanceId; + /** + * If the instance processing this request belongs to a manually scaled + * module, then this is the 0-based index of the instance. Otherwise, this + * value is -1. + */ + core.int instanceIndex; + /** Origin IP address. */ + core.String ip; + /** Latency of the request. */ + core.String latency; + /** + * A list of log lines emitted by the application while serving this request. + */ + core.List<LogLine> line; + /** Number of CPU megacycles used to process request. */ + core.String megaCycles; + /** + * 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. + */ + core.String nickname; + /** Time this request spent in the pending request queue. */ + core.String pendingTime; + /** Referrer URL of request. */ + 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 + * 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. + */ + core.String resource; + /** Size in bytes sent back to client by request. */ + core.String responseSize; + /** + * Source code for the application that handled this request. There can be + * more than one source reference per deployed application if source code is + * distributed among multiple repositories. + */ + core.List<SourceReference> sourceReference; + /** Time when the request started. */ + core.String startTime; + /** HTTP response status code. Example: 200, 404. */ + core.int status; + /** Task name of the request, in the case of an offline request. */ + core.String taskName; + /** Queue name of the request, in the case of an offline request. */ + core.String taskQueueName; + /** Cloud Trace identifier for this request. */ + core.String traceId; + /** File or class that handled the request. */ + core.String urlMapEntry; + /** User agent that made the request. */ + core.String userAgent; + /** Version of the application that handled this request. */ + core.String versionId; + /** Whether this was a loading request for the instance. */ + core.bool wasLoadingRequest; + + RequestLog(); + + RequestLog.fromJson(core.Map _json) { + if (_json.containsKey("appEngineRelease")) { + appEngineRelease = _json["appEngineRelease"]; + } + if (_json.containsKey("appId")) { + appId = _json["appId"]; + } + if (_json.containsKey("cost")) { + cost = _json["cost"]; + } + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("finished")) { + finished = _json["finished"]; + } + if (_json.containsKey("first")) { + first = _json["first"]; + } + if (_json.containsKey("host")) { + host = _json["host"]; + } + if (_json.containsKey("httpVersion")) { + httpVersion = _json["httpVersion"]; + } + if (_json.containsKey("instanceId")) { + instanceId = _json["instanceId"]; + } + if (_json.containsKey("instanceIndex")) { + instanceIndex = _json["instanceIndex"]; + } + if (_json.containsKey("ip")) { + ip = _json["ip"]; + } + if (_json.containsKey("latency")) { + latency = _json["latency"]; + } + if (_json.containsKey("line")) { + line = _json["line"].map((value) => new LogLine.fromJson(value)).toList(); + } + if (_json.containsKey("megaCycles")) { + megaCycles = _json["megaCycles"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("moduleId")) { + moduleId = _json["moduleId"]; + } + if (_json.containsKey("nickname")) { + nickname = _json["nickname"]; + } + if (_json.containsKey("pendingTime")) { + pendingTime = _json["pendingTime"]; + } + if (_json.containsKey("referrer")) { + referrer = _json["referrer"]; + } + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } + if (_json.containsKey("resource")) { + resource = _json["resource"]; + } + if (_json.containsKey("responseSize")) { + responseSize = _json["responseSize"]; + } + if (_json.containsKey("sourceReference")) { + sourceReference = _json["sourceReference"].map((value) => new SourceReference.fromJson(value)).toList(); + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("status")) { + status = _json["status"]; + } + if (_json.containsKey("taskName")) { + taskName = _json["taskName"]; + } + if (_json.containsKey("taskQueueName")) { + taskQueueName = _json["taskQueueName"]; + } + if (_json.containsKey("traceId")) { + traceId = _json["traceId"]; + } + if (_json.containsKey("urlMapEntry")) { + urlMapEntry = _json["urlMapEntry"]; + } + if (_json.containsKey("userAgent")) { + userAgent = _json["userAgent"]; + } + if (_json.containsKey("versionId")) { + versionId = _json["versionId"]; + } + if (_json.containsKey("wasLoadingRequest")) { + wasLoadingRequest = _json["wasLoadingRequest"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (appEngineRelease != null) { + _json["appEngineRelease"] = appEngineRelease; + } + if (appId != null) { + _json["appId"] = appId; + } + if (cost != null) { + _json["cost"] = cost; + } + if (endTime != null) { + _json["endTime"] = endTime; + } + if (finished != null) { + _json["finished"] = finished; + } + if (first != null) { + _json["first"] = first; + } + if (host != null) { + _json["host"] = host; + } + if (httpVersion != null) { + _json["httpVersion"] = httpVersion; + } + if (instanceId != null) { + _json["instanceId"] = instanceId; + } + if (instanceIndex != null) { + _json["instanceIndex"] = instanceIndex; + } + if (ip != null) { + _json["ip"] = ip; + } + if (latency != null) { + _json["latency"] = latency; + } + if (line != null) { + _json["line"] = line.map((value) => (value).toJson()).toList(); + } + if (megaCycles != null) { + _json["megaCycles"] = megaCycles; + } + if (method != null) { + _json["method"] = method; + } + if (moduleId != null) { + _json["moduleId"] = moduleId; + } + if (nickname != null) { + _json["nickname"] = nickname; + } + if (pendingTime != null) { + _json["pendingTime"] = pendingTime; + } + if (referrer != null) { + _json["referrer"] = referrer; + } + if (requestId != null) { + _json["requestId"] = requestId; + } + if (resource != null) { + _json["resource"] = resource; + } + if (responseSize != null) { + _json["responseSize"] = responseSize; + } + if (sourceReference != null) { + _json["sourceReference"] = sourceReference.map((value) => (value).toJson()).toList(); + } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (status != null) { + _json["status"] = status; + } + if (taskName != null) { + _json["taskName"] = taskName; + } + if (taskQueueName != null) { + _json["taskQueueName"] = taskQueueName; + } + if (traceId != null) { + _json["traceId"] = traceId; + } + if (urlMapEntry != null) { + _json["urlMapEntry"] = urlMapEntry; + } + if (userAgent != null) { + _json["userAgent"] = userAgent; + } + if (versionId != null) { + _json["versionId"] = versionId; + } + if (wasLoadingRequest != null) { + _json["wasLoadingRequest"] = wasLoadingRequest; + } + return _json; + } +} + +/** Specifies a location in a source code file. */ +class SourceLocation { + /** + * Source file name. Depending on the runtime environment, this might be a + * simple name or a fully-qualified name. + */ + core.String file; + /** + * Human-readable name of the function or method being invoked, with optional + * 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). + */ + core.String functionName; + /** Line within the source file. */ + core.String line; + + SourceLocation(); + + SourceLocation.fromJson(core.Map _json) { + if (_json.containsKey("file")) { + file = _json["file"]; + } + if (_json.containsKey("functionName")) { + functionName = _json["functionName"]; + } + if (_json.containsKey("line")) { + line = _json["line"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (file != null) { + _json["file"] = file; + } + if (functionName != null) { + _json["functionName"] = functionName; + } + if (line != null) { + _json["line"] = line; + } + return _json; + } +} + +/** + * A reference to a particular snapshot of the source tree used to build and + * deploy an application. + */ +class SourceReference { + /** + * 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" + */ + core.String revisionId; + + SourceReference(); + + SourceReference.fromJson(core.Map _json) { + if (_json.containsKey("repository")) { + repository = _json["repository"]; + } + if (_json.containsKey("revisionId")) { + revisionId = _json["revisionId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (repository != null) { + _json["repository"] = repository; + } + if (revisionId != null) { + _json["revisionId"] = revisionId; + } + return _json; + } +} + +/** The parameters to WriteLogEntries. */ +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 + * 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. + */ + 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. + */ + 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 + * 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" }} + * + * See LogEntry. + */ + MonitoredResource resource; + + WriteLogEntriesRequest(); + + WriteLogEntriesRequest.fromJson(core.Map _json) { + if (_json.containsKey("entries")) { + entries = _json["entries"].map((value) => new LogEntry.fromJson(value)).toList(); + } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + if (_json.containsKey("logName")) { + logName = _json["logName"]; + } + if (_json.containsKey("partialSuccess")) { + partialSuccess = _json["partialSuccess"]; + } + if (_json.containsKey("resource")) { + resource = new MonitoredResource.fromJson(_json["resource"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (entries != null) { + _json["entries"] = entries.map((value) => (value).toJson()).toList(); + } + if (labels != null) { + _json["labels"] = labels; + } + if (logName != null) { + _json["logName"] = logName; + } + if (partialSuccess != null) { + _json["partialSuccess"] = partialSuccess; + } + if (resource != null) { + _json["resource"] = (resource).toJson(); + } + return _json; + } +} + +/** + * Result returned from WriteLogEntries. + * empty + */ +class WriteLogEntriesResponse { + + WriteLogEntriesResponse(); + + WriteLogEntriesResponse.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +}
diff --git a/generated/googleapis/lib/manufacturers/v1.dart b/generated/googleapis/lib/manufacturers/v1.dart new file mode 100644 index 0000000..8f3b104 --- /dev/null +++ b/generated/googleapis/lib/manufacturers/v1.dart
@@ -0,0 +1,507 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.manufacturers.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 manufacturers/v1'; + +/** Public API for managing Manufacturer Center related data. */ +class ManufacturersApi { + /** Manage your product listings for Google Manufacturer Center */ + static const ManufacturercenterScope = "https://www.googleapis.com/auth/manufacturercenter"; + + + final commons.ApiRequester _requester; + + AccountsResourceApi get accounts => new AccountsResourceApi(_requester); + + ManufacturersApi(http.Client client, {core.String rootUrl: "https://manufacturers.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class AccountsResourceApi { + final commons.ApiRequester _requester; + + AccountsProductsResourceApi get products => new AccountsProductsResourceApi(_requester); + + AccountsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class AccountsProductsResourceApi { + final commons.ApiRequester _requester; + + AccountsProductsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Gets the product from a Manufacturer Center account, including product + * issues. + * + * Request parameters: + * + * [parent] - Parent ID in the format `accounts/{account_id}`. + * + * `account_id` - The ID of the Manufacturer Center account. + * Value must have pattern "^accounts/[^/]+$". + * + * [name] - Name in the format + * `{target_country}:{content_language}:{product_id}`. + * + * `target_country` - The target country of the product as a CLDR territory + * code (for example, US). + * + * `content_language` - The content language of the product as a two-letter + * ISO 639-1 language code (for example, en). + * + * `product_id` - The ID of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#id. + * Value must have pattern "^[^/]+$". + * + * Completes with a [Product]. + * + * 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<Product> get(core.String parent, 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 (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/products/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Product.fromJson(data)); + } + + /** + * Lists all the products in a Manufacturer Center account. + * + * Request parameters: + * + * [parent] - Parent ID in the format `accounts/{account_id}`. + * + * `account_id` - The ID of the Manufacturer Center account. + * Value must have pattern "^accounts/[^/]+$". + * + * [pageSize] - Maximum number of product statuses to return in the response, + * used for + * paging. + * + * [pageToken] - The token returned by the previous request. + * + * Completes with a [ListProductsResponse]. + * + * 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<ListProductsResponse> 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 = 'v1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/products'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListProductsResponse.fromJson(data)); + } + +} + + + +/** + * Attributes of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116. + */ +class Attributes { + /** + * The brand name of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#brand. + */ + core.String brand; + /** + * The Global Trade Item Number (GTIN) of the product. For more information, + * see https://support.google.com/manufacturers/answer/6124116#gtin. + */ + core.List<core.String> gtin; + /** + * The Manufacturer Part Number (MPN) of the product. For more information, + * see https://support.google.com/manufacturers/answer/6124116#mpn. + */ + core.String mpn; + /** + * The name of the group of products related to the product. For more + * information, see + * https://support.google.com/manufacturers/answer/6124116#productline. + */ + core.String productLine; + /** + * The canonical name of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#productname. + */ + core.String productName; + /** + * The URL of the manufacturer's detail page of the product. For more + * information, see + * https://support.google.com/manufacturers/answer/6124116#productpage. + */ + core.String productPageUrl; + /** + * The manufacturer's category of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#producttype. + */ + core.List<core.String> productType; + /** + * The title of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#title. + */ + core.String title; + + Attributes(); + + Attributes.fromJson(core.Map _json) { + if (_json.containsKey("brand")) { + brand = _json["brand"]; + } + if (_json.containsKey("gtin")) { + gtin = _json["gtin"]; + } + if (_json.containsKey("mpn")) { + mpn = _json["mpn"]; + } + if (_json.containsKey("productLine")) { + productLine = _json["productLine"]; + } + if (_json.containsKey("productName")) { + productName = _json["productName"]; + } + if (_json.containsKey("productPageUrl")) { + productPageUrl = _json["productPageUrl"]; + } + if (_json.containsKey("productType")) { + productType = _json["productType"]; + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (brand != null) { + _json["brand"] = brand; + } + if (gtin != null) { + _json["gtin"] = gtin; + } + if (mpn != null) { + _json["mpn"] = mpn; + } + if (productLine != null) { + _json["productLine"] = productLine; + } + if (productName != null) { + _json["productName"] = productName; + } + if (productPageUrl != null) { + _json["productPageUrl"] = productPageUrl; + } + if (productType != null) { + _json["productType"] = productType; + } + if (title != null) { + _json["title"] = title; + } + return _json; + } +} + +/** Product issue. */ +class Issue { + /** + * If present, the attribute that triggered the issue. For more information + * about attributes, see + * https://support.google.com/manufacturers/answer/6124116. + */ + core.String attribute; + /** Description of the issue. */ + core.String description; + /** + * The severity of the issue. + * Possible string values are: + * - "SEVERITY_UNSPECIFIED" : Unspecified severity, never used. + * - "ERROR" : Error severity. The issue prevents the usage of the whole item. + * - "WARNING" : Warning severity. The issue is either one that prevents the + * usage of the + * attribute that triggered it or one that will soon prevent the usage of + * the whole item. + * - "INFO" : Info severity. The issue is one that doesn't require immediate + * attention. + * It is, for example, used to communicate which attributes are still + * pending review. + */ + core.String severity; + /** + * The server-generated type of the issue, for example, + * “INCORRECT_TEXT_FORMATTING”, “IMAGE_NOT_SERVEABLE”, etc. + */ + core.String type; + + Issue(); + + Issue.fromJson(core.Map _json) { + if (_json.containsKey("attribute")) { + attribute = _json["attribute"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("severity")) { + severity = _json["severity"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (attribute != null) { + _json["attribute"] = attribute; + } + if (description != null) { + _json["description"] = description; + } + if (severity != null) { + _json["severity"] = severity; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +class ListProductsResponse { + /** The token for the retrieval of the next page of product statuses. */ + core.String nextPageToken; + /** List of the products. */ + core.List<Product> products; + + ListProductsResponse(); + + ListProductsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("products")) { + products = _json["products"].map((value) => new Product.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (products != null) { + _json["products"] = products.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Product data. */ +class Product { + /** + * The content language of the product as a two-letter ISO 639-1 language code + * (for example, en). + * @OutputOnly + */ + core.String contentLanguage; + /** + * Final attributes of the product. The final attributes are obtained by + * overriding the uploaded attributes with the manually provided and deleted + * attributes. Google systems only process, evaluate, review, and/or use final + * attributes. + * @OutputOnly + */ + Attributes finalAttributes; + /** + * A server-generated list of issues associated with the product. + * @OutputOnly + */ + core.List<Issue> issues; + /** + * Names of the attributes of the product deleted manually via the + * Manufacturer Center UI. + * @OutputOnly + */ + core.List<core.String> manuallyDeletedAttributes; + /** + * Attributes of the product provided manually via the Manufacturer Center UI. + * @OutputOnly + */ + Attributes manuallyProvidedAttributes; + /** + * Name in the format `{target_country}:{content_language}:{product_id}`. + * + * `target_country` - The target country of the product as a CLDR territory + * code (for example, US). + * + * `content_language` - The content language of the product as a two-letter + * ISO 639-1 language code (for example, en). + * + * `product_id` - The ID of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#id. + * @OutputOnly + */ + core.String name; + /** + * Parent ID in the format `accounts/{account_id}`. + * + * `account_id` - The ID of the Manufacturer Center account. + * @OutputOnly + */ + core.String parent; + /** + * The ID of the product. For more information, see + * https://support.google.com/manufacturers/answer/6124116#id. + * @OutputOnly + */ + core.String productId; + /** + * The target country of the product as a CLDR territory code (for example, + * US). + * @OutputOnly + */ + core.String targetCountry; + /** + * Attributes of the product uploaded via the Manufacturer Center API or via + * feeds. + */ + Attributes uploadedAttributes; + + Product(); + + Product.fromJson(core.Map _json) { + if (_json.containsKey("contentLanguage")) { + contentLanguage = _json["contentLanguage"]; + } + if (_json.containsKey("finalAttributes")) { + finalAttributes = new Attributes.fromJson(_json["finalAttributes"]); + } + if (_json.containsKey("issues")) { + issues = _json["issues"].map((value) => new Issue.fromJson(value)).toList(); + } + if (_json.containsKey("manuallyDeletedAttributes")) { + manuallyDeletedAttributes = _json["manuallyDeletedAttributes"]; + } + if (_json.containsKey("manuallyProvidedAttributes")) { + manuallyProvidedAttributes = new Attributes.fromJson(_json["manuallyProvidedAttributes"]); + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("parent")) { + parent = _json["parent"]; + } + if (_json.containsKey("productId")) { + productId = _json["productId"]; + } + if (_json.containsKey("targetCountry")) { + targetCountry = _json["targetCountry"]; + } + if (_json.containsKey("uploadedAttributes")) { + uploadedAttributes = new Attributes.fromJson(_json["uploadedAttributes"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contentLanguage != null) { + _json["contentLanguage"] = contentLanguage; + } + if (finalAttributes != null) { + _json["finalAttributes"] = (finalAttributes).toJson(); + } + if (issues != null) { + _json["issues"] = issues.map((value) => (value).toJson()).toList(); + } + if (manuallyDeletedAttributes != null) { + _json["manuallyDeletedAttributes"] = manuallyDeletedAttributes; + } + if (manuallyProvidedAttributes != null) { + _json["manuallyProvidedAttributes"] = (manuallyProvidedAttributes).toJson(); + } + if (name != null) { + _json["name"] = name; + } + if (parent != null) { + _json["parent"] = parent; + } + if (productId != null) { + _json["productId"] = productId; + } + if (targetCountry != null) { + _json["targetCountry"] = targetCountry; + } + if (uploadedAttributes != null) { + _json["uploadedAttributes"] = (uploadedAttributes).toJson(); + } + return _json; + } +}
diff --git a/generated/googleapis/lib/monitoring/v3.dart b/generated/googleapis/lib/monitoring/v3.dart index 053c465..a320345 100644 --- a/generated/googleapis/lib/monitoring/v3.dart +++ b/generated/googleapis/lib/monitoring/v3.dart
@@ -15,13 +15,9 @@ const core.String USER_AGENT = 'dart-api-client monitoring/v3'; /** - * Manages your Stackdriver monitoring data and configurations. Projects must be - * associated with a Stackdriver account, except for the following methods: - * [monitoredResourceDescriptors.list](v3/projects.monitoredResourceDescriptors/list), - * [monitoredResourceDescriptors.get](v3/projects.monitoredResourceDescriptors/get), - * [metricDescriptors.list](v3/projects.metricDescriptors/list), - * [metricDescriptors.get](v3/projects.metricDescriptors/get), and - * [timeSeries.list](v3/projects.timeSeries/list). + * Manages your Stackdriver Monitoring data and configurations. Most projects + * must be associated with a Stackdriver account, with a few exceptions as noted + * on the individual method pages. */ class MonitoringApi { /** View and manage your data across Google Cloud Platform services */ @@ -72,17 +68,17 @@ _requester = client; /** - * Creates a new time series with the given data points. This method is only - * for use in `collectd`-related code, including the Google Monitoring Agent. - * See [google.monitoring.v3.MetricService.CreateTimeSeries] instead. + * Stackdriver Monitoring Agent only: Creates a new time series.<aside + * class="caution">This method is only for use by the Stackdriver Monitoring + * Agent. Use projects.timeSeries.create instead.</aside> * * [request] - The metadata request object. * * Request parameters: * * [name] - The project in which to create the time series. The format is - * `"projects/PROJECT_ID_OR_NUMBER"`. - * Value must have pattern "^projects/[^/]*$". + * "projects/PROJECT_ID_OR_NUMBER". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [Empty]. * @@ -138,8 +134,8 @@ * Request parameters: * * [name] - The project in which to create the group. The format is - * `"projects/{project_id_or_number}"`. - * Value must have pattern "^projects/[^/]*$". + * "projects/{project_id_or_number}". + * Value must have pattern "^projects/[^/]+$". * * [validateOnly] - If true, validate this request but do not create the * group. @@ -188,8 +184,8 @@ * Request parameters: * * [name] - The group to delete. The format is - * `"projects/{project_id_or_number}/groups/{group_id}"`. - * Value must have pattern "^projects/[^/] * / groups/[^/]*$". + * "projects/{project_id_or_number}/groups/{group_id}". + * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * Completes with a [Empty]. * @@ -229,8 +225,8 @@ * Request parameters: * * [name] - The group to retrieve. The format is - * `"projects/{project_id_or_number}/groups/{group_id}"`. - * Value must have pattern "^projects/[^/] * / groups/[^/]*$". + * "projects/{project_id_or_number}/groups/{group_id}". + * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * Completes with a [Group]. * @@ -270,33 +266,33 @@ * Request parameters: * * [name] - The project whose groups are to be listed. The format is - * `"projects/{project_id_or_number}"`. - * Value must have pattern "^projects/[^/]*$". - * - * [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. - * - * [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}". + * 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. + * returned by the childrenOfGroup filter, and includes children-of-children, + * and so forth. * * [pageSize] - A positive number that is the maximum number of results to * 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. + * + * [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. + * * [pageToken] - If this field is not empty then it must contain the - * `nextPageToken` value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous + * nextPageToken value returned by a previous call to this method. Using this + * field causes the method to return additional results from the previous * method call. * * Completes with a [ListGroupsResponse]. @@ -307,7 +303,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<ListGroupsResponse> list(core.String name, {core.String childrenOfGroup, core.String ancestorsOfGroup, core.String descendantsOfGroup, core.int pageSize, core.String pageToken}) { + async.Future<ListGroupsResponse> list(core.String name, {core.String descendantsOfGroup, core.int pageSize, core.String childrenOfGroup, core.String ancestorsOfGroup, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -318,18 +314,18 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (childrenOfGroup != null) { - _queryParams["childrenOfGroup"] = [childrenOfGroup]; - } - if (ancestorsOfGroup != null) { - _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; - } if (descendantsOfGroup != null) { _queryParams["descendantsOfGroup"] = [descendantsOfGroup]; } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (childrenOfGroup != null) { + _queryParams["childrenOfGroup"] = [childrenOfGroup]; + } + if (ancestorsOfGroup != null) { + _queryParams["ancestorsOfGroup"] = [ancestorsOfGroup]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -347,19 +343,18 @@ } /** - * Updates an existing group. You can change any group attributes except - * `name`. + * Updates an existing group. You can change any group attributes except name. * * [request] - The metadata request object. * * Request parameters: * - * [name] - 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. @OutputOnly - * Value must have pattern "^projects/[^/] * / groups/[^/]*$". + * [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. + * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * [validateOnly] - If true, validate this request but do not update the * existing group. @@ -417,31 +412,30 @@ * Request parameters: * * [name] - The group whose members are listed. The format is - * `"projects/{project_id_or_number}/groups/{group_id}"`. - * Value must have pattern "^projects/[^/] * / groups/[^/]*$". + * "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" + * + * [interval_endTime] - Required. The end of the time interval. + * + * [interval_startTime] - Optional. The beginning of the time interval. The + * default value for the start time is the end time. The start time must not + * be later than the end time. * * [pageSize] - A positive number that is the maximum number of results to * return. * * [pageToken] - If this field is not empty then it must contain the - * `nextPageToken` value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous + * nextPageToken value returned by a previous call to this method. Using this + * field causes the method to return additional results from the previous * method call. * - * [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" - * - * [interval_endTime] - Required. The end of the interval. The interval - * includes this time. - * - * [interval_startTime] - If this value is omitted, the interval is a point in - * time, `endTime`. If `startTime` is present, it must be earlier than (less - * than) `endTime`. The interval begins after `startTime`—it does not include - * `startTime`. - * * Completes with a [ListGroupMembersResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -450,7 +444,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<ListGroupMembersResponse> list(core.String name, {core.int pageSize, core.String pageToken, core.String filter, core.String interval_endTime, core.String interval_startTime}) { + async.Future<ListGroupMembersResponse> list(core.String name, {core.String filter, core.String interval_endTime, core.String interval_startTime, core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -461,12 +455,6 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; - } if (filter != null) { _queryParams["filter"] = [filter]; } @@ -476,6 +464,12 @@ if (interval_startTime != null) { _queryParams["interval.startTime"] = [interval_startTime]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } _url = 'v3/' + commons.Escaper.ecapeVariableReserved('$name') + '/members'; @@ -500,15 +494,15 @@ /** * Creates a new metric descriptor. User-created metric descriptors define - * [custom metrics](/monitoring/custom-metrics). + * custom metrics (/monitoring/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}"`. - * Value must have pattern "^projects/[^/]*$". + * "projects/{project_id_or_number}". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [MetricDescriptor]. * @@ -546,15 +540,17 @@ } /** - * Deletes a metric descriptor. Only user-created [custom - * metrics](/monitoring/custom-metrics) can be deleted. + * Deletes a metric descriptor. Only user-created custom metrics + * (/monitoring/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"`. - * Value must have pattern "^projects/[^/] * / metricDescriptors/.*$". + * 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]. * @@ -595,10 +591,11 @@ * 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"`. - * Value must have pattern "^projects/[^/] * / metricDescriptors/.*$". + * 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]. * @@ -639,22 +636,22 @@ * Request parameters: * * [name] - The project on which to execute the request. The format is - * `"projects/{project_id_or_number}"`. - * Value must have pattern "^projects/[^/]*$". - * - * [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/") + * "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/") + * * [pageToken] - If this field is not empty then it must contain the - * `nextPageToken` value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous + * nextPageToken value returned by a previous call to this method. Using this + * field causes the method to return additional results from the previous * method call. * * Completes with a [ListMetricDescriptorsResponse]. @@ -665,7 +662,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<ListMetricDescriptorsResponse> list(core.String name, {core.String filter, core.int pageSize, core.String pageToken}) { + async.Future<ListMetricDescriptorsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -676,12 +673,12 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -714,10 +711,10 @@ * Request parameters: * * [name] - The monitored resource descriptor to get. The format is - * `"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/[^/]*$". + * "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/[^/]+$". * * Completes with a [MonitoredResourceDescriptor]. * @@ -758,21 +755,21 @@ * Request parameters: * * [name] - The project on which to execute the request. The format is - * `"projects/{project_id_or_number}"`. - * Value must have pattern "^projects/[^/]*$". - * - * [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 + * "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 + * * [pageToken] - If this field is not empty then it must contain the - * `nextPageToken` value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous + * nextPageToken value returned by a previous call to this method. Using this + * field causes the method to return additional results from the previous * method call. * * Completes with a [ListMonitoredResourceDescriptorsResponse]. @@ -783,7 +780,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<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.String filter, core.int pageSize, core.String pageToken}) { + async.Future<ListMonitoredResourceDescriptorsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -794,12 +791,12 @@ if (name == null) { throw new core.ArgumentError("Parameter name is required."); } - if (filter != null) { - _queryParams["filter"] = [filter]; - } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -836,8 +833,8 @@ * Request parameters: * * [name] - The project on which to execute the request. The format is - * `"projects/{project_id_or_number}"`. - * Value must have pattern "^projects/[^/]*$". + * "projects/{project_id_or_number}". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [Empty]. * @@ -882,62 +879,35 @@ * * [name] - The project on which to execute the request. The format is * "projects/{project_id_or_number}". - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * - * [filter] - A [monitoring filter](/monitoring/api/v3/filters) that specifies + * [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" + * information. For example: + * metric.type = "compute.googleapis.com/instance/cpu/usage_time" + * AND + * metric.label.instance_name = "my-instance-name" * - * [interval_endTime] - Required. The end of the interval. The interval - * includes this time. - * - * [interval_startTime] - If this value is omitted, the interval is a point in - * time, `endTime`. If `startTime` is present, it must be earlier than (less - * than) `endTime`. The interval begins after `startTime`—it does not include - * `startTime`. - * - * [aggregation_alignmentPeriod] - The alignment period for per-[time - * series](TimeSeries) alignment. If present, `alignmentPeriod` must be at - * least 60 seconds. After per-time series alignment, each time series will - * contain data points only on the period boundaries. If `perSeriesAligner` is - * not specified or equals `ALIGN_NONE`, then this field is ignored. If - * `perSeriesAligner` is specified and does not equal `ALIGN_NONE`, then this - * field must be defined; otherwise an error is returned. - * - * [aggregation_perSeriesAligner] - The approach to be used to align - * individual time series. Not all alignment functions may be applied to all - * time series, depending on the metric type and value type of the original - * time series. Alignment may change the metric type or the value type of the - * time series. Time series data must be aligned in order to perform - * cross-time series reduction. If `crossSeriesReducer` is specified, then - * `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and - * `alignmentPeriod` must be specified; otherwise, an error is returned. - * Possible string values are: - * - "ALIGN_NONE" : A ALIGN_NONE. - * - "ALIGN_DELTA" : A ALIGN_DELTA. - * - "ALIGN_RATE" : A ALIGN_RATE. - * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE. - * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER. - * - "ALIGN_MIN" : A ALIGN_MIN. - * - "ALIGN_MAX" : A ALIGN_MAX. - * - "ALIGN_MEAN" : A ALIGN_MEAN. - * - "ALIGN_COUNT" : A ALIGN_COUNT. - * - "ALIGN_SUM" : A ALIGN_SUM. - * - "ALIGN_STDDEV" : A ALIGN_STDDEV. - * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. - * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. + * [aggregation_groupByFields] - The set of fields to preserve when + * crossSeriesReducer is specified. The groupByFields determine how the time + * series are partitioned into subsets prior to applying the aggregation + * 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. * * [aggregation_crossSeriesReducer] - The approach to be used to combine time * series. Not all reducer functions may be applied to all time series, * depending on the metric type and the value type of the original time * series. Reduction may change the metric type of value type of the time - * series. Time series data must be aligned in order to perform cross-time - * series reduction. If `crossSeriesReducer` is specified, then - * `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and - * `alignmentPeriod` must be specified; otherwise, an error is returned. + * series.Time series data must be aligned in order to perform cross-time + * series reduction. If crossSeriesReducer is specified, then perSeriesAligner + * must be specified and not equal ALIGN_NONE and alignmentPeriod must be + * specified; otherwise, an error is returned. * Possible string values are: * - "REDUCE_NONE" : A REDUCE_NONE. * - "REDUCE_MEAN" : A REDUCE_MEAN. @@ -953,34 +923,64 @@ * - "REDUCE_PERCENTILE_50" : A REDUCE_PERCENTILE_50. * - "REDUCE_PERCENTILE_05" : A REDUCE_PERCENTILE_05. * - * [aggregation_groupByFields] - The set of fields to preserve when - * `crossSeriesReducer` is specified. The `groupByFields` determine how the - * time series are partitioned into subsets prior to applying the aggregation - * 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. + * [interval_endTime] - Required. The end of the time interval. * - * [orderBy] - Specifies the order in which the points of the time series - * should be returned. By default, results are not ordered. Currently, this - * field must be left blank. + * [interval_startTime] - Optional. The beginning of the time interval. The + * default value for the start time is the end time. The start time must not + * be later than the end time. + * + * [pageSize] - A positive number that is the maximum number of results to + * return. When view field sets to FULL, it limits the number of Points server + * will return; if view field is HEADERS, it limits the number of TimeSeries + * server will return. * * [view] - Specifies which information is returned about the time series. * Possible string values are: * - "FULL" : A FULL. * - "HEADERS" : A HEADERS. * - * [pageSize] - A positive number that is the maximum number of results to - * return. When `view` field sets to `FULL`, it limits the number of `Points` - * server will return; if `view` field is `HEADERS`, it limits the number of - * `TimeSeries` server will return. + * [aggregation_alignmentPeriod] - The alignment period for per-time series + * alignment. If present, alignmentPeriod must be at least 60 seconds. After + * per-time series alignment, each time series will contain data points only + * on the period boundaries. If perSeriesAligner is not specified or equals + * ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified + * and does not equal ALIGN_NONE, then this field must be defined; otherwise + * an error is returned. + * + * [aggregation_perSeriesAligner] - The approach to be used to align + * individual time series. Not all alignment functions may be applied to all + * time series, depending on the metric type and value type of the original + * time series. Alignment may change the metric type or the value type of the + * time series.Time series data must be aligned in order to perform cross-time + * series reduction. If crossSeriesReducer is specified, then perSeriesAligner + * must be specified and not equal ALIGN_NONE and alignmentPeriod must be + * specified; otherwise, an error is returned. + * Possible string values are: + * - "ALIGN_NONE" : A ALIGN_NONE. + * - "ALIGN_DELTA" : A ALIGN_DELTA. + * - "ALIGN_RATE" : A ALIGN_RATE. + * - "ALIGN_INTERPOLATE" : A ALIGN_INTERPOLATE. + * - "ALIGN_NEXT_OLDER" : A ALIGN_NEXT_OLDER. + * - "ALIGN_MIN" : A ALIGN_MIN. + * - "ALIGN_MAX" : A ALIGN_MAX. + * - "ALIGN_MEAN" : A ALIGN_MEAN. + * - "ALIGN_COUNT" : A ALIGN_COUNT. + * - "ALIGN_SUM" : A ALIGN_SUM. + * - "ALIGN_STDDEV" : A ALIGN_STDDEV. + * - "ALIGN_COUNT_TRUE" : A ALIGN_COUNT_TRUE. + * - "ALIGN_FRACTION_TRUE" : A ALIGN_FRACTION_TRUE. + * - "ALIGN_PERCENTILE_99" : A ALIGN_PERCENTILE_99. + * - "ALIGN_PERCENTILE_95" : A ALIGN_PERCENTILE_95. + * - "ALIGN_PERCENTILE_50" : A ALIGN_PERCENTILE_50. + * - "ALIGN_PERCENTILE_05" : A ALIGN_PERCENTILE_05. + * + * [orderBy] - Specifies the order in which the points of the time series + * should be returned. By default, results are not ordered. Currently, this + * field must be left blank. * * [pageToken] - If this field is not empty then it must contain the - * `nextPageToken` value returned by a previous call to this method. Using - * this field causes the method to return additional results from the previous + * nextPageToken value returned by a previous call to this method. Using this + * field causes the method to return additional results from the previous * method call. * * Completes with a [ListTimeSeriesResponse]. @@ -991,7 +991,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<ListTimeSeriesResponse> list(core.String name, {core.String filter, core.String interval_endTime, core.String interval_startTime, core.String aggregation_alignmentPeriod, core.String aggregation_perSeriesAligner, core.String aggregation_crossSeriesReducer, core.List<core.String> aggregation_groupByFields, core.String orderBy, core.String view, core.int pageSize, core.String pageToken}) { + async.Future<ListTimeSeriesResponse> list(core.String name, {core.String filter, core.List<core.String> aggregation_groupByFields, core.String aggregation_crossSeriesReducer, core.String interval_endTime, core.String interval_startTime, core.int pageSize, core.String view, core.String aggregation_alignmentPeriod, core.String aggregation_perSeriesAligner, core.String orderBy, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1005,33 +1005,33 @@ if (filter != null) { _queryParams["filter"] = [filter]; } + if (aggregation_groupByFields != null) { + _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; + } + if (aggregation_crossSeriesReducer != null) { + _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesReducer]; + } if (interval_endTime != null) { _queryParams["interval.endTime"] = [interval_endTime]; } if (interval_startTime != null) { _queryParams["interval.startTime"] = [interval_startTime]; } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (view != null) { + _queryParams["view"] = [view]; + } if (aggregation_alignmentPeriod != null) { _queryParams["aggregation.alignmentPeriod"] = [aggregation_alignmentPeriod]; } if (aggregation_perSeriesAligner != null) { _queryParams["aggregation.perSeriesAligner"] = [aggregation_perSeriesAligner]; } - if (aggregation_crossSeriesReducer != null) { - _queryParams["aggregation.crossSeriesReducer"] = [aggregation_crossSeriesReducer]; - } - if (aggregation_groupByFields != null) { - _queryParams["aggregation.groupByFields"] = aggregation_groupByFields; - } if (orderBy != null) { _queryParams["orderBy"] = [orderBy]; } - if (view != null) { - _queryParams["view"] = [view]; - } - if (pageSize != null) { - _queryParams["pageSize"] = ["${pageSize}"]; - } if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } @@ -1054,22 +1054,22 @@ /** * A Distribution may optionally contain a histogram of the values in the - * population. The histogram is given in `bucket_counts` as counts of values - * that fall into one of a sequence of non-overlapping buckets. The sequence of - * buckets is described by `bucket_options`. A bucket specifies an inclusive - * lower bound and exclusive upper bound for the values that are counted for - * that bucket. The upper bound of a bucket is strictly greater than the lower - * bound. The sequence of N buckets for a Distribution consists of an underflow + * population. The histogram is given in bucket_counts as counts of values that + * fall into one of a sequence of non-overlapping buckets. The sequence of + * buckets is described by bucket_options.A bucket specifies an inclusive lower + * bound and exclusive upper bound for the values that are counted for that + * bucket. The upper bound of a bucket is strictly greater than the lower + * 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 + * 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_boundaries` is not given, then no `bucket_counts` may be given. + * 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. */ @@ -1109,27 +1109,27 @@ } /** - * A collection of data points sent from a `collectd`-based plugin. See the - * `collectd` documentation for more information. + * A collection of data points sent from a collectd-based plugin. See the + * collectd documentation for more information. */ 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 - * different `dataSourceName`. + * different dataSourceName. */ core.List<CollectdValue> values; @@ -1192,21 +1192,26 @@ } } -/** A single data point from a `collectd`-based plugin. */ +/** A single data point from a collectd-based plugin. */ class CollectdValue { /** - * The data source for the `collectd` value. For example there are two data - * sources for network measurements: `"rx"` and `"tx"`. + * The data source for the collectd value. For example there are two data + * sources for network measurements: "rx" and "tx". */ core.String dataSourceName; /** * The type of measurement. * Possible string values are: - * - "UNSPECIFIED_DATA_SOURCE_TYPE" : A UNSPECIFIED_DATA_SOURCE_TYPE. - * - "GAUGE" : A GAUGE. - * - "COUNTER" : A COUNTER. - * - "DERIVE" : A DERIVE. - * - "ABSOLUTE" : A ABSOLUTE. + * - "UNSPECIFIED_DATA_SOURCE_TYPE" : An unspecified data source type. This + * corresponds to + * google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED. + * - "GAUGE" : An instantaneous measurement of a varying quantity. This + * corresponds to google.api.MetricDescriptor.MetricKind.GAUGE. + * - "COUNTER" : A cumulative value over time. This corresponds to + * google.api.MetricDescriptor.MetricKind.CUMULATIVE. + * - "DERIVE" : A rate of change of the measurement. + * - "ABSOLUTE" : An amount of change since the last measurement interval. + * This corresponds to google.api.MetricDescriptor.MetricKind.DELTA. */ core.String dataSourceType; /** The measurement value. */ @@ -1241,18 +1246,18 @@ } } -/** The `CreateCollectdTimeSeries` request. */ +/** The CreateCollectdTimeSeries request. */ class CreateCollectdTimeSeriesRequest { /** - * The `collectd` payloads representing the time series data. You must not + * The collectd payloads representing the time series data. You must not * include more than a single point for each time series, so no two payloads - * can have the same values for all of the fields `plugin`, `plugin_instance`, - * `type`, and `type_instance`. + * can have the same values for all of the fields plugin, plugin_instance, + * type, and type_instance. */ 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. */ @@ -1287,14 +1292,14 @@ } } -/** The `CreateTimeSeries` request. */ +/** The CreateTimeSeries request. */ class CreateTimeSeriesRequest { /** * The new data to be added to a list of time series. Adds at most one data * point to each of several time series. The new data point must be more - * recent than any other point in its time series. Each `TimeSeries` value - * must fully specify a unique time series by supplying all label values for - * the metric and the monitored resource. + * recent than any other point in its time series. Each TimeSeries value must + * fully specify a unique time series by supplying all label values for the + * metric and the monitored resource. */ core.List<TimeSeries> timeSeries; @@ -1318,27 +1323,27 @@ /** * Distribution contains summary statistics for a population of values and, * optionally, a histogram representing the distribution of those values across - * a specified set of histogram buckets. The summary statistics are the count, + * a specified set of histogram buckets.The summary statistics are the count, * mean, sum of the squared deviation from the mean, the minimum, and the - * maximum of the set of population of values. The histogram is based on a + * maximum of the set of population of values.The histogram is based on a * sequence of buckets and gives a count of values that fall into each bucket. * The boundaries of the buckets are given either explicitly or by specifying * parameters for a method of computing them (buckets of fixed width or buckets - * of exponentially increasing width). Although it is not forbidden, it is + * of exponentially increasing width).Although it is not forbidden, it is * generally a bad idea to include non-finite values (infinities or NaNs) in the - * population of values, as this will render the `mean` and - * `sum_of_squared_deviation` fields meaningless. + * population of values, as this will render the mean and + * sum_of_squared_deviation fields meaningless. */ class Distribution { /** - * If `bucket_options` is given, then the sum of the values in `bucket_counts` - * must equal the value in `count`. If `bucket_options` is not given, no - * `bucket_counts` fields may be given. Bucket counts are given in order under + * If bucket_options is given, then the sum of the values in bucket_counts + * must equal the value in count. If bucket_options is not given, no + * bucket_counts fields may be given.Bucket counts are given in order under * the numbering scheme described above (the underflow bucket has number 0; * the finite buckets, if any, have numbers 1 through N-2; the overflow bucket - * has number N-1). The size of `bucket_counts` must be no greater than N as - * defined in `bucket_options`. Any suffix of trailing zero bucket_count - * fields may be omitted. + * has number N-1).The size of bucket_counts must be no greater than N as + * defined in bucket_options.Any suffix of trailing zero bucket_count fields + * may be omitted. */ core.List<core.String> bucketCounts; /** Defines the histogram bucket boundaries. */ @@ -1346,21 +1351,23 @@ /** The number of values in the population. Must be non-negative. */ core.String count; /** - * The arithmetic mean of the values in the population. If `count` is zero - * then this field must be zero. + * The arithmetic mean of the values in the population. If count is zero then + * this field must be zero. */ core.double mean; /** * If specified, contains the range of the population values. The field must - * not be present if the `count` is zero. + * not be present if the count is zero. This field is presently ignored by the + * Stackdriver Monitoring API v3. */ Range range; /** * The sum of squared deviations from the mean of the values in the - * population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The - * Art of Computer Programming", Vol. 2, page 323, 3rd edition describes - * Welford's method for accumulating this sum in one pass. If `count` is zero - * then this field must be zero. + * population. For values x_i this is: + * Sum[i=1..n]((x_i - mean)^2) + * Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition + * describes Welford's method for accumulating this sum in one pass.If count + * is zero then this field must be zero. */ core.double sumOfSquaredDeviation; @@ -1414,9 +1421,11 @@ /** * 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 `{}`. + * 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 { @@ -1432,12 +1441,12 @@ } /** - * 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): - * bounds[i] Lower bound (1 <= i < N); bounds[i - 1] There 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. + * 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. */ class Explicit { /** The values must be monotonically increasing. */ @@ -1463,17 +1472,17 @@ /** * 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 * + * 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 * * (growth_factor ^ (i - 1)). */ class Exponential { - /** Must be greater than 1 */ + /** Must be greater than 1. */ core.double growthFactor; - /** must be greater than 0 */ + /** Must be greater than 0. */ core.int numFiniteBuckets; - /** Must be greater than 0 */ + /** Must be greater than 0. */ core.double scale; Exponential(); @@ -1510,10 +1519,10 @@ /** * The field cardinality. * Possible string values are: - * - "CARDINALITY_UNKNOWN" : A CARDINALITY_UNKNOWN. - * - "CARDINALITY_OPTIONAL" : A CARDINALITY_OPTIONAL. - * - "CARDINALITY_REQUIRED" : A CARDINALITY_REQUIRED. - * - "CARDINALITY_REPEATED" : A CARDINALITY_REPEATED. + * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality. + * - "CARDINALITY_OPTIONAL" : For optional fields. + * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only. + * - "CARDINALITY_REPEATED" : For repeated fields. */ core.String cardinality; /** @@ -1525,25 +1534,25 @@ /** * The field type. * Possible string values are: - * - "TYPE_UNKNOWN" : A TYPE_UNKNOWN. - * - "TYPE_DOUBLE" : A TYPE_DOUBLE. - * - "TYPE_FLOAT" : A TYPE_FLOAT. - * - "TYPE_INT64" : A TYPE_INT64. - * - "TYPE_UINT64" : A TYPE_UINT64. - * - "TYPE_INT32" : A TYPE_INT32. - * - "TYPE_FIXED64" : A TYPE_FIXED64. - * - "TYPE_FIXED32" : A TYPE_FIXED32. - * - "TYPE_BOOL" : A TYPE_BOOL. - * - "TYPE_STRING" : A TYPE_STRING. - * - "TYPE_GROUP" : A TYPE_GROUP. - * - "TYPE_MESSAGE" : A TYPE_MESSAGE. - * - "TYPE_BYTES" : A TYPE_BYTES. - * - "TYPE_UINT32" : A TYPE_UINT32. - * - "TYPE_ENUM" : A TYPE_ENUM. - * - "TYPE_SFIXED32" : A TYPE_SFIXED32. - * - "TYPE_SFIXED64" : A TYPE_SFIXED64. - * - "TYPE_SINT32" : A TYPE_SINT32. - * - "TYPE_SINT64" : A TYPE_SINT64. + * - "TYPE_UNKNOWN" : Field type unknown. + * - "TYPE_DOUBLE" : Field type double. + * - "TYPE_FLOAT" : Field type float. + * - "TYPE_INT64" : Field type int64. + * - "TYPE_UINT64" : Field type uint64. + * - "TYPE_INT32" : Field type int32. + * - "TYPE_FIXED64" : Field type fixed64. + * - "TYPE_FIXED32" : Field type fixed32. + * - "TYPE_BOOL" : Field type bool. + * - "TYPE_STRING" : Field type string. + * - "TYPE_GROUP" : Field type group. Proto2 syntax only, and deprecated. + * - "TYPE_MESSAGE" : Field type message. + * - "TYPE_BYTES" : Field type bytes. + * - "TYPE_UINT32" : Field type uint32. + * - "TYPE_ENUM" : Field type enum. + * - "TYPE_SFIXED32" : Field type sfixed32. + * - "TYPE_SFIXED64" : Field type sfixed64. + * - "TYPE_SINT32" : Field type sint32. + * - "TYPE_SINT64" : Field type sint64. */ core.String kind; /** The field name. */ @@ -1551,7 +1560,7 @@ /** The field number. */ core.int number; /** - * The index of the field type in `Type.oneofs`, for message or enumeration + * The index of the field type in Type.oneofs, for message or enumeration * types. The first type has index 1; zero means the type is not in the list. */ core.int oneofIndex; @@ -1561,7 +1570,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; @@ -1642,21 +1651,22 @@ * metadata. If a group's filter matches an available monitored resource, then * that resource is a member of that group. Groups can contain any number of * monitored resources, and each monitored resource can be a member of any - * number of groups. Groups can be nested in parent-child hierarchies. The - * `parentName` field identifies an optional parent for each group. If a group - * has a parent, then the only monitored resources available to be matched by - * the group's filter are the resources contained in the parent group. In other + * number of groups.Groups can be nested in parent-child hierarchies. The + * parentName field identifies an optional parent for each group. If a group has + * a parent, then the only monitored resources available to be matched by the + * group's filter are the resources contained in the parent group. In other * 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 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 with the group and its ancestors. + * 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 + * 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 + * with the group and its ancestors. */ class Group { /** A user-assigned name for this group, used only for display purposes. */ @@ -1672,17 +1682,17 @@ */ core.bool isCluster; /** - * 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. @OutputOnly + * 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. */ 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; @@ -1736,9 +1746,9 @@ /** * The type of data that can be assigned to the label. * Possible string values are: - * - "STRING" : A STRING. - * - "BOOL" : A BOOL. - * - "INT64" : A INT64. + * - "STRING" : A variable-length string. This is the default. + * - "BOOL" : Boolean; true or false. + * - "INT64" : A 64-bit signed integer. */ core.String valueType; @@ -1774,9 +1784,9 @@ /** * 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)). + * 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)). */ class Linear { /** Must be greater than 0. */ @@ -1815,14 +1825,14 @@ } } -/** The `ListGroupMembers` response. */ +/** The ListGroupMembers response. */ class ListGroupMembersResponse { /** A set of monitored resources in the group. */ core.List<MonitoredResource> members; /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as - * `pageToken` in the next call to this method. + * pageToken in the next call to this method. */ core.String nextPageToken; /** The total number of elements matching this request. */ @@ -1857,14 +1867,14 @@ } } -/** The `ListGroups` response. */ +/** The ListGroups response. */ class ListGroupsResponse { /** The groups that match the specified filters. */ core.List<Group> group; /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as - * `pageToken` in the next call to this method. + * pageToken in the next call to this method. */ core.String nextPageToken; @@ -1891,17 +1901,17 @@ } } -/** The `ListMetricDescriptors` response. */ +/** The ListMetricDescriptors response. */ class ListMetricDescriptorsResponse { /** * The metric descriptors that are available to the project and that match the - * value of `filter`, if present. + * value of filter, if present. */ core.List<MetricDescriptor> metricDescriptors; /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as - * `pageToken` in the next call to this method. + * pageToken in the next call to this method. */ core.String nextPageToken; @@ -1928,17 +1938,17 @@ } } -/** The `ListMonitoredResourcDescriptors` response. */ +/** The ListMonitoredResourcDescriptors response. */ class ListMonitoredResourceDescriptorsResponse { /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as - * `pageToken` in the next call to this method. + * pageToken in the next call to this method. */ core.String nextPageToken; /** * The monitored resource descriptors that are available to this project and - * that match `filter`, if present. + * that match filter, if present. */ core.List<MonitoredResourceDescriptor> resourceDescriptors; @@ -1965,12 +1975,12 @@ } } -/** The `ListTimeSeries` response. */ +/** The ListTimeSeries response. */ class ListTimeSeriesResponse { /** * If there are more results than have been returned, then this field is set * to a non-empty value. To see the additional results, use that value as - * `pageToken` in the next call to this method. + * pageToken in the next call to this method. */ core.String nextPageToken; /** One or more time series that match the filter included in the request. */ @@ -2000,18 +2010,18 @@ } /** - * A specific metric identified by specifying values for all of the labels of a - * `MetricDescriptor`. + * A specific metric, identified by specifying values for all of the labels of a + * MetricDescriptor. */ class Metric { /** - * The set of labels that uniquely identify a metric. To specify a metric, all - * labels enumerated in the `MetricDescriptor` must be assigned values. + * The set of label values that uniquely identify this metric. All labels + * listed in the MetricDescriptor must be assigned values. */ core.Map<core.String, core.String> labels; /** * An existing metric type, see google.api.MetricDescriptor. For example, - * `compute.googleapis.com/instance/cpu/usage_time`. + * custom.googleapis.com/invoice/paid/amount. */ core.String type; @@ -2038,7 +2048,11 @@ } } -/** Defines a metric type and its schema. */ +/** + * Defines a metric type and its schema. Once a metric descriptor is created, + * deleting or altering it stops data collection and makes the metric type's + * existing data unusable. + */ class MetricDescriptor { /** * A detailed description of the metric, which can be used in documentation. @@ -2052,74 +2066,108 @@ /** * The set of labels that can be used to describe a specific instance of this * metric type. For example, the - * `compute.googleapis.com/instance/network/received_bytes_count` metric type - * has a label, `loadbalanced`, that specifies whether the traffic was - * received through a load balanced IP address. + * appengine.googleapis.com/http/server/response_latencies metric type has a + * label for the HTTP response code, response_code, so you can look at + * latencies for successful responses or just for responses that failed. */ core.List<LabelDescriptor> labels; /** * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of metric_kind and value_type might not be supported. * Possible string values are: - * - "METRIC_KIND_UNSPECIFIED" : A METRIC_KIND_UNSPECIFIED. - * - "GAUGE" : A GAUGE. - * - "DELTA" : A DELTA. - * - "CUMULATIVE" : A CUMULATIVE. + * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. + * - "GAUGE" : An instantaneous measurement of a value. + * - "DELTA" : The change in a value during a time interval. + * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative + * measurements in a time series should have the same start time and + * increasing end times, until an event resets the cumulative value to zero + * and sets a new start time for the following points. */ core.String metricKind; /** - * Resource name. The format of the name may vary between different - * implementations. For examples: - * projects/{project_id}/metricDescriptors/{type=**} - * metricDescriptors/{type=**} + * The resource name of the metric descriptor. Depending on the + * implementation, the name typically includes: (1) the parent resource name + * that defines the scope of the metric type or of its data; and (2) the + * 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" */ core.String name; /** - * The metric type including a DNS name prefix, for example - * `"compute.googleapis.com/instance/cpu/utilization"`. Metric types should - * use a natural hierarchical grouping such as the following: - * compute.googleapis.com/instance/cpu/utilization - * compute.googleapis.com/instance/disk/read_ops_count - * compute.googleapis.com/instance/network/received_bytes_count Note that if - * the metric type changes, the monitoring data will be discontinued, and - * anything depends on it will break, such as monitoring dashboards, alerting - * rules and quota limits. Therefore, once a metric has been published, its - * type should be immutable. + * The metric type, including its DNS name prefix. The type is not + * 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" */ core.String type; /** * The unit in which the metric value is reported. It is only applicable if - * the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The supported - * units are a subset of [The Unified Code for Units of - * Measure](http://unitsofmeasure.org/ucum.html) standard: **Basic units - * (UNIT)** * `bit` bit * `By` byte * `s` second * `min` minute * `h` hour * - * `d` day **Prefixes (PREFIX)** * `k` kilo (10**3) * `M` mega (10**6) * `G` - * giga (10**9) * `T` tera (10**12) * `P` peta (10**15) * `E` exa (10**18) * - * `Z` zetta (10**21) * `Y` yotta (10**24) * `m` milli (10**-3) * `u` micro - * (10**-6) * `n` nano (10**-9) * `p` pico (10**-12) * `f` femto (10**-15) * - * `a` atto (10**-18) * `z` zepto (10**-21) * `y` yocto (10**-24) * `Ki` kibi - * (2**10) * `Mi` mebi (2**20) * `Gi` gibi (2**30) * `Ti` tebi (2**40) - * **Grammar** The grammar includes the dimensionless unit `1`, such as `1/s`. - * The grammar also includes these connectors: * `/` 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 } ; Component = [ PREFIX ] UNIT [ Annotation ] - * | Annotation | "1" ; 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 == - * By/s`. * `NAME` is a sequence of non-blank printable ASCII characters not - * containing '{' or '}'. + * the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a + * subset of The Unified Code for Units of Measure + * (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT) + * bit bit + * By byte + * s second + * min minute + * h hour + * d dayPrefixes (PREFIX) + * k kilo (10**3) + * M mega (10**6) + * G giga (10**9) + * T tera (10**12) + * P peta (10**15) + * E exa (10**18) + * Z zetta (10**21) + * Y yotta (10**24) + * m milli (10**-3) + * u micro (10**-6) + * n nano (10**-9) + * p pico (10**-12) + * f femto (10**-15) + * a atto (10**-18) + * z zepto (10**-21) + * y yocto (10**-24) + * Ki kibi (2**10) + * Mi mebi (2**20) + * Gi gibi (2**30) + * Ti tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such + * as 1/s.The grammar also includes these connectors: + * / 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 } ; + * + * Component = [ PREFIX ] UNIT [ Annotation ] + * | Annotation + * | "1" + * ; + * + * 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 + * == By/s. + * NAME is a sequence of non-blank printable ASCII characters not containing + * '{' or '}'. */ core.String unit; /** - * Whether the measurement is an integer, a floating-point number, etc. + * Whether the measurement is an integer, a floating-point number, etc. Some + * combinations of metric_kind and value_type might not be supported. * Possible string values are: - * - "VALUE_TYPE_UNSPECIFIED" : A VALUE_TYPE_UNSPECIFIED. - * - "BOOL" : A BOOL. - * - "INT64" : A INT64. - * - "DOUBLE" : A DOUBLE. - * - "STRING" : A STRING. - * - "DISTRIBUTION" : A DISTRIBUTION. - * - "MONEY" : A MONEY. + * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. + * - "BOOL" : The value is a boolean. This value type can be used only if the + * metric kind is GAUGE. + * - "INT64" : The value is a signed 64-bit integer. + * - "DOUBLE" : The value is a double precision floating point number. + * - "STRING" : The value is a text string. This value type can be used only + * if the metric kind is GAUGE. + * - "DISTRIBUTION" : The value is a Distribution. + * - "MONEY" : The value is money. */ core.String valueType; @@ -2185,26 +2233,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 + * 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 + * 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": - * "my-instance", "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"`. + * 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; @@ -2234,11 +2284,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 { /** @@ -2248,27 +2298,31 @@ core.String description; /** * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. For example, `"Google Cloud SQL Database"`. + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * 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 + * "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}"`. + * "monitoredResourceDescriptors/{type}". */ core.String name; /** * Required. The monitored resource type. For example, the type - * `"cloudsql_database"` represents databases in Google Cloud SQL. + * "cloudsql_database" represents databases in Google Cloud SQL. The + * maximum length of this value is 256 characters. */ core.String type; @@ -2318,10 +2372,10 @@ * enumeration, etc. */ class Option { - /** The option's name. For example, `"java_package"`. */ + /** The option's name. For example, "java_package". */ core.String name; /** - * The option's value. For example, `"com.google.protobuf"`. + * The option's value. For example, "com.google.protobuf". * * The values for Object must be JSON objects. It can consist of `num`, * `String`, `bool` and `null` as well as `Map` and `List` values. @@ -2353,7 +2407,16 @@ /** A single data point in a time series. */ class Point { - /** The time interval to which the value applies. */ + /** + * The time interval to which the data point applies. For GAUGE metrics, only + * the end time of the interval is used. For DELTA metrics, the start and end + * time should specify a non-zero interval, with subsequent points specifying + * contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start + * and end time should specify a non-zero interval, with subsequent points + * specifying the same start time and increasing end times, until an event + * resets the cumulative value to zero and sets a new start time for the + * following points. + */ TimeInterval interval; /** The value of the data point. */ TypedValue value; @@ -2412,13 +2475,14 @@ } /** - * `SourceContext` represents information about the source of a protobuf - * element, like the file in which it is defined. + * SourceContext represents information about the source of a protobuf element, + * like the file in which it is defined. */ class SourceContext { /** * The path-qualified name of the .proto file that contained the associated - * protobuf element. For example: `"google/protobuf/source.proto"`. + * protobuf element. For example: + * "google/protobuf/source_context.proto". */ core.String fileName; @@ -2440,16 +2504,17 @@ } /** - * A time interval extending from after `startTime` through `endTime`. If - * `startTime` is omitted, the interval is the single point in time, `endTime`. + * A time interval extending just after a start time through an end time. If the + * start time is the same as the end time, then the interval represents a single + * point in time. */ class TimeInterval { - /** Required. The end of the interval. The interval includes this time. */ + /** Required. The end of the time interval. */ core.String endTime; /** - * If this value is omitted, the interval is a point in time, `endTime`. If - * `startTime` is present, it must be earlier than (less than) `endTime`. The - * interval begins after `startTime`—it does not include `startTime`. + * Optional. The beginning of the time interval. The default value for the + * start time is the end time. The start time must not be later than the end + * time. */ core.String startTime; @@ -2477,48 +2542,67 @@ } /** - * A collection of data points that describes the time-varying nature of a + * A collection of data points that describes the time-varying values of a * metric. A time series is identified by a combination of a fully-specified - * monitored resource and a fully-specified metric. + * monitored resource and a fully-specified metric. This type is used for both + * listing and creating time series. */ class TimeSeries { - /** The fully-specified metric used to identify the time series. */ + /** + * The associated metric. A fully-specified metric used to identify the time + * series. + */ Metric metric; /** - * The metric kind of the time series. This can be different than the metric - * kind specified in [google.api.MetricDescriptor] because of alignment and - * reduction operations on the data. This field is ignored when writing data; - * the value specified in the descriptor is used instead. @OutputOnly + * The metric kind of the time series. When listing time series, this metric + * kind might be different from the metric kind of the associated metric if + * this time series is an alignment or reduction of other time series.When + * creating a time series, this field is optional. If present, it must be the + * same as the metric kind of the associated metric. If the associated + * metric's descriptor must be auto-created, then this field specifies the + * metric kind of the new descriptor and must be either GAUGE (the default) or + * CUMULATIVE. * Possible string values are: - * - "METRIC_KIND_UNSPECIFIED" : A METRIC_KIND_UNSPECIFIED. - * - "GAUGE" : A GAUGE. - * - "DELTA" : A DELTA. - * - "CUMULATIVE" : A CUMULATIVE. + * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. + * - "GAUGE" : An instantaneous measurement of a value. + * - "DELTA" : The change in a value during a time interval. + * - "CUMULATIVE" : A value accumulated over a time interval. Cumulative + * measurements in a time series should have the same start time and + * increasing end times, until an event resets the cumulative value to zero + * and sets a new start time for the following points. */ core.String metricKind; /** - * The data points of this time series. When used as output, points will be - * sorted by decreasing time order. When used as input, points could be - * written in any orders. + * The data points of this time series. When listing time series, the order of + * the points is specified by the list method.When creating a time series, + * this field must contain exactly one point and the point's type must be the + * same as the value type of the associated metric. If the associated metric's + * descriptor must be auto-created, then the value type of the descriptor is + * determined by the point's type, which must be BOOL, INT64, DOUBLE, or + * DISTRIBUTION. */ core.List<Point> points; /** - * The fully-specified monitored resource used to identify the time series. + * The associated resource. A fully-specified monitored resource used to + * identify the time series. */ MonitoredResource resource; /** - * The value type of the time series. This can be different than the value - * type specified in [google.api.MetricDescriptor] because of alignment and - * reduction operations on the data. This field is ignored when writing data; - * the value specified in the descriptor is used instead. @OutputOnly + * The value type of the time series. When listing time series, this value + * type might be different from the value type of the associated metric if + * this time series is an alignment or reduction of other time series.When + * creating a time series, this field is optional. If present, it must be the + * same as the type of the data in the points field. * Possible string values are: - * - "VALUE_TYPE_UNSPECIFIED" : A VALUE_TYPE_UNSPECIFIED. - * - "BOOL" : A BOOL. - * - "INT64" : A INT64. - * - "DOUBLE" : A DOUBLE. - * - "STRING" : A STRING. - * - "DISTRIBUTION" : A DISTRIBUTION. - * - "MONEY" : A MONEY. + * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. + * - "BOOL" : The value is a boolean. This value type can be used only if the + * metric kind is GAUGE. + * - "INT64" : The value is a signed 64-bit integer. + * - "DOUBLE" : The value is a double precision floating point number. + * - "STRING" : The value is a text string. This value type can be used only + * if the metric kind is GAUGE. + * - "DISTRIBUTION" : The value is a Distribution. + * - "MONEY" : The value is money. */ core.String valueType; @@ -2569,7 +2653,7 @@ core.List<Field> fields; /** The fully qualified message name. */ core.String name; - /** The list of types appearing in `oneof` definitions in this type. */ + /** The list of types appearing in oneof definitions in this type. */ core.List<core.String> oneofs; /** The protocol buffer options. */ core.List<Option> options; @@ -2578,8 +2662,8 @@ /** * The source syntax. * Possible string values are: - * - "SYNTAX_PROTO2" : A SYNTAX_PROTO2. - * - "SYNTAX_PROTO3" : A SYNTAX_PROTO3. + * - "SYNTAX_PROTO2" : Syntax proto2. + * - "SYNTAX_PROTO3" : Syntax proto3. */ core.String syntax; @@ -2632,16 +2716,19 @@ /** A single strongly-typed value. */ class TypedValue { - /** A Boolean value: `true` or `false`. */ + /** A Boolean value: true or false. */ core.bool boolValue; /** A distribution value. */ Distribution distributionValue; /** * A 64-bit double-precision floating-point number. Its magnitude is - * approximately ±10±300 and it has 16 significant digits of precision. + * approximately ±10<sup>±300</sup> and it has 16 significant + * digits of precision. */ core.double doubleValue; - /** A 64-bit integer. Its range is approximately ±9.2x1018. */ + /** + * A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>. + */ core.String int64Value; /** A variable-length string value. */ core.String stringValue;
diff --git a/generated/googleapis/lib/pagespeedonline/v1.dart b/generated/googleapis/lib/pagespeedonline/v1.dart index 70df2e8..96a8a07 100644 --- a/generated/googleapis/lib/pagespeedonline/v1.dart +++ b/generated/googleapis/lib/pagespeedonline/v1.dart
@@ -43,7 +43,7 @@ * Request parameters: * * [url] - The URL to fetch and analyze - * Value must have pattern "http(s)?://.*". + * Value must have pattern "(?i)http(s)?://.*". * * [filterThirdPartyResources] - Indicates if third party resources should be * filtered out before PageSpeed analysis.
diff --git a/generated/googleapis/lib/pagespeedonline/v2.dart b/generated/googleapis/lib/pagespeedonline/v2.dart index 886606b..f97bf43 100644 --- a/generated/googleapis/lib/pagespeedonline/v2.dart +++ b/generated/googleapis/lib/pagespeedonline/v2.dart
@@ -43,7 +43,7 @@ * Request parameters: * * [url] - The URL to fetch and analyze - * Value must have pattern "http(s)?://.*". + * Value must have pattern "(?i)http(s)?://.*". * * [filterThirdPartyResources] - Indicates if third party resources should be * filtered out before PageSpeed analysis.
diff --git a/generated/googleapis/lib/pubsub/v1.dart b/generated/googleapis/lib/pubsub/v1.dart index b19486c..9e89bb9 100644 --- a/generated/googleapis/lib/pubsub/v1.dart +++ b/generated/googleapis/lib/pubsub/v1.dart
@@ -37,6 +37,7 @@ class ProjectsResourceApi { final commons.ApiRequester _requester; + ProjectsSnapshotsResourceApi get snapshots => new ProjectsSnapshotsResourceApi(_requester); ProjectsSubscriptionsResourceApi get subscriptions => new ProjectsSubscriptionsResourceApi(_requester); ProjectsTopicsResourceApi get topics => new ProjectsTopicsResourceApi(_requester); @@ -45,6 +46,153 @@ } +class ProjectsSnapshotsResourceApi { + final commons.ApiRequester _requester; + + ProjectsSnapshotsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Gets the access control policy for a resource. Returns an empty policy if + * the resource exists and does not have a policy set. + * + * 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 "^projects/[^/] * / snapshots/[^/]*$". + * + * Completes with a [Policy]. + * + * 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<Policy> getIamPolicy(core.String resource) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIamPolicy'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** + * Sets the access control policy on the specified resource. Replaces any + * existing policy. + * + * [request] - The metadata request object. + * + * 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 "^projects/[^/] * / snapshots/[^/]*$". + * + * Completes with a [Policy]. + * + * 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<Policy> setIamPolicy(SetIamPolicyRequest request, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIamPolicy'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Policy.fromJson(data)); + } + + /** + * Returns permissions that a caller has on the specified resource. + * + * [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 "^projects/[^/] * / snapshots/[^/]*$". + * + * Completes with a [TestIamPermissionsResponse]. + * + * 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<TestIamPermissionsResponse> testIamPermissions(TestIamPermissionsRequest request, core.String resource) { + 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 (resource == null) { + throw new core.ArgumentError("Parameter resource is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIamPermissions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new TestIamPermissionsResponse.fromJson(data)); + } + +} + + class ProjectsSubscriptionsResourceApi { final commons.ApiRequester _requester; @@ -105,7 +253,7 @@ * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, * returns `NOT_FOUND`. If the name is not provided in the request, the server * will assign a random name for this subscription on the same project as the - * topic. + * topic. Note that for REST API requests, you must specify a name. * * [request] - The metadata request object. * @@ -155,11 +303,11 @@ } /** - * Deletes an existing subscription. All pending messages in the subscription + * Deletes an existing subscription. All messages retained in the subscription * are immediately dropped. Calls to `Pull` after deletion will return * `NOT_FOUND`. After a subscription is deleted, a new one may be created with - * the same name, but the new one has no association with the old - * subscription, or its topic unless the same topic is specified. + * the same name, but the new one has no association with the old subscription + * or its topic unless the same topic is specified. * * Request parameters: * @@ -239,16 +387,14 @@ } /** - * Gets the access control policy for a `resource`. Returns an empty policy if + * Gets the access control policy for a resource. Returns an empty policy if * the resource exists and does not have a policy set. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". * * Completes with a [Policy]. @@ -339,7 +485,8 @@ * Modifies the ack deadline for a specific message. This method is useful to * indicate that more time is needed to process a message by the subscriber, * or to make the message available for redelivery if the processing was - * interrupted. + * interrupted. Note that this does not modify the subscription-level + * `ackDeadlineSeconds` used for subsequent messages. * * [request] - The metadata request object. * @@ -489,10 +636,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". * * Completes with a [Policy]. @@ -538,10 +683,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". * * Completes with a [TestIamPermissionsResponse]. @@ -725,16 +868,14 @@ } /** - * Gets the access control policy for a `resource`. Returns an empty policy if + * Gets the access control policy for a resource. Returns an empty policy if * the resource exists and does not have a policy set. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / topics/[^/]*$". * * Completes with a [Policy]. @@ -877,10 +1018,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / topics/[^/]*$". * * Completes with a [Policy]. @@ -926,10 +1065,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / topics/[^/]*$". * * Completes with a [TestIamPermissionsResponse]. @@ -1416,7 +1553,7 @@ core.Map<core.String, core.String> attributes; /** * The message payload. For JSON requests, the value of this field must be - * base64-encoded. + * [base64-encoded](https://tools.ietf.org/html/rfc4648). */ core.String data; core.List<core.int> get dataAsBytes { @@ -1655,10 +1792,11 @@ * (on a best-effort basis). For pull subscriptions, this value is used as the * initial value for the ack deadline. To override this value for a given * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using - * pull. For push delivery, this value is also used to set the request timeout - * for the call to the push endpoint. If the subscriber never acknowledges the - * message, the Pub/Sub system will eventually redeliver the message. If this - * parameter is not set, the default value of 10 seconds is used. + * pull. The maximum custom deadline you can specify is 600 seconds (10 + * minutes). For push delivery, this value is also used to set the request + * timeout for the call to the push endpoint. If the subscriber never + * acknowledges the message, the Pub/Sub system will eventually redeliver the + * message. If this parameter is 0, a default value of 10 seconds is used. */ core.int ackDeadlineSeconds; /** @@ -1723,7 +1861,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. + * information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ core.List<core.String> permissions;
diff --git a/generated/googleapis/lib/runtimeconfig/v1.dart b/generated/googleapis/lib/runtimeconfig/v1.dart new file mode 100644 index 0000000..ece11ed --- /dev/null +++ b/generated/googleapis/lib/runtimeconfig/v1.dart
@@ -0,0 +1,458 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.runtimeconfig.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 runtimeconfig/v1'; + +/** + * Provides capabilities for dynamic configuration and coordination for + * applications running on Google Cloud Platform. + */ +class RuntimeconfigApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + + /** Manage your Google Cloud Platform services' runtime configuration */ + static const CloudruntimeconfigScope = "https://www.googleapis.com/auth/cloudruntimeconfig"; + + + final commons.ApiRequester _requester; + + OperationsResourceApi get operations => new OperationsResourceApi(_requester); + + RuntimeconfigApi(http.Client client, {core.String rootUrl: "https://runtimeconfig.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class OperationsResourceApi { + final commons.ApiRequester _requester; + + OperationsResourceApi(commons.ApiRequester client) : + _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)); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * Request parameters: + * + * [name] - The name of the operation resource to be deleted. + * 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> delete(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + 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 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: + * + * [name] - The name of the operation collection. + * Value must have pattern "^operations$". + * + * [pageSize] - The standard list page size. + * + * [filter] - The standard list filter. + * + * [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 name, {core.int pageSize, core.String filter, 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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListOperationsResponse.fromJson(data)); + } + +} + + + +/** 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 + * 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 { + + Empty(); + + Empty.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + +/** The response message for Operations.ListOperations. */ +class ListOperationsResponse { + /** The standard List next-page token. */ + core.String nextPageToken; + /** A list of operations that matches the specified filter in the request. */ + core.List<Operation> operations; + + ListOperationsResponse(); + + ListOperationsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("operations")) { + operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (operations != null) { + _json["operations"] = operations.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * This resource represents a long-running operation that is the result of a + * network API call. + */ +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 + * available. + */ + core.bool done; + /** 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 + * long-running operation should document the metadata type, if any. + * + * 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> 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`. + */ + 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`. + * + * 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> response; + + Operation(); + + Operation.fromJson(core.Map _json) { + if (_json.containsKey("done")) { + done = _json["done"]; + } + if (_json.containsKey("error")) { + error = new Status.fromJson(_json["error"]); + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (done != null) { + _json["done"] = done; + } + if (error != null) { + _json["error"] = (error).toJson(); + } + if (metadata != null) { + _json["metadata"] = metadata; + } + if (name != null) { + _json["name"] = name; + } + if (response != null) { + _json["response"] = response; + } + 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; + } +}
diff --git a/generated/googleapis/lib/servicecontrol/v1.dart b/generated/googleapis/lib/servicecontrol/v1.dart index 62761f4..064dd12 100644 --- a/generated/googleapis/lib/servicecontrol/v1.dart +++ b/generated/googleapis/lib/servicecontrol/v1.dart
@@ -46,6 +46,10 @@ * the given operation should proceed. It should be called before the * 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 + * results for longer time. + * * This method requires the `servicemanagement.services.check` permission * on the specified service. For more information, see * [Google Cloud IAM](https://cloud.google.com/iam). @@ -99,6 +103,12 @@ * Reports operations to Google Service Control. It should be called * after the 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. + * * This method requires the `servicemanagement.services.report` permission * on the specified service. For more information, see * [Google Cloud IAM](https://cloud.google.com/iam). @@ -226,6 +236,14 @@ class CheckRequest { /** The operation to be checked. */ Operation operation; + /** + * Specifies which version of service configuration should be used to process + * the request. + * + * If unspecified or no matching version can be found, the + * latest one will be used. + */ + core.String serviceConfigId; CheckRequest(); @@ -233,6 +251,9 @@ if (_json.containsKey("operation")) { operation = new Operation.fromJson(_json["operation"]); } + if (_json.containsKey("serviceConfigId")) { + serviceConfigId = _json["serviceConfigId"]; + } } core.Map toJson() { @@ -240,6 +261,9 @@ if (operation != null) { _json["operation"] = (operation).toJson(); } + if (serviceConfigId != null) { + _json["serviceConfigId"] = serviceConfigId; + } return _json; } } @@ -577,16 +601,18 @@ * The severity of the log entry. The default value is * `LogSeverity.DEFAULT`. * Possible string values are: - * - "DEFAULT" : The log entry has no assigned severity level. - * - "DEBUG" : Debug or trace information. - * - "INFO" : Routine information, such as ongoing status or performance. - * - "NOTICE" : Normal but significant events, such as start up, shut down, or - * configuration. - * - "WARNING" : Warning events might cause problems. - * - "ERROR" : Error events are likely to cause problems. - * - "CRITICAL" : Critical events cause more severe problems or brief outages. - * - "ALERT" : A person must take an action immediately. - * - "EMERGENCY" : One or more systems are unusable. + * - "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. + * - "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. + * - "ALERT" : (700) A person must take an action immediately. + * - "EMERGENCY" : (800) One or more systems are unusable. */ core.String severity; /** @@ -978,6 +1004,14 @@ * partial failure behavior. */ core.List<Operation> operations; + /** + * Specifies which version of service config should be used to process the + * request. + * + * If unspecified or no matching version can be found, the + * latest one will be used. + */ + core.String serviceConfigId; ReportRequest(); @@ -985,6 +1019,9 @@ if (_json.containsKey("operations")) { operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList(); } + if (_json.containsKey("serviceConfigId")) { + serviceConfigId = _json["serviceConfigId"]; + } } core.Map toJson() { @@ -992,6 +1029,9 @@ if (operations != null) { _json["operations"] = operations.map((value) => (value).toJson()).toList(); } + if (serviceConfigId != null) { + _json["serviceConfigId"] = serviceConfigId; + } return _json; } } @@ -1010,8 +1050,9 @@ * `Operations` in the request succeeded. Each * `Operation` that failed processing has a corresponding item * in this list. - * 3. A failed RPC status indicates a complete failure where none of the - * `Operations` in the request succeeded. + * 3. A failed RPC status indicates a general non-deterministic failure. + * When this happens, it's impossible to know which of the + * 'Operations' in the request succeeded or failed. */ core.List<ReportError> reportErrors; /** The actual config id used to process the request. */
diff --git a/generated/googleapis/lib/servicemanagement/v1.dart b/generated/googleapis/lib/servicemanagement/v1.dart index 37238f0..fa25549 100644 --- a/generated/googleapis/lib/servicemanagement/v1.dart +++ b/generated/googleapis/lib/servicemanagement/v1.dart
@@ -57,7 +57,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Operation]. * @@ -340,7 +340,8 @@ } /** - * Gets a managed service. + * Gets a managed service. Authentication is required unless the service is + * public. * * Request parameters: * @@ -389,7 +390,7 @@ * [overview](/service-management/overview) * for naming requirements. For example: `example.googleapis.com`. * - * [configId] - null + * [configId] - The id of the service configuration resource. * * Completes with a [Service]. * @@ -439,7 +440,7 @@ * requested. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. - * Value must have pattern "^services/[^/]*$". + * Value must have pattern "^services/[^/]+$". * * Completes with a [Policy]. * @@ -477,7 +478,10 @@ } /** - * Lists all managed services. + * Lists all managed services. The result is limited to services that the + * caller has "servicemanagement.services.get" permission for. If the request + * is made without authentication, it returns only public services that are + * available to everyone. * * Request parameters: * @@ -539,7 +543,7 @@ * specified. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. - * Value must have pattern "^services/[^/]*$". + * Value must have pattern "^services/[^/]+$". * * Completes with a [Policy]. * @@ -587,7 +591,7 @@ * requested. * `resource` is usually specified as a path. For example, a Project * resource is specified as `projects/{project}`. - * Value must have pattern "^services/[^/]*$". + * Value must have pattern "^services/[^/]+$". * * Completes with a [TestIamPermissionsResponse]. * @@ -737,7 +741,7 @@ * [overview](/service-management/overview) * for naming requirements. For example: `example.googleapis.com`. * - * [configId] - null + * [configId] - The id of the service configuration resource. * * Completes with a [Service]. * @@ -1225,6 +1229,22 @@ */ class AuthProvider { /** + * The list of JWT + * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). + * that are allowed to access. A JWT containing any of these audiences will + * be accepted. When this setting is absent, only JWTs with audience + * "https://Service_name/API_name" + * will be accepted. For example, if no audiences are in the setting, + * LibraryService API will only accept JWTs with the following audience + * "https://library-example.googleapis.com/google.example.library.v1.LibraryService". + * + * Example: + * + * audiences: bookstore_android.apps.googleusercontent.com, + * bookstore_web.apps.googleusercontent.com + */ + core.String audiences; + /** * The unique identifier of the auth provider. It will be referred to by * `AuthRequirement.provider_id`. * @@ -1259,6 +1279,9 @@ AuthProvider(); AuthProvider.fromJson(core.Map _json) { + if (_json.containsKey("audiences")) { + audiences = _json["audiences"]; + } if (_json.containsKey("id")) { id = _json["id"]; } @@ -1272,6 +1295,9 @@ core.Map toJson() { var _json = new core.Map(); + if (audiences != null) { + _json["audiences"] = audiences; + } if (id != null) { _json["id"] = id; } @@ -1292,6 +1318,9 @@ */ class AuthRequirement { /** + * NOTE: This will be deprecated soon, once AuthProvider.audiences is + * implemented and accepted in all the runtime components. + * * The list of JWT * [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). * that are allowed to access. A JWT containing any of these audiences will @@ -1542,6 +1571,7 @@ * * `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`. * @@ -1635,9 +1665,10 @@ * Trusted attributes supplied by the IAM system. * Possible string values are: * - "NO_ATTR" : Default non-attribute. - * - "AUTHORITY" : Either principal or (if present) authority - * - "ATTRIBUTION" : selector - * Always the original principal, but making clear + * - "AUTHORITY" : Either principal or (if present) authority selector. + * - "ATTRIBUTION" : The principal (even if an authority selector is present), + * which + * must only be used for attribution, not authorization. */ core.String iam; /** @@ -2277,7 +2308,8 @@ * applied to. * * The Google Service Management implementation accepts the following - * forms: "project:<project_id>", "project_number:<project_number>". + * forms: + * - "project:<project_id>" * * Note: this is made compatible with * google.api.servicecontrol.v1.Operation.consumer_id. @@ -2490,7 +2522,8 @@ * applied to. * * The Google Service Management implementation accepts the following - * forms: "project:<project_id>", "project_number:<project_number>". + * forms: + * - "project:<project_id>" * * Note: this is made compatible with * google.api.servicecontrol.v1.Operation.consumer_id. @@ -3185,7 +3218,7 @@ * * The syntax `**` matches zero or more path segments. It follows the semantics * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved - * Expansion. + * Expansion. NOTE: it must be the last segment in the path except the Verb. * * The syntax `LITERAL` matches literal text in the URL path. * @@ -3449,7 +3482,7 @@ * Token that can be passed to `ListServices` to resume a paginated query. */ core.String nextPageToken; - /** The results of the query. */ + /** The returned services will only have the name field set. */ core.List<ManagedService> services; ListServicesResponse(); @@ -3611,11 +3644,9 @@ * Logging configuration of the service. * * The following example shows how to configure logs to be sent to the - * producer and consumer projects. In the example, - * the `library.googleapis.com/activity_history` log is - * sent to both the producer and consumer projects, whereas - * the `library.googleapis.com/purchase_history` log is only sent to the - * producer project: + * producer and consumer projects. In the example, the `activity_history` + * log is sent to both the producer and consumer projects, whereas the + * `purchase_history` log is only sent to the producer project. * * monitored_resources: * - type: library.googleapis.com/branch @@ -3625,20 +3656,20 @@ * - key: /name * description: The name of the branch. * logs: - * - name: library.googleapis.com/activity_history + * - name: activity_history * labels: * - key: /customer_id - * - name: library.googleapis.com/purchase_history + * - name: purchase_history * logging: * producer_destinations: * - monitored_resource: library.googleapis.com/branch * logs: - * - library.googleapis.com/activity_history - * - library.googleapis.com/purchase_history + * - activity_history + * - purchase_history * consumer_destinations: * - monitored_resource: library.googleapis.com/branch * logs: - * - library.googleapis.com/activity_history + * - activity_history */ class Logging { /** @@ -3686,11 +3717,13 @@ class LoggingDestination { /** * Names of the logs to be sent to this destination. Each name must - * be defined in the Service.logs section. + * be defined in the Service.logs section. If the log name is + * not a domain scoped name, it will be automatically prefixed with + * the service name followed by "/". */ core.List<core.String> logs; /** - * The monitored resource type. The type must be defined in + * The monitored resource type. The type must be defined in the * Service.monitored_resources section. */ core.String monitoredResource; @@ -3881,7 +3914,11 @@ } } -/** Defines a metric type and its schema. */ +/** + * Defines a metric type and its schema. Once a metric descriptor is created, + * deleting or altering it stops data collection and makes the metric type's + * existing data unusable. + */ class MetricDescriptor { /** * A detailed description of the metric, which can be used in documentation. @@ -3893,15 +3930,17 @@ */ core.String displayName; /** - * The set of labels that can be used to describe a specific instance of this - * metric type. For example, the - * `compute.googleapis.com/instance/network/received_bytes_count` metric type - * has a label, `loadbalanced`, that specifies whether the traffic was - * received through a load balanced IP address. + * The set of labels that can be used to describe a specific + * instance of this metric type. For example, the + * `appengine.googleapis.com/http/server/response_latencies` metric + * type has a label for the HTTP response code, `response_code`, so + * you can look at latencies for successful responses or just + * for responses that failed. */ core.List<LabelDescriptor> labels; /** * Whether the metric records instantaneous values, changes to a value, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. * Possible string values are: * - "METRIC_KIND_UNSPECIFIED" : Do not use this default value. * - "GAUGE" : An instantaneous measurement of a value. @@ -3914,26 +3953,24 @@ */ core.String metricKind; /** - * Resource name. The format of the name may vary between different - * implementations. For examples: + * The resource name of the metric descriptor. Depending on the + * implementation, the name typically includes: (1) the parent resource name + * that defines the scope of the metric type or of its data; and (2) the + * 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/{project_id}/metricDescriptors/{type=**} - * metricDescriptors/{type=**} + * "projects/123456789/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount" */ core.String name; /** - * The metric type including a DNS name prefix, for example - * `"compute.googleapis.com/instance/cpu/utilization"`. Metric types - * should use a natural hierarchical grouping such as the following: + * The metric type, including its DNS name prefix. The type is not + * URL-encoded. All user-defined metric types have the DNS name + * `custom.googleapis.com`. Metric types should use a natural hierarchical + * grouping. For example: * - * compute.googleapis.com/instance/cpu/utilization - * compute.googleapis.com/instance/disk/read_ops_count - * compute.googleapis.com/instance/network/received_bytes_count - * - * Note that if the metric type changes, the monitoring data will be - * discontinued, and anything depends on it will break, such as monitoring - * dashboards, alerting rules and quota limits. Therefore, once a metric has - * been published, its type should be immutable. + * "custom.googleapis.com/invoice/paid/amount" + * "appengine.googleapis.com/http/server/response_latencies" */ core.String type; /** @@ -4005,6 +4042,7 @@ core.String unit; /** * Whether the measurement is an integer, a floating-point number, etc. + * Some combinations of `metric_kind` and `value_type` might not be supported. * Possible string values are: * - "VALUE_TYPE_UNSPECIFIED" : Do not use this default value. * - "BOOL" : The value is a boolean. @@ -4452,7 +4490,7 @@ * 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 @@ -5010,22 +5048,23 @@ } /** - * `Service` is the root object of the configuration schema. It - * describes basic information like the name of the service and the - * exposed API interfaces, and delegates other aspects to configuration - * sub-sections. + * `Service` is the root object of Google service configuration schema. It + * describes basic information about a service, such as the name and the + * title, and delegates other aspects to sub-sections. Each sub-section is + * either a proto message or a repeated proto message that configures a + * specific aspect, such as auth. See each proto message definition for details. * * Example: * * type: google.api.Service - * config_version: 1 + * config_version: 3 * name: calendar.googleapis.com * title: Google Calendar API * apis: - * - name: google.calendar.Calendar + * - name: google.calendar.v3.Calendar * backend: * rules: - * - selector: "*" + * - selector: "google.calendar.v3.*" * address: calendar.example.com */ class Service { @@ -5080,7 +5119,7 @@ * generate one instead. */ core.String id; - /** Logging configuration of the service. */ + /** Logging configuration. */ Logging logging; /** Defines the logs used by this service. */ core.List<LogDescriptor> logs; @@ -5091,7 +5130,7 @@ * by the Service.monitoring and Service.logging configurations. */ core.List<MonitoredResourceDescriptor> monitoredResources; - /** Monitoring configuration of the service. */ + /** Monitoring configuration. */ Monitoring monitoring; /** * The DNS address at which this service is available, @@ -5104,7 +5143,7 @@ * manage consumption of the service, etc. */ core.String producerProjectId; - /** Configuration for system parameters. */ + /** System parameter configuration. */ SystemParameters systemParameters; /** * A list of all proto message types included in this API service. @@ -6052,8 +6091,8 @@ */ class VisibilityRule { /** - * Lists the visibility labels for this rule. Any of the listed labels grants - * visibility to the element. + * A comma-separated list of visibility labels that apply to the `selector`. + * Any of the listed labels can be used to grant the visibility. * * If a rule has multiple labels, removing one of the labels but not all of * them can break clients.
diff --git a/generated/googleapis/lib/sheets/v4.dart b/generated/googleapis/lib/sheets/v4.dart index 9f10963..2af7091 100644 --- a/generated/googleapis/lib/sheets/v4.dart +++ b/generated/googleapis/lib/sheets/v4.dart
@@ -367,6 +367,53 @@ } /** + * Clears one or more ranges of values from a spreadsheet. + * The caller must specify the spreadsheet ID and one or more ranges. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [spreadsheetId] - The ID of the spreadsheet to update. + * + * Completes with a [BatchClearValuesResponse]. + * + * 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<BatchClearValuesResponse> batchClear(BatchClearValuesRequest request, core.String spreadsheetId) { + 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 (spreadsheetId == null) { + throw new core.ArgumentError("Parameter spreadsheetId is required."); + } + + _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values:batchClear'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new BatchClearValuesResponse.fromJson(data)); + } + + /** * Returns one or more ranges of values from a spreadsheet. * The caller must specify the spreadsheet ID and one or more ranges. * @@ -494,6 +541,58 @@ } /** + * Clears values from a spreadsheet. + * The caller must specify the spreadsheet ID and range. + * Only values are cleared -- all other properties of the cell (such as + * formatting, data validation, etc..) are kept. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [spreadsheetId] - The ID of the spreadsheet to update. + * + * [range] - The A1 notation of the values to clear. + * + * Completes with a [ClearValuesResponse]. + * + * 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<ClearValuesResponse> clear(ClearValuesRequest request, core.String spreadsheetId, core.String range) { + 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 (spreadsheetId == null) { + throw new core.ArgumentError("Parameter spreadsheetId is required."); + } + if (range == null) { + throw new core.ArgumentError("Parameter range is required."); + } + + _url = 'v4/spreadsheets/' + commons.Escaper.ecapeVariable('$spreadsheetId') + '/values/' + commons.Escaper.ecapeVariable('$range') + ':clear'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ClearValuesResponse.fromJson(data)); + } + + /** * Returns a range of values from a spreadsheet. * The caller must specify the spreadsheet ID and a range. * @@ -637,6 +736,54 @@ +/** Adds a new banded range to the spreadsheet. */ +class AddBandingRequest { + /** + * The banded range to add. The bandedRangeId + * field is optional; if one is not set, an id will be randomly generated. (It + * is an error to specify the ID of a range that already exists.) + */ + BandedRange bandedRange; + + AddBandingRequest(); + + AddBandingRequest.fromJson(core.Map _json) { + if (_json.containsKey("bandedRange")) { + bandedRange = new BandedRange.fromJson(_json["bandedRange"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bandedRange != null) { + _json["bandedRange"] = (bandedRange).toJson(); + } + return _json; + } +} + +/** The result of adding a banded range. */ +class AddBandingResponse { + /** The banded range that was added. */ + BandedRange bandedRange; + + AddBandingResponse(); + + AddBandingResponse.fromJson(core.Map _json) { + if (_json.containsKey("bandedRange")) { + bandedRange = new BandedRange.fromJson(_json["bandedRange"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bandedRange != null) { + _json["bandedRange"] = (bandedRange).toJson(); + } + return _json; + } +} + /** Adds a chart to a sheet in the spreadsheet. */ class AddChartRequest { /** @@ -1130,6 +1277,132 @@ } } +/** A banded (alternating colors) range in a sheet. */ +class BandedRange { + /** The id of the banded range. */ + core.int bandedRangeId; + /** + * Properties for column bands. These properties will be applied on a column- + * by-column basis throughout all the columns in the range. At least one of + * row_properties or column_properties must be specified. + */ + BandingProperties columnProperties; + /** The range over which these properties are applied. */ + GridRange range; + /** + * Properties for row bands. These properties will be applied on a row-by-row + * basis throughout all the rows in the range. At least one of + * row_properties or column_properties must be specified. + */ + BandingProperties rowProperties; + + BandedRange(); + + BandedRange.fromJson(core.Map _json) { + if (_json.containsKey("bandedRangeId")) { + bandedRangeId = _json["bandedRangeId"]; + } + if (_json.containsKey("columnProperties")) { + columnProperties = new BandingProperties.fromJson(_json["columnProperties"]); + } + if (_json.containsKey("range")) { + range = new GridRange.fromJson(_json["range"]); + } + if (_json.containsKey("rowProperties")) { + rowProperties = new BandingProperties.fromJson(_json["rowProperties"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bandedRangeId != null) { + _json["bandedRangeId"] = bandedRangeId; + } + if (columnProperties != null) { + _json["columnProperties"] = (columnProperties).toJson(); + } + if (range != null) { + _json["range"] = (range).toJson(); + } + if (rowProperties != null) { + _json["rowProperties"] = (rowProperties).toJson(); + } + return _json; + } +} + +/** + * Properties referring a single dimension (either row or column). If both + * BandedRange.row_properties and BandedRange.column_properties are + * set, the fill colors are applied to cells according to the following rules: + * + * * header_color and footer_color take priority over band colors. + * * first_band_color takes priority over second_band_color. + * * row_properties takes priority over column_properties. + * + * For example, the first row color takes priority over the first column + * color, but the first column color takes priority over the second row color. + * Similarly, the row header takes priority over the column header in the + * top left cell, but the column header takes priority over the first row + * color if the row header is not set. + */ +class BandingProperties { + /** The first color that is alternating. (Required) */ + Color firstBandColor; + /** + * The color of the last row or column. If this field is not set, the last + * row or column will be filled with either first_row_color or + * second_row_color, depending on the color of the previous row or + * column. + */ + Color footerColor; + /** + * The color of the first row or column. If this field is set, the first + * row or column will be filled with this color and the colors will + * alternate between first_band_color and [second_band_color[] starting + * from the second row or column. Otherwise, the first row or column will be + * filled with first_band_color and the colors will proceed to alternate + * as they normally would. + */ + Color headerColor; + /** The second color that is alternating. (Required) */ + Color secondBandColor; + + BandingProperties(); + + BandingProperties.fromJson(core.Map _json) { + if (_json.containsKey("firstBandColor")) { + firstBandColor = new Color.fromJson(_json["firstBandColor"]); + } + if (_json.containsKey("footerColor")) { + footerColor = new Color.fromJson(_json["footerColor"]); + } + if (_json.containsKey("headerColor")) { + headerColor = new Color.fromJson(_json["headerColor"]); + } + if (_json.containsKey("secondBandColor")) { + secondBandColor = new Color.fromJson(_json["secondBandColor"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (firstBandColor != null) { + _json["firstBandColor"] = (firstBandColor).toJson(); + } + if (footerColor != null) { + _json["footerColor"] = (footerColor).toJson(); + } + if (headerColor != null) { + _json["headerColor"] = (headerColor).toJson(); + } + if (secondBandColor != null) { + _json["secondBandColor"] = (secondBandColor).toJson(); + } + return _json; + } +} + /** * An axis of the chart. * A chart may not have more than one axis per @@ -1446,6 +1719,63 @@ } } +/** The request for clearing more than one range of values in a spreadsheet. */ +class BatchClearValuesRequest { + /** The ranges to clear, in A1 notation. */ + core.List<core.String> ranges; + + BatchClearValuesRequest(); + + BatchClearValuesRequest.fromJson(core.Map _json) { + if (_json.containsKey("ranges")) { + ranges = _json["ranges"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (ranges != null) { + _json["ranges"] = ranges; + } + return _json; + } +} + +/** The response when updating a range of values in a spreadsheet. */ +class BatchClearValuesResponse { + /** + * The ranges that were cleared, in A1 notation. + * (If the requests were for an unbounded range or a ranger larger + * than the bounds of the sheet, this will be the actual ranges + * that were cleared, bounded to the sheet's limits.) + */ + core.List<core.String> clearedRanges; + /** The spreadsheet the updates were applied to. */ + core.String spreadsheetId; + + BatchClearValuesResponse(); + + BatchClearValuesResponse.fromJson(core.Map _json) { + if (_json.containsKey("clearedRanges")) { + clearedRanges = _json["clearedRanges"]; + } + if (_json.containsKey("spreadsheetId")) { + spreadsheetId = _json["spreadsheetId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (clearedRanges != null) { + _json["clearedRanges"] = clearedRanges; + } + if (spreadsheetId != null) { + _json["spreadsheetId"] = spreadsheetId; + } + return _json; + } +} + /** * The response when retrieving more than one range of values in a spreadsheet. */ @@ -1701,10 +2031,10 @@ * Requires a single ConditionValue. * - "TEXT_STARTS_WITH" : The cell's value must start with the condition's * value. - * Supported by data validation, conditional formatting and filters. + * Supported by conditional formatting and filters. * Requires a single ConditionValue. * - "TEXT_ENDS_WITH" : The cell's value must end with the condition's value. - * Supported by data validation, conditional formatting and filters. + * Supported by conditional formatting and filters. * Requires a single ConditionValue. * - "TEXT_EQ" : The cell's value must be exactly the condition's value. * Supported by data validation, conditional formatting and filters. @@ -1731,12 +2061,12 @@ * that may be a relative date. * - "DATE_ON_OR_BEFORE" : The cell's value must be on or before the date of * the condition's value. - * Supported by data validation, conditional formatting and filters. + * Supported by data validation. * Requires a single ConditionValue * that may be a relative date. * - "DATE_ON_OR_AFTER" : The cell's value must be on or after the date of the * condition's value. - * Supported by data validation, conditional formatting and filters. + * Supported by data validation. * Requires a single ConditionValue * that may be a relative date. * - "DATE_BETWEEN" : The cell's value must be between the dates of the two @@ -1761,10 +2091,10 @@ * one per item in the list. * Formulas are not supported in the values. * - "BLANK" : The cell's value must be empty. - * Supported by data validation, conditional formatting and filters. + * Supported by conditional formatting and filters. * Requires no ConditionValues. * - "NOT_BLANK" : The cell's value must not be empty. - * Supported by data validation, conditional formatting and filters. + * Supported by conditional formatting and filters. * Requires no ConditionValues. * - "CUSTOM_FORMULA" : The condition's formula must evaluate to true. * Supported by data validation, conditional formatting and filters. @@ -1852,7 +2182,9 @@ * - "STYLE_UNSPECIFIED" : The style is not specified. Do not use this. * - "DOTTED" : The border is dotted. * - "DASHED" : The border is dashed. - * - "SOLID" : The border is a solid line. + * - "SOLID" : The border is a thin solid line. + * - "SOLID_MEDIUM" : The border is a medium solid line. + * - "SOLID_THICK" : The border is a thick solid line. * - "NONE" : No border. * Used only when updating a border in order to erase it. * - "DOUBLE" : The border is two solid lines. @@ -1860,7 +2192,7 @@ core.String style; /** * The width of the border, in pixels. - * Border widths must be between 0 and 3 pixels, inclusive. + * Deprecated; the width is determined by the "style" field. */ core.int width; @@ -2393,6 +2725,55 @@ } } +/** The request for clearing a range of values in a spreadsheet. */ +class ClearValuesRequest { + + ClearValuesRequest(); + + ClearValuesRequest.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + +/** The response when clearing a range of values in a spreadsheet. */ +class ClearValuesResponse { + /** + * The range (in A1 notation) that was cleared. + * (If the request was for an unbounded range or a ranger larger + * than the bounds of the sheet, this will be the actual range + * that was cleared, bounded to the sheet's limits.) + */ + core.String clearedRange; + /** The spreadsheet the updates were applied to. */ + core.String spreadsheetId; + + ClearValuesResponse(); + + ClearValuesResponse.fromJson(core.Map _json) { + if (_json.containsKey("clearedRange")) { + clearedRange = _json["clearedRange"]; + } + if (_json.containsKey("spreadsheetId")) { + spreadsheetId = _json["spreadsheetId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (clearedRange != null) { + _json["clearedRange"] = clearedRange; + } + if (spreadsheetId != null) { + _json["spreadsheetId"] = spreadsheetId; + } + return _json; + } +} + /** * Represents a color in the RGBA color space. This representation is designed * for simplicity of conversion to/from color representations in various @@ -2852,6 +3233,28 @@ } } +/** Removes the banded range with the given ID from the spreadsheet. */ +class DeleteBandingRequest { + /** The ID of the banded range to delete. */ + core.int bandedRangeId; + + DeleteBandingRequest(); + + DeleteBandingRequest.fromJson(core.Map _json) { + if (_json.containsKey("bandedRangeId")) { + bandedRangeId = _json["bandedRangeId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bandedRangeId != null) { + _json["bandedRangeId"] = bandedRangeId; + } + return _json; + } +} + /** * Deletes a conditional format rule at the given index. * All subsequent rules' indexes are decremented. @@ -4284,6 +4687,8 @@ /** * Pattern string used for formatting. If not set, a default pattern based on * the user's locale will be used if necessary for the given type. + * See the [Date and Number Formats guide](/sheets/guides/formats) for more + * information about the supported patterns. */ core.String pattern; /** @@ -5068,6 +5473,8 @@ /** A single kind of update to apply to a spreadsheet. */ class Request { + /** Adds a new banded range */ + AddBandingRequest addBanding; /** Adds a chart. */ AddChartRequest addChart; /** Adds a new conditional format rule. */ @@ -5097,6 +5504,8 @@ CopyPasteRequest copyPaste; /** Cuts data from one area and pastes it to another. */ CutPasteRequest cutPaste; + /** Removes a banded range */ + DeleteBandingRequest deleteBanding; /** Deletes an existing conditional format rule. */ DeleteConditionalFormatRuleRequest deleteConditionalFormatRule; /** Deletes rows or columns in a sheet. */ @@ -5137,6 +5546,8 @@ TextToColumnsRequest textToColumns; /** Unmerges merged cells. */ UnmergeCellsRequest unmergeCells; + /** Updates a banded range */ + UpdateBandingRequest updateBanding; /** Updates the borders in a range of cells. */ UpdateBordersRequest updateBorders; /** Updates many cells at once. */ @@ -5163,6 +5574,9 @@ Request(); Request.fromJson(core.Map _json) { + if (_json.containsKey("addBanding")) { + addBanding = new AddBandingRequest.fromJson(_json["addBanding"]); + } if (_json.containsKey("addChart")) { addChart = new AddChartRequest.fromJson(_json["addChart"]); } @@ -5202,6 +5616,9 @@ if (_json.containsKey("cutPaste")) { cutPaste = new CutPasteRequest.fromJson(_json["cutPaste"]); } + if (_json.containsKey("deleteBanding")) { + deleteBanding = new DeleteBandingRequest.fromJson(_json["deleteBanding"]); + } if (_json.containsKey("deleteConditionalFormatRule")) { deleteConditionalFormatRule = new DeleteConditionalFormatRuleRequest.fromJson(_json["deleteConditionalFormatRule"]); } @@ -5262,6 +5679,9 @@ if (_json.containsKey("unmergeCells")) { unmergeCells = new UnmergeCellsRequest.fromJson(_json["unmergeCells"]); } + if (_json.containsKey("updateBanding")) { + updateBanding = new UpdateBandingRequest.fromJson(_json["updateBanding"]); + } if (_json.containsKey("updateBorders")) { updateBorders = new UpdateBordersRequest.fromJson(_json["updateBorders"]); } @@ -5299,6 +5719,9 @@ core.Map toJson() { var _json = new core.Map(); + if (addBanding != null) { + _json["addBanding"] = (addBanding).toJson(); + } if (addChart != null) { _json["addChart"] = (addChart).toJson(); } @@ -5338,6 +5761,9 @@ if (cutPaste != null) { _json["cutPaste"] = (cutPaste).toJson(); } + if (deleteBanding != null) { + _json["deleteBanding"] = (deleteBanding).toJson(); + } if (deleteConditionalFormatRule != null) { _json["deleteConditionalFormatRule"] = (deleteConditionalFormatRule).toJson(); } @@ -5398,6 +5824,9 @@ if (unmergeCells != null) { _json["unmergeCells"] = (unmergeCells).toJson(); } + if (updateBanding != null) { + _json["updateBanding"] = (updateBanding).toJson(); + } if (updateBorders != null) { _json["updateBorders"] = (updateBorders).toJson(); } @@ -5437,6 +5866,8 @@ /** A single response from an update. */ class Response { + /** A reply from adding a banded range. */ + AddBandingResponse addBanding; /** A reply from adding a chart. */ AddChartResponse addChart; /** A reply from adding a filter view. */ @@ -5463,6 +5894,9 @@ Response(); Response.fromJson(core.Map _json) { + if (_json.containsKey("addBanding")) { + addBanding = new AddBandingResponse.fromJson(_json["addBanding"]); + } if (_json.containsKey("addChart")) { addChart = new AddChartResponse.fromJson(_json["addChart"]); } @@ -5500,6 +5934,9 @@ core.Map toJson() { var _json = new core.Map(); + if (addBanding != null) { + _json["addBanding"] = (addBanding).toJson(); + } if (addChart != null) { _json["addChart"] = (addChart).toJson(); } @@ -5619,6 +6056,8 @@ /** A sheet in a spreadsheet. */ class Sheet { + /** The banded (i.e. alternating colors) ranges on this sheet. */ + core.List<BandedRange> bandedRanges; /** The filter on this sheet, if any. */ BasicFilter basicFilter; /** The specifications of every chart on this sheet. */ @@ -5648,6 +6087,9 @@ Sheet(); Sheet.fromJson(core.Map _json) { + if (_json.containsKey("bandedRanges")) { + bandedRanges = _json["bandedRanges"].map((value) => new BandedRange.fromJson(value)).toList(); + } if (_json.containsKey("basicFilter")) { basicFilter = new BasicFilter.fromJson(_json["basicFilter"]); } @@ -5676,6 +6118,9 @@ core.Map toJson() { var _json = new core.Map(); + if (bandedRanges != null) { + _json["bandedRanges"] = bandedRanges.map((value) => (value).toJson()).toList(); + } if (basicFilter != null) { _json["basicFilter"] = (basicFilter).toJson(); } @@ -6239,6 +6684,40 @@ } } +/** Updates properties of the supplied banded range. */ +class UpdateBandingRequest { + /** The banded range to update with the new properties. */ + BandedRange bandedRange; + /** + * The fields that should be updated. At least one field must be specified. + * The root `bandedRange` is implied and should not be specified. + * A single `"*"` can be used as short-hand for listing every field. + */ + core.String fields; + + UpdateBandingRequest(); + + UpdateBandingRequest.fromJson(core.Map _json) { + if (_json.containsKey("bandedRange")) { + bandedRange = new BandedRange.fromJson(_json["bandedRange"]); + } + if (_json.containsKey("fields")) { + fields = _json["fields"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (bandedRange != null) { + _json["bandedRange"] = (bandedRange).toJson(); + } + if (fields != null) { + _json["fields"] = fields; + } + return _json; + } +} + /** * Updates the borders of a range. * If a field is not set in the request, that means the border remains as-is.
diff --git a/generated/googleapis/lib/storage/v1.dart b/generated/googleapis/lib/storage/v1.dart index a5c3bdf..0d148d2 100644 --- a/generated/googleapis/lib/storage/v1.dart +++ b/generated/googleapis/lib/storage/v1.dart
@@ -607,7 +607,9 @@ } /** - * Updates a bucket. This method supports patch semantics. + * Updates a bucket. Changes to the bucket will be readable immediately after + * writing, but configuration changes may take time to propagate. This method + * supports patch semantics. * * [request] - The metadata request object. * @@ -706,7 +708,8 @@ } /** - * Updates a bucket. + * Updates a bucket. Changes to the bucket will be readable immediately after + * writing, but configuration changes may take time to propagate. * * [request] - The metadata request object. * @@ -1556,11 +1559,6 @@ * [ifMetagenerationMatch] - Makes the operation conditional on whether the * object's current metageneration matches the given value. * - * [kmsKeyName] - Resource name of the Cloud KMS key, of the form - * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that - * will be used to encrypt the object. Overrides the object metadata's - * kms_key_name value, if any. - * * [downloadOptions] - Options for downloading. A download can be either a * Metadata (default) or Media download. Partial Media downloads are possible * as well. @@ -1577,7 +1575,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 compose(ComposeRequest request, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifMetagenerationMatch, core.String kmsKeyName, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { + async.Future compose(ComposeRequest request, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifMetagenerationMatch, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -1603,9 +1601,6 @@ if (ifMetagenerationMatch != null) { _queryParams["ifMetagenerationMatch"] = [ifMetagenerationMatch]; } - if (kmsKeyName != null) { - _queryParams["kmsKeyName"] = [kmsKeyName]; - } _downloadOptions = downloadOptions; @@ -1991,11 +1986,6 @@ * [ifMetagenerationNotMatch] - Makes the operation conditional on whether the * object's current metageneration does not match the given value. * - * [kmsKeyName] - Resource name of the Cloud KMS key, of the form - * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that - * will be used to encrypt the object. Overrides the object metadata's - * kms_key_name value, if any. - * * [name] - Name of the object. Required when the object metadata is not * otherwise provided. Overrides the object metadata's name value, if any. For * information about how to URL encode object names to be path safe, see @@ -2042,7 +2032,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 insert(Object request, core.String bucket, {core.String contentEncoding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String kmsKeyName, core.String name, core.String predefinedAcl, core.String projection, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { + async.Future insert(Object request, core.String bucket, {core.String contentEncoding, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String name, core.String predefinedAcl, core.String projection, commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia, commons.DownloadOptions downloadOptions: commons.DownloadOptions.Metadata}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2071,9 +2061,6 @@ if (ifMetagenerationNotMatch != null) { _queryParams["ifMetagenerationNotMatch"] = [ifMetagenerationNotMatch]; } - if (kmsKeyName != null) { - _queryParams["kmsKeyName"] = [kmsKeyName]; - } if (name != null) { _queryParams["name"] = [name]; } @@ -2319,11 +2306,6 @@ * value, if any. For information about how to URL encode object names to be * path safe, see Encoding URI Path Parts. * - * [destinationKmsKeyName] - Resource name of the Cloud KMS key, of the form - * projects/my-project/locations/global/keyRings/my-kr/cryptoKeys/my-key, that - * will be used to encrypt the object. Overrides the object metadata's - * kms_key_name value, if any. - * * [destinationPredefinedAcl] - Apply a predefined set of access controls to * the destination object. * Possible string values are: @@ -2395,7 +2377,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<RewriteResponse> rewrite(Object request, core.String sourceBucket, core.String sourceObject, core.String destinationBucket, core.String destinationObject, {core.String destinationKmsKeyName, core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.String sourceGeneration}) { + async.Future<RewriteResponse> rewrite(Object request, core.String sourceBucket, core.String sourceObject, core.String destinationBucket, core.String destinationObject, {core.String destinationPredefinedAcl, core.String ifGenerationMatch, core.String ifGenerationNotMatch, core.String ifMetagenerationMatch, core.String ifMetagenerationNotMatch, core.String ifSourceGenerationMatch, core.String ifSourceGenerationNotMatch, core.String ifSourceMetagenerationMatch, core.String ifSourceMetagenerationNotMatch, core.String maxBytesRewrittenPerCall, core.String projection, core.String rewriteToken, core.String sourceGeneration}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -2418,9 +2400,6 @@ if (destinationObject == null) { throw new core.ArgumentError("Parameter destinationObject is required."); } - if (destinationKmsKeyName != null) { - _queryParams["destinationKmsKeyName"] = [destinationKmsKeyName]; - } if (destinationPredefinedAcl != null) { _queryParams["destinationPredefinedAcl"] = [destinationPredefinedAcl]; } @@ -2740,38 +2719,25 @@ } } -/** - * Encryption configuration used by default for newly inserted objects, when no - * encryption config is specified. - */ -class BucketEncryption { - core.String defaultKmsKeyName; - - BucketEncryption(); - - BucketEncryption.fromJson(core.Map _json) { - if (_json.containsKey("default_kms_key_name")) { - defaultKmsKeyName = _json["default_kms_key_name"]; - } - } - - core.Map toJson() { - var _json = new core.Map(); - if (defaultKmsKeyName != null) { - _json["default_kms_key_name"] = defaultKmsKeyName; - } - return _json; - } -} - /** The action to take. */ class BucketLifecycleRuleAction { - /** Type of the action. Currently, only Delete is supported. */ + /** + * Target storage class. Required iff the type of the action is + * SetStorageClass. + */ + core.String storageClass; + /** + * Type of the action. Currently, only Delete and SetStorageClass are + * supported. + */ core.String type; BucketLifecycleRuleAction(); BucketLifecycleRuleAction.fromJson(core.Map _json) { + if (_json.containsKey("storageClass")) { + storageClass = _json["storageClass"]; + } if (_json.containsKey("type")) { type = _json["type"]; } @@ -2779,6 +2745,9 @@ core.Map toJson() { var _json = new core.Map(); + if (storageClass != null) { + _json["storageClass"] = storageClass; + } if (type != null) { _json["type"] = type; } @@ -2805,6 +2774,12 @@ */ core.bool isLive; /** + * Objects having any of the storage classes specified by this condition will + * be matched. Values include MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, + * STANDARD, and DURABLE_REDUCED_AVAILABILITY. + */ + core.List<core.String> matchesStorageClass; + /** * Relevant only for versioned objects. If the value is N, this condition is * satisfied when there are at least N versions (including the live version) * newer than this version of the object. @@ -2823,6 +2798,9 @@ if (_json.containsKey("isLive")) { isLive = _json["isLive"]; } + if (_json.containsKey("matchesStorageClass")) { + matchesStorageClass = _json["matchesStorageClass"]; + } if (_json.containsKey("numNewerVersions")) { numNewerVersions = _json["numNewerVersions"]; } @@ -2839,6 +2817,9 @@ if (isLive != null) { _json["isLive"] = isLive; } + if (matchesStorageClass != null) { + _json["matchesStorageClass"] = matchesStorageClass; + } if (numNewerVersions != null) { _json["numNewerVersions"] = numNewerVersions; } @@ -3043,11 +3024,6 @@ * Default access controls to apply to new objects when no ACL is provided. */ core.List<ObjectAccessControl> defaultObjectAcl; - /** - * Encryption configuration used by default for newly inserted objects, when - * no encryption config is specified. - */ - BucketEncryption encryption; /** HTTP 1.1 Entity tag for the bucket. */ core.String etag; /** The ID of the bucket. */ @@ -3083,10 +3059,13 @@ /** The URI of this bucket. */ core.String selfLink; /** - * The bucket's storage class. This defines how objects in the bucket are - * stored and determines the SLA and the cost of storage. Values include - * STANDARD, NEARLINE and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. - * For more information, see storage classes. + * The bucket's default storage class, used whenever no storageClass is + * specified for a newly-created object. This defines how objects in the + * bucket are stored and determines the SLA and the cost of storage. Values + * include MULTI_REGIONAL, REGIONAL, STANDARD, NEARLINE, COLDLINE, and + * DURABLE_REDUCED_AVAILABILITY. If this value is not specified when the + * bucket is created, it will default to STANDARD. For more information, see + * storage classes. */ core.String storageClass; /** The creation time of the bucket in RFC 3339 format. */ @@ -3114,9 +3093,6 @@ if (_json.containsKey("defaultObjectAcl")) { defaultObjectAcl = _json["defaultObjectAcl"].map((value) => new ObjectAccessControl.fromJson(value)).toList(); } - if (_json.containsKey("encryption")) { - encryption = new BucketEncryption.fromJson(_json["encryption"]); - } if (_json.containsKey("etag")) { etag = _json["etag"]; } @@ -3178,9 +3154,6 @@ if (defaultObjectAcl != null) { _json["defaultObjectAcl"] = defaultObjectAcl.map((value) => (value).toJson()).toList(); } - if (encryption != null) { - _json["encryption"] = (encryption).toJson(); - } if (etag != null) { _json["etag"] = etag; } @@ -3783,11 +3756,6 @@ /** The kind of item this is. For objects, this is always storage#object. */ core.String kind; /** - * Cloud KMS Key used to encrypt this object, if the object is encrypted by - * such a key. - */ - core.String kmsKeyName; - /** * MD5 hash of the data; encoded using base64. For more information about * using the MD5 hash, see Hashes and ETags: Best Practices. */ @@ -3870,9 +3838,6 @@ if (_json.containsKey("kind")) { kind = _json["kind"]; } - if (_json.containsKey("kmsKeyName")) { - kmsKeyName = _json["kmsKeyName"]; - } if (_json.containsKey("md5Hash")) { md5Hash = _json["md5Hash"]; } @@ -3955,9 +3920,6 @@ if (kind != null) { _json["kind"] = kind; } - if (kmsKeyName != null) { - _json["kmsKeyName"] = kmsKeyName; - } if (md5Hash != null) { _json["md5Hash"] = md5Hash; } @@ -4057,7 +4019,7 @@ core.String entityId; /** HTTP 1.1 Entity tag for the access-control entry. */ core.String etag; - /** The content generation of the object. */ + /** The content generation of the object, if applied to an object. */ core.String generation; /** The ID of the access-control entry. */ core.String id; @@ -4066,7 +4028,7 @@ * storage#objectAccessControl. */ core.String kind; - /** The name of the object. */ + /** The name of the object, if applied to an object. */ core.String object; /** The project team associated with the entity, if any. */ ObjectAccessControlProjectTeam projectTeam; @@ -4166,13 +4128,8 @@ /** An access-control list. */ class ObjectAccessControls { - /** - * The list of items. - * - * 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.Object> items; + /** The list of items. */ + core.List<ObjectAccessControl> items; /** * The kind of item this is. For lists of object access control entries, this * is always storage#objectAccessControls. @@ -4183,7 +4140,7 @@ ObjectAccessControls.fromJson(core.Map _json) { if (_json.containsKey("items")) { - items = _json["items"]; + items = _json["items"].map((value) => new ObjectAccessControl.fromJson(value)).toList(); } if (_json.containsKey("kind")) { kind = _json["kind"]; @@ -4193,7 +4150,7 @@ core.Map toJson() { var _json = new core.Map(); if (items != null) { - _json["items"] = items; + _json["items"] = items.map((value) => (value).toJson()).toList(); } if (kind != null) { _json["kind"] = kind;
diff --git a/generated/googleapis/lib/surveys/v2.dart b/generated/googleapis/lib/surveys/v2.dart new file mode 100644 index 0000000..574f558 --- /dev/null +++ b/generated/googleapis/lib/surveys/v2.dart
@@ -0,0 +1,1568 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis.surveys.v2; + +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 surveys/v2'; + +/** + * Creates and conducts surveys, lists the surveys that an authenticated user + * owns, and retrieves survey results and information about specified surveys. + */ +class SurveysApi { + /** View and manage your surveys and results */ + static const SurveysScope = "https://www.googleapis.com/auth/surveys"; + + /** View your surveys and survey results */ + static const SurveysReadonlyScope = "https://www.googleapis.com/auth/surveys.readonly"; + + /** View your email address */ + static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"; + + + final commons.ApiRequester _requester; + + MobileapppanelsResourceApi get mobileapppanels => new MobileapppanelsResourceApi(_requester); + ResultsResourceApi get results => new ResultsResourceApi(_requester); + SurveysResourceApi get surveys => new SurveysResourceApi(_requester); + + SurveysApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "surveys/v2/"}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class MobileapppanelsResourceApi { + final commons.ApiRequester _requester; + + MobileapppanelsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Retrieves a MobileAppPanel that is available to the authenticated user. + * + * Request parameters: + * + * [panelId] - External URL ID for the panel. + * + * Completes with a [MobileAppPanel]. + * + * 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<MobileAppPanel> get(core.String panelId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (panelId == null) { + throw new core.ArgumentError("Parameter panelId is required."); + } + + _url = 'mobileAppPanels/' + commons.Escaper.ecapeVariable('$panelId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new MobileAppPanel.fromJson(data)); + } + + /** + * Lists the MobileAppPanels available to the authenticated user. + * + * Request parameters: + * + * [maxResults] - null + * + * [startIndex] - null + * + * [token] - null + * + * Completes with a [MobileAppPanelsListResponse]. + * + * 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<MobileAppPanelsListResponse> list({core.int maxResults, core.int startIndex, core.String token}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (startIndex != null) { + _queryParams["startIndex"] = ["${startIndex}"]; + } + if (token != null) { + _queryParams["token"] = [token]; + } + + _url = 'mobileAppPanels'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new MobileAppPanelsListResponse.fromJson(data)); + } + + /** + * Updates a MobileAppPanel. Currently the only property that can be updated + * is the owners property. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [panelId] - External URL ID for the panel. + * + * Completes with a [MobileAppPanel]. + * + * 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<MobileAppPanel> update(MobileAppPanel request, core.String panelId) { + 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 (panelId == null) { + throw new core.ArgumentError("Parameter panelId is required."); + } + + _url = 'mobileAppPanels/' + commons.Escaper.ecapeVariable('$panelId'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new MobileAppPanel.fromJson(data)); + } + +} + + +class ResultsResourceApi { + final commons.ApiRequester _requester; + + ResultsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Retrieves any survey results that have been produced so far. Results are + * formatted as an Excel file. You must add "?alt=media" to the URL as an + * argument to get results. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [surveyUrlId] - External URL ID for the survey. + * + * [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 + * + * - [SurveyResults] 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(ResultsGetRequest request, core.String surveyUrlId, {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 (request != null) { + _body = convert.JSON.encode((request).toJson()); + } + if (surveyUrlId == null) { + throw new core.ArgumentError("Parameter surveyUrlId is required."); + } + + _downloadOptions = downloadOptions; + + _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId') + '/results'; + + 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 SurveyResults.fromJson(data)); + } else { + return _response; + } + } + +} + + +class SurveysResourceApi { + final commons.ApiRequester _requester; + + SurveysResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Removes a survey from view in all user GET requests. + * + * Request parameters: + * + * [surveyUrlId] - External URL ID for the survey. + * + * Completes with a [SurveysDeleteResponse]. + * + * 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<SurveysDeleteResponse> delete(core.String surveyUrlId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (surveyUrlId == null) { + throw new core.ArgumentError("Parameter surveyUrlId is required."); + } + + _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SurveysDeleteResponse.fromJson(data)); + } + + /** + * Retrieves information about the specified survey. + * + * Request parameters: + * + * [surveyUrlId] - External URL ID for the survey. + * + * Completes with a [Survey]. + * + * 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<Survey> get(core.String surveyUrlId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (surveyUrlId == null) { + throw new core.ArgumentError("Parameter surveyUrlId is required."); + } + + _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Survey.fromJson(data)); + } + + /** + * Creates a survey. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * Completes with a [Survey]. + * + * 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<Survey> insert(Survey 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 = 'surveys'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Survey.fromJson(data)); + } + + /** + * Lists the surveys owned by the authenticated user. + * + * Request parameters: + * + * [maxResults] - null + * + * [startIndex] - null + * + * [token] - null + * + * Completes with a [SurveysListResponse]. + * + * 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<SurveysListResponse> list({core.int maxResults, core.int startIndex, core.String token}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (maxResults != null) { + _queryParams["maxResults"] = ["${maxResults}"]; + } + if (startIndex != null) { + _queryParams["startIndex"] = ["${startIndex}"]; + } + if (token != null) { + _queryParams["token"] = [token]; + } + + _url = 'surveys'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SurveysListResponse.fromJson(data)); + } + + /** + * Begins running a survey. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [resourceId] - null + * + * Completes with a [SurveysStartResponse]. + * + * 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<SurveysStartResponse> start(SurveysStartRequest request, core.String resourceId) { + 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 (resourceId == null) { + throw new core.ArgumentError("Parameter resourceId is required."); + } + + _url = 'surveys/' + commons.Escaper.ecapeVariable('$resourceId') + '/start'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SurveysStartResponse.fromJson(data)); + } + + /** + * Stops a running survey. + * + * Request parameters: + * + * [resourceId] - null + * + * Completes with a [SurveysStopResponse]. + * + * 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<SurveysStopResponse> stop(core.String resourceId) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (resourceId == null) { + throw new core.ArgumentError("Parameter resourceId is required."); + } + + _url = 'surveys/' + commons.Escaper.ecapeVariable('$resourceId') + '/stop'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new SurveysStopResponse.fromJson(data)); + } + + /** + * Updates a survey. Currently the only property that can be updated is the + * owners property. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [surveyUrlId] - External URL ID for the survey. + * + * Completes with a [Survey]. + * + * 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<Survey> update(Survey request, core.String surveyUrlId) { + 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 (surveyUrlId == null) { + throw new core.ArgumentError("Parameter surveyUrlId is required."); + } + + _url = 'surveys/' + commons.Escaper.ecapeVariable('$surveyUrlId'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Survey.fromJson(data)); + } + +} + + + +class FieldMask { + core.List<FieldMask> fields; + core.int id; + + FieldMask(); + + FieldMask.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toList(); + } + if (_json.containsKey("id")) { + id = _json["id"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields.map((value) => (value).toJson()).toList(); + } + if (id != null) { + _json["id"] = id; + } + return _json; + } +} + +/** + * Representation of an individual pre-defined panel object defining a targeted + * audience of opinion rewards mobile app users. + */ +class MobileAppPanel { + /** + * Country code for the country of the users that the panel contains. Uses + * standard ISO 3166-1 2-character language codes. For instance, 'US' for the + * United States, and 'GB' for the United Kingdom. Any survey created + * targeting this panel must also target the corresponding country. + */ + core.String country; + /** Whether or not the panel is accessible to all API users. */ + core.bool isPublicPanel; + /** + * Language code that the panel can target. For instance, 'en-US'. Uses + * standard BCP47 language codes. See specification. Any survey created + * targeting this panel must also target the corresponding language. + */ + core.String language; + /** + * Unique panel ID string. This corresponds to the mobile_app_panel_id used in + * Survey Insert requests. + */ + core.String mobileAppPanelId; + /** Human readable name of the audience panel. */ + core.String name; + /** + * List of email addresses for users who can target members of this panel. + * Must contain at least the address of the user making the API call for + * panels that are not public. This field will be empty for public panels. + */ + core.List<core.String> owners; + + MobileAppPanel(); + + MobileAppPanel.fromJson(core.Map _json) { + if (_json.containsKey("country")) { + country = _json["country"]; + } + if (_json.containsKey("isPublicPanel")) { + isPublicPanel = _json["isPublicPanel"]; + } + if (_json.containsKey("language")) { + language = _json["language"]; + } + if (_json.containsKey("mobileAppPanelId")) { + mobileAppPanelId = _json["mobileAppPanelId"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("owners")) { + owners = _json["owners"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (country != null) { + _json["country"] = country; + } + if (isPublicPanel != null) { + _json["isPublicPanel"] = isPublicPanel; + } + if (language != null) { + _json["language"] = language; + } + if (mobileAppPanelId != null) { + _json["mobileAppPanelId"] = mobileAppPanelId; + } + if (name != null) { + _json["name"] = name; + } + if (owners != null) { + _json["owners"] = owners; + } + return _json; + } +} + +class MobileAppPanelsListResponse { + PageInfo pageInfo; + /** + * Unique request ID used for logging and debugging. Please include in any + * error reporting or troubleshooting requests. + */ + core.String requestId; + /** An individual predefined panel of Opinion Rewards mobile users. */ + core.List<MobileAppPanel> resources; + TokenPagination tokenPagination; + + MobileAppPanelsListResponse(); + + MobileAppPanelsListResponse.fromJson(core.Map _json) { + if (_json.containsKey("pageInfo")) { + pageInfo = new PageInfo.fromJson(_json["pageInfo"]); + } + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } + if (_json.containsKey("resources")) { + resources = _json["resources"].map((value) => new MobileAppPanel.fromJson(value)).toList(); + } + if (_json.containsKey("tokenPagination")) { + tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (pageInfo != null) { + _json["pageInfo"] = (pageInfo).toJson(); + } + if (requestId != null) { + _json["requestId"] = requestId; + } + if (resources != null) { + _json["resources"] = resources.map((value) => (value).toJson()).toList(); + } + if (tokenPagination != null) { + _json["tokenPagination"] = (tokenPagination).toJson(); + } + return _json; + } +} + +class PageInfo { + core.int resultPerPage; + core.int startIndex; + core.int totalResults; + + PageInfo(); + + PageInfo.fromJson(core.Map _json) { + if (_json.containsKey("resultPerPage")) { + resultPerPage = _json["resultPerPage"]; + } + if (_json.containsKey("startIndex")) { + startIndex = _json["startIndex"]; + } + if (_json.containsKey("totalResults")) { + totalResults = _json["totalResults"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (resultPerPage != null) { + _json["resultPerPage"] = resultPerPage; + } + if (startIndex != null) { + _json["startIndex"] = startIndex; + } + if (totalResults != null) { + _json["totalResults"] = totalResults; + } + return _json; + } +} + +class ResultsGetRequest { + ResultsMask resultMask; + + ResultsGetRequest(); + + ResultsGetRequest.fromJson(core.Map _json) { + if (_json.containsKey("resultMask")) { + resultMask = new ResultsMask.fromJson(_json["resultMask"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (resultMask != null) { + _json["resultMask"] = (resultMask).toJson(); + } + return _json; + } +} + +class ResultsMask { + core.List<FieldMask> fields; + core.String projection; + + ResultsMask(); + + ResultsMask.fromJson(core.Map _json) { + if (_json.containsKey("fields")) { + fields = _json["fields"].map((value) => new FieldMask.fromJson(value)).toList(); + } + if (_json.containsKey("projection")) { + projection = _json["projection"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (fields != null) { + _json["fields"] = fields.map((value) => (value).toJson()).toList(); + } + if (projection != null) { + _json["projection"] = projection; + } + return _json; + } +} + +/** Representation of an individual survey object. */ +class Survey { + /** Targeting-criteria message containing demographic information */ + SurveyAudience audience; + /** Cost to run the survey and collect the necessary number of responses. */ + SurveyCost cost; + /** + * Additional information to store on behalf of the API consumer and associate + * with this question. This binary blob is treated as opaque. This field is + * limited to 64K bytes. + */ + core.String customerData; + core.List<core.int> get customerDataAsBytes { + return convert.BASE64.decode(customerData); + } + + void set customerDataAsBytes(core.List<core.int> _bytes) { + customerData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** Text description of the survey. */ + core.String description; + /** + * List of email addresses for survey owners. Must contain at least the + * address of the user making the API call. + */ + core.List<core.String> owners; + /** List of questions defining the survey. */ + core.List<SurveyQuestion> questions; + /** + * Reason for the survey being rejected. Only present if the survey state is + * rejected. + */ + SurveyRejection rejectionReason; + /** State that the survey is in. */ + core.String state; + /** Unique survey ID, that is viewable in the URL of the Survey Creator UI */ + core.String surveyUrlId; + /** Optional name that will be given to the survey. */ + core.String title; + /** Number of responses desired for the survey. */ + core.int wantedResponseCount; + + Survey(); + + Survey.fromJson(core.Map _json) { + if (_json.containsKey("audience")) { + audience = new SurveyAudience.fromJson(_json["audience"]); + } + if (_json.containsKey("cost")) { + cost = new SurveyCost.fromJson(_json["cost"]); + } + if (_json.containsKey("customerData")) { + customerData = _json["customerData"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("owners")) { + owners = _json["owners"]; + } + if (_json.containsKey("questions")) { + questions = _json["questions"].map((value) => new SurveyQuestion.fromJson(value)).toList(); + } + if (_json.containsKey("rejectionReason")) { + rejectionReason = new SurveyRejection.fromJson(_json["rejectionReason"]); + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("surveyUrlId")) { + surveyUrlId = _json["surveyUrlId"]; + } + if (_json.containsKey("title")) { + title = _json["title"]; + } + if (_json.containsKey("wantedResponseCount")) { + wantedResponseCount = _json["wantedResponseCount"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (audience != null) { + _json["audience"] = (audience).toJson(); + } + if (cost != null) { + _json["cost"] = (cost).toJson(); + } + if (customerData != null) { + _json["customerData"] = customerData; + } + if (description != null) { + _json["description"] = description; + } + if (owners != null) { + _json["owners"] = owners; + } + if (questions != null) { + _json["questions"] = questions.map((value) => (value).toJson()).toList(); + } + if (rejectionReason != null) { + _json["rejectionReason"] = (rejectionReason).toJson(); + } + if (state != null) { + _json["state"] = state; + } + if (surveyUrlId != null) { + _json["surveyUrlId"] = surveyUrlId; + } + if (title != null) { + _json["title"] = title; + } + if (wantedResponseCount != null) { + _json["wantedResponseCount"] = wantedResponseCount; + } + return _json; + } +} + +/** Specifications for the target audience of a survey run through the API. */ +class SurveyAudience { + /** + * Optional list of age buckets to target. Supported age buckets are: + * ['18-24', '25-34', '35-44', '45-54', '55-64', '65+'] + */ + core.List<core.String> ages; + /** + * Required country code that surveys should be targeted to. Accepts standard + * ISO 3166-1 2 character language codes. For instance, 'US' for the United + * States, and 'GB' for the United Kingdom. + */ + core.String country; + /** + * Country subdivision (states/provinces/etc) that surveys should be targeted + * to. For all countries except GB, ISO-3166-2 subdivision code is required + * (eg. 'US-OH' for Ohio, United States). For GB, NUTS 1 statistical region + * codes for the United Kingdom is required (eg. 'UK-UKC' for North East + * England). + */ + core.String countrySubdivision; + /** Optional gender to target. */ + core.String gender; + /** + * Language code that surveys should be targeted to. For instance, 'en-US'. + * Surveys may target bilingual users by specifying a list of language codes + * (for example, 'de' and 'en-US'). In that case, all languages will be used + * for targeting users but the survey content (which is displayed) must match + * the first language listed. Accepts standard BCP47 language codes. See + * specification. + */ + core.List<core.String> languages; + /** + * Key for predefined panel that causes survey to be sent to a predefined set + * of Opinion Rewards App users. You must set PopulationSource to + * ANDROID_APP_PANEL to use this field. + */ + core.String mobileAppPanelId; + /** Online population source where the respondents are sampled from. */ + core.String populationSource; + + SurveyAudience(); + + SurveyAudience.fromJson(core.Map _json) { + if (_json.containsKey("ages")) { + ages = _json["ages"]; + } + if (_json.containsKey("country")) { + country = _json["country"]; + } + if (_json.containsKey("countrySubdivision")) { + countrySubdivision = _json["countrySubdivision"]; + } + if (_json.containsKey("gender")) { + gender = _json["gender"]; + } + if (_json.containsKey("languages")) { + languages = _json["languages"]; + } + if (_json.containsKey("mobileAppPanelId")) { + mobileAppPanelId = _json["mobileAppPanelId"]; + } + if (_json.containsKey("populationSource")) { + populationSource = _json["populationSource"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (ages != null) { + _json["ages"] = ages; + } + if (country != null) { + _json["country"] = country; + } + if (countrySubdivision != null) { + _json["countrySubdivision"] = countrySubdivision; + } + if (gender != null) { + _json["gender"] = gender; + } + if (languages != null) { + _json["languages"] = languages; + } + if (mobileAppPanelId != null) { + _json["mobileAppPanelId"] = mobileAppPanelId; + } + if (populationSource != null) { + _json["populationSource"] = populationSource; + } + return _json; + } +} + +/** Message defining the cost to run a given survey through API. */ +class SurveyCost { + /** + * Cost per survey response in nano units of the given currency. To get the + * total cost for a survey, multiply this value by wanted_response_count. + */ + core.String costPerResponseNanos; + /** Currency code that the cost is given in. */ + core.String currencyCode; + /** + * Threshold to start a survey automatically if the quoted price is at most + * this value. When a survey has a Screener (threshold) question, it must go + * through an incidence pricing test to determine the final cost per response. + * Typically you will have to make a followup call to start the survey giving + * the final computed cost per response. If the survey has no + * threshold_answers, setting this property will return an error. By + * specifying this property, you indicate the max price per response you are + * willing to pay in advance of the incidence test. If the price turns out to + * be lower than the specified value, the survey will begin immediately and + * you will be charged at the rate determined by the incidence pricing test. + * If the price turns out to be greater than the specified value the survey + * will not be started and you will instead be notified what price was + * determined by the incidence test. At that point, you must raise the value + * of this property to be greater than or equal to that cost before attempting + * to start the survey again. This will immediately start the survey as long + * the incidence test was run within the last 21 days. + */ + core.String maxCostPerResponseNanos; + /** + * Cost of survey in nano units of the given currency. DEPRECATED in favor of + * cost_per_response_nanos + */ + core.String nanos; + + SurveyCost(); + + SurveyCost.fromJson(core.Map _json) { + if (_json.containsKey("costPerResponseNanos")) { + costPerResponseNanos = _json["costPerResponseNanos"]; + } + if (_json.containsKey("currencyCode")) { + currencyCode = _json["currencyCode"]; + } + if (_json.containsKey("maxCostPerResponseNanos")) { + maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; + } + if (_json.containsKey("nanos")) { + nanos = _json["nanos"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (costPerResponseNanos != null) { + _json["costPerResponseNanos"] = costPerResponseNanos; + } + if (currencyCode != null) { + _json["currencyCode"] = currencyCode; + } + if (maxCostPerResponseNanos != null) { + _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; + } + if (nanos != null) { + _json["nanos"] = nanos; + } + return _json; + } +} + +/** Message defining the question specifications. */ +class SurveyQuestion { + /** + * The randomization option for multiple choice and multi-select questions. If + * not specified, this option defaults to randomize. + */ + core.String answerOrder; + /** Required list of answer options for a question. */ + core.List<core.String> answers; + /** + * Option to allow open-ended text box for Single Answer and Multiple Answer + * question types. This can be used with SINGLE_ANSWER, + * SINGLE_ANSWER_WITH_IMAGE, MULTIPLE_ANSWERS, and MULTIPLE_ANSWERS_WITH_IMAGE + * question types. + */ + core.bool hasOther; + /** + * For rating questions, the text for the higher end of the scale, such as + * 'Best'. For numeric questions, a string representing a floating-point that + * is the maximum allowed number for a response. + */ + core.String highValueLabel; + core.List<SurveyQuestionImage> images; + /** Currently only support pinning an answer option to the last position. */ + core.bool lastAnswerPositionPinned; + /** + * For rating questions, the text for the lower end of the scale, such as + * 'Worst'. For numeric questions, a string representing a floating-point that + * is the minimum allowed number for a response. + */ + core.String lowValueLabel; + /** + * Option to force the user to pick one of the open text suggestions. This + * requires that suggestions are provided for this question. + */ + core.bool mustPickSuggestion; + /** Number of stars to use for ratings questions. */ + core.String numStars; + /** Placeholder text for an open text question. */ + core.String openTextPlaceholder; + /** + * A list of suggested answers for open text question auto-complete. This is + * only valid if single_line_response is true. + */ + core.List<core.String> openTextSuggestions; + /** Required question text shown to the respondent. */ + core.String question; + /** + * Used by the Rating Scale with Text question type. This text goes along with + * the question field that is presented to the respondent, and is the actual + * text that the respondent is asked to rate. + */ + core.String sentimentText; + /** + * Option to allow multiple line open text responses instead of a single line + * response. Note that we don't show auto-complete suggestions with multiple + * line responses. + */ + core.bool singleLineResponse; + /** + * The threshold/screener answer options, which will screen a user into the + * rest of the survey. These will be a subset of the answer option strings. + */ + core.List<core.String> thresholdAnswers; + /** + * Required field defining the question type. For details about configuring + * different type of questions, consult the question configuration guide. + */ + core.String type; + /** + * Optional unit of measurement for display (for example: hours, people, + * miles). + */ + core.String unitOfMeasurementLabel; + /** The YouTube video ID to be show in video questions. */ + core.String videoId; + + SurveyQuestion(); + + SurveyQuestion.fromJson(core.Map _json) { + if (_json.containsKey("answerOrder")) { + answerOrder = _json["answerOrder"]; + } + if (_json.containsKey("answers")) { + answers = _json["answers"]; + } + if (_json.containsKey("hasOther")) { + hasOther = _json["hasOther"]; + } + if (_json.containsKey("highValueLabel")) { + highValueLabel = _json["highValueLabel"]; + } + if (_json.containsKey("images")) { + images = _json["images"].map((value) => new SurveyQuestionImage.fromJson(value)).toList(); + } + if (_json.containsKey("lastAnswerPositionPinned")) { + lastAnswerPositionPinned = _json["lastAnswerPositionPinned"]; + } + if (_json.containsKey("lowValueLabel")) { + lowValueLabel = _json["lowValueLabel"]; + } + if (_json.containsKey("mustPickSuggestion")) { + mustPickSuggestion = _json["mustPickSuggestion"]; + } + if (_json.containsKey("numStars")) { + numStars = _json["numStars"]; + } + if (_json.containsKey("openTextPlaceholder")) { + openTextPlaceholder = _json["openTextPlaceholder"]; + } + if (_json.containsKey("openTextSuggestions")) { + openTextSuggestions = _json["openTextSuggestions"]; + } + if (_json.containsKey("question")) { + question = _json["question"]; + } + if (_json.containsKey("sentimentText")) { + sentimentText = _json["sentimentText"]; + } + if (_json.containsKey("singleLineResponse")) { + singleLineResponse = _json["singleLineResponse"]; + } + if (_json.containsKey("thresholdAnswers")) { + thresholdAnswers = _json["thresholdAnswers"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + if (_json.containsKey("unitOfMeasurementLabel")) { + unitOfMeasurementLabel = _json["unitOfMeasurementLabel"]; + } + if (_json.containsKey("videoId")) { + videoId = _json["videoId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (answerOrder != null) { + _json["answerOrder"] = answerOrder; + } + if (answers != null) { + _json["answers"] = answers; + } + if (hasOther != null) { + _json["hasOther"] = hasOther; + } + if (highValueLabel != null) { + _json["highValueLabel"] = highValueLabel; + } + if (images != null) { + _json["images"] = images.map((value) => (value).toJson()).toList(); + } + if (lastAnswerPositionPinned != null) { + _json["lastAnswerPositionPinned"] = lastAnswerPositionPinned; + } + if (lowValueLabel != null) { + _json["lowValueLabel"] = lowValueLabel; + } + if (mustPickSuggestion != null) { + _json["mustPickSuggestion"] = mustPickSuggestion; + } + if (numStars != null) { + _json["numStars"] = numStars; + } + if (openTextPlaceholder != null) { + _json["openTextPlaceholder"] = openTextPlaceholder; + } + if (openTextSuggestions != null) { + _json["openTextSuggestions"] = openTextSuggestions; + } + if (question != null) { + _json["question"] = question; + } + if (sentimentText != null) { + _json["sentimentText"] = sentimentText; + } + if (singleLineResponse != null) { + _json["singleLineResponse"] = singleLineResponse; + } + if (thresholdAnswers != null) { + _json["thresholdAnswers"] = thresholdAnswers; + } + if (type != null) { + _json["type"] = type; + } + if (unitOfMeasurementLabel != null) { + _json["unitOfMeasurementLabel"] = unitOfMeasurementLabel; + } + if (videoId != null) { + _json["videoId"] = videoId; + } + return _json; + } +} + +/** Container object for image data and alt_text. */ +class SurveyQuestionImage { + /** The alt text property used in image tags is required for all images. */ + core.String altText; + /** + * Inline jpeg, gif, tiff, bmp, or png image raw bytes for an image question + * types. + */ + core.String data; + core.List<core.int> get dataAsBytes { + return convert.BASE64.decode(data); + } + + void set dataAsBytes(core.List<core.int> _bytes) { + data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + /** The read-only URL for the hosted images. */ + core.String url; + + SurveyQuestionImage(); + + SurveyQuestionImage.fromJson(core.Map _json) { + if (_json.containsKey("altText")) { + altText = _json["altText"]; + } + if (_json.containsKey("data")) { + data = _json["data"]; + } + if (_json.containsKey("url")) { + url = _json["url"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (altText != null) { + _json["altText"] = altText; + } + if (data != null) { + _json["data"] = data; + } + if (url != null) { + _json["url"] = url; + } + return _json; + } +} + +/** Message representing why the survey was rejected from review, if it was. */ +class SurveyRejection { + /** A human-readable explanation of what was wrong with the survey. */ + core.String explanation; + /** + * Which category of rejection this was. See the Google Surveys Help Center + * for additional details on each category. + */ + core.String type; + + SurveyRejection(); + + SurveyRejection.fromJson(core.Map _json) { + if (_json.containsKey("explanation")) { + explanation = _json["explanation"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (explanation != null) { + _json["explanation"] = explanation; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** Reference to the current results for a given survey. */ +class SurveyResults { + /** Human readable string describing the status of the request. */ + core.String status; + /** External survey ID as viewable by survey owners in the editor view. */ + core.String surveyUrlId; + + SurveyResults(); + + SurveyResults.fromJson(core.Map _json) { + if (_json.containsKey("status")) { + status = _json["status"]; + } + if (_json.containsKey("surveyUrlId")) { + surveyUrlId = _json["surveyUrlId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (status != null) { + _json["status"] = status; + } + if (surveyUrlId != null) { + _json["surveyUrlId"] = surveyUrlId; + } + return _json; + } +} + +class SurveysDeleteResponse { + /** + * Unique request ID used for logging and debugging. Please include in any + * error reporting or troubleshooting requests. + */ + core.String requestId; + + SurveysDeleteResponse(); + + SurveysDeleteResponse.fromJson(core.Map _json) { + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (requestId != null) { + _json["requestId"] = requestId; + } + return _json; + } +} + +class SurveysListResponse { + PageInfo pageInfo; + /** + * Unique request ID used for logging and debugging. Please include in any + * error reporting or troubleshooting requests. + */ + core.String requestId; + /** An individual survey resource. */ + core.List<Survey> resources; + TokenPagination tokenPagination; + + SurveysListResponse(); + + SurveysListResponse.fromJson(core.Map _json) { + if (_json.containsKey("pageInfo")) { + pageInfo = new PageInfo.fromJson(_json["pageInfo"]); + } + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } + if (_json.containsKey("resources")) { + resources = _json["resources"].map((value) => new Survey.fromJson(value)).toList(); + } + if (_json.containsKey("tokenPagination")) { + tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (pageInfo != null) { + _json["pageInfo"] = (pageInfo).toJson(); + } + if (requestId != null) { + _json["requestId"] = requestId; + } + if (resources != null) { + _json["resources"] = resources.map((value) => (value).toJson()).toList(); + } + if (tokenPagination != null) { + _json["tokenPagination"] = (tokenPagination).toJson(); + } + return _json; + } +} + +class SurveysStartRequest { + /** + * Threshold to start a survey automically if the quoted prices is less than + * or equal to this value. See Survey.Cost for more details. + */ + core.String maxCostPerResponseNanos; + + SurveysStartRequest(); + + SurveysStartRequest.fromJson(core.Map _json) { + if (_json.containsKey("maxCostPerResponseNanos")) { + maxCostPerResponseNanos = _json["maxCostPerResponseNanos"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (maxCostPerResponseNanos != null) { + _json["maxCostPerResponseNanos"] = maxCostPerResponseNanos; + } + return _json; + } +} + +class SurveysStartResponse { + /** + * Unique request ID used for logging and debugging. Please include in any + * error reporting or troubleshooting requests. + */ + core.String requestId; + /** Survey object containing the specification of the started Survey. */ + Survey resource; + + SurveysStartResponse(); + + SurveysStartResponse.fromJson(core.Map _json) { + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } + if (_json.containsKey("resource")) { + resource = new Survey.fromJson(_json["resource"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (requestId != null) { + _json["requestId"] = requestId; + } + if (resource != null) { + _json["resource"] = (resource).toJson(); + } + return _json; + } +} + +class SurveysStopResponse { + /** + * Unique request ID used for logging and debugging. Please include in any + * error reporting or troubleshooting requests. + */ + core.String requestId; + /** Survey object containing the specification of the stopped Survey. */ + Survey resource; + + SurveysStopResponse(); + + SurveysStopResponse.fromJson(core.Map _json) { + if (_json.containsKey("requestId")) { + requestId = _json["requestId"]; + } + if (_json.containsKey("resource")) { + resource = new Survey.fromJson(_json["resource"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (requestId != null) { + _json["requestId"] = requestId; + } + if (resource != null) { + _json["resource"] = (resource).toJson(); + } + return _json; + } +} + +class TokenPagination { + core.String nextPageToken; + core.String previousPageToken; + + TokenPagination(); + + TokenPagination.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("previousPageToken")) { + previousPageToken = _json["previousPageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (previousPageToken != null) { + _json["previousPageToken"] = previousPageToken; + } + return _json; + } +}
diff --git a/generated/googleapis/lib/vision/v1.dart b/generated/googleapis/lib/vision/v1.dart index 994c214..dd02957 100644 --- a/generated/googleapis/lib/vision/v1.dart +++ b/generated/googleapis/lib/vision/v1.dart
@@ -958,7 +958,7 @@ } } -/** Image context. */ +/** Image context and/or feature-specific parameters. */ class ImageContext { /** * List of languages to use for TEXT_DETECTION. In most cases, an empty value
diff --git a/generated/googleapis/lib/youtube/v3.dart b/generated/googleapis/lib/youtube/v3.dart index 0b8f26b..c277e52 100644 --- a/generated/googleapis/lib/youtube/v3.dart +++ b/generated/googleapis/lib/youtube/v3.dart
@@ -3738,13 +3738,26 @@ * playlist item that is being deleted. In a playlistItem resource, the id * property specifies the playlist item's ID. * + * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for + * YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on + * behalf of the content owner specified in the parameter value. This + * parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once + * and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * * 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 id) { + async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -3756,6 +3769,9 @@ throw new core.ArgumentError("Parameter id is required."); } _queryParams["id"] = [id]; + if (onBehalfOfContentOwner != null) { + _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; + } _downloadOptions = null; @@ -3958,6 +3974,19 @@ * request body does not specify values, the existing start and end times will * be removed and replaced with the default settings. * + * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for + * YouTube content partners. + * + * The onBehalfOfContentOwner parameter indicates that the request's + * authorization credentials identify a YouTube CMS user who is acting on + * behalf of the content owner specified in the parameter value. This + * parameter is intended for YouTube content partners that own and manage many + * different YouTube channels. It allows content owners to authenticate once + * and get access to all their video and channel data, without having to + * provide authentication credentials for each individual channel. The CMS + * account that the user authenticates with must be linked to the specified + * YouTube content owner. + * * Completes with a [PlaylistItem]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -3966,7 +3995,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<PlaylistItem> update(PlaylistItem request, core.String part) { + async.Future<PlaylistItem> update(PlaylistItem request, core.String part, {core.String onBehalfOfContentOwner}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -3981,6 +4010,9 @@ throw new core.ArgumentError("Parameter part is required."); } _queryParams["part"] = [part]; + if (onBehalfOfContentOwner != null) { + _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; + } _url = 'playlistItems'; @@ -5544,6 +5576,11 @@ * * [locale] - DEPRECATED * + * [maxHeight] - The maxHeight parameter specifies a maximum height of the + * embedded player. If maxWidth is provided, maxHeight may not be reached in + * order to not violate the width request. + * Value must be between "72" and "8192". + * * [maxResults] - The maxResults parameter specifies the maximum number of * items that should be returned in the result set. * @@ -5552,6 +5589,11 @@ * parameter. * Value must be between "1" and "50". * + * [maxWidth] - The maxWidth parameter specifies a maximum width of the + * embedded player. If maxHeight is provided, maxWidth may not be reached in + * order to not violate the height request. + * Value must be between "72" and "8192". + * * [myRating] - Set this parameter's value to like or dislike to instruct the * API to only return videos liked or disliked by the authenticated user. * Possible string values are: @@ -5597,7 +5639,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<VideoListResponse> list(core.String part, {core.String chart, core.String hl, core.String id, core.String locale, core.int maxResults, core.String myRating, core.String onBehalfOfContentOwner, core.String pageToken, core.String regionCode, core.String videoCategoryId}) { + async.Future<VideoListResponse> list(core.String part, {core.String chart, core.String hl, core.String id, core.String locale, core.int maxHeight, core.int maxResults, core.int maxWidth, core.String myRating, core.String onBehalfOfContentOwner, core.String pageToken, core.String regionCode, core.String videoCategoryId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -5621,9 +5663,15 @@ if (locale != null) { _queryParams["locale"] = [locale]; } + if (maxHeight != null) { + _queryParams["maxHeight"] = ["${maxHeight}"]; + } if (maxResults != null) { _queryParams["maxResults"] = ["${maxResults}"]; } + if (maxWidth != null) { + _queryParams["maxWidth"] = ["${maxWidth}"]; + } if (myRating != null) { _queryParams["myRating"] = [myRating]; } @@ -7628,19 +7676,11 @@ /** Details about the content of a channel. */ class ChannelContentDetails { - /** - * The googlePlusUserId object identifies the Google+ profile ID associated - * with this channel. - */ - core.String googlePlusUserId; ChannelContentDetailsRelatedPlaylists relatedPlaylists; ChannelContentDetails(); ChannelContentDetails.fromJson(core.Map _json) { - if (_json.containsKey("googlePlusUserId")) { - googlePlusUserId = _json["googlePlusUserId"]; - } if (_json.containsKey("relatedPlaylists")) { relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson(_json["relatedPlaylists"]); } @@ -7648,9 +7688,6 @@ core.Map toJson() { var _json = new core.Map(); - if (googlePlusUserId != null) { - _json["googlePlusUserId"] = googlePlusUserId; - } if (relatedPlaylists != null) { _json["relatedPlaylists"] = (relatedPlaylists).toJson(); } @@ -8769,8 +8806,6 @@ core.String authorChannelUrl; /** The name of the user who posted the comment. */ core.String authorDisplayName; - /** Link to the author's Google+ profile, if any. */ - core.String authorGoogleplusProfileUrl; /** The URL for the avatar of the user who posted the comment. */ core.String authorProfileImageUrl; /** Whether the current viewer can rate this comment. */ @@ -8844,9 +8879,6 @@ if (_json.containsKey("authorDisplayName")) { authorDisplayName = _json["authorDisplayName"]; } - if (_json.containsKey("authorGoogleplusProfileUrl")) { - authorGoogleplusProfileUrl = _json["authorGoogleplusProfileUrl"]; - } if (_json.containsKey("authorProfileImageUrl")) { authorProfileImageUrl = _json["authorProfileImageUrl"]; } @@ -8896,9 +8928,6 @@ if (authorDisplayName != null) { _json["authorDisplayName"] = authorDisplayName; } - if (authorGoogleplusProfileUrl != null) { - _json["authorGoogleplusProfileUrl"] = authorGoogleplusProfileUrl; - } if (authorProfileImageUrl != null) { _json["authorProfileImageUrl"] = authorProfileImageUrl; } @@ -16583,6 +16612,11 @@ */ core.String duration; /** + * Indicates whether the video uploader has provided a custom thumbnail image + * for the video. This property is only visible to the video uploader. + */ + core.bool hasCustomThumbnail; + /** * The value of is_license_content indicates whether the video is licensed * content. */ @@ -16623,6 +16657,9 @@ if (_json.containsKey("duration")) { duration = _json["duration"]; } + if (_json.containsKey("hasCustomThumbnail")) { + hasCustomThumbnail = _json["hasCustomThumbnail"]; + } if (_json.containsKey("licensedContent")) { licensedContent = _json["licensedContent"]; } @@ -16654,6 +16691,9 @@ if (duration != null) { _json["duration"] = duration; } + if (hasCustomThumbnail != null) { + _json["hasCustomThumbnail"] = hasCustomThumbnail; + } if (licensedContent != null) { _json["licensedContent"] = licensedContent; } @@ -16761,11 +16801,6 @@ */ core.String fileType; /** - * Geographic coordinates that identify the place where the uploaded video was - * recorded. Coordinates are defined using WGS 84. - */ - GeoPoint recordingLocation; - /** * A list of video streams contained in the uploaded video file. Each item in * the list contains detailed metadata about a video stream. */ @@ -16798,9 +16833,6 @@ if (_json.containsKey("fileType")) { fileType = _json["fileType"]; } - if (_json.containsKey("recordingLocation")) { - recordingLocation = new GeoPoint.fromJson(_json["recordingLocation"]); - } if (_json.containsKey("videoStreams")) { videoStreams = _json["videoStreams"].map((value) => new VideoFileDetailsVideoStream.fromJson(value)).toList(); } @@ -16832,9 +16864,6 @@ if (fileType != null) { _json["fileType"] = fileType; } - if (recordingLocation != null) { - _json["recordingLocation"] = (recordingLocation).toJson(); - } if (videoStreams != null) { _json["videoStreams"] = videoStreams.map((value) => (value).toJson()).toList(); } @@ -17283,22 +17312,37 @@ /** Player to be used for a video playback. */ class VideoPlayer { + core.String embedHeight; /** An <iframe> tag that embeds a player that will play the video. */ core.String embedHtml; + /** The embed width */ + core.String embedWidth; VideoPlayer(); VideoPlayer.fromJson(core.Map _json) { + if (_json.containsKey("embedHeight")) { + embedHeight = _json["embedHeight"]; + } if (_json.containsKey("embedHtml")) { embedHtml = _json["embedHtml"]; } + if (_json.containsKey("embedWidth")) { + embedWidth = _json["embedWidth"]; + } } core.Map toJson() { var _json = new core.Map(); + if (embedHeight != null) { + _json["embedHeight"] = embedHeight; + } if (embedHtml != null) { _json["embedHtml"] = embedHtml; } + if (embedWidth != null) { + _json["embedWidth"] = embedWidth; + } return _json; } }
diff --git a/generated/googleapis/pubspec.yaml b/generated/googleapis/pubspec.yaml index b5034f7..eba8b35 100644 --- a/generated/googleapis/pubspec.yaml +++ b/generated/googleapis/pubspec.yaml
@@ -1,7 +1,7 @@ name: googleapis -version: 0.31.0 +version: 0.32.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.2, dfareporting:v2.3, dfareporting:v2.4, dfareporting:v2.5, dfareporting:v2.6, discovery:v1, dns:v1, doubleclickbidmanager:v1, doubleclicksearch:v2, drive:v2, drive:v3, firebaserules:v1, fitness:v1, freebase: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, 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, safebrowsing:v4, script:v1, servicecontrol:v1, servicemanagement:v1, sheets:v4, siteVerification:v1, storage:v1, storagetransfer:v1, 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.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" 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 065064d..a1ee4aa 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterAmpUrlError--; } -buildUnnamed1326() { +buildUnnamed1347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1326(core.List<core.String> o) { +checkUnnamed1347(core.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 = buildUnnamed1326(); + o.urls = buildUnnamed1347(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -126,32 +126,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed1326(o.urls); + checkUnnamed1347(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed1327() { +buildUnnamed1348() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed1327(core.List<api.AmpUrl> o) { +checkUnnamed1348(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed1328() { +buildUnnamed1349() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed1328(core.List<api.AmpUrlError> o) { +checkUnnamed1349(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 = buildUnnamed1327(); - o.urlErrors = buildUnnamed1328(); + o.ampUrls = buildUnnamed1348(); + o.urlErrors = buildUnnamed1349(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -172,8 +172,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed1327(o.ampUrls); - checkUnnamed1328(o.urlErrors); + checkUnnamed1348(o.ampUrls); + checkUnnamed1349(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; }
diff --git a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart index e9dfc87..afe03d3 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart
@@ -74,14 +74,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed1038() { +buildUnnamed1064() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed1038(core.List<api.AccountBidderLocation> o) { +checkUnnamed1064(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 = buildUnnamed1038(); + o.bidderLocation = buildUnnamed1064(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -108,7 +108,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1038(o.bidderLocation); + checkUnnamed1064(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--; } -buildUnnamed1039() { +buildUnnamed1065() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1039(core.List<api.Account> o) { +checkUnnamed1065(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 = buildUnnamed1039(); + o.items = buildUnnamed1065(); o.kind = "foo"; } buildCounterAccountsList--; @@ -148,20 +148,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed1039(o.items); + checkUnnamed1065(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed1040() { +buildUnnamed1066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1040(core.List<core.String> o) { +checkUnnamed1066(core.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 = buildUnnamed1040(); + o.billingId = buildUnnamed1066(); 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')); - checkUnnamed1040(o.billingId); + checkUnnamed1066(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed1041() { +buildUnnamed1067() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed1041(core.List<api.BillingInfo> o) { +checkUnnamed1067(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 = buildUnnamed1041(); + o.items = buildUnnamed1067(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -220,7 +220,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed1041(o.items); + checkUnnamed1067(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -255,53 +255,53 @@ buildCounterBudget--; } -buildUnnamed1042() { +buildUnnamed1068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1042(core.List<core.String> o) { +checkUnnamed1068(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1043() { +buildUnnamed1069() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1043(core.List<core.int> o) { +checkUnnamed1069(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)); } -buildUnnamed1044() { +buildUnnamed1070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1044(core.List<core.String> o) { +checkUnnamed1070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1045() { +buildUnnamed1071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1045(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')); @@ -312,7 +312,7 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.details = buildUnnamed1045(); + o.details = buildUnnamed1071(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -322,33 +322,33 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed1045(o.details); + checkUnnamed1071(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed1046() { +buildUnnamed1072() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed1046(core.List<api.CreativeCorrections> o) { +checkUnnamed1072(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed1047() { +buildUnnamed1073() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1047(core.List<core.String> o) { +checkUnnamed1073(core.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 = buildUnnamed1047(); + o.details = buildUnnamed1073(); o.reason = "foo"; } buildCounterCreativeDisapprovalReasons--; @@ -369,20 +369,20 @@ checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - checkUnnamed1047(o.details); + checkUnnamed1073(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeDisapprovalReasons--; } -buildUnnamed1048() { +buildUnnamed1074() { var o = new core.List<api.CreativeDisapprovalReasons>(); o.add(buildCreativeDisapprovalReasons()); o.add(buildCreativeDisapprovalReasons()); return o; } -checkUnnamed1048(core.List<api.CreativeDisapprovalReasons> o) { +checkUnnamed1074(core.List<api.CreativeDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDisapprovalReasons(o[0]); checkCreativeDisapprovalReasons(o[1]); @@ -409,14 +409,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed1049() { +buildUnnamed1075() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed1049(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed1075(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 = buildUnnamed1049(); + o.reasons = buildUnnamed1075(); } buildCounterCreativeFilteringReasons--; return o; @@ -438,19 +438,19 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed1049(o.reasons); + checkUnnamed1075(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed1050() { +buildUnnamed1076() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1050(core.List<core.String> o) { +checkUnnamed1076(core.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--; } -buildUnnamed1051() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1051(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')); @@ -550,7 +550,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed1051(); + o.impressionTrackingUrl = buildUnnamed1077(); 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); - checkUnnamed1051(o.impressionTrackingUrl); + checkUnnamed1077(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--; } -buildUnnamed1052() { +buildUnnamed1078() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1052(core.List<core.int> o) { +checkUnnamed1078(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)); } -buildUnnamed1053() { +buildUnnamed1079() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1053(core.List<core.int> o) { +checkUnnamed1079(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)); } -buildUnnamed1054() { +buildUnnamed1080() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1054(core.List<core.int> o) { +checkUnnamed1080(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)); } -buildUnnamed1055() { +buildUnnamed1081() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1055(core.List<core.int> o) { +checkUnnamed1081(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 = buildUnnamed1042(); + o.advertiserId = buildUnnamed1068(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed1043(); + o.attribute = buildUnnamed1069(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed1044(); - o.corrections = buildUnnamed1046(); - o.disapprovalReasons = buildUnnamed1048(); + o.clickThroughUrl = buildUnnamed1070(); + o.corrections = buildUnnamed1072(); + o.disapprovalReasons = buildUnnamed1074(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed1050(); + o.impressionTrackingUrl = buildUnnamed1076(); o.kind = "foo"; o.nativeAd = buildCreativeNativeAd(); - o.productCategories = buildUnnamed1052(); - o.restrictedCategories = buildUnnamed1053(); - o.sensitiveCategories = buildUnnamed1054(); + o.productCategories = buildUnnamed1078(); + o.restrictedCategories = buildUnnamed1079(); + o.sensitiveCategories = buildUnnamed1080(); o.status = "foo"; - o.vendorType = buildUnnamed1055(); + o.vendorType = buildUnnamed1081(); 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)); - checkUnnamed1042(o.advertiserId); + checkUnnamed1068(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"))); - checkUnnamed1043(o.attribute); + checkUnnamed1069(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed1044(o.clickThroughUrl); - checkUnnamed1046(o.corrections); - checkUnnamed1048(o.disapprovalReasons); + checkUnnamed1070(o.clickThroughUrl); + checkUnnamed1072(o.corrections); + checkUnnamed1074(o.disapprovalReasons); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed1050(o.impressionTrackingUrl); + checkUnnamed1076(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); checkCreativeNativeAd(o.nativeAd); - checkUnnamed1052(o.productCategories); - checkUnnamed1053(o.restrictedCategories); - checkUnnamed1054(o.sensitiveCategories); + checkUnnamed1078(o.productCategories); + checkUnnamed1079(o.restrictedCategories); + checkUnnamed1080(o.sensitiveCategories); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed1055(o.vendorType); + checkUnnamed1081(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--; } -buildUnnamed1056() { +buildUnnamed1082() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1056(core.List<api.Creative> o) { +checkUnnamed1082(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 = buildUnnamed1056(); + o.items = buildUnnamed1082(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -725,7 +725,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed1056(o.items); + checkUnnamed1082(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -779,14 +779,14 @@ buildCounterDirectDeal--; } -buildUnnamed1057() { +buildUnnamed1083() { var o = new core.List<api.DirectDeal>(); o.add(buildDirectDeal()); o.add(buildDirectDeal()); return o; } -checkUnnamed1057(core.List<api.DirectDeal> o) { +checkUnnamed1083(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 = buildUnnamed1057(); + o.directDeals = buildUnnamed1083(); o.kind = "foo"; } buildCounterDirectDealsList--; @@ -807,59 +807,59 @@ checkDirectDealsList(api.DirectDealsList o) { buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - checkUnnamed1057(o.directDeals); + checkUnnamed1083(o.directDeals); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectDealsList--; } -buildUnnamed1058() { +buildUnnamed1084() { 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; } -checkUnnamed1058(core.List<core.Object> o) { +checkUnnamed1084(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')); } -buildUnnamed1059() { +buildUnnamed1085() { 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; } -checkUnnamed1059(core.List<core.Object> o) { +checkUnnamed1085(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')); } -buildUnnamed1060() { +buildUnnamed1086() { 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; } -checkUnnamed1060(core.List<core.Object> o) { +checkUnnamed1086(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')); } -buildUnnamed1061() { +buildUnnamed1087() { 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; } -checkUnnamed1061(core.List<core.Object> o) { +checkUnnamed1087(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 = buildUnnamed1058(); - o.cookieMatcherStatusRate = buildUnnamed1059(); - o.creativeStatusRate = buildUnnamed1060(); + o.calloutStatusRate = buildUnnamed1084(); + o.cookieMatcherStatusRate = buildUnnamed1085(); + o.creativeStatusRate = buildUnnamed1086(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed1061(); + o.hostedMatchStatusRate = buildUnnamed1087(); 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)); - checkUnnamed1058(o.calloutStatusRate); - checkUnnamed1059(o.cookieMatcherStatusRate); - checkUnnamed1060(o.creativeStatusRate); + checkUnnamed1084(o.calloutStatusRate); + checkUnnamed1085(o.cookieMatcherStatusRate); + checkUnnamed1086(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed1061(o.hostedMatchStatusRate); + checkUnnamed1087(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--; } -buildUnnamed1062() { +buildUnnamed1088() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed1062(core.List<api.PerformanceReport> o) { +checkUnnamed1088(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 = buildUnnamed1062(); + o.performanceReport = buildUnnamed1088(); } buildCounterPerformanceReportList--; return o; @@ -955,19 +955,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1062(o.performanceReport); + checkUnnamed1088(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed1063() { +buildUnnamed1089() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1063(core.List<core.String> o) { +checkUnnamed1089(core.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--; } -buildUnnamed1064() { +buildUnnamed1090() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed1064(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed1090(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed1065() { +buildUnnamed1091() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1065(core.List<core.String> o) { +checkUnnamed1091(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1066() { +buildUnnamed1092() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1066(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')); @@ -1054,105 +1054,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed1067() { +buildUnnamed1093() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed1067(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed1093(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed1068() { +buildUnnamed1094() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1068(core.List<core.String> o) { +checkUnnamed1094(core.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() { +buildUnnamed1095() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1069(core.List<core.String> o) { +checkUnnamed1095(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1070() { +buildUnnamed1096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1070(core.List<core.String> o) { +checkUnnamed1096(core.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() { +buildUnnamed1097() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1071(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')); } -buildUnnamed1072() { +buildUnnamed1098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1072(core.List<core.String> o) { +checkUnnamed1098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1073() { +buildUnnamed1099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1073(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')); } -buildUnnamed1074() { +buildUnnamed1100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1074(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')); @@ -1179,79 +1179,79 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed1075() { +buildUnnamed1101() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed1075(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed1101(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed1076() { +buildUnnamed1102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1076(core.List<core.String> o) { +checkUnnamed1102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1077() { +buildUnnamed1103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1077(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')); } -buildUnnamed1078() { +buildUnnamed1104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1078(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')); } -buildUnnamed1079() { +buildUnnamed1105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1079(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')); } -buildUnnamed1080() { +buildUnnamed1106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1080(core.List<core.String> o) { +checkUnnamed1106(core.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 = buildUnnamed1063(); - o.dimensions = buildUnnamed1064(); - o.excludedContentLabels = buildUnnamed1065(); - o.excludedGeoCriteriaIds = buildUnnamed1066(); - o.excludedPlacements = buildUnnamed1067(); - o.excludedUserLists = buildUnnamed1068(); - o.excludedVerticals = buildUnnamed1069(); - o.geoCriteriaIds = buildUnnamed1070(); + 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.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed1071(); - o.mobileCarriers = buildUnnamed1072(); - o.mobileDevices = buildUnnamed1073(); - o.mobileOperatingSystemVersions = buildUnnamed1074(); - o.placements = buildUnnamed1075(); - o.platforms = buildUnnamed1076(); - o.supportedCreativeAttributes = buildUnnamed1077(); - o.userLists = buildUnnamed1078(); - o.vendorTypes = buildUnnamed1079(); - o.verticals = buildUnnamed1080(); + 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(); } 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')); - checkUnnamed1063(o.creativeType); - checkUnnamed1064(o.dimensions); - checkUnnamed1065(o.excludedContentLabels); - checkUnnamed1066(o.excludedGeoCriteriaIds); - checkUnnamed1067(o.excludedPlacements); - checkUnnamed1068(o.excludedUserLists); - checkUnnamed1069(o.excludedVerticals); - checkUnnamed1070(o.geoCriteriaIds); + checkUnnamed1089(o.creativeType); + checkUnnamed1090(o.dimensions); + checkUnnamed1091(o.excludedContentLabels); + checkUnnamed1092(o.excludedGeoCriteriaIds); + checkUnnamed1093(o.excludedPlacements); + checkUnnamed1094(o.excludedUserLists); + checkUnnamed1095(o.excludedVerticals); + checkUnnamed1096(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1071(o.languages); - checkUnnamed1072(o.mobileCarriers); - checkUnnamed1073(o.mobileDevices); - checkUnnamed1074(o.mobileOperatingSystemVersions); - checkUnnamed1075(o.placements); - checkUnnamed1076(o.platforms); - checkUnnamed1077(o.supportedCreativeAttributes); - checkUnnamed1078(o.userLists); - checkUnnamed1079(o.vendorTypes); - checkUnnamed1080(o.verticals); + 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); } buildCounterPretargetingConfig--; } -buildUnnamed1081() { +buildUnnamed1107() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed1081(core.List<api.PretargetingConfig> o) { +checkUnnamed1107(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 = buildUnnamed1081(); + o.items = buildUnnamed1107(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -1348,33 +1348,33 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed1081(o.items); + checkUnnamed1107(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; } -buildUnnamed1082() { +buildUnnamed1108() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1082(core.List<core.int> o) { +checkUnnamed1108(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)); } -buildUnnamed1083() { +buildUnnamed1109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1083(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')); @@ -2203,8 +2203,8 @@ var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed1082(); - var arg_buyerCreativeId = buildUnnamed1083(); + var arg_accountId = buildUnnamed1108(); + var arg_buyerCreativeId = buildUnnamed1109(); 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 84e07e5..9a11b01 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
@@ -76,14 +76,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed2279() { +buildUnnamed2038() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed2279(core.List<api.AccountBidderLocation> o) { +checkUnnamed2038(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 = buildUnnamed2279(); + o.bidderLocation = buildUnnamed2038(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -110,7 +110,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2279(o.bidderLocation); + checkUnnamed2038(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--; } -buildUnnamed2280() { +buildUnnamed2039() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2280(core.List<api.Account> o) { +checkUnnamed2039(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 = buildUnnamed2280(); + o.items = buildUnnamed2039(); o.kind = "foo"; } buildCounterAccountsList--; @@ -150,20 +150,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed2280(o.items); + checkUnnamed2039(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed2281() { +buildUnnamed2040() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2281(core.List<api.MarketplaceDeal> o) { +checkUnnamed2040(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 = buildUnnamed2281(); + o.deals = buildUnnamed2040(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -185,21 +185,21 @@ checkAddOrderDealsRequest(api.AddOrderDealsRequest o) { buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - checkUnnamed2281(o.deals); + checkUnnamed2040(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterAddOrderDealsRequest--; } -buildUnnamed2282() { +buildUnnamed2041() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2282(core.List<api.MarketplaceDeal> o) { +checkUnnamed2041(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 = buildUnnamed2282(); + o.deals = buildUnnamed2041(); o.proposalRevisionNumber = "foo"; } buildCounterAddOrderDealsResponse--; @@ -220,20 +220,20 @@ checkAddOrderDealsResponse(api.AddOrderDealsResponse o) { buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - checkUnnamed2282(o.deals); + checkUnnamed2041(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterAddOrderDealsResponse--; } -buildUnnamed2283() { +buildUnnamed2042() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2283(core.List<api.MarketplaceNote> o) { +checkUnnamed2042(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 = buildUnnamed2283(); + o.notes = buildUnnamed2042(); } buildCounterAddOrderNotesRequest--; return o; @@ -253,19 +253,19 @@ checkAddOrderNotesRequest(api.AddOrderNotesRequest o) { buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - checkUnnamed2283(o.notes); + checkUnnamed2042(o.notes); } buildCounterAddOrderNotesRequest--; } -buildUnnamed2284() { +buildUnnamed2043() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2284(core.List<api.MarketplaceNote> o) { +checkUnnamed2043(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 = buildUnnamed2284(); + o.notes = buildUnnamed2043(); } buildCounterAddOrderNotesResponse--; return o; @@ -285,19 +285,19 @@ checkAddOrderNotesResponse(api.AddOrderNotesResponse o) { buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - checkUnnamed2284(o.notes); + checkUnnamed2043(o.notes); } buildCounterAddOrderNotesResponse--; } -buildUnnamed2285() { +buildUnnamed2044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2285(core.List<core.String> o) { +checkUnnamed2044(core.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 = buildUnnamed2285(); + o.billingId = buildUnnamed2044(); 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')); - checkUnnamed2285(o.billingId); + checkUnnamed2044(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed2286() { +buildUnnamed2045() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed2286(core.List<api.BillingInfo> o) { +checkUnnamed2045(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 = buildUnnamed2286(); + o.items = buildUnnamed2045(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -356,7 +356,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed2286(o.items); + checkUnnamed2045(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -431,14 +431,14 @@ buildCounterContactInformation--; } -buildUnnamed2287() { +buildUnnamed2046() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2287(core.List<api.Proposal> o) { +checkUnnamed2046(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 = buildUnnamed2287(); + o.proposals = buildUnnamed2046(); o.webPropertyCode = "foo"; } buildCounterCreateOrdersRequest--; @@ -459,20 +459,20 @@ checkCreateOrdersRequest(api.CreateOrdersRequest o) { buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - checkUnnamed2287(o.proposals); + checkUnnamed2046(o.proposals); unittest.expect(o.webPropertyCode, unittest.equals('foo')); } buildCounterCreateOrdersRequest--; } -buildUnnamed2288() { +buildUnnamed2047() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2288(core.List<api.Proposal> o) { +checkUnnamed2047(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 = buildUnnamed2288(); + o.proposals = buildUnnamed2047(); } buildCounterCreateOrdersResponse--; return o; @@ -492,84 +492,84 @@ checkCreateOrdersResponse(api.CreateOrdersResponse o) { buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - checkUnnamed2288(o.proposals); + checkUnnamed2047(o.proposals); } buildCounterCreateOrdersResponse--; } -buildUnnamed2289() { +buildUnnamed2048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2289(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')); } -buildUnnamed2290() { +buildUnnamed2049() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2290(core.List<core.int> o) { +checkUnnamed2049(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)); } -buildUnnamed2291() { +buildUnnamed2050() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2291(core.List<core.String> o) { +checkUnnamed2050(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2292() { +buildUnnamed2051() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2292(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')); } -buildUnnamed2293() { +buildUnnamed2052() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2293(core.List<core.int> o) { +checkUnnamed2052(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)); } -buildUnnamed2294() { +buildUnnamed2053() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2294(core.List<core.String> o) { +checkUnnamed2053(core.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 = buildUnnamed2292(); + o.auctionType = buildUnnamed2051(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed2293(); - o.platform = buildUnnamed2294(); + o.geoCriteriaId = buildUnnamed2052(); + o.platform = buildUnnamed2053(); } buildCounterCreativeCorrectionsContexts--; return o; @@ -592,35 +592,35 @@ checkCreativeCorrectionsContexts(api.CreativeCorrectionsContexts o) { buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - checkUnnamed2292(o.auctionType); + checkUnnamed2051(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed2293(o.geoCriteriaId); - checkUnnamed2294(o.platform); + checkUnnamed2052(o.geoCriteriaId); + checkUnnamed2053(o.platform); } buildCounterCreativeCorrectionsContexts--; } -buildUnnamed2295() { +buildUnnamed2054() { var o = new core.List<api.CreativeCorrectionsContexts>(); o.add(buildCreativeCorrectionsContexts()); o.add(buildCreativeCorrectionsContexts()); return o; } -checkUnnamed2295(core.List<api.CreativeCorrectionsContexts> o) { +checkUnnamed2054(core.List<api.CreativeCorrectionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrectionsContexts(o[0]); checkCreativeCorrectionsContexts(o[1]); } -buildUnnamed2296() { +buildUnnamed2055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2296(core.List<core.String> o) { +checkUnnamed2055(core.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 = buildUnnamed2295(); - o.details = buildUnnamed2296(); + o.contexts = buildUnnamed2054(); + o.details = buildUnnamed2055(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -642,34 +642,34 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed2295(o.contexts); - checkUnnamed2296(o.details); + checkUnnamed2054(o.contexts); + checkUnnamed2055(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed2297() { +buildUnnamed2056() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed2297(core.List<api.CreativeCorrections> o) { +checkUnnamed2056(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed2298() { +buildUnnamed2057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2298(core.List<core.String> o) { +checkUnnamed2057(core.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--; } -buildUnnamed2299() { +buildUnnamed2058() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed2299(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed2058(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 = buildUnnamed2299(); + o.reasons = buildUnnamed2058(); } buildCounterCreativeFilteringReasons--; return o; @@ -725,32 +725,32 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed2299(o.reasons); + checkUnnamed2058(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed2300() { +buildUnnamed2059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2300(core.List<core.String> o) { +checkUnnamed2059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2301() { +buildUnnamed2060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2301(core.List<core.String> o) { +checkUnnamed2060(core.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--; } -buildUnnamed2302() { +buildUnnamed2061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2302(core.List<core.String> o) { +checkUnnamed2061(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -847,14 +847,16 @@ o.appIcon = buildCreativeNativeAdAppIcon(); o.body = "foo"; o.callToAction = "foo"; + o.clickLinkUrl = "foo"; o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed2302(); + o.impressionTrackingUrl = buildUnnamed2061(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; o.store = "foo"; + o.videoURL = "foo"; } buildCounterCreativeNativeAd--; return o; @@ -867,91 +869,93 @@ checkCreativeNativeAdAppIcon(o.appIcon); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.callToAction, unittest.equals('foo')); + unittest.expect(o.clickLinkUrl, unittest.equals('foo')); unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed2302(o.impressionTrackingUrl); + checkUnnamed2061(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); unittest.expect(o.store, unittest.equals('foo')); + unittest.expect(o.videoURL, unittest.equals('foo')); } buildCounterCreativeNativeAd--; } -buildUnnamed2303() { +buildUnnamed2062() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2303(core.List<core.int> o) { +checkUnnamed2062(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)); } -buildUnnamed2304() { +buildUnnamed2063() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2304(core.List<core.int> o) { +checkUnnamed2063(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)); } -buildUnnamed2305() { +buildUnnamed2064() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2305(core.List<core.int> o) { +checkUnnamed2064(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)); } -buildUnnamed2306() { +buildUnnamed2065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2306(core.List<core.String> o) { +checkUnnamed2065(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2307() { +buildUnnamed2066() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2307(core.List<core.int> o) { +checkUnnamed2066(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)); } -buildUnnamed2308() { +buildUnnamed2067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2308(core.List<core.String> o) { +checkUnnamed2067(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -962,10 +966,10 @@ var o = new api.CreativeServingRestrictionsContexts(); buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - o.auctionType = buildUnnamed2306(); + o.auctionType = buildUnnamed2065(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed2307(); - o.platform = buildUnnamed2308(); + o.geoCriteriaId = buildUnnamed2066(); + o.platform = buildUnnamed2067(); } buildCounterCreativeServingRestrictionsContexts--; return o; @@ -974,35 +978,35 @@ checkCreativeServingRestrictionsContexts(api.CreativeServingRestrictionsContexts o) { buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - checkUnnamed2306(o.auctionType); + checkUnnamed2065(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed2307(o.geoCriteriaId); - checkUnnamed2308(o.platform); + checkUnnamed2066(o.geoCriteriaId); + checkUnnamed2067(o.platform); } buildCounterCreativeServingRestrictionsContexts--; } -buildUnnamed2309() { +buildUnnamed2068() { var o = new core.List<api.CreativeServingRestrictionsContexts>(); o.add(buildCreativeServingRestrictionsContexts()); o.add(buildCreativeServingRestrictionsContexts()); return o; } -checkUnnamed2309(core.List<api.CreativeServingRestrictionsContexts> o) { +checkUnnamed2068(core.List<api.CreativeServingRestrictionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsContexts(o[0]); checkCreativeServingRestrictionsContexts(o[1]); } -buildUnnamed2310() { +buildUnnamed2069() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2310(core.List<core.String> o) { +checkUnnamed2069(core.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,7 +1017,7 @@ var o = new api.CreativeServingRestrictionsDisapprovalReasons(); buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - o.details = buildUnnamed2310(); + o.details = buildUnnamed2069(); o.reason = "foo"; } buildCounterCreativeServingRestrictionsDisapprovalReasons--; @@ -1023,20 +1027,20 @@ checkCreativeServingRestrictionsDisapprovalReasons(api.CreativeServingRestrictionsDisapprovalReasons o) { buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - checkUnnamed2310(o.details); + checkUnnamed2069(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictionsDisapprovalReasons--; } -buildUnnamed2311() { +buildUnnamed2070() { var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>(); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); return o; } -checkUnnamed2311(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { +checkUnnamed2070(core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsDisapprovalReasons(o[0]); checkCreativeServingRestrictionsDisapprovalReasons(o[1]); @@ -1047,8 +1051,8 @@ var o = new api.CreativeServingRestrictions(); buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - o.contexts = buildUnnamed2309(); - o.disapprovalReasons = buildUnnamed2311(); + o.contexts = buildUnnamed2068(); + o.disapprovalReasons = buildUnnamed2070(); o.reason = "foo"; } buildCounterCreativeServingRestrictions--; @@ -1058,34 +1062,34 @@ checkCreativeServingRestrictions(api.CreativeServingRestrictions o) { buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - checkUnnamed2309(o.contexts); - checkUnnamed2311(o.disapprovalReasons); + checkUnnamed2068(o.contexts); + checkUnnamed2070(o.disapprovalReasons); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictions--; } -buildUnnamed2312() { +buildUnnamed2071() { var o = new core.List<api.CreativeServingRestrictions>(); o.add(buildCreativeServingRestrictions()); o.add(buildCreativeServingRestrictions()); return o; } -checkUnnamed2312(core.List<api.CreativeServingRestrictions> o) { +checkUnnamed2071(core.List<api.CreativeServingRestrictions> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictions(o[0]); checkCreativeServingRestrictions(o[1]); } -buildUnnamed2313() { +buildUnnamed2072() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2313(core.List<core.int> o) { +checkUnnamed2072(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)); @@ -1099,28 +1103,28 @@ o.HTMLSnippet = "foo"; o.accountId = 42; o.adChoicesDestinationUrl = "foo"; - o.advertiserId = buildUnnamed2289(); + o.advertiserId = buildUnnamed2048(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed2290(); + o.attribute = buildUnnamed2049(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed2291(); - o.corrections = buildUnnamed2297(); + o.clickThroughUrl = buildUnnamed2050(); + o.corrections = buildUnnamed2056(); o.dealsStatus = "foo"; - o.detectedDomains = buildUnnamed2298(); + o.detectedDomains = buildUnnamed2057(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed2300(); + o.impressionTrackingUrl = buildUnnamed2059(); o.kind = "foo"; - o.languages = buildUnnamed2301(); + o.languages = buildUnnamed2060(); o.nativeAd = buildCreativeNativeAd(); o.openAuctionStatus = "foo"; - o.productCategories = buildUnnamed2303(); - o.restrictedCategories = buildUnnamed2304(); - o.sensitiveCategories = buildUnnamed2305(); - o.servingRestrictions = buildUnnamed2312(); - o.vendorType = buildUnnamed2313(); + o.productCategories = buildUnnamed2062(); + o.restrictedCategories = buildUnnamed2063(); + o.sensitiveCategories = buildUnnamed2064(); + o.servingRestrictions = buildUnnamed2071(); + o.vendorType = buildUnnamed2072(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -1135,28 +1139,28 @@ unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); - checkUnnamed2289(o.advertiserId); + checkUnnamed2048(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"))); - checkUnnamed2290(o.attribute); + checkUnnamed2049(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed2291(o.clickThroughUrl); - checkUnnamed2297(o.corrections); + checkUnnamed2050(o.clickThroughUrl); + checkUnnamed2056(o.corrections); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed2298(o.detectedDomains); + checkUnnamed2057(o.detectedDomains); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed2300(o.impressionTrackingUrl); + checkUnnamed2059(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2301(o.languages); + checkUnnamed2060(o.languages); checkCreativeNativeAd(o.nativeAd); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed2303(o.productCategories); - checkUnnamed2304(o.restrictedCategories); - checkUnnamed2305(o.sensitiveCategories); - checkUnnamed2312(o.servingRestrictions); - checkUnnamed2313(o.vendorType); + checkUnnamed2062(o.productCategories); + checkUnnamed2063(o.restrictedCategories); + checkUnnamed2064(o.sensitiveCategories); + checkUnnamed2071(o.servingRestrictions); + checkUnnamed2072(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -1164,14 +1168,71 @@ buildCounterCreative--; } -buildUnnamed2314() { +core.int buildCounterCreativeDealIdsDealStatuses = 0; +buildCreativeDealIdsDealStatuses() { + var o = new api.CreativeDealIdsDealStatuses(); + buildCounterCreativeDealIdsDealStatuses++; + if (buildCounterCreativeDealIdsDealStatuses < 3) { + o.arcStatus = "foo"; + o.dealId = "foo"; + o.webPropertyId = 42; + } + buildCounterCreativeDealIdsDealStatuses--; + return o; +} + +checkCreativeDealIdsDealStatuses(api.CreativeDealIdsDealStatuses o) { + buildCounterCreativeDealIdsDealStatuses++; + if (buildCounterCreativeDealIdsDealStatuses < 3) { + unittest.expect(o.arcStatus, unittest.equals('foo')); + unittest.expect(o.dealId, unittest.equals('foo')); + unittest.expect(o.webPropertyId, unittest.equals(42)); + } + buildCounterCreativeDealIdsDealStatuses--; +} + +buildUnnamed2073() { + var o = new core.List<api.CreativeDealIdsDealStatuses>(); + o.add(buildCreativeDealIdsDealStatuses()); + o.add(buildCreativeDealIdsDealStatuses()); + return o; +} + +checkUnnamed2073(core.List<api.CreativeDealIdsDealStatuses> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCreativeDealIdsDealStatuses(o[0]); + checkCreativeDealIdsDealStatuses(o[1]); +} + +core.int buildCounterCreativeDealIds = 0; +buildCreativeDealIds() { + var o = new api.CreativeDealIds(); + buildCounterCreativeDealIds++; + if (buildCounterCreativeDealIds < 3) { + o.dealStatuses = buildUnnamed2073(); + o.kind = "foo"; + } + buildCounterCreativeDealIds--; + return o; +} + +checkCreativeDealIds(api.CreativeDealIds o) { + buildCounterCreativeDealIds++; + if (buildCounterCreativeDealIds < 3) { + checkUnnamed2073(o.dealStatuses); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterCreativeDealIds--; +} + +buildUnnamed2074() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2314(core.List<api.Creative> o) { +checkUnnamed2074(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -1182,7 +1243,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed2314(); + o.items = buildUnnamed2074(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1193,7 +1254,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed2314(o.items); + checkUnnamed2074(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1252,6 +1313,7 @@ buildCounterDealTerms++; if (buildCounterDealTerms < 3) { o.brandingType = "foo"; + o.crossListedExternalDealIdType = "foo"; o.description = "foo"; o.estimatedGrossSpend = buildPrice(); o.estimatedImpressionsPerDay = "foo"; @@ -1269,6 +1331,7 @@ buildCounterDealTerms++; if (buildCounterDealTerms < 3) { unittest.expect(o.brandingType, unittest.equals('foo')); + unittest.expect(o.crossListedExternalDealIdType, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkPrice(o.estimatedGrossSpend); unittest.expect(o.estimatedImpressionsPerDay, unittest.equals('foo')); @@ -1281,14 +1344,14 @@ buildCounterDealTerms--; } -buildUnnamed2315() { +buildUnnamed2075() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2315(core.List<api.PricePerBuyer> o) { +checkUnnamed2075(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1300,7 +1363,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { o.billingInfo = buildDealTermsGuaranteedFixedPriceTermsBillingInfo(); - o.fixedPrices = buildUnnamed2315(); + o.fixedPrices = buildUnnamed2075(); o.guaranteedImpressions = "foo"; o.guaranteedLooks = "foo"; o.minimumDailyLooks = "foo"; @@ -1313,7 +1376,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { checkDealTermsGuaranteedFixedPriceTermsBillingInfo(o.billingInfo); - checkUnnamed2315(o.fixedPrices); + checkUnnamed2075(o.fixedPrices); unittest.expect(o.guaranteedImpressions, unittest.equals('foo')); unittest.expect(o.guaranteedLooks, unittest.equals('foo')); unittest.expect(o.minimumDailyLooks, unittest.equals('foo')); @@ -1346,14 +1409,14 @@ buildCounterDealTermsGuaranteedFixedPriceTermsBillingInfo--; } -buildUnnamed2316() { +buildUnnamed2076() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2316(core.List<api.PricePerBuyer> o) { +checkUnnamed2076(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1365,7 +1428,7 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { o.autoOptimizePrivateAuction = true; - o.reservePricePerBuyers = buildUnnamed2316(); + o.reservePricePerBuyers = buildUnnamed2076(); } buildCounterDealTermsNonGuaranteedAuctionTerms--; return o; @@ -1375,19 +1438,19 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { unittest.expect(o.autoOptimizePrivateAuction, unittest.isTrue); - checkUnnamed2316(o.reservePricePerBuyers); + checkUnnamed2076(o.reservePricePerBuyers); } buildCounterDealTermsNonGuaranteedAuctionTerms--; } -buildUnnamed2317() { +buildUnnamed2077() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed2317(core.List<api.PricePerBuyer> o) { +checkUnnamed2077(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1398,7 +1461,7 @@ var o = new api.DealTermsNonGuaranteedFixedPriceTerms(); buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - o.fixedPrices = buildUnnamed2317(); + o.fixedPrices = buildUnnamed2077(); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; return o; @@ -1407,7 +1470,7 @@ checkDealTermsNonGuaranteedFixedPriceTerms(api.DealTermsNonGuaranteedFixedPriceTerms o) { buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - checkUnnamed2317(o.fixedPrices); + checkUnnamed2077(o.fixedPrices); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; } @@ -1433,14 +1496,14 @@ buildCounterDealTermsRubiconNonGuaranteedTerms--; } -buildUnnamed2318() { +buildUnnamed2078() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2318(core.List<core.String> o) { +checkUnnamed2078(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1451,7 +1514,7 @@ var o = new api.DeleteOrderDealsRequest(); buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - o.dealIds = buildUnnamed2318(); + o.dealIds = buildUnnamed2078(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -1462,21 +1525,21 @@ checkDeleteOrderDealsRequest(api.DeleteOrderDealsRequest o) { buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - checkUnnamed2318(o.dealIds); + checkUnnamed2078(o.dealIds); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterDeleteOrderDealsRequest--; } -buildUnnamed2319() { +buildUnnamed2079() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2319(core.List<api.MarketplaceDeal> o) { +checkUnnamed2079(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1487,7 +1550,7 @@ var o = new api.DeleteOrderDealsResponse(); buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - o.deals = buildUnnamed2319(); + o.deals = buildUnnamed2079(); o.proposalRevisionNumber = "foo"; } buildCounterDeleteOrderDealsResponse--; @@ -1497,20 +1560,20 @@ checkDeleteOrderDealsResponse(api.DeleteOrderDealsResponse o) { buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - checkUnnamed2319(o.deals); + checkUnnamed2079(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterDeleteOrderDealsResponse--; } -buildUnnamed2320() { +buildUnnamed2080() { var o = new core.List<api.DeliveryControlFrequencyCap>(); o.add(buildDeliveryControlFrequencyCap()); o.add(buildDeliveryControlFrequencyCap()); return o; } -checkUnnamed2320(core.List<api.DeliveryControlFrequencyCap> o) { +checkUnnamed2080(core.List<api.DeliveryControlFrequencyCap> o) { unittest.expect(o, unittest.hasLength(2)); checkDeliveryControlFrequencyCap(o[0]); checkDeliveryControlFrequencyCap(o[1]); @@ -1523,7 +1586,7 @@ if (buildCounterDeliveryControl < 3) { o.creativeBlockingLevel = "foo"; o.deliveryRateType = "foo"; - o.frequencyCaps = buildUnnamed2320(); + o.frequencyCaps = buildUnnamed2080(); } buildCounterDeliveryControl--; return o; @@ -1534,7 +1597,7 @@ if (buildCounterDeliveryControl < 3) { unittest.expect(o.creativeBlockingLevel, unittest.equals('foo')); unittest.expect(o.deliveryRateType, unittest.equals('foo')); - checkUnnamed2320(o.frequencyCaps); + checkUnnamed2080(o.frequencyCaps); } buildCounterDeliveryControl--; } @@ -1562,14 +1625,14 @@ buildCounterDeliveryControlFrequencyCap--; } -buildUnnamed2321() { +buildUnnamed2081() { var o = new core.List<api.DimensionDimensionValue>(); o.add(buildDimensionDimensionValue()); o.add(buildDimensionDimensionValue()); return o; } -checkUnnamed2321(core.List<api.DimensionDimensionValue> o) { +checkUnnamed2081(core.List<api.DimensionDimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionDimensionValue(o[0]); checkDimensionDimensionValue(o[1]); @@ -1581,7 +1644,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { o.dimensionType = "foo"; - o.dimensionValues = buildUnnamed2321(); + o.dimensionValues = buildUnnamed2081(); } buildCounterDimension--; return o; @@ -1591,7 +1654,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { unittest.expect(o.dimensionType, unittest.equals('foo')); - checkUnnamed2321(o.dimensionValues); + checkUnnamed2081(o.dimensionValues); } buildCounterDimension--; } @@ -1619,14 +1682,14 @@ buildCounterDimensionDimensionValue--; } -buildUnnamed2322() { +buildUnnamed2082() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2322(core.List<api.MarketplaceDeal> o) { +checkUnnamed2082(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1637,7 +1700,7 @@ var o = new api.EditAllOrderDealsRequest(); buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - o.deals = buildUnnamed2322(); + o.deals = buildUnnamed2082(); o.proposal = buildProposal(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; @@ -1649,7 +1712,7 @@ checkEditAllOrderDealsRequest(api.EditAllOrderDealsRequest o) { buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - checkUnnamed2322(o.deals); + checkUnnamed2082(o.deals); checkProposal(o.proposal); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); @@ -1657,14 +1720,14 @@ buildCounterEditAllOrderDealsRequest--; } -buildUnnamed2323() { +buildUnnamed2083() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2323(core.List<api.MarketplaceDeal> o) { +checkUnnamed2083(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1675,7 +1738,7 @@ var o = new api.EditAllOrderDealsResponse(); buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - o.deals = buildUnnamed2323(); + o.deals = buildUnnamed2083(); o.orderRevisionNumber = "foo"; } buildCounterEditAllOrderDealsResponse--; @@ -1685,20 +1748,20 @@ checkEditAllOrderDealsResponse(api.EditAllOrderDealsResponse o) { buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - checkUnnamed2323(o.deals); + checkUnnamed2083(o.deals); unittest.expect(o.orderRevisionNumber, unittest.equals('foo')); } buildCounterEditAllOrderDealsResponse--; } -buildUnnamed2324() { +buildUnnamed2084() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2324(core.List<api.Product> o) { +checkUnnamed2084(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1709,7 +1772,7 @@ var o = new api.GetOffersResponse(); buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - o.products = buildUnnamed2324(); + o.products = buildUnnamed2084(); } buildCounterGetOffersResponse--; return o; @@ -1718,19 +1781,19 @@ checkGetOffersResponse(api.GetOffersResponse o) { buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - checkUnnamed2324(o.products); + checkUnnamed2084(o.products); } buildCounterGetOffersResponse--; } -buildUnnamed2325() { +buildUnnamed2085() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed2325(core.List<api.MarketplaceDeal> o) { +checkUnnamed2085(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1741,7 +1804,7 @@ var o = new api.GetOrderDealsResponse(); buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - o.deals = buildUnnamed2325(); + o.deals = buildUnnamed2085(); } buildCounterGetOrderDealsResponse--; return o; @@ -1750,19 +1813,19 @@ checkGetOrderDealsResponse(api.GetOrderDealsResponse o) { buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - checkUnnamed2325(o.deals); + checkUnnamed2085(o.deals); } buildCounterGetOrderDealsResponse--; } -buildUnnamed2326() { +buildUnnamed2086() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed2326(core.List<api.MarketplaceNote> o) { +checkUnnamed2086(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -1773,7 +1836,7 @@ var o = new api.GetOrderNotesResponse(); buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - o.notes = buildUnnamed2326(); + o.notes = buildUnnamed2086(); } buildCounterGetOrderNotesResponse--; return o; @@ -1782,19 +1845,19 @@ checkGetOrderNotesResponse(api.GetOrderNotesResponse o) { buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - checkUnnamed2326(o.notes); + checkUnnamed2086(o.notes); } buildCounterGetOrderNotesResponse--; } -buildUnnamed2327() { +buildUnnamed2087() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed2327(core.List<api.Proposal> o) { +checkUnnamed2087(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -1805,7 +1868,7 @@ var o = new api.GetOrdersResponse(); buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - o.proposals = buildUnnamed2327(); + o.proposals = buildUnnamed2087(); } buildCounterGetOrdersResponse--; return o; @@ -1814,19 +1877,19 @@ checkGetOrdersResponse(api.GetOrdersResponse o) { buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - checkUnnamed2327(o.proposals); + checkUnnamed2087(o.proposals); } buildCounterGetOrdersResponse--; } -buildUnnamed2328() { +buildUnnamed2088() { var o = new core.List<api.PublisherProfileApiProto>(); o.add(buildPublisherProfileApiProto()); o.add(buildPublisherProfileApiProto()); return o; } -checkUnnamed2328(core.List<api.PublisherProfileApiProto> o) { +checkUnnamed2088(core.List<api.PublisherProfileApiProto> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherProfileApiProto(o[0]); checkPublisherProfileApiProto(o[1]); @@ -1837,7 +1900,7 @@ var o = new api.GetPublisherProfilesByAccountIdResponse(); buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - o.profiles = buildUnnamed2328(); + o.profiles = buildUnnamed2088(); } buildCounterGetPublisherProfilesByAccountIdResponse--; return o; @@ -1846,32 +1909,32 @@ checkGetPublisherProfilesByAccountIdResponse(api.GetPublisherProfilesByAccountIdResponse o) { buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - checkUnnamed2328(o.profiles); + checkUnnamed2088(o.profiles); } buildCounterGetPublisherProfilesByAccountIdResponse--; } -buildUnnamed2329() { +buildUnnamed2089() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2329(core.List<api.ContactInformation> o) { +checkUnnamed2089(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2330() { +buildUnnamed2090() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed2330(core.List<api.SharedTargeting> o) { +checkUnnamed2090(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -1893,6 +1956,7 @@ o.flightEndTimeMs = "foo"; o.flightStartTimeMs = "foo"; o.inventoryDescription = "foo"; + o.isRfpTemplate = true; o.kind = "foo"; o.lastUpdateTimeMs = "foo"; o.name = "foo"; @@ -1900,8 +1964,8 @@ o.productRevisionNumber = "foo"; o.programmaticCreativeSource = "foo"; o.proposalId = "foo"; - o.sellerContacts = buildUnnamed2329(); - o.sharedTargetings = buildUnnamed2330(); + o.sellerContacts = buildUnnamed2089(); + o.sharedTargetings = buildUnnamed2090(); o.syndicationProduct = "foo"; o.terms = buildDealTerms(); o.webPropertyCode = "foo"; @@ -1924,6 +1988,7 @@ unittest.expect(o.flightEndTimeMs, unittest.equals('foo')); unittest.expect(o.flightStartTimeMs, unittest.equals('foo')); unittest.expect(o.inventoryDescription, unittest.equals('foo')); + unittest.expect(o.isRfpTemplate, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -1931,8 +1996,8 @@ unittest.expect(o.productRevisionNumber, unittest.equals('foo')); unittest.expect(o.programmaticCreativeSource, unittest.equals('foo')); unittest.expect(o.proposalId, unittest.equals('foo')); - checkUnnamed2329(o.sellerContacts); - checkUnnamed2330(o.sharedTargetings); + checkUnnamed2089(o.sellerContacts); + checkUnnamed2090(o.sharedTargetings); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); unittest.expect(o.webPropertyCode, unittest.equals('foo')); @@ -2019,53 +2084,53 @@ buildCounterMarketplaceNote--; } -buildUnnamed2331() { +buildUnnamed2091() { 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; } -checkUnnamed2331(core.List<core.Object> o) { +checkUnnamed2091(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')); } -buildUnnamed2332() { +buildUnnamed2092() { 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; } -checkUnnamed2332(core.List<core.Object> o) { +checkUnnamed2092(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')); } -buildUnnamed2333() { +buildUnnamed2093() { 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; } -checkUnnamed2333(core.List<core.Object> o) { +checkUnnamed2093(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')); } -buildUnnamed2334() { +buildUnnamed2094() { 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; } -checkUnnamed2334(core.List<core.Object> o) { +checkUnnamed2094(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')); @@ -2078,11 +2143,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed2331(); - o.cookieMatcherStatusRate = buildUnnamed2332(); - o.creativeStatusRate = buildUnnamed2333(); + o.calloutStatusRate = buildUnnamed2091(); + o.cookieMatcherStatusRate = buildUnnamed2092(); + o.creativeStatusRate = buildUnnamed2093(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed2334(); + o.hostedMatchStatusRate = buildUnnamed2094(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -2108,11 +2173,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed2331(o.calloutStatusRate); - checkUnnamed2332(o.cookieMatcherStatusRate); - checkUnnamed2333(o.creativeStatusRate); + checkUnnamed2091(o.calloutStatusRate); + checkUnnamed2092(o.cookieMatcherStatusRate); + checkUnnamed2093(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed2334(o.hostedMatchStatusRate); + checkUnnamed2094(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)); @@ -2132,14 +2197,14 @@ buildCounterPerformanceReport--; } -buildUnnamed2335() { +buildUnnamed2095() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed2335(core.List<api.PerformanceReport> o) { +checkUnnamed2095(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -2151,7 +2216,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed2335(); + o.performanceReport = buildUnnamed2095(); } buildCounterPerformanceReportList--; return o; @@ -2161,19 +2226,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2335(o.performanceReport); + checkUnnamed2095(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed2336() { +buildUnnamed2096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2336(core.List<core.String> 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')); @@ -2200,40 +2265,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed2337() { +buildUnnamed2097() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed2337(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed2097(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed2338() { +buildUnnamed2098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2338(core.List<core.String> o) { +checkUnnamed2098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2339() { +buildUnnamed2099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2339(core.List<core.String> o) { +checkUnnamed2099(core.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,105 +2325,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed2340() { +buildUnnamed2100() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed2340(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed2100(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed2341() { +buildUnnamed2101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2341(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')); } -buildUnnamed2342() { +buildUnnamed2102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2342(core.List<core.String> o) { +checkUnnamed2102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2343() { +buildUnnamed2103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2343(core.List<core.String> o) { +checkUnnamed2103(core.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() { +buildUnnamed2104() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2344(core.List<core.String> o) { +checkUnnamed2104(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2345() { +buildUnnamed2105() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2345(core.List<core.String> o) { +checkUnnamed2105(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2346() { +buildUnnamed2106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2346(core.List<core.String> o) { +checkUnnamed2106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2347() { +buildUnnamed2107() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2347(core.List<core.String> o) { +checkUnnamed2107(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2385,79 +2450,92 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed2348() { +buildUnnamed2108() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed2348(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed2108(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed2349() { +buildUnnamed2109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2349(core.List<core.String> o) { +checkUnnamed2109(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2350() { +buildUnnamed2110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2350(core.List<core.String> o) { +checkUnnamed2110(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2351() { +buildUnnamed2111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2351(core.List<core.String> o) { +checkUnnamed2111(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2352() { +buildUnnamed2112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2352(core.List<core.String> o) { +checkUnnamed2112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2353() { +buildUnnamed2113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2353(core.List<core.String> o) { +checkUnnamed2113(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); @@ -2486,14 +2564,14 @@ buildCounterPretargetingConfigVideoPlayerSizes--; } -buildUnnamed2354() { +buildUnnamed2115() { var o = new core.List<api.PretargetingConfigVideoPlayerSizes>(); o.add(buildPretargetingConfigVideoPlayerSizes()); o.add(buildPretargetingConfigVideoPlayerSizes()); return o; } -checkUnnamed2354(core.List<api.PretargetingConfigVideoPlayerSizes> o) { +checkUnnamed2115(core.List<api.PretargetingConfigVideoPlayerSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigVideoPlayerSizes(o[0]); checkPretargetingConfigVideoPlayerSizes(o[1]); @@ -2507,27 +2585,28 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed2336(); - o.dimensions = buildUnnamed2337(); - o.excludedContentLabels = buildUnnamed2338(); - o.excludedGeoCriteriaIds = buildUnnamed2339(); - o.excludedPlacements = buildUnnamed2340(); - o.excludedUserLists = buildUnnamed2341(); - o.excludedVerticals = buildUnnamed2342(); - o.geoCriteriaIds = buildUnnamed2343(); + 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.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed2344(); - o.mobileCarriers = buildUnnamed2345(); - o.mobileDevices = buildUnnamed2346(); - o.mobileOperatingSystemVersions = buildUnnamed2347(); - o.placements = buildUnnamed2348(); - o.platforms = buildUnnamed2349(); - o.supportedCreativeAttributes = buildUnnamed2350(); - o.userLists = buildUnnamed2351(); - o.vendorTypes = buildUnnamed2352(); - o.verticals = buildUnnamed2353(); - o.videoPlayerSizes = buildUnnamed2354(); + 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(); } buildCounterPretargetingConfig--; return o; @@ -2539,39 +2618,40 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed2336(o.creativeType); - checkUnnamed2337(o.dimensions); - checkUnnamed2338(o.excludedContentLabels); - checkUnnamed2339(o.excludedGeoCriteriaIds); - checkUnnamed2340(o.excludedPlacements); - checkUnnamed2341(o.excludedUserLists); - checkUnnamed2342(o.excludedVerticals); - checkUnnamed2343(o.geoCriteriaIds); + checkUnnamed2096(o.creativeType); + checkUnnamed2097(o.dimensions); + checkUnnamed2098(o.excludedContentLabels); + checkUnnamed2099(o.excludedGeoCriteriaIds); + checkUnnamed2100(o.excludedPlacements); + checkUnnamed2101(o.excludedUserLists); + checkUnnamed2102(o.excludedVerticals); + checkUnnamed2103(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2344(o.languages); - checkUnnamed2345(o.mobileCarriers); - checkUnnamed2346(o.mobileDevices); - checkUnnamed2347(o.mobileOperatingSystemVersions); - checkUnnamed2348(o.placements); - checkUnnamed2349(o.platforms); - checkUnnamed2350(o.supportedCreativeAttributes); - checkUnnamed2351(o.userLists); - checkUnnamed2352(o.vendorTypes); - checkUnnamed2353(o.verticals); - checkUnnamed2354(o.videoPlayerSizes); + 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); } buildCounterPretargetingConfig--; } -buildUnnamed2355() { +buildUnnamed2116() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed2355(core.List<api.PretargetingConfig> o) { +checkUnnamed2116(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -2582,7 +2662,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed2355(); + o.items = buildUnnamed2116(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -2592,7 +2672,7 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed2355(o.items); + checkUnnamed2116(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; @@ -2667,40 +2747,40 @@ buildCounterPrivateData--; } -buildUnnamed2356() { +buildUnnamed2117() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2356(core.List<api.ContactInformation> o) { +checkUnnamed2117(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2357() { +buildUnnamed2118() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed2357(core.List<api.MarketplaceLabel> o) { +checkUnnamed2118(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed2358() { +buildUnnamed2119() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed2358(core.List<api.SharedTargeting> o) { +checkUnnamed2119(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -2712,14 +2792,14 @@ buildCounterProduct++; if (buildCounterProduct < 3) { o.creationTimeMs = "foo"; - o.creatorContacts = buildUnnamed2356(); + o.creatorContacts = buildUnnamed2117(); o.deliveryControl = buildDeliveryControl(); o.flightEndTimeMs = "foo"; o.flightStartTimeMs = "foo"; o.hasCreatorSignedOff = true; o.inventorySource = "foo"; o.kind = "foo"; - o.labels = buildUnnamed2357(); + o.labels = buildUnnamed2118(); o.lastUpdateTimeMs = "foo"; o.legacyOfferId = "foo"; o.name = "foo"; @@ -2729,7 +2809,7 @@ o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.revisionNumber = "foo"; o.seller = buildSeller(); - o.sharedTargetings = buildUnnamed2358(); + o.sharedTargetings = buildUnnamed2119(); o.state = "foo"; o.syndicationProduct = "foo"; o.terms = buildDealTerms(); @@ -2743,14 +2823,14 @@ buildCounterProduct++; if (buildCounterProduct < 3) { unittest.expect(o.creationTimeMs, unittest.equals('foo')); - checkUnnamed2356(o.creatorContacts); + checkUnnamed2117(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')); - checkUnnamed2357(o.labels); + checkUnnamed2118(o.labels); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.legacyOfferId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -2760,7 +2840,7 @@ checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.revisionNumber, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed2358(o.sharedTargetings); + checkUnnamed2119(o.sharedTargetings); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); @@ -2769,40 +2849,53 @@ buildCounterProduct--; } -buildUnnamed2359() { +buildUnnamed2120() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2359(core.List<api.ContactInformation> o) { +checkUnnamed2120(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed2360() { +buildUnnamed2121() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2121(core.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() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed2360(core.List<api.MarketplaceLabel> o) { +checkUnnamed2122(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed2361() { +buildUnnamed2123() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed2361(core.List<api.ContactInformation> o) { +checkUnnamed2123(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); @@ -2815,15 +2908,16 @@ if (buildCounterProposal < 3) { o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); - o.buyerContacts = buildUnnamed2359(); + o.buyerContacts = buildUnnamed2120(); o.buyerPrivateData = buildPrivateData(); + o.dbmAdvertiserIds = buildUnnamed2121(); o.hasBuyerSignedOff = true; o.hasSellerSignedOff = true; o.inventorySource = "foo"; o.isRenegotiating = true; o.isSetupComplete = true; o.kind = "foo"; - o.labels = buildUnnamed2360(); + o.labels = buildUnnamed2122(); o.lastUpdaterOrCommentorRole = "foo"; o.name = "foo"; o.negotiationId = "foo"; @@ -2834,7 +2928,7 @@ o.revisionNumber = "foo"; o.revisionTimeMs = "foo"; o.seller = buildSeller(); - o.sellerContacts = buildUnnamed2361(); + o.sellerContacts = buildUnnamed2123(); } buildCounterProposal--; return o; @@ -2845,15 +2939,16 @@ if (buildCounterProposal < 3) { checkBuyer(o.billedBuyer); checkBuyer(o.buyer); - checkUnnamed2359(o.buyerContacts); + checkUnnamed2120(o.buyerContacts); checkPrivateData(o.buyerPrivateData); + checkUnnamed2121(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')); - checkUnnamed2360(o.labels); + checkUnnamed2122(o.labels); unittest.expect(o.lastUpdaterOrCommentorRole, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.negotiationId, unittest.equals('foo')); @@ -2864,32 +2959,32 @@ unittest.expect(o.revisionNumber, unittest.equals('foo')); unittest.expect(o.revisionTimeMs, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed2361(o.sellerContacts); + checkUnnamed2123(o.sellerContacts); } buildCounterProposal--; } -buildUnnamed2362() { +buildUnnamed2124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2362(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')); } -buildUnnamed2363() { +buildUnnamed2125() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2363(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')); @@ -2915,14 +3010,14 @@ o.overview = "foo"; o.profileId = 42; o.programmaticContact = "foo"; - o.publisherDomains = buildUnnamed2362(); + o.publisherDomains = buildUnnamed2124(); o.publisherProfileId = "foo"; o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.rateCardInfoLink = "foo"; o.samplePageLink = "foo"; o.seller = buildSeller(); o.state = "foo"; - o.topHeadlines = buildUnnamed2363(); + o.topHeadlines = buildUnnamed2125(); } buildCounterPublisherProfileApiProto--; return o; @@ -2946,26 +3041,26 @@ unittest.expect(o.overview, unittest.equals('foo')); unittest.expect(o.profileId, unittest.equals(42)); unittest.expect(o.programmaticContact, unittest.equals('foo')); - checkUnnamed2362(o.publisherDomains); + checkUnnamed2124(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')); - checkUnnamed2363(o.topHeadlines); + checkUnnamed2125(o.topHeadlines); } buildCounterPublisherProfileApiProto--; } -buildUnnamed2364() { +buildUnnamed2126() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2364(core.List<api.Dimension> o) { +checkUnnamed2126(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -2976,7 +3071,7 @@ var o = new api.PublisherProvidedForecast(); buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - o.dimensions = buildUnnamed2364(); + o.dimensions = buildUnnamed2126(); o.weeklyImpressions = "foo"; o.weeklyUniques = "foo"; } @@ -2987,7 +3082,7 @@ checkPublisherProvidedForecast(api.PublisherProvidedForecast o) { buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - checkUnnamed2364(o.dimensions); + checkUnnamed2126(o.dimensions); unittest.expect(o.weeklyImpressions, unittest.equals('foo')); unittest.expect(o.weeklyUniques, unittest.equals('foo')); } @@ -3015,27 +3110,27 @@ buildCounterSeller--; } -buildUnnamed2365() { +buildUnnamed2127() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed2365(core.List<api.TargetingValue> o) { +checkUnnamed2127(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); } -buildUnnamed2366() { +buildUnnamed2128() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed2366(core.List<api.TargetingValue> o) { +checkUnnamed2128(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); @@ -3046,8 +3141,8 @@ var o = new api.SharedTargeting(); buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - o.exclusions = buildUnnamed2365(); - o.inclusions = buildUnnamed2366(); + o.exclusions = buildUnnamed2127(); + o.inclusions = buildUnnamed2128(); o.key = "foo"; } buildCounterSharedTargeting--; @@ -3057,8 +3152,8 @@ checkSharedTargeting(api.SharedTargeting o) { buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - checkUnnamed2365(o.exclusions); - checkUnnamed2366(o.inclusions); + checkUnnamed2127(o.exclusions); + checkUnnamed2128(o.inclusions); unittest.expect(o.key, unittest.equals('foo')); } buildCounterSharedTargeting--; @@ -3089,14 +3184,14 @@ buildCounterTargetingValue--; } -buildUnnamed2367() { +buildUnnamed2129() { var o = new core.List<api.TargetingValueSize>(); o.add(buildTargetingValueSize()); o.add(buildTargetingValueSize()); return o; } -checkUnnamed2367(core.List<api.TargetingValueSize> o) { +checkUnnamed2129(core.List<api.TargetingValueSize> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueSize(o[0]); checkTargetingValueSize(o[1]); @@ -3107,7 +3202,7 @@ var o = new api.TargetingValueCreativeSize(); buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - o.companionSizes = buildUnnamed2367(); + o.companionSizes = buildUnnamed2129(); o.creativeSizeType = "foo"; o.size = buildTargetingValueSize(); o.skippableAdType = "foo"; @@ -3119,7 +3214,7 @@ checkTargetingValueCreativeSize(api.TargetingValueCreativeSize o) { buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - checkUnnamed2367(o.companionSizes); + checkUnnamed2129(o.companionSizes); unittest.expect(o.creativeSizeType, unittest.equals('foo')); checkTargetingValueSize(o.size); unittest.expect(o.skippableAdType, unittest.equals('foo')); @@ -3127,14 +3222,14 @@ buildCounterTargetingValueCreativeSize--; } -buildUnnamed2368() { +buildUnnamed2130() { var o = new core.List<api.TargetingValueDayPartTargetingDayPart>(); o.add(buildTargetingValueDayPartTargetingDayPart()); o.add(buildTargetingValueDayPartTargetingDayPart()); return o; } -checkUnnamed2368(core.List<api.TargetingValueDayPartTargetingDayPart> o) { +checkUnnamed2130(core.List<api.TargetingValueDayPartTargetingDayPart> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueDayPartTargetingDayPart(o[0]); checkTargetingValueDayPartTargetingDayPart(o[1]); @@ -3145,7 +3240,7 @@ var o = new api.TargetingValueDayPartTargeting(); buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - o.dayParts = buildUnnamed2368(); + o.dayParts = buildUnnamed2130(); o.timeZoneType = "foo"; } buildCounterTargetingValueDayPartTargeting--; @@ -3155,7 +3250,7 @@ checkTargetingValueDayPartTargeting(api.TargetingValueDayPartTargeting o) { buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - checkUnnamed2368(o.dayParts); + checkUnnamed2130(o.dayParts); unittest.expect(o.timeZoneType, unittest.equals('foo')); } buildCounterTargetingValueDayPartTargeting--; @@ -3234,27 +3329,27 @@ buildCounterUpdatePrivateAuctionProposalRequest--; } -buildUnnamed2369() { +buildUnnamed2131() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2369(core.List<core.int> o) { +checkUnnamed2131(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)); } -buildUnnamed2370() { +buildUnnamed2132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2370(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')); @@ -3496,6 +3591,24 @@ }); + unittest.group("obj-schema-CreativeDealIdsDealStatuses", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeDealIdsDealStatuses(); + var od = new api.CreativeDealIdsDealStatuses.fromJson(o.toJson()); + checkCreativeDealIdsDealStatuses(od); + }); + }); + + + unittest.group("obj-schema-CreativeDealIds", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeDealIds(); + var od = new api.CreativeDealIds.fromJson(o.toJson()); + checkCreativeDealIds(od); + }); + }); + + unittest.group("obj-schema-CreativesList", () { unittest.test("to-json--from-json", () { var o = buildCreativesList(); @@ -4038,6 +4151,7 @@ api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; var arg_request = buildAccount(); var arg_id = 42; + var arg_confirmUnsafeAccountChange = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Account.fromJson(json); checkAccount(obj); @@ -4072,6 +4186,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["confirmUnsafeAccountChange"].first, unittest.equals("$arg_confirmUnsafeAccountChange")); var h = { @@ -4080,7 +4195,7 @@ var resp = convert.JSON.encode(buildAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.patch(arg_request, arg_id).then(unittest.expectAsync(((api.Account response) { + res.patch(arg_request, arg_id, confirmUnsafeAccountChange: arg_confirmUnsafeAccountChange).then(unittest.expectAsync(((api.Account response) { checkAccount(response); }))); }); @@ -4091,6 +4206,7 @@ api.AccountsResourceApi res = new api.AdexchangebuyerApi(mock).accounts; var arg_request = buildAccount(); var arg_id = 42; + var arg_confirmUnsafeAccountChange = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Account.fromJson(json); checkAccount(obj); @@ -4125,6 +4241,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["confirmUnsafeAccountChange"].first, unittest.equals("$arg_confirmUnsafeAccountChange")); var h = { @@ -4133,7 +4250,7 @@ var resp = convert.JSON.encode(buildAccount()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_id).then(unittest.expectAsync(((api.Account response) { + res.update(arg_request, arg_id, confirmUnsafeAccountChange: arg_confirmUnsafeAccountChange).then(unittest.expectAsync(((api.Account response) { checkAccount(response); }))); }); @@ -4596,8 +4713,8 @@ var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed2369(); - var arg_buyerCreativeId = buildUnnamed2370(); + var arg_accountId = buildUnnamed2131(); + var arg_buyerCreativeId = buildUnnamed2132(); var arg_dealsStatusFilter = "foo"; var arg_maxResults = 42; var arg_openAuctionStatusFilter = "foo"; @@ -4649,6 +4766,67 @@ }))); }); + unittest.test("method--listDeals", () { + + var mock = new HttpServerMock(); + api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; + var arg_accountId = 42; + var arg_buyerCreativeId = "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("adexchangebuyer/v1.4/")); + pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("creatives/")); + pathOffset += 10; + index = path.indexOf("/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_accountId")); + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + index = path.indexOf("/listDeals", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_buyerCreativeId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.equals("/listDeals")); + 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(buildCreativeDealIds()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.listDeals(arg_accountId, arg_buyerCreativeId).then(unittest.expectAsync(((api.CreativeDealIds response) { + checkCreativeDealIds(response); + }))); + }); + unittest.test("method--removeDeal", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/adexchangeseller/v1_1_test.dart b/generated/googleapis/test/adexchangeseller/v1_1_test.dart index ea20af8..df2631d 100644 --- a/generated/googleapis/test/adexchangeseller/v1_1_test.dart +++ b/generated/googleapis/test/adexchangeseller/v1_1_test.dart
@@ -101,14 +101,14 @@ buildCounterAdClient--; } -buildUnnamed444() { +buildUnnamed459() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed444(core.List<api.AdClient> o) { +checkUnnamed459(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 = buildUnnamed444(); + o.items = buildUnnamed459(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -132,7 +132,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed444(o.items); + checkUnnamed459(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -166,14 +166,14 @@ buildCounterAdUnit--; } -buildUnnamed445() { +buildUnnamed460() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed445(core.List<api.AdUnit> o) { +checkUnnamed460(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 = buildUnnamed445(); + o.items = buildUnnamed460(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -197,7 +197,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed445(o.items); + checkUnnamed460(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -231,14 +231,14 @@ buildCounterAlert--; } -buildUnnamed446() { +buildUnnamed461() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed446(core.List<api.Alert> o) { +checkUnnamed461(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 = buildUnnamed446(); + o.items = buildUnnamed461(); o.kind = "foo"; } buildCounterAlerts--; @@ -259,7 +259,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed446(o.items); + checkUnnamed461(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -317,14 +317,14 @@ buildCounterCustomChannel--; } -buildUnnamed447() { +buildUnnamed462() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed447(core.List<api.CustomChannel> o) { +checkUnnamed462(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 = buildUnnamed447(); + o.items = buildUnnamed462(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -348,21 +348,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed447(o.items); + checkUnnamed462(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed448() { +buildUnnamed463() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed448(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed463(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 = buildUnnamed448(); + o.items = buildUnnamed463(); o.kind = "foo"; } buildCounterMetadata--; @@ -383,7 +383,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed448(o.items); + checkUnnamed463(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -422,14 +422,14 @@ buildCounterPreferredDeal--; } -buildUnnamed449() { +buildUnnamed464() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed449(core.List<api.PreferredDeal> o) { +checkUnnamed464(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 = buildUnnamed449(); + o.items = buildUnnamed464(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -450,20 +450,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed449(o.items); + checkUnnamed464(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed450() { +buildUnnamed465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed450(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')); @@ -492,66 +492,66 @@ buildCounterReportHeaders--; } -buildUnnamed451() { +buildUnnamed466() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed451(core.List<api.ReportHeaders> o) { +checkUnnamed466(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed452() { +buildUnnamed467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed452(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')); } -buildUnnamed453() { +buildUnnamed468() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed452()); - o.add(buildUnnamed452()); + o.add(buildUnnamed467()); + o.add(buildUnnamed467()); return o; } -checkUnnamed453(core.List<core.List<core.String>> o) { +checkUnnamed468(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed452(o[0]); - checkUnnamed452(o[1]); + checkUnnamed467(o[0]); + checkUnnamed467(o[1]); } -buildUnnamed454() { +buildUnnamed469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed454(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')); } -buildUnnamed455() { +buildUnnamed470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed455(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')); @@ -562,13 +562,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.averages = buildUnnamed450(); - o.headers = buildUnnamed451(); + o.averages = buildUnnamed465(); + o.headers = buildUnnamed466(); o.kind = "foo"; - o.rows = buildUnnamed453(); + o.rows = buildUnnamed468(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed454(); - o.warnings = buildUnnamed455(); + o.totals = buildUnnamed469(); + o.warnings = buildUnnamed470(); } buildCounterReport--; return o; @@ -577,77 +577,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed450(o.averages); - checkUnnamed451(o.headers); + checkUnnamed465(o.averages); + checkUnnamed466(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed453(o.rows); + checkUnnamed468(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed454(o.totals); - checkUnnamed455(o.warnings); + checkUnnamed469(o.totals); + checkUnnamed470(o.warnings); } buildCounterReport--; } -buildUnnamed456() { +buildUnnamed471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed456(core.List<core.String> o) { +checkUnnamed471(core.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() { +buildUnnamed472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed457(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')); } -buildUnnamed458() { +buildUnnamed473() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed458(core.List<core.String> o) { +checkUnnamed473(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed459() { +buildUnnamed474() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed459(core.List<core.String> o) { +checkUnnamed474(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed460() { +buildUnnamed475() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed460(core.List<core.String> o) { +checkUnnamed475(core.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 = buildUnnamed456(); - o.compatibleMetrics = buildUnnamed457(); + o.compatibleDimensions = buildUnnamed471(); + o.compatibleMetrics = buildUnnamed472(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed458(); - o.requiredMetrics = buildUnnamed459(); - o.supportedProducts = buildUnnamed460(); + o.requiredDimensions = buildUnnamed473(); + o.requiredMetrics = buildUnnamed474(); + o.supportedProducts = buildUnnamed475(); } buildCounterReportingMetadataEntry--; return o; @@ -673,13 +673,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed456(o.compatibleDimensions); - checkUnnamed457(o.compatibleMetrics); + checkUnnamed471(o.compatibleDimensions); + checkUnnamed472(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed458(o.requiredDimensions); - checkUnnamed459(o.requiredMetrics); - checkUnnamed460(o.supportedProducts); + checkUnnamed473(o.requiredDimensions); + checkUnnamed474(o.requiredMetrics); + checkUnnamed475(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -707,14 +707,14 @@ buildCounterSavedReport--; } -buildUnnamed461() { +buildUnnamed476() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed461(core.List<api.SavedReport> o) { +checkUnnamed476(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 = buildUnnamed461(); + o.items = buildUnnamed476(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -738,7 +738,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed461(o.items); + checkUnnamed476(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -768,14 +768,14 @@ buildCounterUrlChannel--; } -buildUnnamed462() { +buildUnnamed477() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed462(core.List<api.UrlChannel> o) { +checkUnnamed477(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 = buildUnnamed462(); + o.items = buildUnnamed477(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -799,60 +799,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed462(o.items); + checkUnnamed477(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed463() { +buildUnnamed478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed463(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')); } -buildUnnamed464() { +buildUnnamed479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed464(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')); } -buildUnnamed465() { +buildUnnamed480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed465(core.List<core.String> o) { +checkUnnamed480(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed466() { +buildUnnamed481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed466(core.List<core.String> o) { +checkUnnamed481(core.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 = buildUnnamed463(); - var arg_filter = buildUnnamed464(); + var arg_dimension = buildUnnamed478(); + var arg_filter = buildUnnamed479(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed465(); - var arg_sort = buildUnnamed466(); + var arg_metric = buildUnnamed480(); + var arg_sort = buildUnnamed481(); 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 dce9996..081c9e1 100644 --- a/generated/googleapis/test/adexchangeseller/v2_0_test.dart +++ b/generated/googleapis/test/adexchangeseller/v2_0_test.dart
@@ -74,14 +74,14 @@ buildCounterAccount--; } -buildUnnamed2151() { +buildUnnamed1904() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2151(core.List<api.Account> o) { +checkUnnamed1904(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 = buildUnnamed2151(); + o.items = buildUnnamed1904(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -105,7 +105,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2151(o.items); + checkUnnamed1904(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -139,14 +139,14 @@ buildCounterAdClient--; } -buildUnnamed2152() { +buildUnnamed1905() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed2152(core.List<api.AdClient> o) { +checkUnnamed1905(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 = buildUnnamed2152(); + o.items = buildUnnamed1905(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -170,7 +170,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2152(o.items); + checkUnnamed1905(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -204,14 +204,14 @@ buildCounterAlert--; } -buildUnnamed2153() { +buildUnnamed1906() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed2153(core.List<api.Alert> o) { +checkUnnamed1906(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 = buildUnnamed2153(); + o.items = buildUnnamed1906(); o.kind = "foo"; } buildCounterAlerts--; @@ -232,7 +232,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed2153(o.items); + checkUnnamed1906(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -290,14 +290,14 @@ buildCounterCustomChannel--; } -buildUnnamed2154() { +buildUnnamed1907() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed2154(core.List<api.CustomChannel> o) { +checkUnnamed1907(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 = buildUnnamed2154(); + o.items = buildUnnamed1907(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -321,21 +321,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2154(o.items); + checkUnnamed1907(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed2155() { +buildUnnamed1908() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed2155(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed1908(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 = buildUnnamed2155(); + o.items = buildUnnamed1908(); o.kind = "foo"; } buildCounterMetadata--; @@ -356,7 +356,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2155(o.items); + checkUnnamed1908(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -395,14 +395,14 @@ buildCounterPreferredDeal--; } -buildUnnamed2156() { +buildUnnamed1909() { var o = new core.List<api.PreferredDeal>(); o.add(buildPreferredDeal()); o.add(buildPreferredDeal()); return o; } -checkUnnamed2156(core.List<api.PreferredDeal> o) { +checkUnnamed1909(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 = buildUnnamed2156(); + o.items = buildUnnamed1909(); o.kind = "foo"; } buildCounterPreferredDeals--; @@ -423,20 +423,20 @@ checkPreferredDeals(api.PreferredDeals o) { buildCounterPreferredDeals++; if (buildCounterPreferredDeals < 3) { - checkUnnamed2156(o.items); + checkUnnamed1909(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPreferredDeals--; } -buildUnnamed2157() { +buildUnnamed1910() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2157(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')); @@ -465,66 +465,66 @@ buildCounterReportHeaders--; } -buildUnnamed2158() { +buildUnnamed1911() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed2158(core.List<api.ReportHeaders> o) { +checkUnnamed1911(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed2159() { +buildUnnamed1912() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2159(core.List<core.String> o) { +checkUnnamed1912(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2160() { +buildUnnamed1913() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed2159()); - o.add(buildUnnamed2159()); + o.add(buildUnnamed1912()); + o.add(buildUnnamed1912()); return o; } -checkUnnamed2160(core.List<core.List<core.String>> o) { +checkUnnamed1913(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2159(o[0]); - checkUnnamed2159(o[1]); + checkUnnamed1912(o[0]); + checkUnnamed1912(o[1]); } -buildUnnamed2161() { +buildUnnamed1914() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2161(core.List<core.String> o) { +checkUnnamed1914(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2162() { +buildUnnamed1915() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2162(core.List<core.String> o) { +checkUnnamed1915(core.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 = buildUnnamed2157(); - o.headers = buildUnnamed2158(); + o.averages = buildUnnamed1910(); + o.headers = buildUnnamed1911(); o.kind = "foo"; - o.rows = buildUnnamed2160(); + o.rows = buildUnnamed1913(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed2161(); - o.warnings = buildUnnamed2162(); + o.totals = buildUnnamed1914(); + o.warnings = buildUnnamed1915(); } buildCounterReport--; return o; @@ -550,77 +550,77 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed2157(o.averages); - checkUnnamed2158(o.headers); + checkUnnamed1910(o.averages); + checkUnnamed1911(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2160(o.rows); + checkUnnamed1913(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed2161(o.totals); - checkUnnamed2162(o.warnings); + checkUnnamed1914(o.totals); + checkUnnamed1915(o.warnings); } buildCounterReport--; } -buildUnnamed2163() { +buildUnnamed1916() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2163(core.List<core.String> o) { +checkUnnamed1916(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2164() { +buildUnnamed1917() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2164(core.List<core.String> o) { +checkUnnamed1917(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2165() { +buildUnnamed1918() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2165(core.List<core.String> o) { +checkUnnamed1918(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2166() { +buildUnnamed1919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2166(core.List<core.String> o) { +checkUnnamed1919(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2167() { +buildUnnamed1920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2167(core.List<core.String> o) { +checkUnnamed1920(core.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 = buildUnnamed2163(); - o.compatibleMetrics = buildUnnamed2164(); + o.compatibleDimensions = buildUnnamed1916(); + o.compatibleMetrics = buildUnnamed1917(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed2165(); - o.requiredMetrics = buildUnnamed2166(); - o.supportedProducts = buildUnnamed2167(); + o.requiredDimensions = buildUnnamed1918(); + o.requiredMetrics = buildUnnamed1919(); + o.supportedProducts = buildUnnamed1920(); } buildCounterReportingMetadataEntry--; return o; @@ -646,13 +646,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed2163(o.compatibleDimensions); - checkUnnamed2164(o.compatibleMetrics); + checkUnnamed1916(o.compatibleDimensions); + checkUnnamed1917(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2165(o.requiredDimensions); - checkUnnamed2166(o.requiredMetrics); - checkUnnamed2167(o.supportedProducts); + checkUnnamed1918(o.requiredDimensions); + checkUnnamed1919(o.requiredMetrics); + checkUnnamed1920(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -680,14 +680,14 @@ buildCounterSavedReport--; } -buildUnnamed2168() { +buildUnnamed1921() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed2168(core.List<api.SavedReport> o) { +checkUnnamed1921(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 = buildUnnamed2168(); + o.items = buildUnnamed1921(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -711,7 +711,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2168(o.items); + checkUnnamed1921(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -741,14 +741,14 @@ buildCounterUrlChannel--; } -buildUnnamed2169() { +buildUnnamed1922() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed2169(core.List<api.UrlChannel> o) { +checkUnnamed1922(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 = buildUnnamed2169(); + o.items = buildUnnamed1922(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -772,60 +772,60 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2169(o.items); + checkUnnamed1922(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed2170() { +buildUnnamed1923() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2170(core.List<core.String> o) { +checkUnnamed1923(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2171() { +buildUnnamed1924() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2171(core.List<core.String> o) { +checkUnnamed1924(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2172() { +buildUnnamed1925() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2172(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')); } -buildUnnamed2173() { +buildUnnamed1926() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2173(core.List<core.String> o) { +checkUnnamed1926(core.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 = buildUnnamed2170(); - var arg_filter = buildUnnamed2171(); + var arg_dimension = buildUnnamed1923(); + var arg_filter = buildUnnamed1924(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2172(); - var arg_sort = buildUnnamed2173(); + var arg_metric = buildUnnamed1925(); + var arg_sort = buildUnnamed1926(); 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 bcfbea2..d886494 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -78,14 +78,14 @@ buildCounterAlias--; } -buildUnnamed916() { +buildUnnamed941() { 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; } -checkUnnamed916(core.List<core.Object> o) { +checkUnnamed941(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 = buildUnnamed916(); + o.aliases = buildUnnamed941(); o.etag = "foo"; o.kind = "foo"; } @@ -107,7 +107,7 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed916(o.aliases); + checkUnnamed941(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -145,14 +145,14 @@ buildCounterAsp--; } -buildUnnamed917() { +buildUnnamed942() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed917(core.List<api.Asp> o) { +checkUnnamed942(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 = buildUnnamed917(); + o.items = buildUnnamed942(); o.kind = "foo"; } buildCounterAsps--; @@ -175,7 +175,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed917(o.items); + checkUnnamed942(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; @@ -212,14 +212,14 @@ buildCounterCalendarResource--; } -buildUnnamed918() { +buildUnnamed943() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed918(core.List<api.CalendarResource> o) { +checkUnnamed943(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 = buildUnnamed918(); + o.items = buildUnnamed943(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -243,21 +243,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed918(o.items); + checkUnnamed943(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed919() { +buildUnnamed944() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed919(core.Map<core.String, core.String> o) { +checkUnnamed944(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 = buildUnnamed919(); + o.params = buildUnnamed944(); 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')); - checkUnnamed919(o.params); + checkUnnamed944(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--; } -buildUnnamed920() { +buildUnnamed945() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed920(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed945(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -355,14 +355,14 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed921() { +buildUnnamed946() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed921(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed946(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 = buildUnnamed920(); + o.activeTimeRanges = buildUnnamed945(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; @@ -393,7 +393,7 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed921(); + o.recentUsers = buildUnnamed946(); 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) { - checkUnnamed920(o.activeTimeRanges); + checkUnnamed945(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')); - checkUnnamed921(o.recentUsers); + checkUnnamed946(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"))); @@ -435,14 +435,35 @@ buildCounterChromeOsDevice--; } -buildUnnamed922() { +core.int buildCounterChromeOsDeviceAction = 0; +buildChromeOsDeviceAction() { + var o = new api.ChromeOsDeviceAction(); + buildCounterChromeOsDeviceAction++; + if (buildCounterChromeOsDeviceAction < 3) { + o.action = "foo"; + o.deprovisionReason = "foo"; + } + buildCounterChromeOsDeviceAction--; + return o; +} + +checkChromeOsDeviceAction(api.ChromeOsDeviceAction o) { + buildCounterChromeOsDeviceAction++; + if (buildCounterChromeOsDeviceAction < 3) { + unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.deprovisionReason, unittest.equals('foo')); + } + buildCounterChromeOsDeviceAction--; +} + +buildUnnamed947() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed922(core.List<api.ChromeOsDevice> o) { +checkUnnamed947(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -453,7 +474,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed922(); + o.chromeosdevices = buildUnnamed947(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -465,7 +486,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed922(o.chromeosdevices); + checkUnnamed947(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -572,14 +593,14 @@ buildCounterDomainAlias--; } -buildUnnamed923() { +buildUnnamed948() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed923(core.List<api.DomainAlias> o) { +checkUnnamed948(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -590,7 +611,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed923(); + o.domainAliases = buildUnnamed948(); o.etag = "foo"; o.kind = "foo"; } @@ -601,21 +622,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed923(o.domainAliases); + checkUnnamed948(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed924() { +buildUnnamed949() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed924(core.List<api.DomainAlias> o) { +checkUnnamed949(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -627,7 +648,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed924(); + o.domainAliases = buildUnnamed949(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -642,7 +663,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed924(o.domainAliases); + checkUnnamed949(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -652,14 +673,14 @@ buildCounterDomains--; } -buildUnnamed925() { +buildUnnamed950() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed925(core.List<api.Domains> o) { +checkUnnamed950(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -670,7 +691,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed925(); + o.domains = buildUnnamed950(); o.etag = "foo"; o.kind = "foo"; } @@ -681,34 +702,34 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed925(o.domains); + checkUnnamed950(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomains2--; } -buildUnnamed926() { +buildUnnamed951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed926(core.List<core.String> o) { +checkUnnamed951(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed927() { +buildUnnamed952() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed927(core.List<core.String> o) { +checkUnnamed952(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -720,7 +741,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed926(); + o.aliases = buildUnnamed951(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -728,7 +749,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed927(); + o.nonEditableAliases = buildUnnamed952(); } buildCounterGroup--; return o; @@ -738,7 +759,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed926(o.aliases); + checkUnnamed951(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -746,19 +767,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed927(o.nonEditableAliases); + checkUnnamed952(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed928() { +buildUnnamed953() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed928(core.List<api.Group> o) { +checkUnnamed953(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -770,7 +791,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed928(); + o.groups = buildUnnamed953(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -782,7 +803,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed928(o.groups); + checkUnnamed953(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -820,14 +841,14 @@ buildCounterMember--; } -buildUnnamed929() { +buildUnnamed954() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed929(core.List<api.Member> o) { +checkUnnamed954(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -840,7 +861,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed929(); + o.members = buildUnnamed954(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -852,20 +873,20 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed929(o.members); + checkUnnamed954(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; } -buildUnnamed930() { +buildUnnamed955() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed930(core.List<core.String> o) { +checkUnnamed955(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -878,7 +899,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed930(); + o.permission = buildUnnamed955(); o.versionCode = 42; o.versionName = "foo"; } @@ -891,60 +912,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed930(o.permission); + checkUnnamed955(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed931() { +buildUnnamed956() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed931(core.List<api.MobileDeviceApplications> o) { +checkUnnamed956(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed932() { +buildUnnamed957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed932(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')); } -buildUnnamed933() { +buildUnnamed958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed933(core.List<core.String> o) { +checkUnnamed958(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed934() { +buildUnnamed959() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed934(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')); @@ -956,29 +977,38 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed931(); + o.applications = buildUnnamed956(); o.basebandVersion = "foo"; + o.bootloaderVersion = "foo"; + o.brand = "foo"; o.buildNumber = "foo"; o.defaultLanguage = "foo"; o.developerOptionsStatus = true; o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; - o.email = buildUnnamed932(); + o.devicePasswordStatus = "foo"; + o.email = buildUnnamed957(); + o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); + o.hardware = "foo"; o.hardwareId = "foo"; o.imei = "foo"; o.kernelVersion = "foo"; o.kind = "foo"; o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); o.managedAccountIsOnOwnerProfile = true; + o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed933(); + o.name = buildUnnamed958(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed934(); + o.otherAccountsInfo = buildUnnamed959(); + o.privilege = "foo"; + o.releaseVersion = "foo"; o.resourceId = "foo"; + o.securityPatchLevel = "foo"; o.serialNumber = "foo"; o.status = "foo"; o.supportsWorkProfile = true; @@ -995,29 +1025,38 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed931(o.applications); + checkUnnamed956(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); + unittest.expect(o.bootloaderVersion, unittest.equals('foo')); + unittest.expect(o.brand, unittest.equals('foo')); unittest.expect(o.buildNumber, unittest.equals('foo')); unittest.expect(o.defaultLanguage, unittest.equals('foo')); unittest.expect(o.developerOptionsStatus, unittest.isTrue); unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); - checkUnnamed932(o.email); + unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); + checkUnnamed957(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"))); + unittest.expect(o.hardware, unittest.equals('foo')); unittest.expect(o.hardwareId, unittest.equals('foo')); unittest.expect(o.imei, unittest.equals('foo')); unittest.expect(o.kernelVersion, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.managedAccountIsOnOwnerProfile, unittest.isTrue); + unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed933(o.name); + checkUnnamed958(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed934(o.otherAccountsInfo); + checkUnnamed959(o.otherAccountsInfo); + unittest.expect(o.privilege, unittest.equals('foo')); + unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); + unittest.expect(o.securityPatchLevel, unittest.equals('foo')); unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.supportsWorkProfile, unittest.isTrue); @@ -1048,14 +1087,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed935() { +buildUnnamed960() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed935(core.List<api.MobileDevice> o) { +checkUnnamed960(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1068,7 +1107,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed935(); + o.mobiledevices = buildUnnamed960(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1080,7 +1119,7 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed935(o.mobiledevices); + checkUnnamed960(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; @@ -1119,14 +1158,14 @@ buildCounterNotification--; } -buildUnnamed936() { +buildUnnamed961() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed936(core.List<api.Notification> o) { +checkUnnamed961(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1138,7 +1177,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { o.etag = "foo"; - o.items = buildUnnamed936(); + o.items = buildUnnamed961(); o.kind = "foo"; o.nextPageToken = "foo"; o.unreadNotificationsCount = 42; @@ -1151,7 +1190,7 @@ buildCounterNotifications++; if (buildCounterNotifications < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed936(o.items); + checkUnnamed961(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); @@ -1194,14 +1233,14 @@ buildCounterOrgUnit--; } -buildUnnamed937() { +buildUnnamed962() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed937(core.List<api.OrgUnit> o) { +checkUnnamed962(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1214,7 +1253,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed937(); + o.organizationUnits = buildUnnamed962(); } buildCounterOrgUnits--; return o; @@ -1225,19 +1264,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed937(o.organizationUnits); + checkUnnamed962(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed938() { +buildUnnamed963() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed938(core.List<api.Privilege> o) { +checkUnnamed963(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1248,7 +1287,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed938(); + o.childPrivileges = buildUnnamed963(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1263,7 +1302,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed938(o.childPrivileges); + checkUnnamed963(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1274,14 +1313,14 @@ buildCounterPrivilege--; } -buildUnnamed939() { +buildUnnamed964() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed939(core.List<api.Privilege> o) { +checkUnnamed964(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1293,7 +1332,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed939(); + o.items = buildUnnamed964(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1304,7 +1343,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed939(o.items); + checkUnnamed964(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -1331,14 +1370,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed940() { +buildUnnamed965() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed940(core.List<api.RoleRolePrivileges> o) { +checkUnnamed965(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -1356,7 +1395,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed940(); + o.rolePrivileges = buildUnnamed965(); } buildCounterRole--; return o; @@ -1372,7 +1411,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed940(o.rolePrivileges); + checkUnnamed965(o.rolePrivileges); } buildCounterRole--; } @@ -1408,14 +1447,14 @@ buildCounterRoleAssignment--; } -buildUnnamed941() { +buildUnnamed966() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed941(core.List<api.RoleAssignment> o) { +checkUnnamed966(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -1427,7 +1466,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed941(); + o.items = buildUnnamed966(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1439,21 +1478,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed941(o.items); + checkUnnamed966(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed942() { +buildUnnamed967() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed942(core.List<api.Role> o) { +checkUnnamed967(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -1465,7 +1504,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed942(); + o.items = buildUnnamed967(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1477,21 +1516,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed942(o.items); + checkUnnamed967(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed943() { +buildUnnamed968() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed943(core.List<api.SchemaFieldSpec> o) { +checkUnnamed968(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -1503,7 +1542,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { o.etag = "foo"; - o.fields = buildUnnamed943(); + o.fields = buildUnnamed968(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -1516,7 +1555,7 @@ buildCounterSchema++; if (buildCounterSchema < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed943(o.fields); + checkUnnamed968(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -1580,14 +1619,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed944() { +buildUnnamed969() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed944(core.List<api.Schema> o) { +checkUnnamed969(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -1600,7 +1639,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed944(); + o.schemas = buildUnnamed969(); } buildCounterSchemas--; return o; @@ -1611,19 +1650,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed944(o.schemas); + checkUnnamed969(o.schemas); } buildCounterSchemas--; } -buildUnnamed945() { +buildUnnamed970() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed945(core.List<core.String> o) { +checkUnnamed970(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1640,7 +1679,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed945(); + o.scopes = buildUnnamed970(); o.userKey = "foo"; } buildCounterToken--; @@ -1656,20 +1695,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed945(o.scopes); + checkUnnamed970(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed946() { +buildUnnamed971() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed946(core.List<api.Token> o) { +checkUnnamed971(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -1681,7 +1720,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed946(); + o.items = buildUnnamed971(); o.kind = "foo"; } buildCounterTokens--; @@ -1692,46 +1731,46 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed946(o.items); + checkUnnamed971(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; } -buildUnnamed947() { +buildUnnamed972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed947(core.List<core.String> o) { +checkUnnamed972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed948() { +buildUnnamed973() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed948(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed973(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed949() { +buildUnnamed974() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed949(core.List<core.String> o) { +checkUnnamed974(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1744,10 +1783,10 @@ if (buildCounterUser < 3) { o.addresses = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.agreedToTerms = true; - o.aliases = buildUnnamed947(); + o.aliases = buildUnnamed972(); o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed948(); + o.customSchemas = buildUnnamed973(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1764,7 +1803,7 @@ o.kind = "foo"; o.lastLoginTime = core.DateTime.parse("2002-02-27T14:01:02"); o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed949(); + o.nonEditableAliases = buildUnnamed974(); o.notes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.orgUnitPath = "foo"; o.organizations = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; @@ -1787,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); - checkUnnamed947(o.aliases); + checkUnnamed972(o.aliases); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed948(o.customSchemas); + checkUnnamed973(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')); @@ -1807,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); - checkUnnamed949(o.nonEditableAliases); + checkUnnamed974(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')); @@ -2184,14 +2223,14 @@ buildCounterUserWebsite--; } -buildUnnamed950() { +buildUnnamed975() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed950(core.List<api.User> o) { +checkUnnamed975(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2206,7 +2245,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed950(); + o.users = buildUnnamed975(); } buildCounterUsers--; return o; @@ -2219,7 +2258,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed950(o.users); + checkUnnamed975(o.users); } buildCounterUsers--; } @@ -2249,14 +2288,14 @@ buildCounterVerificationCode--; } -buildUnnamed951() { +buildUnnamed976() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed951(core.List<api.VerificationCode> o) { +checkUnnamed976(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -2268,7 +2307,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed951(); + o.items = buildUnnamed976(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -2279,59 +2318,59 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed951(o.items); + checkUnnamed976(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed952() { +buildUnnamed977() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed952(core.List<core.String> o) { +checkUnnamed977(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed953() { +buildUnnamed978() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed953(core.List<core.String> o) { +checkUnnamed978(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed954() { +buildUnnamed979() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed954(core.List<core.String> o) { +checkUnnamed979(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed955() { +buildUnnamed980() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed955(core.List<core.String> o) { +checkUnnamed980(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2429,6 +2468,15 @@ }); + unittest.group("obj-schema-ChromeOsDeviceAction", () { + unittest.test("to-json--from-json", () { + var o = buildChromeOsDeviceAction(); + var od = new api.ChromeOsDeviceAction.fromJson(o.toJson()); + checkChromeOsDeviceAction(od); + }); + }); + + unittest.group("obj-schema-ChromeOsDevices", () { unittest.test("to-json--from-json", () { var o = buildChromeOsDevices(); @@ -3098,6 +3146,69 @@ unittest.group("resource-ChromeosdevicesResourceApi", () { + unittest.test("method--action", () { + + var mock = new HttpServerMock(); + api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevices; + var arg_request = buildChromeOsDeviceAction(); + var arg_customerId = "foo"; + var arg_resourceId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ChromeOsDeviceAction.fromJson(json); + checkChromeOsDeviceAction(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 + 19), unittest.equals("admin/directory/v1/")); + pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("customer/")); + pathOffset += 9; + index = path.indexOf("/devices/chromeos/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_customerId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/devices/chromeos/")); + pathOffset += 18; + index = path.indexOf("/action", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_resourceId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/action")); + 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 = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.action(arg_request, arg_customerId, arg_resourceId).then(unittest.expectAsync((_) {})); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -5346,7 +5457,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed952(); + var arg_orgUnitPath = buildUnnamed977(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5400,7 +5511,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed953(); + var arg_orgUnitPath = buildUnnamed978(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5571,7 +5682,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed954(); + var arg_orgUnitPath = buildUnnamed979(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); checkOrgUnit(obj); @@ -5631,7 +5742,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed955(); + var arg_orgUnitPath = buildUnnamed980(); 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 f399758..868b649 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); } -buildUnnamed810() { +buildUnnamed834() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed810(core.List<api.Activity> o) { +checkUnnamed834(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 = buildUnnamed810(); + o.items = buildUnnamed834(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -82,7 +82,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed810(o.items); + checkUnnamed834(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -114,27 +114,27 @@ buildCounterActivityActor--; } -buildUnnamed811() { +buildUnnamed835() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed811(core.List<core.String> o) { +checkUnnamed835(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed812() { +buildUnnamed836() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed812(core.List<core.String> o) { +checkUnnamed836(core.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 = buildUnnamed811(); - o.multiValue = buildUnnamed812(); + o.multiIntValue = buildUnnamed835(); + o.multiValue = buildUnnamed836(); 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')); - checkUnnamed811(o.multiIntValue); - checkUnnamed812(o.multiValue); + checkUnnamed835(o.multiIntValue); + checkUnnamed836(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed813() { +buildUnnamed837() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed813(core.List<api.ActivityEventsParameters> o) { +checkUnnamed837(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 = buildUnnamed813(); + o.parameters = buildUnnamed837(); o.type = "foo"; } buildCounterActivityEvents--; @@ -199,20 +199,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed813(o.parameters); + checkUnnamed837(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed814() { +buildUnnamed838() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed814(core.List<api.ActivityEvents> o) { +checkUnnamed838(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 = buildUnnamed814(); + o.events = buildUnnamed838(); 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')); - checkUnnamed814(o.events); + checkUnnamed838(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -274,14 +274,14 @@ buildCounterActivity--; } -buildUnnamed815() { +buildUnnamed839() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed815(core.Map<core.String, core.String> o) { +checkUnnamed839(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 = buildUnnamed815(); + o.params = buildUnnamed839(); 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')); - checkUnnamed815(o.params); + checkUnnamed839(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--; } -buildUnnamed816() { +buildUnnamed840() { 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; } -checkUnnamed816(core.Map<core.String, core.Object> o) { +checkUnnamed840(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')); } -buildUnnamed817() { +buildUnnamed841() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed816()); - o.add(buildUnnamed816()); + o.add(buildUnnamed840()); + o.add(buildUnnamed840()); return o; } -checkUnnamed817(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed841(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed816(o[0]); - checkUnnamed816(o[1]); + checkUnnamed840(o[0]); + checkUnnamed840(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 = buildUnnamed817(); + o.msgValue = buildUnnamed841(); 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')); - checkUnnamed817(o.msgValue); + checkUnnamed841(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed818() { +buildUnnamed842() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed818(core.List<api.UsageReportParameters> o) { +checkUnnamed842(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 = buildUnnamed818(); + o.parameters = buildUnnamed842(); } buildCounterUsageReport--; return o; @@ -439,19 +439,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed818(o.parameters); + checkUnnamed842(o.parameters); } buildCounterUsageReport--; } -buildUnnamed819() { +buildUnnamed843() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed819(core.List<api.UsageReport> o) { +checkUnnamed843(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -478,14 +478,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed820() { +buildUnnamed844() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed820(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed844(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 = buildUnnamed820(); + o.data = buildUnnamed844(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -508,20 +508,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed820(o.data); + checkUnnamed844(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed821() { +buildUnnamed845() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed821(core.List<api.UsageReportsWarnings> o) { +checkUnnamed845(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 = buildUnnamed819(); - o.warnings = buildUnnamed821(); + o.usageReports = buildUnnamed843(); + o.warnings = buildUnnamed845(); } 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')); - checkUnnamed819(o.usageReports); - checkUnnamed821(o.warnings); + checkUnnamed843(o.usageReports); + checkUnnamed845(o.warnings); } buildCounterUsageReports--; }
diff --git a/generated/googleapis/test/adsense/v1_4_test.dart b/generated/googleapis/test/adsense/v1_4_test.dart index b4ee4a7..8ee6071 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); } -buildUnnamed2213() { +buildUnnamed1967() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2213(core.List<api.Account> o) { +checkUnnamed1967(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 = buildUnnamed2213(); + o.subAccounts = buildUnnamed1967(); 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); - checkUnnamed2213(o.subAccounts); + checkUnnamed1967(o.subAccounts); unittest.expect(o.timezone, unittest.equals('foo')); } buildCounterAccount--; } -buildUnnamed2214() { +buildUnnamed1968() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2214(core.List<api.Account> o) { +checkUnnamed1968(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 = buildUnnamed2214(); + o.items = buildUnnamed1968(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -126,7 +126,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2214(o.items); + checkUnnamed1968(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -160,14 +160,14 @@ buildCounterAdClient--; } -buildUnnamed2215() { +buildUnnamed1969() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed2215(core.List<api.AdClient> o) { +checkUnnamed1969(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 = buildUnnamed2215(); + o.items = buildUnnamed1969(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -191,7 +191,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2215(o.items); + checkUnnamed1969(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -425,14 +425,14 @@ buildCounterAdUnit--; } -buildUnnamed2216() { +buildUnnamed1970() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed2216(core.List<api.AdUnit> o) { +checkUnnamed1970(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 = buildUnnamed2216(); + o.items = buildUnnamed1970(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -456,21 +456,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2216(o.items); + checkUnnamed1970(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed2217() { +buildUnnamed1971() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2217(core.List<core.String> o) { +checkUnnamed1971(core.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--; } -buildUnnamed2218() { +buildUnnamed1972() { var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); o.add(buildAdsenseReportsGenerateResponseHeaders()); o.add(buildAdsenseReportsGenerateResponseHeaders()); return o; } -checkUnnamed2218(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { +checkUnnamed1972(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkAdsenseReportsGenerateResponseHeaders(o[0]); checkAdsenseReportsGenerateResponseHeaders(o[1]); } -buildUnnamed2219() { +buildUnnamed1973() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2219(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')); } -buildUnnamed2220() { +buildUnnamed1974() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed2219()); - o.add(buildUnnamed2219()); + o.add(buildUnnamed1973()); + o.add(buildUnnamed1973()); return o; } -checkUnnamed2220(core.List<core.List<core.String>> o) { +checkUnnamed1974(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2219(o[0]); - checkUnnamed2219(o[1]); + checkUnnamed1973(o[0]); + checkUnnamed1973(o[1]); } -buildUnnamed2221() { +buildUnnamed1975() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2221(core.List<core.String> o) { +checkUnnamed1975(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2222() { +buildUnnamed1976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2222(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')); @@ -569,15 +569,15 @@ var o = new api.AdsenseReportsGenerateResponse(); buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - o.averages = buildUnnamed2217(); + o.averages = buildUnnamed1971(); o.endDate = "foo"; - o.headers = buildUnnamed2218(); + o.headers = buildUnnamed1972(); o.kind = "foo"; - o.rows = buildUnnamed2220(); + o.rows = buildUnnamed1974(); o.startDate = "foo"; o.totalMatchedRows = "foo"; - o.totals = buildUnnamed2221(); - o.warnings = buildUnnamed2222(); + o.totals = buildUnnamed1975(); + o.warnings = buildUnnamed1976(); } buildCounterAdsenseReportsGenerateResponse--; return o; @@ -586,15 +586,15 @@ checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - checkUnnamed2217(o.averages); + checkUnnamed1971(o.averages); unittest.expect(o.endDate, unittest.equals('foo')); - checkUnnamed2218(o.headers); + checkUnnamed1972(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2220(o.rows); + checkUnnamed1974(o.rows); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed2221(o.totals); - checkUnnamed2222(o.warnings); + checkUnnamed1975(o.totals); + checkUnnamed1976(o.warnings); } buildCounterAdsenseReportsGenerateResponse--; } @@ -628,14 +628,14 @@ buildCounterAlert--; } -buildUnnamed2223() { +buildUnnamed1977() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed2223(core.List<api.Alert> o) { +checkUnnamed1977(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 = buildUnnamed2223(); + o.items = buildUnnamed1977(); o.kind = "foo"; } buildCounterAlerts--; @@ -656,7 +656,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed2223(o.items); + checkUnnamed1977(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -714,14 +714,14 @@ buildCounterCustomChannel--; } -buildUnnamed2224() { +buildUnnamed1978() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed2224(core.List<api.CustomChannel> o) { +checkUnnamed1978(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 = buildUnnamed2224(); + o.items = buildUnnamed1978(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -745,21 +745,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2224(o.items); + checkUnnamed1978(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed2225() { +buildUnnamed1979() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed2225(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed1979(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 = buildUnnamed2225(); + o.items = buildUnnamed1979(); o.kind = "foo"; } buildCounterMetadata--; @@ -780,7 +780,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2225(o.items); + checkUnnamed1979(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -813,14 +813,14 @@ buildCounterPayment--; } -buildUnnamed2226() { +buildUnnamed1980() { var o = new core.List<api.Payment>(); o.add(buildPayment()); o.add(buildPayment()); return o; } -checkUnnamed2226(core.List<api.Payment> o) { +checkUnnamed1980(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 = buildUnnamed2226(); + o.items = buildUnnamed1980(); o.kind = "foo"; } buildCounterPayments--; @@ -841,72 +841,72 @@ checkPayments(api.Payments o) { buildCounterPayments++; if (buildCounterPayments < 3) { - checkUnnamed2226(o.items); + checkUnnamed1980(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPayments--; } -buildUnnamed2227() { +buildUnnamed1981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2227(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')); } -buildUnnamed2228() { +buildUnnamed1982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2228(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')); } -buildUnnamed2229() { +buildUnnamed1983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2229(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')); } -buildUnnamed2230() { +buildUnnamed1984() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2230(core.List<core.String> o) { +checkUnnamed1984(core.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() { +buildUnnamed1985() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2231(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')); @@ -917,13 +917,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed2227(); - o.compatibleMetrics = buildUnnamed2228(); + o.compatibleDimensions = buildUnnamed1981(); + o.compatibleMetrics = buildUnnamed1982(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed2229(); - o.requiredMetrics = buildUnnamed2230(); - o.supportedProducts = buildUnnamed2231(); + o.requiredDimensions = buildUnnamed1983(); + o.requiredMetrics = buildUnnamed1984(); + o.supportedProducts = buildUnnamed1985(); } buildCounterReportingMetadataEntry--; return o; @@ -932,13 +932,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed2227(o.compatibleDimensions); - checkUnnamed2228(o.compatibleMetrics); + checkUnnamed1981(o.compatibleDimensions); + checkUnnamed1982(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2229(o.requiredDimensions); - checkUnnamed2230(o.requiredMetrics); - checkUnnamed2231(o.supportedProducts); + checkUnnamed1983(o.requiredDimensions); + checkUnnamed1984(o.requiredMetrics); + checkUnnamed1985(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -968,14 +968,14 @@ buildCounterSavedAdStyle--; } -buildUnnamed2232() { +buildUnnamed1986() { var o = new core.List<api.SavedAdStyle>(); o.add(buildSavedAdStyle()); o.add(buildSavedAdStyle()); return o; } -checkUnnamed2232(core.List<api.SavedAdStyle> o) { +checkUnnamed1986(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 = buildUnnamed2232(); + o.items = buildUnnamed1986(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -999,7 +999,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2232(o.items); + checkUnnamed1986(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1029,14 +1029,14 @@ buildCounterSavedReport--; } -buildUnnamed2233() { +buildUnnamed1987() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed2233(core.List<api.SavedReport> o) { +checkUnnamed1987(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 = buildUnnamed2233(); + o.items = buildUnnamed1987(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1060,7 +1060,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2233(o.items); + checkUnnamed1987(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1090,14 +1090,14 @@ buildCounterUrlChannel--; } -buildUnnamed2234() { +buildUnnamed1988() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed2234(core.List<api.UrlChannel> o) { +checkUnnamed1988(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 = buildUnnamed2234(); + o.items = buildUnnamed1988(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1121,125 +1121,125 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2234(o.items); + checkUnnamed1988(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed2235() { +buildUnnamed1989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2235(core.List<core.String> o) { +checkUnnamed1989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2236() { +buildUnnamed1990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2236(core.List<core.String> o) { +checkUnnamed1990(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2237() { +buildUnnamed1991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2237(core.List<core.String> o) { +checkUnnamed1991(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2238() { +buildUnnamed1992() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2238(core.List<core.String> o) { +checkUnnamed1992(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2239() { +buildUnnamed1993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2239(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')); } -buildUnnamed2240() { +buildUnnamed1994() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2240(core.List<core.String> o) { +checkUnnamed1994(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2241() { +buildUnnamed1995() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2241(core.List<core.String> o) { +checkUnnamed1995(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2242() { +buildUnnamed1996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2242(core.List<core.String> o) { +checkUnnamed1996(core.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() { +buildUnnamed1997() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2243(core.List<core.String> o) { +checkUnnamed1997(core.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 = buildUnnamed2235(); - var arg_filter = buildUnnamed2236(); + var arg_dimension = buildUnnamed1989(); + var arg_filter = buildUnnamed1990(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2237(); - var arg_sort = buildUnnamed2238(); + var arg_metric = buildUnnamed1991(); + var arg_sort = buildUnnamed1992(); 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 = buildUnnamed2239(); + var arg_accountId = buildUnnamed1993(); var arg_currency = "foo"; - var arg_dimension = buildUnnamed2240(); - var arg_filter = buildUnnamed2241(); + var arg_dimension = buildUnnamed1994(); + var arg_filter = buildUnnamed1995(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed2242(); - var arg_sort = buildUnnamed2243(); + var arg_metric = buildUnnamed1996(); + var arg_sort = buildUnnamed1997(); 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 4ce5c48..1d411d5 100644 --- a/generated/googleapis/test/adsensehost/v4_1_test.dart +++ b/generated/googleapis/test/adsensehost/v4_1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccount--; } -buildUnnamed3304() { +buildUnnamed3117() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3304(core.List<api.Account> o) { +checkUnnamed3117(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 = buildUnnamed3304(); + o.items = buildUnnamed3117(); o.kind = "foo"; } buildCounterAccounts--; @@ -106,7 +106,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3304(o.items); + checkUnnamed3117(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounts--; @@ -139,14 +139,14 @@ buildCounterAdClient--; } -buildUnnamed3305() { +buildUnnamed3118() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed3305(core.List<api.AdClient> o) { +checkUnnamed3118(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 = buildUnnamed3305(); + o.items = buildUnnamed3118(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -170,7 +170,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3305(o.items); + checkUnnamed3118(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -375,14 +375,14 @@ buildCounterAdUnit--; } -buildUnnamed3306() { +buildUnnamed3119() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed3306(core.List<api.AdUnit> o) { +checkUnnamed3119(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 = buildUnnamed3306(); + o.items = buildUnnamed3119(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,21 +406,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3306(o.items); + checkUnnamed3119(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed3307() { +buildUnnamed3120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3307(core.List<core.String> o) { +checkUnnamed3120(core.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 = buildUnnamed3307(); + o.productCodes = buildUnnamed3120(); 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')); - checkUnnamed3307(o.productCodes); + checkUnnamed3120(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--; } -buildUnnamed3308() { +buildUnnamed3121() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed3308(core.List<api.CustomChannel> o) { +checkUnnamed3121(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 = buildUnnamed3308(); + o.items = buildUnnamed3121(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -517,21 +517,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3308(o.items); + checkUnnamed3121(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed3309() { +buildUnnamed3122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3309(core.List<core.String> o) { +checkUnnamed3122(core.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--; } -buildUnnamed3310() { +buildUnnamed3123() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed3310(core.List<api.ReportHeaders> o) { +checkUnnamed3123(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed3311() { +buildUnnamed3124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3311(core.List<core.String> o) { +checkUnnamed3124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3312() { +buildUnnamed3125() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed3311()); - o.add(buildUnnamed3311()); + o.add(buildUnnamed3124()); + o.add(buildUnnamed3124()); return o; } -checkUnnamed3312(core.List<core.List<core.String>> o) { +checkUnnamed3125(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3311(o[0]); - checkUnnamed3311(o[1]); + checkUnnamed3124(o[0]); + checkUnnamed3124(o[1]); } -buildUnnamed3313() { +buildUnnamed3126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3313(core.List<core.String> o) { +checkUnnamed3126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3314() { +buildUnnamed3127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3314(core.List<core.String> o) { +checkUnnamed3127(core.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 = buildUnnamed3309(); - o.headers = buildUnnamed3310(); + o.averages = buildUnnamed3122(); + o.headers = buildUnnamed3123(); o.kind = "foo"; - o.rows = buildUnnamed3312(); + o.rows = buildUnnamed3125(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed3313(); - o.warnings = buildUnnamed3314(); + o.totals = buildUnnamed3126(); + o.warnings = buildUnnamed3127(); } buildCounterReport--; return o; @@ -645,13 +645,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed3309(o.averages); - checkUnnamed3310(o.headers); + checkUnnamed3122(o.averages); + checkUnnamed3123(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3312(o.rows); + checkUnnamed3125(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed3313(o.totals); - checkUnnamed3314(o.warnings); + checkUnnamed3126(o.totals); + checkUnnamed3127(o.warnings); } buildCounterReport--; } @@ -679,14 +679,14 @@ buildCounterUrlChannel--; } -buildUnnamed3315() { +buildUnnamed3128() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed3315(core.List<api.UrlChannel> o) { +checkUnnamed3128(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 = buildUnnamed3315(); + o.items = buildUnnamed3128(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -710,151 +710,151 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3315(o.items); + checkUnnamed3128(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed3316() { +buildUnnamed3129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3316(core.List<core.String> o) { +checkUnnamed3129(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3317() { +buildUnnamed3130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3317(core.List<core.String> o) { +checkUnnamed3130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3318() { +buildUnnamed3131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3318(core.List<core.String> o) { +checkUnnamed3131(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3319() { +buildUnnamed3132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3319(core.List<core.String> o) { +checkUnnamed3132(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3320() { +buildUnnamed3133() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3320(core.List<core.String> o) { +checkUnnamed3133(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3321() { +buildUnnamed3134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3321(core.List<core.String> o) { +checkUnnamed3134(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3322() { +buildUnnamed3135() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3322(core.List<core.String> o) { +checkUnnamed3135(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3323() { +buildUnnamed3136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3323(core.List<core.String> o) { +checkUnnamed3136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3324() { +buildUnnamed3137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3324(core.List<core.String> o) { +checkUnnamed3137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3325() { +buildUnnamed3138() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3325(core.List<core.String> o) { +checkUnnamed3138(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3326() { +buildUnnamed3139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3326(core.List<core.String> o) { +checkUnnamed3139(core.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 = buildUnnamed3316(); + var arg_filterAdClientId = buildUnnamed3129(); 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 = buildUnnamed3317(); + var arg_hostCustomChannelId = buildUnnamed3130(); 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 = buildUnnamed3318(); - var arg_filter = buildUnnamed3319(); + var arg_dimension = buildUnnamed3131(); + var arg_filter = buildUnnamed3132(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3320(); - var arg_sort = buildUnnamed3321(); + var arg_metric = buildUnnamed3133(); + var arg_sort = buildUnnamed3134(); 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 = buildUnnamed3322(); + var arg_productCode = buildUnnamed3135(); 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 = buildUnnamed3323(); - var arg_filter = buildUnnamed3324(); + var arg_dimension = buildUnnamed3136(); + var arg_filter = buildUnnamed3137(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_metric = buildUnnamed3325(); - var arg_sort = buildUnnamed3326(); + var arg_metric = buildUnnamed3138(); + var arg_sort = buildUnnamed3139(); 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 e149a78..39d04e7 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -72,14 +72,14 @@ buildCounterAccountChildLink--; } -buildUnnamed1088() { +buildUnnamed1114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1088(core.List<core.String> o) { +checkUnnamed1114(core.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 = buildUnnamed1088(); + o.effective = buildUnnamed1114(); } buildCounterAccountPermissions--; return o; @@ -99,7 +99,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed1088(o.effective); + checkUnnamed1114(o.effective); } buildCounterAccountPermissions--; } @@ -164,14 +164,14 @@ buildCounterAccountRef--; } -buildUnnamed1089() { +buildUnnamed1115() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed1089(core.List<api.AccountSummary> o) { +checkUnnamed1115(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 = buildUnnamed1089(); + o.items = buildUnnamed1115(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -198,7 +198,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed1089(o.items); + checkUnnamed1115(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--; } -buildUnnamed1090() { +buildUnnamed1116() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed1090(core.List<api.WebPropertySummary> o) { +checkUnnamed1116(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 = buildUnnamed1090(); + o.webProperties = buildUnnamed1116(); } 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); - checkUnnamed1090(o.webProperties); + checkUnnamed1116(o.webProperties); } buildCounterAccountSummary--; } @@ -279,14 +279,14 @@ buildCounterAccountTicket--; } -buildUnnamed1091() { +buildUnnamed1117() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1091(core.List<api.Account> o) { +checkUnnamed1117(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 = buildUnnamed1091(); + o.items = buildUnnamed1117(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -313,7 +313,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed1091(o.items); + checkUnnamed1117(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--; } -buildUnnamed1092() { +buildUnnamed1118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1092(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')); @@ -366,7 +366,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed1092(); + o.customDataImportUids = buildUnnamed1118(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -375,19 +375,19 @@ checkAnalyticsDataimportDeleteUploadDataRequest(api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed1092(o.customDataImportUids); + checkUnnamed1118(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed1093() { +buildUnnamed1119() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1093(core.Map<core.String, core.String> o) { +checkUnnamed1119(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 = buildUnnamed1093(); + o.attributes = buildUnnamed1119(); o.id = "foo"; o.kind = "foo"; } @@ -409,34 +409,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed1093(o.attributes); + checkUnnamed1119(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed1094() { +buildUnnamed1120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1094(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')); } -buildUnnamed1095() { +buildUnnamed1121() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1095(core.List<api.Column> o) { +checkUnnamed1121(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 = buildUnnamed1094(); + o.attributeNames = buildUnnamed1120(); o.etag = "foo"; - o.items = buildUnnamed1095(); + o.items = buildUnnamed1121(); o.kind = "foo"; o.totalResults = 42; } @@ -460,9 +460,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed1094(o.attributeNames); + checkUnnamed1120(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1095(o.items); + checkUnnamed1121(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -511,14 +511,14 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed1096() { +buildUnnamed1122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1096(core.List<core.String> o) { +checkUnnamed1122(core.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 = buildUnnamed1096(); + o.profilesLinked = buildUnnamed1122(); 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); - checkUnnamed1096(o.profilesLinked); + checkUnnamed1122(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--; } -buildUnnamed1097() { +buildUnnamed1123() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed1097(core.List<api.CustomDataSource> o) { +checkUnnamed1123(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 = buildUnnamed1097(); + o.items = buildUnnamed1123(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -605,7 +605,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed1097(o.items); + checkUnnamed1123(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--; } -buildUnnamed1098() { +buildUnnamed1124() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1098(core.List<api.CustomDimension> o) { +checkUnnamed1124(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 = buildUnnamed1098(); + o.items = buildUnnamed1124(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -713,7 +713,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed1098(o.items); + checkUnnamed1124(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--; } -buildUnnamed1099() { +buildUnnamed1125() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1099(core.List<api.CustomMetric> o) { +checkUnnamed1125(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 = buildUnnamed1099(); + o.items = buildUnnamed1125(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -827,7 +827,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed1099(o.items); + checkUnnamed1125(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--; } -buildUnnamed1100() { +buildUnnamed1126() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed1100(core.List<api.AdWordsAccount> o) { +checkUnnamed1126(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -871,14 +871,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed1101() { +buildUnnamed1127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1101(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')); @@ -889,12 +889,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed1100(); + o.adWordsAccounts = buildUnnamed1126(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed1101(); + o.profileIds = buildUnnamed1127(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -904,25 +904,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed1100(o.adWordsAccounts); + checkUnnamed1126(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')); - checkUnnamed1101(o.profileIds); + checkUnnamed1127(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed1102() { +buildUnnamed1128() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed1102(core.List<api.EntityAdWordsLink> o) { +checkUnnamed1128(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 = buildUnnamed1102(); + o.items = buildUnnamed1128(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -948,7 +948,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed1102(o.items); + checkUnnamed1128(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--; } -buildUnnamed1103() { +buildUnnamed1129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1103(core.List<core.String> o) { +checkUnnamed1129(core.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() { +buildUnnamed1130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1104(core.List<core.String> o) { +checkUnnamed1130(core.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 = buildUnnamed1103(); - o.local = buildUnnamed1104(); + o.effective = buildUnnamed1129(); + o.local = buildUnnamed1130(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1023,8 +1023,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed1103(o.effective); - checkUnnamed1104(o.local); + checkUnnamed1129(o.effective); + checkUnnamed1130(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1058,14 +1058,14 @@ buildCounterEntityUserLink--; } -buildUnnamed1105() { +buildUnnamed1131() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed1105(core.List<api.EntityUserLink> o) { +checkUnnamed1131(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 = buildUnnamed1105(); + o.items = buildUnnamed1131(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1091,7 +1091,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed1105(o.items); + checkUnnamed1131(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--; } -buildUnnamed1106() { +buildUnnamed1132() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed1106(core.List<api.ExperimentVariations> o) { +checkUnnamed1132(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 = buildUnnamed1106(); + o.variations = buildUnnamed1132(); 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"))); - checkUnnamed1106(o.variations); + checkUnnamed1132(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--; } -buildUnnamed1107() { +buildUnnamed1133() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed1107(core.List<api.Experiment> o) { +checkUnnamed1133(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 = buildUnnamed1107(); + o.items = buildUnnamed1133(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1270,7 +1270,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed1107(o.items); + checkUnnamed1133(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--; } -buildUnnamed1108() { +buildUnnamed1134() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1108(core.List<api.Filter> o) { +checkUnnamed1134(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 = buildUnnamed1108(); + o.items = buildUnnamed1134(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1552,7 +1552,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed1108(o.items); + checkUnnamed1134(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--; } -buildUnnamed1109() { +buildUnnamed1135() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed1109(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed1135(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1623,14 +1623,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed1110() { +buildUnnamed1136() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed1110(core.List<api.GaDataDataTableCols> o) { +checkUnnamed1136(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1655,14 +1655,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed1111() { +buildUnnamed1137() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed1111(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed1137(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 = buildUnnamed1111(); + o.c = buildUnnamed1137(); } buildCounterGaDataDataTableRows--; return o; @@ -1682,19 +1682,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed1111(o.c); + checkUnnamed1137(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed1112() { +buildUnnamed1138() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed1112(core.List<api.GaDataDataTableRows> o) { +checkUnnamed1138(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 = buildUnnamed1110(); - o.rows = buildUnnamed1112(); + o.cols = buildUnnamed1136(); + o.rows = buildUnnamed1138(); } buildCounterGaDataDataTable--; return o; @@ -1715,8 +1715,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed1110(o.cols); - checkUnnamed1112(o.rows); + checkUnnamed1136(o.cols); + checkUnnamed1138(o.rows); } buildCounterGaDataDataTable--; } @@ -1750,27 +1750,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed1113() { +buildUnnamed1139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1113(core.List<core.String> o) { +checkUnnamed1139(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1114() { +buildUnnamed1140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1114(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')); @@ -1786,10 +1786,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1113(); + o.metrics = buildUnnamed1139(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1114(); + o.sort = buildUnnamed1140(); 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)); - checkUnnamed1113(o.metrics); + checkUnnamed1139(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1114(o.sort); + checkUnnamed1140(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed1115() { +buildUnnamed1141() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1115(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')); } -buildUnnamed1116() { +buildUnnamed1142() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1115()); - o.add(buildUnnamed1115()); + o.add(buildUnnamed1141()); + o.add(buildUnnamed1141()); return o; } -checkUnnamed1116(core.List<core.List<core.String>> o) { +checkUnnamed1142(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1115(o[0]); - checkUnnamed1115(o[1]); + checkUnnamed1141(o[0]); + checkUnnamed1141(o[1]); } -buildUnnamed1117() { +buildUnnamed1143() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1117(core.Map<core.String, core.String> o) { +checkUnnamed1143(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,8 +1859,9 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed1109(); + o.columnHeaders = buildUnnamed1135(); o.containsSampledData = true; + o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); o.id = "foo"; o.itemsPerPage = 42; @@ -1869,12 +1870,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed1116(); + o.rows = buildUnnamed1142(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1117(); + o.totalsForAllResults = buildUnnamed1143(); } buildCounterGaData--; return o; @@ -1883,8 +1884,9 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed1109(o.columnHeaders); + checkUnnamed1135(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); + unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -1893,12 +1895,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed1116(o.rows); + checkUnnamed1142(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)); - checkUnnamed1117(o.totalsForAllResults); + checkUnnamed1143(o.totalsForAllResults); } buildCounterGaData--; } @@ -1930,14 +1932,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed1118() { +buildUnnamed1144() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed1118(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed1144(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -1948,7 +1950,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed1118(); + o.eventConditions = buildUnnamed1144(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -1958,7 +1960,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed1118(o.eventConditions); + checkUnnamed1144(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2008,14 +2010,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed1119() { +buildUnnamed1145() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed1119(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed1145(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2029,7 +2031,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed1119(); + o.steps = buildUnnamed1145(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2042,7 +2044,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed1119(o.steps); + checkUnnamed1145(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2143,14 +2145,14 @@ buildCounterGoal--; } -buildUnnamed1120() { +buildUnnamed1146() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed1120(core.List<api.Goal> o) { +checkUnnamed1146(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2161,7 +2163,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed1120(); + o.items = buildUnnamed1146(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2177,7 +2179,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed1120(o.items); + checkUnnamed1146(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2276,14 +2278,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed1121() { +buildUnnamed1147() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed1121(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed1147(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2318,27 +2320,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed1122() { +buildUnnamed1148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1122(core.List<core.String> o) { +checkUnnamed1148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1123() { +buildUnnamed1149() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1123(core.List<core.String> o) { +checkUnnamed1149(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2354,10 +2356,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1122(); + o.metrics = buildUnnamed1148(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1123(); + o.sort = buildUnnamed1149(); o.start_date = "foo"; o.start_index = 42; } @@ -2373,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)); - checkUnnamed1122(o.metrics); + checkUnnamed1148(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1123(o.sort); + checkUnnamed1149(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2404,14 +2406,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed1124() { +buildUnnamed1150() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed1124(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed1150(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2422,7 +2424,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed1124(); + o.conversionPathValue = buildUnnamed1150(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2432,46 +2434,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed1124(o.conversionPathValue); + checkUnnamed1150(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed1125() { +buildUnnamed1151() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed1125(core.List<api.McfDataRows> o) { +checkUnnamed1151(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed1126() { +buildUnnamed1152() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed1125()); - o.add(buildUnnamed1125()); + o.add(buildUnnamed1151()); + o.add(buildUnnamed1151()); return o; } -checkUnnamed1126(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed1152(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1125(o[0]); - checkUnnamed1125(o[1]); + checkUnnamed1151(o[0]); + checkUnnamed1151(o[1]); } -buildUnnamed1127() { +buildUnnamed1153() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1127(core.Map<core.String, core.String> o) { +checkUnnamed1153(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')); @@ -2482,7 +2484,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed1121(); + o.columnHeaders = buildUnnamed1147(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2491,12 +2493,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed1126(); + o.rows = buildUnnamed1152(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1127(); + o.totalsForAllResults = buildUnnamed1153(); } buildCounterMcfData--; return o; @@ -2505,7 +2507,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed1121(o.columnHeaders); + checkUnnamed1147(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2514,12 +2516,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed1126(o.rows); + checkUnnamed1152(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)); - checkUnnamed1127(o.totalsForAllResults); + checkUnnamed1153(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2566,14 +2568,14 @@ buildCounterProfileParentLink--; } -buildUnnamed1128() { +buildUnnamed1154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1128(core.List<core.String> o) { +checkUnnamed1154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2584,7 +2586,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed1128(); + o.effective = buildUnnamed1154(); } buildCounterProfilePermissions--; return o; @@ -2593,7 +2595,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed1128(o.effective); + checkUnnamed1154(o.effective); } buildCounterProfilePermissions--; } @@ -2696,14 +2698,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed1129() { +buildUnnamed1155() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed1129(core.List<api.ProfileFilterLink> o) { +checkUnnamed1155(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2714,7 +2716,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed1129(); + o.items = buildUnnamed1155(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2730,7 +2732,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed1129(o.items); + checkUnnamed1155(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2800,14 +2802,14 @@ buildCounterProfileSummary--; } -buildUnnamed1130() { +buildUnnamed1156() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed1130(core.List<api.Profile> o) { +checkUnnamed1156(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2818,7 +2820,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed1130(); + o.items = buildUnnamed1156(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2834,7 +2836,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed1130(o.items); + checkUnnamed1156(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2869,14 +2871,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed1131() { +buildUnnamed1157() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed1131(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed1157(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -2911,27 +2913,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed1132() { +buildUnnamed1158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1132(core.List<core.String> o) { +checkUnnamed1158(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1133() { +buildUnnamed1159() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1133(core.List<core.String> o) { +checkUnnamed1159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2946,8 +2948,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1132(); - o.sort = buildUnnamed1133(); + o.metrics = buildUnnamed1158(); + o.sort = buildUnnamed1159(); } buildCounterRealtimeDataQuery--; return o; @@ -2960,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)); - checkUnnamed1132(o.metrics); - checkUnnamed1133(o.sort); + checkUnnamed1158(o.metrics); + checkUnnamed1159(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed1134() { +buildUnnamed1160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1134(core.List<core.String> o) { +checkUnnamed1160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1135() { +buildUnnamed1161() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1134()); - o.add(buildUnnamed1134()); + o.add(buildUnnamed1160()); + o.add(buildUnnamed1160()); return o; } -checkUnnamed1135(core.List<core.List<core.String>> o) { +checkUnnamed1161(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1134(o[0]); - checkUnnamed1134(o[1]); + checkUnnamed1160(o[0]); + checkUnnamed1160(o[1]); } -buildUnnamed1136() { +buildUnnamed1162() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1136(core.Map<core.String, core.String> o) { +checkUnnamed1162(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')); @@ -3010,15 +3012,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed1131(); + o.columnHeaders = buildUnnamed1157(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed1135(); + o.rows = buildUnnamed1161(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1136(); + o.totalsForAllResults = buildUnnamed1162(); } buildCounterRealtimeData--; return o; @@ -3027,15 +3029,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed1131(o.columnHeaders); + checkUnnamed1157(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed1135(o.rows); + checkUnnamed1161(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1136(o.totalsForAllResults); + checkUnnamed1162(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3059,27 +3061,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed1137() { +buildUnnamed1163() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed1137(core.List<api.LinkedForeignAccount> o) { +checkUnnamed1163(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed1138() { +buildUnnamed1164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1138(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')); @@ -3140,8 +3142,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed1137(); - o.linkedViews = buildUnnamed1138(); + o.linkedAdAccounts = buildUnnamed1163(); + o.linkedViews = buildUnnamed1164(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -3162,8 +3164,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1137(o.linkedAdAccounts); - checkUnnamed1138(o.linkedViews); + checkUnnamed1163(o.linkedAdAccounts); + checkUnnamed1164(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"))); @@ -3172,14 +3174,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed1139() { +buildUnnamed1165() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed1139(core.List<api.RemarketingAudience> o) { +checkUnnamed1165(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3190,7 +3192,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed1139(); + o.items = buildUnnamed1165(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3206,7 +3208,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed1139(o.items); + checkUnnamed1165(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3253,14 +3255,14 @@ buildCounterSegment--; } -buildUnnamed1140() { +buildUnnamed1166() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1140(core.List<api.Segment> o) { +checkUnnamed1166(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3271,7 +3273,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed1140(); + o.items = buildUnnamed1166(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3287,7 +3289,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed1140(o.items); + checkUnnamed1166(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3394,14 +3396,14 @@ buildCounterUnsampledReport--; } -buildUnnamed1141() { +buildUnnamed1167() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed1141(core.List<api.UnsampledReport> o) { +checkUnnamed1167(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3412,7 +3414,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed1141(); + o.items = buildUnnamed1167(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3428,7 +3430,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed1141(o.items); + checkUnnamed1167(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3440,14 +3442,14 @@ buildCounterUnsampledReports--; } -buildUnnamed1142() { +buildUnnamed1168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1142(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')); @@ -3460,7 +3462,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed1142(); + o.errors = buildUnnamed1168(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3474,7 +3476,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed1142(o.errors); + checkUnnamed1168(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3482,14 +3484,14 @@ buildCounterUpload--; } -buildUnnamed1143() { +buildUnnamed1169() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed1143(core.List<api.Upload> o) { +checkUnnamed1169(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3500,7 +3502,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed1143(); + o.items = buildUnnamed1169(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3515,7 +3517,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed1143(o.items); + checkUnnamed1169(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3578,14 +3580,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed1144() { +buildUnnamed1170() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed1144(core.List<api.ProfileSummary> o) { +checkUnnamed1170(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3601,7 +3603,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed1144(); + o.profiles = buildUnnamed1170(); o.starred = true; o.websiteUrl = "foo"; } @@ -3617,21 +3619,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1144(o.profiles); + checkUnnamed1170(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed1145() { +buildUnnamed1171() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed1145(core.List<api.Webproperty> o) { +checkUnnamed1171(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3642,7 +3644,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed1145(); + o.items = buildUnnamed1171(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3658,7 +3660,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed1145(o.items); + checkUnnamed1171(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3712,14 +3714,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed1146() { +buildUnnamed1172() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1146(core.List<core.String> o) { +checkUnnamed1172(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3730,7 +3732,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed1146(); + o.effective = buildUnnamed1172(); } buildCounterWebpropertyPermissions--; return o; @@ -3739,7 +3741,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed1146(o.effective); + checkUnnamed1172(o.effective); } buildCounterWebpropertyPermissions--; }
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index 77b2dfd..aa7f8ed 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -70,14 +70,71 @@ buildCounterAdministrator--; } -buildUnnamed2372() { +core.int buildCounterAdministratorWebToken = 0; +buildAdministratorWebToken() { + var o = new api.AdministratorWebToken(); + buildCounterAdministratorWebToken++; + if (buildCounterAdministratorWebToken < 3) { + o.kind = "foo"; + o.token = "foo"; + } + buildCounterAdministratorWebToken--; + return o; +} + +checkAdministratorWebToken(api.AdministratorWebToken o) { + buildCounterAdministratorWebToken++; + if (buildCounterAdministratorWebToken < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.token, unittest.equals('foo')); + } + buildCounterAdministratorWebToken--; +} + +buildUnnamed2134() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2134(core.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 buildCounterAdministratorWebTokenSpec = 0; +buildAdministratorWebTokenSpec() { + var o = new api.AdministratorWebTokenSpec(); + buildCounterAdministratorWebTokenSpec++; + if (buildCounterAdministratorWebTokenSpec < 3) { + o.kind = "foo"; + o.parent = "foo"; + o.permission = buildUnnamed2134(); + } + buildCounterAdministratorWebTokenSpec--; + return o; +} + +checkAdministratorWebTokenSpec(api.AdministratorWebTokenSpec o) { + buildCounterAdministratorWebTokenSpec++; + if (buildCounterAdministratorWebTokenSpec < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.parent, unittest.equals('foo')); + checkUnnamed2134(o.permission); + } + buildCounterAdministratorWebTokenSpec--; +} + +buildUnnamed2135() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2372(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2135(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -89,7 +146,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed2372(); + o.restrictions = buildUnnamed2135(); } buildCounterAppRestrictionsSchema--; return o; @@ -99,7 +156,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2372(o.restrictions); + checkUnnamed2135(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -123,40 +180,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed2373() { +buildUnnamed2136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2373(core.List<core.String> o) { +checkUnnamed2136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2374() { +buildUnnamed2137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2374(core.List<core.String> o) { +checkUnnamed2137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2375() { +buildUnnamed2138() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2375(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2138(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -169,10 +226,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed2373(); - o.entryValue = buildUnnamed2374(); + o.entry = buildUnnamed2136(); + o.entryValue = buildUnnamed2137(); o.key = "foo"; - o.nestedRestriction = buildUnnamed2375(); + o.nestedRestriction = buildUnnamed2138(); o.restrictionType = "foo"; o.title = "foo"; } @@ -185,24 +242,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2373(o.entry); - checkUnnamed2374(o.entryValue); + checkUnnamed2136(o.entry); + checkUnnamed2137(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2375(o.nestedRestriction); + checkUnnamed2138(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed2376() { +buildUnnamed2139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2376(core.List<core.String> o) { +checkUnnamed2139(core.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 +273,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed2376(); + o.valueMultiselect = buildUnnamed2139(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -229,7 +286,7 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed2376(o.valueMultiselect); + checkUnnamed2139(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -317,14 +374,14 @@ buildCounterAuthenticationToken--; } -buildUnnamed2377() { +buildUnnamed2140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2377(core.List<core.String> o) { +checkUnnamed2140(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -338,7 +395,7 @@ o.collectionId = "foo"; o.kind = "foo"; o.name = "foo"; - o.productId = buildUnnamed2377(); + o.productId = buildUnnamed2140(); o.visibility = "foo"; } buildCounterCollection--; @@ -351,20 +408,20 @@ unittest.expect(o.collectionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2377(o.productId); + checkUnnamed2140(o.productId); unittest.expect(o.visibility, unittest.equals('foo')); } buildCounterCollection--; } -buildUnnamed2378() { +buildUnnamed2141() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2378(core.List<api.User> o) { +checkUnnamed2141(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -376,7 +433,7 @@ buildCounterCollectionViewersListResponse++; if (buildCounterCollectionViewersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2378(); + o.user = buildUnnamed2141(); } buildCounterCollectionViewersListResponse--; return o; @@ -386,19 +443,19 @@ buildCounterCollectionViewersListResponse++; if (buildCounterCollectionViewersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2378(o.user); + checkUnnamed2141(o.user); } buildCounterCollectionViewersListResponse--; } -buildUnnamed2379() { +buildUnnamed2142() { var o = new core.List<api.Collection>(); o.add(buildCollection()); o.add(buildCollection()); return o; } -checkUnnamed2379(core.List<api.Collection> o) { +checkUnnamed2142(core.List<api.Collection> o) { unittest.expect(o, unittest.hasLength(2)); checkCollection(o[0]); checkCollection(o[1]); @@ -409,7 +466,7 @@ var o = new api.CollectionsListResponse(); buildCounterCollectionsListResponse++; if (buildCounterCollectionsListResponse < 3) { - o.collection = buildUnnamed2379(); + o.collection = buildUnnamed2142(); o.kind = "foo"; } buildCounterCollectionsListResponse--; @@ -419,7 +476,7 @@ checkCollectionsListResponse(api.CollectionsListResponse o) { buildCounterCollectionsListResponse++; if (buildCounterCollectionsListResponse < 3) { - checkUnnamed2379(o.collection); + checkUnnamed2142(o.collection); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCollectionsListResponse--; @@ -469,14 +526,14 @@ buildCounterDeviceState--; } -buildUnnamed2380() { +buildUnnamed2143() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2380(core.List<api.Device> o) { +checkUnnamed2143(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -487,7 +544,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed2380(); + o.device = buildUnnamed2143(); o.kind = "foo"; } buildCounterDevicesListResponse--; @@ -497,20 +554,20 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed2380(o.device); + checkUnnamed2143(o.device); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDevicesListResponse--; } -buildUnnamed2381() { +buildUnnamed2144() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed2381(core.List<api.Administrator> o) { +checkUnnamed2144(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -521,7 +578,7 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed2381(); + o.administrator = buildUnnamed2144(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -534,7 +591,7 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed2381(o.administrator); + checkUnnamed2144(o.administrator); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -564,14 +621,14 @@ buildCounterEnterpriseAccount--; } -buildUnnamed2382() { +buildUnnamed2145() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed2382(core.List<api.Enterprise> o) { +checkUnnamed2145(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -582,7 +639,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed2382(); + o.enterprise = buildUnnamed2145(); o.kind = "foo"; } buildCounterEnterprisesListResponse--; @@ -592,7 +649,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed2382(o.enterprise); + checkUnnamed2145(o.enterprise); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterprisesListResponse--; @@ -642,14 +699,14 @@ buildCounterEntitlement--; } -buildUnnamed2383() { +buildUnnamed2146() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2383(core.List<api.Entitlement> o) { +checkUnnamed2146(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -660,7 +717,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed2383(); + o.entitlement = buildUnnamed2146(); o.kind = "foo"; } buildCounterEntitlementsListResponse--; @@ -670,7 +727,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed2383(o.entitlement); + checkUnnamed2146(o.entitlement); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEntitlementsListResponse--; @@ -705,14 +762,14 @@ buildCounterGroupLicense--; } -buildUnnamed2384() { +buildUnnamed2147() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2384(core.List<api.User> o) { +checkUnnamed2147(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -724,7 +781,7 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2384(); + o.user = buildUnnamed2147(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -734,19 +791,19 @@ buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2384(o.user); + checkUnnamed2147(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed2385() { +buildUnnamed2148() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed2385(core.List<api.GroupLicense> o) { +checkUnnamed2148(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -757,7 +814,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed2385(); + o.groupLicense = buildUnnamed2148(); o.kind = "foo"; } buildCounterGroupLicensesListResponse--; @@ -767,7 +824,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed2385(o.groupLicense); + checkUnnamed2148(o.groupLicense); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupLicensesListResponse--; @@ -825,14 +882,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed2386() { +buildUnnamed2149() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed2386(core.List<api.Install> o) { +checkUnnamed2149(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -843,7 +900,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed2386(); + o.install = buildUnnamed2149(); o.kind = "foo"; } buildCounterInstallsListResponse--; @@ -853,7 +910,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed2386(o.install); + checkUnnamed2149(o.install); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInstallsListResponse--; @@ -880,14 +937,14 @@ buildCounterLocalizedText--; } -buildUnnamed2387() { +buildUnnamed2150() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2387(core.List<api.ManagedProperty> o) { +checkUnnamed2150(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -899,7 +956,7 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { o.kind = "foo"; - o.managedProperty = buildUnnamed2387(); + o.managedProperty = buildUnnamed2150(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -910,20 +967,20 @@ buildCounterManagedConfiguration++; if (buildCounterManagedConfiguration < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2387(o.managedProperty); + checkUnnamed2150(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed2388() { +buildUnnamed2151() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2388(core.List<api.ManagedConfiguration> o) { +checkUnnamed2151(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -935,7 +992,7 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed2388(); + o.managedConfigurationForDevice = buildUnnamed2151(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -945,19 +1002,19 @@ buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2388(o.managedConfigurationForDevice); + checkUnnamed2151(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed2389() { +buildUnnamed2152() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2389(core.List<api.ManagedConfiguration> o) { +checkUnnamed2152(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -969,7 +1026,7 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed2389(); + o.managedConfigurationForUser = buildUnnamed2152(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -979,32 +1036,32 @@ buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2389(o.managedConfigurationForUser); + checkUnnamed2152(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } -buildUnnamed2390() { +buildUnnamed2153() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed2390(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed2153(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed2391() { +buildUnnamed2154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2391(core.List<core.String> o) { +checkUnnamed2154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1018,10 +1075,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed2390(); + o.valueBundleArray = buildUnnamed2153(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed2391(); + o.valueStringArray = buildUnnamed2154(); } buildCounterManagedProperty--; return o; @@ -1033,22 +1090,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed2390(o.valueBundleArray); + checkUnnamed2153(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed2391(o.valueStringArray); + checkUnnamed2154(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed2392() { +buildUnnamed2155() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2392(core.List<api.ManagedProperty> o) { +checkUnnamed2155(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1059,7 +1116,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed2392(); + o.managedProperty = buildUnnamed2155(); } buildCounterManagedPropertyBundle--; return o; @@ -1068,32 +1125,32 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed2392(o.managedProperty); + checkUnnamed2155(o.managedProperty); } buildCounterManagedPropertyBundle--; } -buildUnnamed2393() { +buildUnnamed2156() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2393(core.List<core.String> o) { +checkUnnamed2156(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2394() { +buildUnnamed2157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2394(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')); @@ -1104,9 +1161,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed2393(); + o.approvedPermissions = buildUnnamed2156(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed2394(); + o.requestedPermissions = buildUnnamed2157(); } buildCounterNewPermissionsEvent--; return o; @@ -1115,9 +1172,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed2393(o.approvedPermissions); + checkUnnamed2156(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2394(o.requestedPermissions); + checkUnnamed2157(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1155,14 +1212,14 @@ buildCounterNotification--; } -buildUnnamed2395() { +buildUnnamed2158() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2395(core.List<api.Notification> o) { +checkUnnamed2158(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1174,7 +1231,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { o.kind = "foo"; - o.notification = buildUnnamed2395(); + o.notification = buildUnnamed2158(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1185,7 +1242,7 @@ buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2395(o.notification); + checkUnnamed2158(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1239,14 +1296,14 @@ buildCounterPermission--; } -buildUnnamed2396() { +buildUnnamed2159() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed2396(core.List<api.AppVersion> o) { +checkUnnamed2159(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); @@ -1257,7 +1314,7 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appVersion = buildUnnamed2396(); + o.appVersion = buildUnnamed2159(); o.authorName = "foo"; o.detailsUrl = "foo"; o.distributionChannel = "foo"; @@ -1277,7 +1334,7 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed2396(o.appVersion); + checkUnnamed2159(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); unittest.expect(o.detailsUrl, unittest.equals('foo')); unittest.expect(o.distributionChannel, unittest.equals('foo')); @@ -1356,14 +1413,14 @@ buildCounterProductPermission--; } -buildUnnamed2397() { +buildUnnamed2160() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2397(core.List<api.ProductPermission> o) { +checkUnnamed2160(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1375,7 +1432,7 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { o.kind = "foo"; - o.permission = buildUnnamed2397(); + o.permission = buildUnnamed2160(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1386,20 +1443,20 @@ buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2397(o.permission); + checkUnnamed2160(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed2398() { +buildUnnamed2161() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2398(core.List<core.String> o) { +checkUnnamed2161(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1411,7 +1468,8 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { o.kind = "foo"; - o.productId = buildUnnamed2398(); + o.productId = buildUnnamed2161(); + o.productSetBehavior = "foo"; } buildCounterProductSet--; return o; @@ -1421,7 +1479,8 @@ buildCounterProductSet++; if (buildCounterProductSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2398(o.productId); + checkUnnamed2161(o.productId); + unittest.expect(o.productSetBehavior, unittest.equals('foo')); } buildCounterProductSet--; } @@ -1464,14 +1523,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed2399() { +buildUnnamed2162() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2399(core.List<api.Product> o) { +checkUnnamed2162(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1484,7 +1543,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed2399(); + o.product = buildUnnamed2162(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -1496,7 +1555,7 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed2399(o.product); + checkUnnamed2162(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -1550,14 +1609,14 @@ buildCounterServiceAccountKey--; } -buildUnnamed2400() { +buildUnnamed2163() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed2400(core.List<api.ServiceAccountKey> o) { +checkUnnamed2163(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -1568,7 +1627,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed2400(); + o.serviceAccountKey = buildUnnamed2163(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -1577,7 +1636,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed2400(o.serviceAccountKey); + checkUnnamed2163(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -1605,27 +1664,27 @@ buildCounterSignupInfo--; } -buildUnnamed2401() { +buildUnnamed2164() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2401(core.List<api.LocalizedText> o) { +checkUnnamed2164(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed2402() { +buildUnnamed2165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2402(core.List<core.String> o) { +checkUnnamed2165(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1638,9 +1697,9 @@ if (buildCounterStoreCluster < 3) { o.id = "foo"; o.kind = "foo"; - o.name = buildUnnamed2401(); + o.name = buildUnnamed2164(); o.orderInPage = "foo"; - o.productId = buildUnnamed2402(); + o.productId = buildUnnamed2165(); } buildCounterStoreCluster--; return o; @@ -1651,9 +1710,9 @@ if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2401(o.name); + checkUnnamed2164(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed2402(o.productId); + checkUnnamed2165(o.productId); } buildCounterStoreCluster--; } @@ -1665,6 +1724,7 @@ if (buildCounterStoreLayout < 3) { o.homepageId = "foo"; o.kind = "foo"; + o.storeLayoutType = "foo"; } buildCounterStoreLayout--; return o; @@ -1675,18 +1735,19 @@ if (buildCounterStoreLayout < 3) { unittest.expect(o.homepageId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.storeLayoutType, unittest.equals('foo')); } buildCounterStoreLayout--; } -buildUnnamed2403() { +buildUnnamed2166() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed2403(core.List<api.StoreCluster> o) { +checkUnnamed2166(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -1697,7 +1758,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed2403(); + o.cluster = buildUnnamed2166(); o.kind = "foo"; } buildCounterStoreLayoutClustersListResponse--; @@ -1707,20 +1768,20 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed2403(o.cluster); + checkUnnamed2166(o.cluster); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed2404() { +buildUnnamed2167() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed2404(core.List<api.StorePage> o) { +checkUnnamed2167(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -1732,7 +1793,7 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { o.kind = "foo"; - o.page = buildUnnamed2404(); + o.page = buildUnnamed2167(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -1742,32 +1803,32 @@ buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2404(o.page); + checkUnnamed2167(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed2405() { +buildUnnamed2168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2405(core.List<core.String> o) { +checkUnnamed2168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2406() { +buildUnnamed2169() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2406(core.List<api.LocalizedText> o) { +checkUnnamed2169(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -1780,8 +1841,8 @@ if (buildCounterStorePage < 3) { o.id = "foo"; o.kind = "foo"; - o.link = buildUnnamed2405(); - o.name = buildUnnamed2406(); + o.link = buildUnnamed2168(); + o.name = buildUnnamed2169(); } buildCounterStorePage--; return o; @@ -1792,8 +1853,8 @@ if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2405(o.link); - checkUnnamed2406(o.name); + checkUnnamed2168(o.link); + checkUnnamed2169(o.name); } buildCounterStorePage--; } @@ -1873,14 +1934,14 @@ buildCounterUserToken--; } -buildUnnamed2407() { +buildUnnamed2170() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2407(core.List<api.User> o) { +checkUnnamed2170(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1892,7 +1953,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { o.kind = "foo"; - o.user = buildUnnamed2407(); + o.user = buildUnnamed2170(); } buildCounterUsersListResponse--; return o; @@ -1902,7 +1963,7 @@ buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2407(o.user); + checkUnnamed2170(o.user); } buildCounterUsersListResponse--; } @@ -1918,6 +1979,24 @@ }); + unittest.group("obj-schema-AdministratorWebToken", () { + unittest.test("to-json--from-json", () { + var o = buildAdministratorWebToken(); + var od = new api.AdministratorWebToken.fromJson(o.toJson()); + checkAdministratorWebToken(od); + }); + }); + + + unittest.group("obj-schema-AdministratorWebTokenSpec", () { + unittest.test("to-json--from-json", () { + var o = buildAdministratorWebTokenSpec(); + var od = new api.AdministratorWebTokenSpec.fromJson(o.toJson()); + checkAdministratorWebTokenSpec(od); + }); + }); + + unittest.group("obj-schema-AppRestrictionsSchema", () { unittest.test("to-json--from-json", () { var o = buildAppRestrictionsSchema(); @@ -3495,6 +3574,63 @@ }))); }); + unittest.test("method--createWebToken", () { + + var mock = new HttpServerMock(); + api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; + var arg_request = buildAdministratorWebTokenSpec(); + var arg_enterpriseId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.AdministratorWebTokenSpec.fromJson(json); + checkAdministratorWebTokenSpec(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 + 21), unittest.equals("androidenterprise/v1/")); + pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("enterprises/")); + pathOffset += 12; + index = path.indexOf("/createWebToken", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/createWebToken")); + 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(buildAdministratorWebToken()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.createWebToken(arg_request, arg_enterpriseId).then(unittest.expectAsync(((api.AdministratorWebToken response) { + checkAdministratorWebToken(response); + }))); + }); + unittest.test("method--delete", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart index 26450be..a5bfbde 100644 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ b/generated/googleapis/test/androidpublisher/v2_test.dart
@@ -112,14 +112,14 @@ buildCounterApkListing--; } -buildUnnamed2929() { +buildUnnamed3003() { var o = new core.List<api.ApkListing>(); o.add(buildApkListing()); o.add(buildApkListing()); return o; } -checkUnnamed2929(core.List<api.ApkListing> o) { +checkUnnamed3003(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 = buildUnnamed2929(); + o.listings = buildUnnamed3003(); } buildCounterApkListingsListResponse--; return o; @@ -141,7 +141,7 @@ buildCounterApkListingsListResponse++; if (buildCounterApkListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2929(o.listings); + checkUnnamed3003(o.listings); } buildCounterApkListingsListResponse--; } @@ -184,14 +184,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed2930() { +buildUnnamed3004() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed2930(core.List<api.Apk> o) { +checkUnnamed3004(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 = buildUnnamed2930(); + o.apks = buildUnnamed3004(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -212,7 +212,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed2930(o.apks); + checkUnnamed3004(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -285,6 +285,44 @@ buildCounterComment--; } +core.int buildCounterDeobfuscationFile = 0; +buildDeobfuscationFile() { + var o = new api.DeobfuscationFile(); + buildCounterDeobfuscationFile++; + if (buildCounterDeobfuscationFile < 3) { + o.symbolType = "foo"; + } + buildCounterDeobfuscationFile--; + return o; +} + +checkDeobfuscationFile(api.DeobfuscationFile o) { + buildCounterDeobfuscationFile++; + if (buildCounterDeobfuscationFile < 3) { + unittest.expect(o.symbolType, unittest.equals('foo')); + } + buildCounterDeobfuscationFile--; +} + +core.int buildCounterDeobfuscationFilesUploadResponse = 0; +buildDeobfuscationFilesUploadResponse() { + var o = new api.DeobfuscationFilesUploadResponse(); + buildCounterDeobfuscationFilesUploadResponse++; + if (buildCounterDeobfuscationFilesUploadResponse < 3) { + o.deobfuscationFile = buildDeobfuscationFile(); + } + buildCounterDeobfuscationFilesUploadResponse--; + return o; +} + +checkDeobfuscationFilesUploadResponse(api.DeobfuscationFilesUploadResponse o) { + buildCounterDeobfuscationFilesUploadResponse++; + if (buildCounterDeobfuscationFilesUploadResponse < 3) { + checkDeobfuscationFile(o.deobfuscationFile); + } + buildCounterDeobfuscationFilesUploadResponse--; +} + core.int buildCounterDeveloperComment = 0; buildDeveloperComment() { var o = new api.DeveloperComment(); @@ -331,14 +369,14 @@ buildCounterEntitlement--; } -buildUnnamed2931() { +buildUnnamed3005() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2931(core.List<api.Entitlement> o) { +checkUnnamed3005(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -350,7 +388,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.resources = buildUnnamed2931(); + o.resources = buildUnnamed3005(); o.tokenPagination = buildTokenPagination(); } buildCounterEntitlementsListResponse--; @@ -361,7 +399,7 @@ buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2931(o.resources); + checkUnnamed3005(o.resources); checkTokenPagination(o.tokenPagination); } buildCounterEntitlementsListResponse--; @@ -407,53 +445,53 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed2932() { +buildUnnamed3006() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2932(core.List<core.String> o) { +checkUnnamed3006(core.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() { +buildUnnamed3007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2933(core.List<core.String> o) { +checkUnnamed3007(core.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() { +buildUnnamed3008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2934(core.List<core.String> o) { +checkUnnamed3008(core.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() { +buildUnnamed3009() { var o = new core.List<api.ExternallyHostedApkUsesPermission>(); o.add(buildExternallyHostedApkUsesPermission()); o.add(buildExternallyHostedApkUsesPermission()); return o; } -checkUnnamed2935(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed3009(core.List<api.ExternallyHostedApkUsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkExternallyHostedApkUsesPermission(o[0]); checkExternallyHostedApkUsesPermission(o[1]); @@ -465,7 +503,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed2932(); + o.certificateBase64s = buildUnnamed3006(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -473,10 +511,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed2933(); + o.nativeCodes = buildUnnamed3007(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed2934(); - o.usesPermissions = buildUnnamed2935(); + o.usesFeatures = buildUnnamed3008(); + o.usesPermissions = buildUnnamed3009(); o.versionCode = 42; o.versionName = "foo"; } @@ -488,7 +526,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed2932(o.certificateBase64s); + checkUnnamed3006(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -496,10 +534,10 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed2933(o.nativeCodes); + checkUnnamed3007(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2934(o.usesFeatures); - checkUnnamed2935(o.usesPermissions); + checkUnnamed3008(o.usesFeatures); + checkUnnamed3009(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } @@ -550,14 +588,14 @@ buildCounterImage--; } -buildUnnamed2936() { +buildUnnamed3010() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2936(core.List<api.Image> o) { +checkUnnamed3010(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -568,7 +606,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed2936(); + o.deleted = buildUnnamed3010(); } buildCounterImagesDeleteAllResponse--; return o; @@ -577,19 +615,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed2936(o.deleted); + checkUnnamed3010(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed2937() { +buildUnnamed3011() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2937(core.List<api.Image> o) { +checkUnnamed3011(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -600,7 +638,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed2937(); + o.images = buildUnnamed3011(); } buildCounterImagesListResponse--; return o; @@ -609,7 +647,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed2937(o.images); + checkUnnamed3011(o.images); } buildCounterImagesListResponse--; } @@ -633,27 +671,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed2938() { +buildUnnamed3012() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed2938(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed3012(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed2939() { +buildUnnamed3013() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed2939(core.Map<core.String, api.Price> o) { +checkUnnamed3013(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -666,9 +704,9 @@ if (buildCounterInAppProduct < 3) { o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); - o.listings = buildUnnamed2938(); + o.listings = buildUnnamed3012(); o.packageName = "foo"; - o.prices = buildUnnamed2939(); + o.prices = buildUnnamed3013(); o.purchaseType = "foo"; o.season = buildSeason(); o.sku = "foo"; @@ -685,9 +723,9 @@ if (buildCounterInAppProduct < 3) { unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); - checkUnnamed2938(o.listings); + checkUnnamed3012(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed2939(o.prices); + checkUnnamed3013(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); checkSeason(o.season); unittest.expect(o.sku, unittest.equals('foo')); @@ -719,14 +757,14 @@ buildCounterInAppProductListing--; } -buildUnnamed2940() { +buildUnnamed3014() { var o = new core.List<api.InappproductsBatchRequestEntry>(); o.add(buildInappproductsBatchRequestEntry()); o.add(buildInappproductsBatchRequestEntry()); return o; } -checkUnnamed2940(core.List<api.InappproductsBatchRequestEntry> o) { +checkUnnamed3014(core.List<api.InappproductsBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchRequestEntry(o[0]); checkInappproductsBatchRequestEntry(o[1]); @@ -737,7 +775,7 @@ var o = new api.InappproductsBatchRequest(); buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - o.entrys = buildUnnamed2940(); + o.entrys = buildUnnamed3014(); } buildCounterInappproductsBatchRequest--; return o; @@ -746,7 +784,7 @@ checkInappproductsBatchRequest(api.InappproductsBatchRequest o) { buildCounterInappproductsBatchRequest++; if (buildCounterInappproductsBatchRequest < 3) { - checkUnnamed2940(o.entrys); + checkUnnamed3014(o.entrys); } buildCounterInappproductsBatchRequest--; } @@ -776,14 +814,14 @@ buildCounterInappproductsBatchRequestEntry--; } -buildUnnamed2941() { +buildUnnamed3015() { var o = new core.List<api.InappproductsBatchResponseEntry>(); o.add(buildInappproductsBatchResponseEntry()); o.add(buildInappproductsBatchResponseEntry()); return o; } -checkUnnamed2941(core.List<api.InappproductsBatchResponseEntry> o) { +checkUnnamed3015(core.List<api.InappproductsBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInappproductsBatchResponseEntry(o[0]); checkInappproductsBatchResponseEntry(o[1]); @@ -794,7 +832,7 @@ var o = new api.InappproductsBatchResponse(); buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - o.entrys = buildUnnamed2941(); + o.entrys = buildUnnamed3015(); o.kind = "foo"; } buildCounterInappproductsBatchResponse--; @@ -804,7 +842,7 @@ checkInappproductsBatchResponse(api.InappproductsBatchResponse o) { buildCounterInappproductsBatchResponse++; if (buildCounterInappproductsBatchResponse < 3) { - checkUnnamed2941(o.entrys); + checkUnnamed3015(o.entrys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInappproductsBatchResponse--; @@ -871,14 +909,14 @@ buildCounterInappproductsInsertResponse--; } -buildUnnamed2942() { +buildUnnamed3016() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed2942(core.List<api.InAppProduct> o) { +checkUnnamed3016(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -889,7 +927,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed2942(); + o.inappproduct = buildUnnamed3016(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -901,7 +939,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed2942(o.inappproduct); + checkUnnamed3016(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -974,14 +1012,14 @@ buildCounterListing--; } -buildUnnamed2943() { +buildUnnamed3017() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed2943(core.List<api.Listing> o) { +checkUnnamed3017(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -993,7 +1031,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed2943(); + o.listings = buildUnnamed3017(); } buildCounterListingsListResponse--; return o; @@ -1003,7 +1041,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2943(o.listings); + checkUnnamed3017(o.listings); } buildCounterListingsListResponse--; } @@ -1121,14 +1159,14 @@ buildCounterProrate--; } -buildUnnamed2944() { +buildUnnamed3018() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed2944(core.List<api.Comment> o) { +checkUnnamed3018(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1140,7 +1178,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed2944(); + o.comments = buildUnnamed3018(); o.reviewId = "foo"; } buildCounterReview--; @@ -1151,7 +1189,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed2944(o.comments); + checkUnnamed3018(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1178,14 +1216,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed2945() { +buildUnnamed3019() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed2945(core.List<api.Review> o) { +checkUnnamed3019(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1197,7 +1235,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed2945(); + o.reviews = buildUnnamed3019(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1208,7 +1246,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed2945(o.reviews); + checkUnnamed3019(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1252,14 +1290,14 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed2946() { +buildUnnamed3020() { var o = new core.List<api.Prorate>(); o.add(buildProrate()); o.add(buildProrate()); return o; } -checkUnnamed2946(core.List<api.Prorate> o) { +checkUnnamed3020(core.List<api.Prorate> o) { unittest.expect(o, unittest.hasLength(2)); checkProrate(o[0]); checkProrate(o[1]); @@ -1271,7 +1309,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { o.end = buildMonthDay(); - o.prorations = buildUnnamed2946(); + o.prorations = buildUnnamed3020(); o.start = buildMonthDay(); } buildCounterSeason--; @@ -1282,7 +1320,7 @@ buildCounterSeason++; if (buildCounterSeason < 3) { checkMonthDay(o.end); - checkUnnamed2946(o.prorations); + checkUnnamed3020(o.prorations); checkMonthDay(o.start); } buildCounterSeason--; @@ -1384,27 +1422,27 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -buildUnnamed2947() { +buildUnnamed3021() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2947(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')); } -buildUnnamed2948() { +buildUnnamed3022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2948(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')); @@ -1415,8 +1453,8 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.googleGroups = buildUnnamed2947(); - o.googlePlusCommunities = buildUnnamed2948(); + o.googleGroups = buildUnnamed3021(); + o.googlePlusCommunities = buildUnnamed3022(); } buildCounterTesters--; return o; @@ -1425,8 +1463,8 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed2947(o.googleGroups); - checkUnnamed2948(o.googlePlusCommunities); + checkUnnamed3021(o.googleGroups); + checkUnnamed3022(o.googlePlusCommunities); } buildCounterTesters--; } @@ -1473,14 +1511,14 @@ buildCounterTokenPagination--; } -buildUnnamed2949() { +buildUnnamed3023() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2949(core.List<core.int> o) { +checkUnnamed3023(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)); @@ -1493,7 +1531,7 @@ if (buildCounterTrack < 3) { o.track = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed2949(); + o.versionCodes = buildUnnamed3023(); } buildCounterTrack--; return o; @@ -1504,19 +1542,19 @@ if (buildCounterTrack < 3) { unittest.expect(o.track, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed2949(o.versionCodes); + checkUnnamed3023(o.versionCodes); } buildCounterTrack--; } -buildUnnamed2950() { +buildUnnamed3024() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed2950(core.List<api.Track> o) { +checkUnnamed3024(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -1528,7 +1566,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed2950(); + o.tracks = buildUnnamed3024(); } buildCounterTracksListResponse--; return o; @@ -1538,7 +1576,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2950(o.tracks); + checkUnnamed3024(o.tracks); } buildCounterTracksListResponse--; } @@ -1668,6 +1706,24 @@ }); + unittest.group("obj-schema-DeobfuscationFile", () { + unittest.test("to-json--from-json", () { + var o = buildDeobfuscationFile(); + var od = new api.DeobfuscationFile.fromJson(o.toJson()); + checkDeobfuscationFile(od); + }); + }); + + + unittest.group("obj-schema-DeobfuscationFilesUploadResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDeobfuscationFilesUploadResponse(); + var od = new api.DeobfuscationFilesUploadResponse.fromJson(o.toJson()); + checkDeobfuscationFilesUploadResponse(od); + }); + }); + + unittest.group("obj-schema-DeveloperComment", () { unittest.test("to-json--from-json", () { var o = buildDeveloperComment(); @@ -2708,6 +2764,57 @@ }); + unittest.group("resource-EditsDeobfuscationfilesResourceApi", () { + unittest.test("method--upload", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.EditsDeobfuscationfilesResourceApi res = new api.AndroidpublisherApi(mock).edits.deobfuscationfiles; + var arg_packageName = "foo"; + var arg_editId = "foo"; + var arg_apkVersionCode = 42; + var arg_deobfuscationFileType = "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(buildDeobfuscationFilesUploadResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.upload(arg_packageName, arg_editId, arg_apkVersionCode, arg_deobfuscationFileType).then(unittest.expectAsync(((api.DeobfuscationFilesUploadResponse response) { + checkDeobfuscationFilesUploadResponse(response); + }))); + }); + + }); + + unittest.group("resource-EditsDetailsResourceApi", () { unittest.test("method--get", () {
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index a81b012..32cb262 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3347() { +buildUnnamed3160() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3347(core.List<api.UrlDispatchRule> o) { +checkUnnamed3160(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 = buildUnnamed3347(); + o.dispatchRules = buildUnnamed3160(); 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')); - checkUnnamed3347(o.dispatchRules); + checkUnnamed3160(o.dispatchRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.locationId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -252,6 +252,7 @@ var o = new api.DebugInstanceRequest(); buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + o.sshKey = "foo"; } buildCounterDebugInstanceRequest--; return o; @@ -260,18 +261,19 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) { buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + unittest.expect(o.sshKey, unittest.equals('foo')); } buildCounterDebugInstanceRequest--; } -buildUnnamed3348() { +buildUnnamed3161() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3348(core.Map<core.String, api.FileInfo> o) { +checkUnnamed3161(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -283,7 +285,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed3348(); + o.files = buildUnnamed3161(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -294,7 +296,7 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed3348(o.files); + checkUnnamed3161(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -419,6 +421,7 @@ o.startTime = "foo"; o.vmDebugEnabled = true; o.vmId = "foo"; + o.vmIp = "foo"; o.vmName = "foo"; o.vmStatus = "foo"; o.vmZoneName = "foo"; @@ -442,6 +445,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.vmDebugEnabled, unittest.isTrue); unittest.expect(o.vmId, unittest.equals('foo')); + unittest.expect(o.vmIp, unittest.equals('foo')); unittest.expect(o.vmName, unittest.equals('foo')); unittest.expect(o.vmStatus, unittest.equals('foo')); unittest.expect(o.vmZoneName, unittest.equals('foo')); @@ -470,14 +474,14 @@ buildCounterLibrary--; } -buildUnnamed3349() { +buildUnnamed3162() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3349(core.List<api.Instance> o) { +checkUnnamed3162(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -488,7 +492,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3349(); + o.instances = buildUnnamed3162(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -498,20 +502,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3349(o.instances); + checkUnnamed3162(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3350() { +buildUnnamed3163() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3350(core.List<api.Location> o) { +checkUnnamed3163(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -522,7 +526,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3350(); + o.locations = buildUnnamed3163(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -532,20 +536,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3350(o.locations); + checkUnnamed3163(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3351() { +buildUnnamed3164() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3351(core.List<api.Operation> o) { +checkUnnamed3164(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -557,7 +561,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3351(); + o.operations = buildUnnamed3164(); } buildCounterListOperationsResponse--; return o; @@ -567,19 +571,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3351(o.operations); + checkUnnamed3164(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3352() { +buildUnnamed3165() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3352(core.List<api.Service> o) { +checkUnnamed3165(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -591,7 +595,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3352(); + o.services = buildUnnamed3165(); } buildCounterListServicesResponse--; return o; @@ -601,19 +605,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3352(o.services); + checkUnnamed3165(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3353() { +buildUnnamed3166() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3353(core.List<api.Version> o) { +checkUnnamed3166(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -625,7 +629,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3353(); + o.versions = buildUnnamed3166(); } buildCounterListVersionsResponse--; return o; @@ -635,32 +639,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3353(o.versions); + checkUnnamed3166(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed3354() { +buildUnnamed3167() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3354(core.Map<core.String, core.String> o) { +checkUnnamed3167(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')); } -buildUnnamed3355() { +buildUnnamed3168() { 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; } -checkUnnamed3355(core.Map<core.String, core.Object> o) { +checkUnnamed3168(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')); @@ -671,9 +675,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed3354(); + o.labels = buildUnnamed3167(); o.locationId = "foo"; - o.metadata = buildUnnamed3355(); + o.metadata = buildUnnamed3168(); o.name = "foo"; } buildCounterLocation--; @@ -683,9 +687,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed3354(o.labels); + checkUnnamed3167(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3355(o.metadata); + checkUnnamed3168(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -731,14 +735,14 @@ buildCounterManualScaling--; } -buildUnnamed3356() { +buildUnnamed3169() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3356(core.List<core.String> o) { +checkUnnamed3169(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -749,7 +753,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3356(); + o.forwardedPorts = buildUnnamed3169(); o.instanceTag = "foo"; o.name = "foo"; } @@ -760,7 +764,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3356(o.forwardedPorts); + checkUnnamed3169(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -792,27 +796,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed3357() { +buildUnnamed3170() { 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; } -checkUnnamed3357(core.Map<core.String, core.Object> o) { +checkUnnamed3170(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')); } -buildUnnamed3358() { +buildUnnamed3171() { 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; } -checkUnnamed3358(core.Map<core.String, core.Object> o) { +checkUnnamed3171(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')); @@ -825,9 +829,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3357(); + o.metadata = buildUnnamed3170(); o.name = "foo"; - o.response = buildUnnamed3358(); + o.response = buildUnnamed3171(); } buildCounterOperation--; return o; @@ -838,9 +842,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3357(o.metadata); + checkUnnamed3170(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3358(o.response); + checkUnnamed3171(o.response); } buildCounterOperation--; } @@ -874,6 +878,33 @@ buildCounterOperationMetadata--; } +core.int buildCounterOperationMetadataExperimental = 0; +buildOperationMetadataExperimental() { + var o = new api.OperationMetadataExperimental(); + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + o.endTime = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + } + buildCounterOperationMetadataExperimental--; + return o; +} + +checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + unittest.expect(o.endTime, 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')); + } + buildCounterOperationMetadataExperimental--; +} + core.int buildCounterOperationMetadataV1 = 0; buildOperationMetadataV1() { var o = new api.OperationMetadataV1(); @@ -1031,14 +1062,14 @@ buildCounterService--; } -buildUnnamed3359() { +buildUnnamed3172() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3359(core.Map<core.String, core.String> o) { +checkUnnamed3172(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')); @@ -1051,7 +1082,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3359(); + o.httpHeaders = buildUnnamed3172(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1066,7 +1097,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3359(o.httpHeaders); + checkUnnamed3172(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1075,30 +1106,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3360() { +buildUnnamed3173() { 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; } -checkUnnamed3360(core.Map<core.String, core.Object> o) { +checkUnnamed3173(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')); } -buildUnnamed3361() { +buildUnnamed3174() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3360()); - o.add(buildUnnamed3360()); + o.add(buildUnnamed3173()); + o.add(buildUnnamed3173()); return o; } -checkUnnamed3361(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3174(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3360(o[0]); - checkUnnamed3360(o[1]); + checkUnnamed3173(o[0]); + checkUnnamed3173(o[1]); } core.int buildCounterStatus = 0; @@ -1107,7 +1138,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3361(); + o.details = buildUnnamed3174(); o.message = "foo"; } buildCounterStatus--; @@ -1118,20 +1149,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3361(o.details); + checkUnnamed3174(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3362() { +buildUnnamed3175() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3362(core.Map<core.String, core.double> o) { +checkUnnamed3175(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)); @@ -1142,7 +1173,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3362(); + o.allocations = buildUnnamed3175(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1152,7 +1183,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3362(o.allocations); + checkUnnamed3175(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1214,79 +1245,79 @@ buildCounterUrlMap--; } -buildUnnamed3363() { +buildUnnamed3176() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3363(core.Map<core.String, core.String> o) { +checkUnnamed3176(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')); } -buildUnnamed3364() { +buildUnnamed3177() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3364(core.Map<core.String, core.String> o) { +checkUnnamed3177(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')); } -buildUnnamed3365() { +buildUnnamed3178() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3365(core.List<api.ErrorHandler> o) { +checkUnnamed3178(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3366() { +buildUnnamed3179() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3366(core.List<api.UrlMap> o) { +checkUnnamed3179(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3367() { +buildUnnamed3180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3367(core.List<core.String> o) { +checkUnnamed3180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3368() { +buildUnnamed3181() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3368(core.List<api.Library> o) { +checkUnnamed3181(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1300,21 +1331,21 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3363(); + o.betaSettings = buildUnnamed3176(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; o.deployment = buildDeployment(); o.diskUsageBytes = "foo"; o.env = "foo"; - o.envVariables = buildUnnamed3364(); - o.errorHandlers = buildUnnamed3365(); - o.handlers = buildUnnamed3366(); + o.envVariables = buildUnnamed3177(); + o.errorHandlers = buildUnnamed3178(); + o.handlers = buildUnnamed3179(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3367(); + o.inboundServices = buildUnnamed3180(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3368(); + o.libraries = buildUnnamed3181(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1336,21 +1367,21 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3363(o.betaSettings); + checkUnnamed3176(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')); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3364(o.envVariables); - checkUnnamed3365(o.errorHandlers); - checkUnnamed3366(o.handlers); + checkUnnamed3177(o.envVariables); + checkUnnamed3178(o.errorHandlers); + checkUnnamed3179(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3367(o.inboundServices); + checkUnnamed3180(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3368(o.libraries); + checkUnnamed3181(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -1631,6 +1662,15 @@ }); + unittest.group("obj-schema-OperationMetadataExperimental", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataExperimental(); + var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); + checkOperationMetadataExperimental(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1(); @@ -1758,6 +1798,53 @@ unittest.group("resource-AppsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.AppsResourceApi res = new api.AppengineApi(mock).apps; + var arg_request = buildApplication(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Application.fromJson(json); + checkApplication(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 + 7), unittest.equals("v1/apps")); + 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(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -1805,6 +1892,59 @@ }))); }); + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.AppsResourceApi res = new api.AppengineApi(mock).apps; + var arg_request = buildApplication(); + var arg_appsId = "foo"; + var arg_updateMask = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Application.fromJson(json); + checkApplication(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 + 8), unittest.equals("v1/apps/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_appsId")); + + 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["updateMask"].first, unittest.equals(arg_updateMask)); + + + 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_appsId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--repair", () { var mock = new HttpServerMock(); @@ -2952,5 +3092,121 @@ }); + 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 c2b0026..4a5b668 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); } -buildUnnamed1184() { +buildUnnamed1210() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1184(core.List<api.Event> o) { +checkUnnamed1210(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 = buildUnnamed1184(); + o.singleEvents = buildUnnamed1210(); } buildCounterActivity--; return o; @@ -80,32 +80,32 @@ buildCounterActivity++; if (buildCounterActivity < 3) { checkEvent(o.combinedEvent); - checkUnnamed1184(o.singleEvents); + checkUnnamed1210(o.singleEvents); } buildCounterActivity--; } -buildUnnamed1185() { +buildUnnamed1211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1185(core.List<core.String> o) { +checkUnnamed1211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1186() { +buildUnnamed1212() { var o = new core.List<api.PermissionChange>(); o.add(buildPermissionChange()); o.add(buildPermissionChange()); return o; } -checkUnnamed1186(core.List<api.PermissionChange> o) { +checkUnnamed1212(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 = buildUnnamed1185(); + o.additionalEventTypes = buildUnnamed1211(); o.eventTimeMillis = "foo"; o.fromUserDeletion = true; o.move = buildMove(); - o.permissionChanges = buildUnnamed1186(); + o.permissionChanges = buildUnnamed1212(); o.primaryEventType = "foo"; o.rename = buildRename(); o.target = buildTarget(); @@ -133,11 +133,11 @@ checkEvent(api.Event o) { buildCounterEvent++; if (buildCounterEvent < 3) { - checkUnnamed1185(o.additionalEventTypes); + checkUnnamed1211(o.additionalEventTypes); unittest.expect(o.eventTimeMillis, unittest.equals('foo')); unittest.expect(o.fromUserDeletion, unittest.isTrue); checkMove(o.move); - checkUnnamed1186(o.permissionChanges); + checkUnnamed1212(o.permissionChanges); unittest.expect(o.primaryEventType, unittest.equals('foo')); checkRename(o.rename); checkTarget(o.target); @@ -146,14 +146,14 @@ buildCounterEvent--; } -buildUnnamed1187() { +buildUnnamed1213() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1187(core.List<api.Activity> o) { +checkUnnamed1213(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 = buildUnnamed1187(); + o.activities = buildUnnamed1213(); o.nextPageToken = "foo"; } buildCounterListActivitiesResponse--; @@ -174,33 +174,33 @@ checkListActivitiesResponse(api.ListActivitiesResponse o) { buildCounterListActivitiesResponse++; if (buildCounterListActivitiesResponse < 3) { - checkUnnamed1187(o.activities); + checkUnnamed1213(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListActivitiesResponse--; } -buildUnnamed1188() { +buildUnnamed1214() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1188(core.List<api.Parent> o) { +checkUnnamed1214(core.List<api.Parent> o) { unittest.expect(o, unittest.hasLength(2)); checkParent(o[0]); checkParent(o[1]); } -buildUnnamed1189() { +buildUnnamed1215() { var o = new core.List<api.Parent>(); o.add(buildParent()); o.add(buildParent()); return o; } -checkUnnamed1189(core.List<api.Parent> o) { +checkUnnamed1215(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 = buildUnnamed1188(); - o.removedParents = buildUnnamed1189(); + o.addedParents = buildUnnamed1214(); + o.removedParents = buildUnnamed1215(); } buildCounterMove--; return o; @@ -221,8 +221,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed1188(o.addedParents); - checkUnnamed1189(o.removedParents); + checkUnnamed1214(o.addedParents); + checkUnnamed1215(o.removedParents); } buildCounterMove--; } @@ -279,27 +279,27 @@ buildCounterPermission--; } -buildUnnamed1190() { +buildUnnamed1216() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1190(core.List<api.Permission> o) { +checkUnnamed1216(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1191() { +buildUnnamed1217() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1191(core.List<api.Permission> o) { +checkUnnamed1217(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 = buildUnnamed1190(); - o.removedPermissions = buildUnnamed1191(); + o.addedPermissions = buildUnnamed1216(); + o.removedPermissions = buildUnnamed1217(); } buildCounterPermissionChange--; return o; @@ -320,8 +320,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed1190(o.addedPermissions); - checkUnnamed1191(o.removedPermissions); + checkUnnamed1216(o.addedPermissions); + checkUnnamed1217(o.removedPermissions); } buildCounterPermissionChange--; } @@ -395,6 +395,7 @@ buildCounterUser++; if (buildCounterUser < 3) { o.isDeleted = true; + o.isMe = true; o.name = "foo"; o.permissionId = "foo"; o.photo = buildPhoto(); @@ -407,6 +408,7 @@ buildCounterUser++; if (buildCounterUser < 3) { unittest.expect(o.isDeleted, unittest.isTrue); + unittest.expect(o.isMe, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); checkPhoto(o.photo);
diff --git a/generated/googleapis/test/appstate/v1_test.dart b/generated/googleapis/test/appstate/v1_test.dart index 2831ca4..4f1c5fc 100644 --- a/generated/googleapis/test/appstate/v1_test.dart +++ b/generated/googleapis/test/appstate/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterGetResponse--; } -buildUnnamed2918() { +buildUnnamed2992() { var o = new core.List<api.GetResponse>(); o.add(buildGetResponse()); o.add(buildGetResponse()); return o; } -checkUnnamed2918(core.List<api.GetResponse> o) { +checkUnnamed2992(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 = buildUnnamed2918(); + o.items = buildUnnamed2992(); o.kind = "foo"; o.maximumKeyCount = 42; } @@ -105,7 +105,7 @@ checkListResponse(api.ListResponse o) { buildCounterListResponse++; if (buildCounterListResponse < 3) { - checkUnnamed2918(o.items); + checkUnnamed2992(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 308bf3d..1cc3d88 100644 --- a/generated/googleapis/test/bigquery/v2_test.dart +++ b/generated/googleapis/test/bigquery/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterBigtableColumn--; } -buildUnnamed3372() { +buildUnnamed3185() { var o = new core.List<api.BigtableColumn>(); o.add(buildBigtableColumn()); o.add(buildBigtableColumn()); return o; } -checkUnnamed3372(core.List<api.BigtableColumn> o) { +checkUnnamed3185(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 = buildUnnamed3372(); + o.columns = buildUnnamed3185(); o.encoding = "foo"; o.familyId = "foo"; o.onlyReadLatest = true; @@ -111,7 +111,7 @@ checkBigtableColumnFamily(api.BigtableColumnFamily o) { buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - checkUnnamed3372(o.columns); + checkUnnamed3185(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--; } -buildUnnamed3373() { +buildUnnamed3186() { var o = new core.List<api.BigtableColumnFamily>(); o.add(buildBigtableColumnFamily()); o.add(buildBigtableColumnFamily()); return o; } -checkUnnamed3373(core.List<api.BigtableColumnFamily> o) { +checkUnnamed3186(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 = buildUnnamed3373(); + o.columnFamilies = buildUnnamed3186(); o.ignoreUnspecifiedColumnFamilies = true; o.readRowkeyAsString = true; } @@ -149,7 +149,7 @@ checkBigtableOptions(api.BigtableOptions o) { buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - checkUnnamed3373(o.columnFamilies); + checkUnnamed3186(o.columnFamilies); unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); unittest.expect(o.readRowkeyAsString, unittest.isTrue); } @@ -214,27 +214,27 @@ buildCounterDatasetAccess--; } -buildUnnamed3374() { +buildUnnamed3187() { var o = new core.List<api.DatasetAccess>(); o.add(buildDatasetAccess()); o.add(buildDatasetAccess()); return o; } -checkUnnamed3374(core.List<api.DatasetAccess> o) { +checkUnnamed3187(core.List<api.DatasetAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetAccess(o[0]); checkDatasetAccess(o[1]); } -buildUnnamed3375() { +buildUnnamed3188() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3375(core.Map<core.String, core.String> o) { +checkUnnamed3188(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 = buildUnnamed3374(); + o.access = buildUnnamed3187(); o.creationTime = "foo"; o.datasetReference = buildDatasetReference(); o.defaultTableExpirationMs = "foo"; @@ -254,7 +254,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3375(); + o.labels = buildUnnamed3188(); o.lastModifiedTime = "foo"; o.location = "foo"; o.selfLink = "foo"; @@ -266,7 +266,7 @@ checkDataset(api.Dataset o) { buildCounterDataset++; if (buildCounterDataset < 3) { - checkUnnamed3374(o.access); + checkUnnamed3187(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')); - checkUnnamed3375(o.labels); + checkUnnamed3188(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--; } -buildUnnamed3376() { +buildUnnamed3189() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3376(core.Map<core.String, core.String> o) { +checkUnnamed3189(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 = buildUnnamed3376(); + o.labels = buildUnnamed3189(); } 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')); - checkUnnamed3376(o.labels); + checkUnnamed3189(o.labels); } buildCounterDatasetListDatasets--; } -buildUnnamed3377() { +buildUnnamed3190() { var o = new core.List<api.DatasetListDatasets>(); o.add(buildDatasetListDatasets()); o.add(buildDatasetListDatasets()); return o; } -checkUnnamed3377(core.List<api.DatasetListDatasets> o) { +checkUnnamed3190(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 = buildUnnamed3377(); + o.datasets = buildUnnamed3190(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -353,7 +353,7 @@ checkDatasetList(api.DatasetList o) { buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - checkUnnamed3377(o.datasets); + checkUnnamed3190(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--; } -buildUnnamed3378() { +buildUnnamed3191() { var o = new core.List<api.ExplainQueryStep>(); o.add(buildExplainQueryStep()); o.add(buildExplainQueryStep()); return o; } -checkUnnamed3378(core.List<api.ExplainQueryStep> o) { +checkUnnamed3191(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 = buildUnnamed3378(); + o.steps = buildUnnamed3191(); 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')); - checkUnnamed3378(o.steps); + checkUnnamed3191(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--; } -buildUnnamed3379() { +buildUnnamed3192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3379(core.List<core.String> o) { +checkUnnamed3192(core.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 = buildUnnamed3379(); + o.substeps = buildUnnamed3192(); } buildCounterExplainQueryStep--; return o; @@ -492,19 +492,19 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3379(o.substeps); + checkUnnamed3192(o.substeps); } buildCounterExplainQueryStep--; } -buildUnnamed3380() { +buildUnnamed3193() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3380(core.List<core.String> o) { +checkUnnamed3193(core.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 = buildUnnamed3380(); + o.sourceUris = buildUnnamed3193(); } buildCounterExternalDataConfiguration--; return o; @@ -542,32 +542,32 @@ unittest.expect(o.maxBadRecords, unittest.equals(42)); checkTableSchema(o.schema); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3380(o.sourceUris); + checkUnnamed3193(o.sourceUris); } buildCounterExternalDataConfiguration--; } -buildUnnamed3381() { +buildUnnamed3194() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3381(core.List<api.ErrorProto> o) { +checkUnnamed3194(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3382() { +buildUnnamed3195() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3382(core.List<api.TableRow> o) { +checkUnnamed3195(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 = buildUnnamed3381(); + o.errors = buildUnnamed3194(); o.etag = "foo"; o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3382(); + o.rows = buildUnnamed3195(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -599,14 +599,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3381(o.errors); + checkUnnamed3194(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')); - checkUnnamed3382(o.rows); + checkUnnamed3195(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -689,6 +689,19 @@ buildCounterJobCancelResponse--; } +buildUnnamed3196() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + core.int buildCounterJobConfiguration = 0; buildJobConfiguration() { var o = new api.JobConfiguration(); @@ -697,6 +710,7 @@ o.copy = buildJobConfigurationTableCopy(); o.dryRun = true; o.extract = buildJobConfigurationExtract(); + o.labels = buildUnnamed3196(); o.load = buildJobConfigurationLoad(); o.query = buildJobConfigurationQuery(); } @@ -710,20 +724,21 @@ checkJobConfigurationTableCopy(o.copy); unittest.expect(o.dryRun, unittest.isTrue); checkJobConfigurationExtract(o.extract); + checkUnnamed3196(o.labels); checkJobConfigurationLoad(o.load); checkJobConfigurationQuery(o.query); } buildCounterJobConfiguration--; } -buildUnnamed3383() { +buildUnnamed3197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3383(core.List<core.String> o) { +checkUnnamed3197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -737,7 +752,7 @@ o.compression = "foo"; o.destinationFormat = "foo"; o.destinationUri = "foo"; - o.destinationUris = buildUnnamed3383(); + o.destinationUris = buildUnnamed3197(); o.fieldDelimiter = "foo"; o.printHeader = true; o.sourceTable = buildTableReference(); @@ -752,7 +767,7 @@ unittest.expect(o.compression, unittest.equals('foo')); unittest.expect(o.destinationFormat, unittest.equals('foo')); unittest.expect(o.destinationUri, unittest.equals('foo')); - checkUnnamed3383(o.destinationUris); + checkUnnamed3197(o.destinationUris); unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.printHeader, unittest.isTrue); checkTableReference(o.sourceTable); @@ -760,40 +775,40 @@ buildCounterJobConfigurationExtract--; } -buildUnnamed3384() { +buildUnnamed3198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3384(core.List<core.String> o) { +checkUnnamed3198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3385() { +buildUnnamed3199() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3385(core.List<core.String> o) { +checkUnnamed3199(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3386() { +buildUnnamed3200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3386(core.List<core.String> o) { +checkUnnamed3200(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -813,15 +828,15 @@ o.fieldDelimiter = "foo"; o.ignoreUnknownValues = true; o.maxBadRecords = 42; - o.projectionFields = buildUnnamed3384(); + o.projectionFields = buildUnnamed3198(); o.quote = "foo"; o.schema = buildTableSchema(); o.schemaInline = "foo"; o.schemaInlineFormat = "foo"; - o.schemaUpdateOptions = buildUnnamed3385(); + o.schemaUpdateOptions = buildUnnamed3199(); o.skipLeadingRows = 42; o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3386(); + o.sourceUris = buildUnnamed3200(); o.writeDisposition = "foo"; } buildCounterJobConfigurationLoad--; @@ -840,67 +855,67 @@ unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.maxBadRecords, unittest.equals(42)); - checkUnnamed3384(o.projectionFields); + checkUnnamed3198(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')); - checkUnnamed3385(o.schemaUpdateOptions); + checkUnnamed3199(o.schemaUpdateOptions); unittest.expect(o.skipLeadingRows, unittest.equals(42)); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3386(o.sourceUris); + checkUnnamed3200(o.sourceUris); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationLoad--; } -buildUnnamed3387() { +buildUnnamed3201() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3387(core.List<api.QueryParameter> o) { +checkUnnamed3201(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); } -buildUnnamed3388() { +buildUnnamed3202() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3388(core.List<core.String> o) { +checkUnnamed3202(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3389() { +buildUnnamed3203() { var o = new core.Map<core.String, api.ExternalDataConfiguration>(); o["x"] = buildExternalDataConfiguration(); o["y"] = buildExternalDataConfiguration(); return o; } -checkUnnamed3389(core.Map<core.String, api.ExternalDataConfiguration> o) { +checkUnnamed3203(core.Map<core.String, api.ExternalDataConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalDataConfiguration(o["x"]); checkExternalDataConfiguration(o["y"]); } -buildUnnamed3390() { +buildUnnamed3204() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3390(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3204(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -922,12 +937,12 @@ o.preserveNulls = true; o.priority = "foo"; o.query = "foo"; - o.queryParameters = buildUnnamed3387(); - o.schemaUpdateOptions = buildUnnamed3388(); - o.tableDefinitions = buildUnnamed3389(); + o.queryParameters = buildUnnamed3201(); + o.schemaUpdateOptions = buildUnnamed3202(); + o.tableDefinitions = buildUnnamed3203(); o.useLegacySql = true; o.useQueryCache = true; - o.userDefinedFunctionResources = buildUnnamed3390(); + o.userDefinedFunctionResources = buildUnnamed3204(); o.writeDisposition = "foo"; } buildCounterJobConfigurationQuery--; @@ -948,25 +963,25 @@ unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.priority, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3387(o.queryParameters); - checkUnnamed3388(o.schemaUpdateOptions); - checkUnnamed3389(o.tableDefinitions); + checkUnnamed3201(o.queryParameters); + checkUnnamed3202(o.schemaUpdateOptions); + checkUnnamed3203(o.tableDefinitions); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); - checkUnnamed3390(o.userDefinedFunctionResources); + checkUnnamed3204(o.userDefinedFunctionResources); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationQuery--; } -buildUnnamed3391() { +buildUnnamed3205() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3391(core.List<api.TableReference> o) { +checkUnnamed3205(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); @@ -980,7 +995,7 @@ o.createDisposition = "foo"; o.destinationTable = buildTableReference(); o.sourceTable = buildTableReference(); - o.sourceTables = buildUnnamed3391(); + o.sourceTables = buildUnnamed3205(); o.writeDisposition = "foo"; } buildCounterJobConfigurationTableCopy--; @@ -993,7 +1008,7 @@ unittest.expect(o.createDisposition, unittest.equals('foo')); checkTableReference(o.destinationTable); checkTableReference(o.sourceTable); - checkUnnamed3391(o.sourceTables); + checkUnnamed3205(o.sourceTables); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationTableCopy--; @@ -1034,14 +1049,14 @@ buildCounterJobListJobs--; } -buildUnnamed3392() { +buildUnnamed3206() { var o = new core.List<api.JobListJobs>(); o.add(buildJobListJobs()); o.add(buildJobListJobs()); return o; } -checkUnnamed3392(core.List<api.JobListJobs> o) { +checkUnnamed3206(core.List<api.JobListJobs> o) { unittest.expect(o, unittest.hasLength(2)); checkJobListJobs(o[0]); checkJobListJobs(o[1]); @@ -1053,7 +1068,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { o.etag = "foo"; - o.jobs = buildUnnamed3392(); + o.jobs = buildUnnamed3206(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1065,7 +1080,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3392(o.jobs); + checkUnnamed3206(o.jobs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1124,40 +1139,40 @@ buildCounterJobStatistics--; } -buildUnnamed3393() { +buildUnnamed3207() { var o = new core.List<api.ExplainQueryStage>(); o.add(buildExplainQueryStage()); o.add(buildExplainQueryStage()); return o; } -checkUnnamed3393(core.List<api.ExplainQueryStage> o) { +checkUnnamed3207(core.List<api.ExplainQueryStage> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStage(o[0]); checkExplainQueryStage(o[1]); } -buildUnnamed3394() { +buildUnnamed3208() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3394(core.List<api.TableReference> o) { +checkUnnamed3208(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); } -buildUnnamed3395() { +buildUnnamed3209() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3395(core.List<api.QueryParameter> o) { +checkUnnamed3209(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1171,12 +1186,12 @@ o.billingTier = 42; o.cacheHit = true; o.numDmlAffectedRows = "foo"; - o.queryPlan = buildUnnamed3393(); - o.referencedTables = buildUnnamed3394(); + o.queryPlan = buildUnnamed3207(); + o.referencedTables = buildUnnamed3208(); o.schema = buildTableSchema(); o.totalBytesBilled = "foo"; o.totalBytesProcessed = "foo"; - o.undeclaredQueryParameters = buildUnnamed3395(); + o.undeclaredQueryParameters = buildUnnamed3209(); } buildCounterJobStatistics2--; return o; @@ -1188,12 +1203,12 @@ unittest.expect(o.billingTier, unittest.equals(42)); unittest.expect(o.cacheHit, unittest.isTrue); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); - checkUnnamed3393(o.queryPlan); - checkUnnamed3394(o.referencedTables); + checkUnnamed3207(o.queryPlan); + checkUnnamed3208(o.referencedTables); checkTableSchema(o.schema); unittest.expect(o.totalBytesBilled, unittest.equals('foo')); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); - checkUnnamed3395(o.undeclaredQueryParameters); + checkUnnamed3209(o.undeclaredQueryParameters); } buildCounterJobStatistics2--; } @@ -1223,14 +1238,14 @@ buildCounterJobStatistics3--; } -buildUnnamed3396() { +buildUnnamed3210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3396(core.List<core.String> o) { +checkUnnamed3210(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1241,7 +1256,7 @@ var o = new api.JobStatistics4(); buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - o.destinationUriFileCounts = buildUnnamed3396(); + o.destinationUriFileCounts = buildUnnamed3210(); } buildCounterJobStatistics4--; return o; @@ -1250,19 +1265,19 @@ checkJobStatistics4(api.JobStatistics4 o) { buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - checkUnnamed3396(o.destinationUriFileCounts); + checkUnnamed3210(o.destinationUriFileCounts); } buildCounterJobStatistics4--; } -buildUnnamed3397() { +buildUnnamed3211() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3397(core.List<api.ErrorProto> o) { +checkUnnamed3211(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1274,7 +1289,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { o.errorResult = buildErrorProto(); - o.errors = buildUnnamed3397(); + o.errors = buildUnnamed3211(); o.state = "foo"; } buildCounterJobStatus--; @@ -1285,7 +1300,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { checkErrorProto(o.errorResult); - checkUnnamed3397(o.errors); + checkUnnamed3211(o.errors); unittest.expect(o.state, unittest.equals('foo')); } buildCounterJobStatus--; @@ -1331,14 +1346,14 @@ buildCounterProjectListProjects--; } -buildUnnamed3398() { +buildUnnamed3212() { var o = new core.List<api.ProjectListProjects>(); o.add(buildProjectListProjects()); o.add(buildProjectListProjects()); return o; } -checkUnnamed3398(core.List<api.ProjectListProjects> o) { +checkUnnamed3212(core.List<api.ProjectListProjects> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectListProjects(o[0]); checkProjectListProjects(o[1]); @@ -1352,7 +1367,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed3398(); + o.projects = buildUnnamed3212(); o.totalItems = 42; } buildCounterProjectList--; @@ -1365,7 +1380,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3398(o.projects); + checkUnnamed3212(o.projects); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterProjectList--; @@ -1436,14 +1451,14 @@ buildCounterQueryParameterTypeStructTypes--; } -buildUnnamed3399() { +buildUnnamed3213() { var o = new core.List<api.QueryParameterTypeStructTypes>(); o.add(buildQueryParameterTypeStructTypes()); o.add(buildQueryParameterTypeStructTypes()); return o; } -checkUnnamed3399(core.List<api.QueryParameterTypeStructTypes> o) { +checkUnnamed3213(core.List<api.QueryParameterTypeStructTypes> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterTypeStructTypes(o[0]); checkQueryParameterTypeStructTypes(o[1]); @@ -1455,7 +1470,7 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { o.arrayType = buildQueryParameterType(); - o.structTypes = buildUnnamed3399(); + o.structTypes = buildUnnamed3213(); o.type = "foo"; } buildCounterQueryParameterType--; @@ -1466,36 +1481,36 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { checkQueryParameterType(o.arrayType); - checkUnnamed3399(o.structTypes); + checkUnnamed3213(o.structTypes); unittest.expect(o.type, unittest.equals('foo')); } buildCounterQueryParameterType--; } -buildUnnamed3400() { +buildUnnamed3214() { var o = new core.List<api.QueryParameterValue>(); o.add(buildQueryParameterValue()); o.add(buildQueryParameterValue()); return o; } -checkUnnamed3400(core.List<api.QueryParameterValue> o) { +checkUnnamed3214(core.List<api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o[0]); checkQueryParameterValue(o[1]); } -buildUnnamed3401() { - var o = new core.List<api.QueryParameterValue>(); - o.add(buildQueryParameterValue()); - o.add(buildQueryParameterValue()); +buildUnnamed3215() { + var o = new core.Map<core.String, api.QueryParameterValue>(); + o["x"] = buildQueryParameterValue(); + o["y"] = buildQueryParameterValue(); return o; } -checkUnnamed3401(core.List<api.QueryParameterValue> o) { +checkUnnamed3215(core.Map<core.String, api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); - checkQueryParameterValue(o[0]); - checkQueryParameterValue(o[1]); + checkQueryParameterValue(o["x"]); + checkQueryParameterValue(o["y"]); } core.int buildCounterQueryParameterValue = 0; @@ -1503,8 +1518,8 @@ var o = new api.QueryParameterValue(); buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - o.arrayValues = buildUnnamed3400(); - o.structValues = buildUnnamed3401(); + o.arrayValues = buildUnnamed3214(); + o.structValues = buildUnnamed3215(); o.value = "foo"; } buildCounterQueryParameterValue--; @@ -1514,21 +1529,21 @@ checkQueryParameterValue(api.QueryParameterValue o) { buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - checkUnnamed3400(o.arrayValues); - checkUnnamed3401(o.structValues); + checkUnnamed3214(o.arrayValues); + checkUnnamed3215(o.structValues); unittest.expect(o.value, unittest.equals('foo')); } buildCounterQueryParameterValue--; } -buildUnnamed3402() { +buildUnnamed3216() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3402(core.List<api.QueryParameter> o) { +checkUnnamed3216(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -1546,7 +1561,7 @@ o.parameterMode = "foo"; o.preserveNulls = true; o.query = "foo"; - o.queryParameters = buildUnnamed3402(); + o.queryParameters = buildUnnamed3216(); o.timeoutMs = 42; o.useLegacySql = true; o.useQueryCache = true; @@ -1565,7 +1580,7 @@ unittest.expect(o.parameterMode, unittest.equals('foo')); unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3402(o.queryParameters); + checkUnnamed3216(o.queryParameters); unittest.expect(o.timeoutMs, unittest.equals(42)); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); @@ -1573,27 +1588,27 @@ buildCounterQueryRequest--; } -buildUnnamed3403() { +buildUnnamed3217() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3403(core.List<api.ErrorProto> o) { +checkUnnamed3217(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3404() { +buildUnnamed3218() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3404(core.List<api.TableRow> o) { +checkUnnamed3218(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1605,13 +1620,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3403(); + o.errors = buildUnnamed3217(); o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3404(); + o.rows = buildUnnamed3218(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -1624,13 +1639,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3403(o.errors); + checkUnnamed3217(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')); - checkUnnamed3404(o.rows); + checkUnnamed3218(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -1758,14 +1773,14 @@ buildCounterTableDataInsertAllRequestRows--; } -buildUnnamed3405() { +buildUnnamed3219() { var o = new core.List<api.TableDataInsertAllRequestRows>(); o.add(buildTableDataInsertAllRequestRows()); o.add(buildTableDataInsertAllRequestRows()); return o; } -checkUnnamed3405(core.List<api.TableDataInsertAllRequestRows> o) { +checkUnnamed3219(core.List<api.TableDataInsertAllRequestRows> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllRequestRows(o[0]); checkTableDataInsertAllRequestRows(o[1]); @@ -1778,7 +1793,7 @@ if (buildCounterTableDataInsertAllRequest < 3) { o.ignoreUnknownValues = true; o.kind = "foo"; - o.rows = buildUnnamed3405(); + o.rows = buildUnnamed3219(); o.skipInvalidRows = true; o.templateSuffix = "foo"; } @@ -1791,21 +1806,21 @@ if (buildCounterTableDataInsertAllRequest < 3) { unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3405(o.rows); + checkUnnamed3219(o.rows); unittest.expect(o.skipInvalidRows, unittest.isTrue); unittest.expect(o.templateSuffix, unittest.equals('foo')); } buildCounterTableDataInsertAllRequest--; } -buildUnnamed3406() { +buildUnnamed3220() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3406(core.List<api.ErrorProto> o) { +checkUnnamed3220(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -1816,7 +1831,7 @@ var o = new api.TableDataInsertAllResponseInsertErrors(); buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - o.errors = buildUnnamed3406(); + o.errors = buildUnnamed3220(); o.index = 42; } buildCounterTableDataInsertAllResponseInsertErrors--; @@ -1826,20 +1841,20 @@ checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsertErrors o) { buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - checkUnnamed3406(o.errors); + checkUnnamed3220(o.errors); unittest.expect(o.index, unittest.equals(42)); } buildCounterTableDataInsertAllResponseInsertErrors--; } -buildUnnamed3407() { +buildUnnamed3221() { var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); o.add(buildTableDataInsertAllResponseInsertErrors()); o.add(buildTableDataInsertAllResponseInsertErrors()); return o; } -checkUnnamed3407(core.List<api.TableDataInsertAllResponseInsertErrors> o) { +checkUnnamed3221(core.List<api.TableDataInsertAllResponseInsertErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllResponseInsertErrors(o[0]); checkTableDataInsertAllResponseInsertErrors(o[1]); @@ -1850,7 +1865,7 @@ var o = new api.TableDataInsertAllResponse(); buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - o.insertErrors = buildUnnamed3407(); + o.insertErrors = buildUnnamed3221(); o.kind = "foo"; } buildCounterTableDataInsertAllResponse--; @@ -1860,20 +1875,20 @@ checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - checkUnnamed3407(o.insertErrors); + checkUnnamed3221(o.insertErrors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTableDataInsertAllResponse--; } -buildUnnamed3408() { +buildUnnamed3222() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3408(core.List<api.TableRow> o) { +checkUnnamed3222(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1887,7 +1902,7 @@ o.etag = "foo"; o.kind = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3408(); + o.rows = buildUnnamed3222(); o.totalRows = "foo"; } buildCounterTableDataList--; @@ -1900,20 +1915,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3408(o.rows); + checkUnnamed3222(o.rows); unittest.expect(o.totalRows, unittest.equals('foo')); } buildCounterTableDataList--; } -buildUnnamed3409() { +buildUnnamed3223() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3409(core.List<api.TableFieldSchema> o) { +checkUnnamed3223(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -1925,7 +1940,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { o.description = "foo"; - o.fields = buildUnnamed3409(); + o.fields = buildUnnamed3223(); o.mode = "foo"; o.name = "foo"; o.type = "foo"; @@ -1938,7 +1953,7 @@ buildCounterTableFieldSchema++; if (buildCounterTableFieldSchema < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3409(o.fields); + checkUnnamed3223(o.fields); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1973,14 +1988,14 @@ buildCounterTableListTables--; } -buildUnnamed3410() { +buildUnnamed3224() { var o = new core.List<api.TableListTables>(); o.add(buildTableListTables()); o.add(buildTableListTables()); return o; } -checkUnnamed3410(core.List<api.TableListTables> o) { +checkUnnamed3224(core.List<api.TableListTables> o) { unittest.expect(o, unittest.hasLength(2)); checkTableListTables(o[0]); checkTableListTables(o[1]); @@ -1994,7 +2009,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.tables = buildUnnamed3410(); + o.tables = buildUnnamed3224(); o.totalItems = 42; } buildCounterTableList--; @@ -2007,7 +2022,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3410(o.tables); + checkUnnamed3224(o.tables); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterTableList--; @@ -2036,14 +2051,14 @@ buildCounterTableReference--; } -buildUnnamed3411() { +buildUnnamed3225() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed3411(core.List<api.TableCell> o) { +checkUnnamed3225(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2054,7 +2069,7 @@ var o = new api.TableRow(); buildCounterTableRow++; if (buildCounterTableRow < 3) { - o.f = buildUnnamed3411(); + o.f = buildUnnamed3225(); } buildCounterTableRow--; return o; @@ -2063,19 +2078,19 @@ checkTableRow(api.TableRow o) { buildCounterTableRow++; if (buildCounterTableRow < 3) { - checkUnnamed3411(o.f); + checkUnnamed3225(o.f); } buildCounterTableRow--; } -buildUnnamed3412() { +buildUnnamed3226() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3412(core.List<api.TableFieldSchema> o) { +checkUnnamed3226(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -2086,7 +2101,7 @@ var o = new api.TableSchema(); buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - o.fields = buildUnnamed3412(); + o.fields = buildUnnamed3226(); } buildCounterTableSchema--; return o; @@ -2095,7 +2110,7 @@ checkTableSchema(api.TableSchema o) { buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - checkUnnamed3412(o.fields); + checkUnnamed3226(o.fields); } buildCounterTableSchema--; } @@ -2142,14 +2157,14 @@ buildCounterUserDefinedFunctionResource--; } -buildUnnamed3413() { +buildUnnamed3227() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3413(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3227(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -2162,7 +2177,7 @@ if (buildCounterViewDefinition < 3) { o.query = "foo"; o.useLegacySql = true; - o.userDefinedFunctionResources = buildUnnamed3413(); + o.userDefinedFunctionResources = buildUnnamed3227(); } buildCounterViewDefinition--; return o; @@ -2173,19 +2188,19 @@ if (buildCounterViewDefinition < 3) { unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.useLegacySql, unittest.isTrue); - checkUnnamed3413(o.userDefinedFunctionResources); + checkUnnamed3227(o.userDefinedFunctionResources); } buildCounterViewDefinition--; } -buildUnnamed3414() { +buildUnnamed3228() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3414(core.List<core.String> o) { +checkUnnamed3228(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3080,8 +3095,8 @@ pathOffset += 1; unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("bigquery/v2/")); pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("project/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("projects/")); + pathOffset += 9; index = path.indexOf("/jobs/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); @@ -3316,7 +3331,7 @@ var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_projection = "foo"; - var arg_stateFilter = buildUnnamed3414(); + var arg_stateFilter = buildUnnamed3228(); 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 2378691..77727df 100644 --- a/generated/googleapis/test/blogger/v3_test.dart +++ b/generated/googleapis/test/blogger/v3_test.dart
@@ -95,14 +95,14 @@ buildCounterBlogPages--; } -buildUnnamed1354() { +buildUnnamed1376() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed1354(core.List<api.Post> o) { +checkUnnamed1376(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 = buildUnnamed1354(); + o.items = buildUnnamed1376(); o.selfLink = "foo"; o.totalItems = 42; } @@ -124,7 +124,7 @@ checkBlogPosts(api.BlogPosts o) { buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - checkUnnamed1354(o.items); + checkUnnamed1376(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -174,27 +174,27 @@ buildCounterBlog--; } -buildUnnamed1355() { +buildUnnamed1377() { var o = new core.List<api.BlogUserInfo>(); o.add(buildBlogUserInfo()); o.add(buildBlogUserInfo()); return o; } -checkUnnamed1355(core.List<api.BlogUserInfo> o) { +checkUnnamed1377(core.List<api.BlogUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBlogUserInfo(o[0]); checkBlogUserInfo(o[1]); } -buildUnnamed1356() { +buildUnnamed1378() { var o = new core.List<api.Blog>(); o.add(buildBlog()); o.add(buildBlog()); return o; } -checkUnnamed1356(core.List<api.Blog> o) { +checkUnnamed1378(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 = buildUnnamed1355(); - o.items = buildUnnamed1356(); + o.blogUserInfos = buildUnnamed1377(); + o.items = buildUnnamed1378(); o.kind = "foo"; } buildCounterBlogList--; @@ -216,8 +216,8 @@ checkBlogList(api.BlogList o) { buildCounterBlogList++; if (buildCounterBlogList < 3) { - checkUnnamed1355(o.blogUserInfos); - checkUnnamed1356(o.items); + checkUnnamed1377(o.blogUserInfos); + checkUnnamed1378(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBlogList--; @@ -415,14 +415,14 @@ buildCounterComment--; } -buildUnnamed1357() { +buildUnnamed1379() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1357(core.List<api.Comment> o) { +checkUnnamed1379(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 = buildUnnamed1357(); + o.items = buildUnnamed1379(); o.kind = "foo"; o.nextPageToken = "foo"; o.prevPageToken = "foo"; @@ -447,7 +447,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1357(o.items); + checkUnnamed1379(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--; } -buildUnnamed1358() { +buildUnnamed1380() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1358(core.List<api.Page> o) { +checkUnnamed1380(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 = buildUnnamed1358(); + o.items = buildUnnamed1380(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -590,7 +590,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1358(o.items); + checkUnnamed1380(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -618,14 +618,14 @@ buildCounterPageviewsCounts--; } -buildUnnamed1359() { +buildUnnamed1381() { var o = new core.List<api.PageviewsCounts>(); o.add(buildPageviewsCounts()); o.add(buildPageviewsCounts()); return o; } -checkUnnamed1359(core.List<api.PageviewsCounts> o) { +checkUnnamed1381(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 = buildUnnamed1359(); + o.counts = buildUnnamed1381(); o.kind = "foo"; } buildCounterPageviews--; @@ -648,7 +648,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { unittest.expect(o.blogId, unittest.equals('foo')); - checkUnnamed1359(o.counts); + checkUnnamed1381(o.counts); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPageviews--; @@ -736,27 +736,27 @@ buildCounterPostImages--; } -buildUnnamed1360() { +buildUnnamed1382() { var o = new core.List<api.PostImages>(); o.add(buildPostImages()); o.add(buildPostImages()); return o; } -checkUnnamed1360(core.List<api.PostImages> o) { +checkUnnamed1382(core.List<api.PostImages> o) { unittest.expect(o, unittest.hasLength(2)); checkPostImages(o[0]); checkPostImages(o[1]); } -buildUnnamed1361() { +buildUnnamed1383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1361(core.List<core.String> o) { +checkUnnamed1383(core.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--; } -buildUnnamed1362() { +buildUnnamed1384() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1362(core.List<api.Comment> o) { +checkUnnamed1384(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 = buildUnnamed1362(); + o.items = buildUnnamed1384(); o.selfLink = "foo"; o.totalItems = "foo"; } @@ -816,7 +816,7 @@ checkPostReplies(api.PostReplies o) { buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - checkUnnamed1362(o.items); + checkUnnamed1384(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 = buildUnnamed1360(); + o.images = buildUnnamed1382(); o.kind = "foo"; - o.labels = buildUnnamed1361(); + o.labels = buildUnnamed1383(); 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')); - checkUnnamed1360(o.images); + checkUnnamed1382(o.images); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1361(o.labels); + checkUnnamed1383(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--; } -buildUnnamed1363() { +buildUnnamed1385() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed1363(core.List<api.Post> o) { +checkUnnamed1385(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 = buildUnnamed1363(); + o.items = buildUnnamed1385(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -909,7 +909,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1363(o.items); + checkUnnamed1385(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -966,14 +966,14 @@ buildCounterPostUserInfo--; } -buildUnnamed1364() { +buildUnnamed1386() { var o = new core.List<api.PostUserInfo>(); o.add(buildPostUserInfo()); o.add(buildPostUserInfo()); return o; } -checkUnnamed1364(core.List<api.PostUserInfo> o) { +checkUnnamed1386(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 = buildUnnamed1364(); + o.items = buildUnnamed1386(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -995,7 +995,7 @@ checkPostUserInfosList(api.PostUserInfosList o) { buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - checkUnnamed1364(o.items); + checkUnnamed1386(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1079,105 +1079,105 @@ buildCounterUser--; } -buildUnnamed1365() { +buildUnnamed1387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1365(core.List<core.String> o) { +checkUnnamed1387(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1366() { +buildUnnamed1388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1366(core.List<core.String> o) { +checkUnnamed1388(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1367() { +buildUnnamed1389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1367(core.List<core.String> o) { +checkUnnamed1389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1368() { +buildUnnamed1390() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1368(core.List<core.String> o) { +checkUnnamed1390(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1369() { +buildUnnamed1391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1369(core.List<core.String> o) { +checkUnnamed1391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1370() { +buildUnnamed1392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1370(core.List<core.String> o) { +checkUnnamed1392(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1371() { +buildUnnamed1393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1371(core.List<core.String> o) { +checkUnnamed1393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1372() { +buildUnnamed1394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1372(core.List<core.String> o) { +checkUnnamed1394(core.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 = buildUnnamed1365(); - var arg_status = buildUnnamed1366(); + var arg_role = buildUnnamed1387(); + var arg_status = buildUnnamed1388(); 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 = buildUnnamed1367(); + var arg_status = buildUnnamed1389(); 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 = buildUnnamed1368(); + var arg_status = buildUnnamed1390(); 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 = buildUnnamed1369(); + var arg_range = buildUnnamed1391(); 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 = buildUnnamed1370(); + var arg_status = buildUnnamed1392(); 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 = buildUnnamed1371(); + var arg_status = buildUnnamed1393(); 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 = buildUnnamed1372(); + var arg_status = buildUnnamed1394(); 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 a8429e9..16f53e3 100644 --- a/generated/googleapis/test/books/v1_test.dart +++ b/generated/googleapis/test/books/v1_test.dart
@@ -128,14 +128,14 @@ buildCounterAnnotationLayerSummary--; } -buildUnnamed988() { +buildUnnamed1014() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed988(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')); @@ -158,7 +158,7 @@ o.kind = "foo"; o.layerId = "foo"; o.layerSummary = buildAnnotationLayerSummary(); - o.pageIds = buildUnnamed988(); + o.pageIds = buildUnnamed1014(); 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); - checkUnnamed988(o.pageIds); + checkUnnamed1014(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--; } -buildUnnamed989() { +buildUnnamed1015() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed989(core.List<api.Annotation> o) { +checkUnnamed1015(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 = buildUnnamed989(); + o.items = buildUnnamed1015(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -257,7 +257,7 @@ checkAnnotations(api.Annotations o) { buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - checkUnnamed989(o.items); + checkUnnamed1015(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--; } -buildUnnamed990() { +buildUnnamed1016() { var o = new core.List<api.AnnotationsSummaryLayers>(); o.add(buildAnnotationsSummaryLayers()); o.add(buildAnnotationsSummaryLayers()); return o; } -checkUnnamed990(core.List<api.AnnotationsSummaryLayers> o) { +checkUnnamed1016(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 = buildUnnamed990(); + o.layers = buildUnnamed1016(); } buildCounterAnnotationsSummary--; return o; @@ -321,19 +321,19 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed990(o.layers); + checkUnnamed1016(o.layers); } buildCounterAnnotationsSummary--; } -buildUnnamed991() { +buildUnnamed1017() { var o = new core.List<api.Annotationdata>(); o.add(buildAnnotationdata()); o.add(buildAnnotationdata()); return o; } -checkUnnamed991(core.List<api.Annotationdata> o) { +checkUnnamed1017(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 = buildUnnamed991(); + o.items = buildUnnamed1017(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -356,7 +356,7 @@ checkAnnotationsdata(api.Annotationsdata o) { buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - checkUnnamed991(o.items); + checkUnnamed1017(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--; } -buildUnnamed992() { +buildUnnamed1018() { var o = new core.List<api.Bookshelf>(); o.add(buildBookshelf()); o.add(buildBookshelf()); return o; } -checkUnnamed992(core.List<api.Bookshelf> o) { +checkUnnamed1018(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 = buildUnnamed992(); + o.items = buildUnnamed1018(); o.kind = "foo"; } buildCounterBookshelves--; @@ -498,7 +498,7 @@ checkBookshelves(api.Bookshelves o) { buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - checkUnnamed992(o.items); + checkUnnamed1018(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBookshelves--; @@ -527,14 +527,14 @@ buildCounterCategoryItems--; } -buildUnnamed993() { +buildUnnamed1019() { var o = new core.List<api.CategoryItems>(); o.add(buildCategoryItems()); o.add(buildCategoryItems()); return o; } -checkUnnamed993(core.List<api.CategoryItems> o) { +checkUnnamed1019(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 = buildUnnamed993(); + o.items = buildUnnamed1019(); o.kind = "foo"; } buildCounterCategory--; @@ -555,7 +555,7 @@ checkCategory(api.Category o) { buildCounterCategory++; if (buildCounterCategory < 3) { - checkUnnamed993(o.items); + checkUnnamed1019(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCategory--; @@ -682,14 +682,14 @@ buildCounterDictlayerdataDictWordsDerivatives--; } -buildUnnamed994() { +buildUnnamed1020() { var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); o.add(buildDictlayerdataDictWordsDerivatives()); o.add(buildDictlayerdataDictWordsDerivatives()); return o; } -checkUnnamed994(core.List<api.DictlayerdataDictWordsDerivatives> o) { +checkUnnamed1020(core.List<api.DictlayerdataDictWordsDerivatives> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsDerivatives(o[0]); checkDictlayerdataDictWordsDerivatives(o[1]); @@ -737,14 +737,14 @@ buildCounterDictlayerdataDictWordsExamples--; } -buildUnnamed995() { +buildUnnamed1021() { var o = new core.List<api.DictlayerdataDictWordsExamples>(); o.add(buildDictlayerdataDictWordsExamples()); o.add(buildDictlayerdataDictWordsExamples()); return o; } -checkUnnamed995(core.List<api.DictlayerdataDictWordsExamples> o) { +checkUnnamed1021(core.List<api.DictlayerdataDictWordsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsExamples(o[0]); checkDictlayerdataDictWordsExamples(o[1]); @@ -771,14 +771,14 @@ buildCounterDictlayerdataDictWordsSensesConjugations--; } -buildUnnamed996() { +buildUnnamed1022() { var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); o.add(buildDictlayerdataDictWordsSensesConjugations()); o.add(buildDictlayerdataDictWordsSensesConjugations()); return o; } -checkUnnamed996(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { +checkUnnamed1022(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesConjugations(o[0]); checkDictlayerdataDictWordsSensesConjugations(o[1]); @@ -826,14 +826,14 @@ buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; } -buildUnnamed997() { +buildUnnamed1023() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); return o; } -checkUnnamed997(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { +checkUnnamed1023(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 = buildUnnamed997(); + o.examples = buildUnnamed1023(); } buildCounterDictlayerdataDictWordsSensesDefinitions--; return o; @@ -855,19 +855,19 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { unittest.expect(o.definition, unittest.equals('foo')); - checkUnnamed997(o.examples); + checkUnnamed1023(o.examples); } buildCounterDictlayerdataDictWordsSensesDefinitions--; } -buildUnnamed998() { +buildUnnamed1024() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); o.add(buildDictlayerdataDictWordsSensesDefinitions()); o.add(buildDictlayerdataDictWordsSensesDefinitions()); return o; } -checkUnnamed998(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { +checkUnnamed1024(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitions(o[0]); checkDictlayerdataDictWordsSensesDefinitions(o[1]); @@ -936,14 +936,14 @@ buildCounterDictlayerdataDictWordsSensesSynonyms--; } -buildUnnamed999() { +buildUnnamed1025() { var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); o.add(buildDictlayerdataDictWordsSensesSynonyms()); o.add(buildDictlayerdataDictWordsSensesSynonyms()); return o; } -checkUnnamed999(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { +checkUnnamed1025(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 = buildUnnamed996(); - o.definitions = buildUnnamed998(); + o.conjugations = buildUnnamed1022(); + o.definitions = buildUnnamed1024(); o.partOfSpeech = "foo"; o.pronunciation = "foo"; o.pronunciationUrl = "foo"; o.source = buildDictlayerdataDictWordsSensesSource(); o.syllabification = "foo"; - o.synonyms = buildUnnamed999(); + o.synonyms = buildUnnamed1025(); } buildCounterDictlayerdataDictWordsSenses--; return o; @@ -970,26 +970,26 @@ checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - checkUnnamed996(o.conjugations); - checkUnnamed998(o.definitions); + checkUnnamed1022(o.conjugations); + checkUnnamed1024(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')); - checkUnnamed999(o.synonyms); + checkUnnamed1025(o.synonyms); } buildCounterDictlayerdataDictWordsSenses--; } -buildUnnamed1000() { +buildUnnamed1026() { var o = new core.List<api.DictlayerdataDictWordsSenses>(); o.add(buildDictlayerdataDictWordsSenses()); o.add(buildDictlayerdataDictWordsSenses()); return o; } -checkUnnamed1000(core.List<api.DictlayerdataDictWordsSenses> o) { +checkUnnamed1026(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 = buildUnnamed994(); - o.examples = buildUnnamed995(); - o.senses = buildUnnamed1000(); + o.derivatives = buildUnnamed1020(); + o.examples = buildUnnamed1021(); + o.senses = buildUnnamed1026(); o.source = buildDictlayerdataDictWordsSource(); } buildCounterDictlayerdataDictWords--; @@ -1033,22 +1033,22 @@ checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - checkUnnamed994(o.derivatives); - checkUnnamed995(o.examples); - checkUnnamed1000(o.senses); + checkUnnamed1020(o.derivatives); + checkUnnamed1021(o.examples); + checkUnnamed1026(o.senses); checkDictlayerdataDictWordsSource(o.source); } buildCounterDictlayerdataDictWords--; } -buildUnnamed1001() { +buildUnnamed1027() { var o = new core.List<api.DictlayerdataDictWords>(); o.add(buildDictlayerdataDictWords()); o.add(buildDictlayerdataDictWords()); return o; } -checkUnnamed1001(core.List<api.DictlayerdataDictWords> o) { +checkUnnamed1027(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 = buildUnnamed1001(); + o.words = buildUnnamed1027(); } buildCounterDictlayerdataDict--; return o; @@ -1070,7 +1070,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { checkDictlayerdataDictSource(o.source); - checkUnnamed1001(o.words); + checkUnnamed1027(o.words); } buildCounterDictlayerdataDict--; } @@ -1127,14 +1127,14 @@ buildCounterDiscoveryclustersClustersBannerWithContentContainer--; } -buildUnnamed1002() { +buildUnnamed1028() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1002(core.List<api.Volume> o) { +checkUnnamed1028(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 = buildUnnamed1002(); + o.volumes = buildUnnamed1028(); } 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')); - checkUnnamed1002(o.volumes); + checkUnnamed1028(o.volumes); } buildCounterDiscoveryclustersClusters--; } -buildUnnamed1003() { +buildUnnamed1029() { var o = new core.List<api.DiscoveryclustersClusters>(); o.add(buildDiscoveryclustersClusters()); o.add(buildDiscoveryclustersClusters()); return o; } -checkUnnamed1003(core.List<api.DiscoveryclustersClusters> o) { +checkUnnamed1029(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 = buildUnnamed1003(); + o.clusters = buildUnnamed1029(); o.kind = "foo"; o.totalClusters = 42; } @@ -1198,7 +1198,7 @@ checkDiscoveryclusters(api.Discoveryclusters o) { buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - checkUnnamed1003(o.clusters); + checkUnnamed1029(o.clusters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalClusters, unittest.equals(42)); } @@ -1246,14 +1246,14 @@ buildCounterDownloadAccessRestriction--; } -buildUnnamed1004() { +buildUnnamed1030() { var o = new core.List<api.DownloadAccessRestriction>(); o.add(buildDownloadAccessRestriction()); o.add(buildDownloadAccessRestriction()); return o; } -checkUnnamed1004(core.List<api.DownloadAccessRestriction> o) { +checkUnnamed1030(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 = buildUnnamed1004(); + o.downloadAccessList = buildUnnamed1030(); o.kind = "foo"; } buildCounterDownloadAccesses--; @@ -1274,7 +1274,7 @@ checkDownloadAccesses(api.DownloadAccesses o) { buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - checkUnnamed1004(o.downloadAccessList); + checkUnnamed1030(o.downloadAccessList); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDownloadAccesses--; @@ -1328,30 +1328,30 @@ buildCounterGeolayerdataGeoBoundary--; } -buildUnnamed1005() { +buildUnnamed1031() { var o = new core.List<api.GeolayerdataGeoBoundary>(); o.add(buildGeolayerdataGeoBoundary()); o.add(buildGeolayerdataGeoBoundary()); return o; } -checkUnnamed1005(core.List<api.GeolayerdataGeoBoundary> o) { +checkUnnamed1031(core.List<api.GeolayerdataGeoBoundary> o) { unittest.expect(o, unittest.hasLength(2)); checkGeolayerdataGeoBoundary(o[0]); checkGeolayerdataGeoBoundary(o[1]); } -buildUnnamed1006() { +buildUnnamed1032() { var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); - o.add(buildUnnamed1005()); - o.add(buildUnnamed1005()); + o.add(buildUnnamed1031()); + o.add(buildUnnamed1031()); return o; } -checkUnnamed1006(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { +checkUnnamed1032(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1005(o[0]); - checkUnnamed1005(o[1]); + checkUnnamed1031(o[0]); + checkUnnamed1031(o[1]); } core.int buildCounterGeolayerdataGeoViewportHi = 0; @@ -1422,7 +1422,7 @@ var o = new api.GeolayerdataGeo(); buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - o.boundary = buildUnnamed1006(); + o.boundary = buildUnnamed1032(); o.cachePolicy = "foo"; o.countryCode = "foo"; o.latitude = 42.0; @@ -1438,7 +1438,7 @@ checkGeolayerdataGeo(api.GeolayerdataGeo o) { buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - checkUnnamed1006(o.boundary); + checkUnnamed1032(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--; } -buildUnnamed1007() { +buildUnnamed1033() { var o = new core.List<api.Layersummary>(); o.add(buildLayersummary()); o.add(buildLayersummary()); return o; } -checkUnnamed1007(core.List<api.Layersummary> o) { +checkUnnamed1033(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 = buildUnnamed1007(); + o.items = buildUnnamed1033(); o.kind = "foo"; o.totalItems = 42; } @@ -1502,21 +1502,21 @@ checkLayersummaries(api.Layersummaries o) { buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - checkUnnamed1007(o.items); + checkUnnamed1033(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterLayersummaries--; } -buildUnnamed1008() { +buildUnnamed1034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1008(core.List<core.String> o) { +checkUnnamed1034(core.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 = buildUnnamed1008(); + o.annotationTypes = buildUnnamed1034(); o.annotationsDataLink = "foo"; o.annotationsLink = "foo"; o.contentVersion = "foo"; @@ -1549,7 +1549,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { unittest.expect(o.annotationCount, unittest.equals(42)); - checkUnnamed1008(o.annotationTypes); + checkUnnamed1034(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--; } -buildUnnamed1009() { +buildUnnamed1035() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed1009(core.List<api.MetadataItems> o) { +checkUnnamed1035(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 = buildUnnamed1009(); + o.items = buildUnnamed1035(); o.kind = "foo"; } buildCounterMetadata--; @@ -1620,20 +1620,20 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed1009(o.items); + checkUnnamed1035(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; } -buildUnnamed1010() { +buildUnnamed1036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1010(core.List<core.String> o) { +checkUnnamed1036(core.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,7 +1645,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { o.body = "foo"; - o.crmExperimentIds = buildUnnamed1010(); + o.crmExperimentIds = buildUnnamed1036(); o.docId = "foo"; o.docType = "foo"; o.dontShowNotification = true; @@ -1666,7 +1666,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed1010(o.crmExperimentIds); + checkUnnamed1036(o.crmExperimentIds); unittest.expect(o.docId, unittest.equals('foo')); unittest.expect(o.docType, unittest.equals('foo')); unittest.expect(o.dontShowNotification, unittest.isTrue); @@ -1711,14 +1711,14 @@ buildCounterOffersItemsItems--; } -buildUnnamed1011() { +buildUnnamed1037() { var o = new core.List<api.OffersItemsItems>(); o.add(buildOffersItemsItems()); o.add(buildOffersItemsItems()); return o; } -checkUnnamed1011(core.List<api.OffersItemsItems> o) { +checkUnnamed1037(core.List<api.OffersItemsItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItemsItems(o[0]); checkOffersItemsItems(o[1]); @@ -1732,7 +1732,7 @@ o.artUrl = "foo"; o.gservicesKey = "foo"; o.id = "foo"; - o.items = buildUnnamed1011(); + o.items = buildUnnamed1037(); } buildCounterOffersItems--; return o; @@ -1744,19 +1744,19 @@ unittest.expect(o.artUrl, unittest.equals('foo')); unittest.expect(o.gservicesKey, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1011(o.items); + checkUnnamed1037(o.items); } buildCounterOffersItems--; } -buildUnnamed1012() { +buildUnnamed1038() { var o = new core.List<api.OffersItems>(); o.add(buildOffersItems()); o.add(buildOffersItems()); return o; } -checkUnnamed1012(core.List<api.OffersItems> o) { +checkUnnamed1038(core.List<api.OffersItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItems(o[0]); checkOffersItems(o[1]); @@ -1767,7 +1767,7 @@ var o = new api.Offers(); buildCounterOffers++; if (buildCounterOffers < 3) { - o.items = buildUnnamed1012(); + o.items = buildUnnamed1038(); o.kind = "foo"; } buildCounterOffers--; @@ -1777,7 +1777,7 @@ checkOffers(api.Offers o) { buildCounterOffers++; if (buildCounterOffers < 3) { - checkUnnamed1012(o.items); + checkUnnamed1038(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOffers--; @@ -1943,14 +1943,14 @@ buildCounterSeriesSeries--; } -buildUnnamed1013() { +buildUnnamed1039() { var o = new core.List<api.SeriesSeries>(); o.add(buildSeriesSeries()); o.add(buildSeriesSeries()); return o; } -checkUnnamed1013(core.List<api.SeriesSeries> o) { +checkUnnamed1039(core.List<api.SeriesSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkSeriesSeries(o[0]); checkSeriesSeries(o[1]); @@ -1962,7 +1962,7 @@ buildCounterSeries++; if (buildCounterSeries < 3) { o.kind = "foo"; - o.series = buildUnnamed1013(); + o.series = buildUnnamed1039(); } buildCounterSeries--; return o; @@ -1972,19 +1972,19 @@ buildCounterSeries++; if (buildCounterSeries < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1013(o.series); + checkUnnamed1039(o.series); } buildCounterSeries--; } -buildUnnamed1014() { +buildUnnamed1040() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1014(core.List<api.Volume> o) { +checkUnnamed1040(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1996,7 +1996,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { o.kind = "foo"; - o.member = buildUnnamed1014(); + o.member = buildUnnamed1040(); o.nextPageToken = "foo"; } buildCounterSeriesmembership--; @@ -2007,7 +2007,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1014(o.member); + checkUnnamed1040(o.member); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSeriesmembership--; @@ -2228,14 +2228,14 @@ buildCounterVolumeLayerInfoLayers--; } -buildUnnamed1015() { +buildUnnamed1041() { var o = new core.List<api.VolumeLayerInfoLayers>(); o.add(buildVolumeLayerInfoLayers()); o.add(buildVolumeLayerInfoLayers()); return o; } -checkUnnamed1015(core.List<api.VolumeLayerInfoLayers> o) { +checkUnnamed1041(core.List<api.VolumeLayerInfoLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeLayerInfoLayers(o[0]); checkVolumeLayerInfoLayers(o[1]); @@ -2246,7 +2246,7 @@ var o = new api.VolumeLayerInfo(); buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - o.layers = buildUnnamed1015(); + o.layers = buildUnnamed1041(); } buildCounterVolumeLayerInfo--; return o; @@ -2255,7 +2255,7 @@ checkVolumeLayerInfo(api.VolumeLayerInfo o) { buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - checkUnnamed1015(o.layers); + checkUnnamed1041(o.layers); } buildCounterVolumeLayerInfo--; } @@ -2390,14 +2390,14 @@ buildCounterVolumeSaleInfoOffers--; } -buildUnnamed1016() { +buildUnnamed1042() { var o = new core.List<api.VolumeSaleInfoOffers>(); o.add(buildVolumeSaleInfoOffers()); o.add(buildVolumeSaleInfoOffers()); return o; } -checkUnnamed1016(core.List<api.VolumeSaleInfoOffers> o) { +checkUnnamed1042(core.List<api.VolumeSaleInfoOffers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeSaleInfoOffers(o[0]); checkVolumeSaleInfoOffers(o[1]); @@ -2433,7 +2433,7 @@ o.country = "foo"; o.isEbook = true; o.listPrice = buildVolumeSaleInfoListPrice(); - o.offers = buildUnnamed1016(); + o.offers = buildUnnamed1042(); o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); o.retailPrice = buildVolumeSaleInfoRetailPrice(); o.saleability = "foo"; @@ -2449,7 +2449,7 @@ unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.isEbook, unittest.isTrue); checkVolumeSaleInfoListPrice(o.listPrice); - checkUnnamed1016(o.offers); + checkUnnamed1042(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 +2619,27 @@ buildCounterVolumeUserInfo--; } -buildUnnamed1017() { +buildUnnamed1043() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1017(core.List<core.String> o) { +checkUnnamed1043(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1018() { +buildUnnamed1044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1018(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')); @@ -2718,14 +2718,14 @@ buildCounterVolumeVolumeInfoIndustryIdentifiers--; } -buildUnnamed1019() { +buildUnnamed1045() { var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); return o; } -checkUnnamed1019(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { +checkUnnamed1045(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeVolumeInfoIndustryIdentifiers(o[0]); checkVolumeVolumeInfoIndustryIdentifiers(o[1]); @@ -2762,15 +2762,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { o.allowAnonLogging = true; - o.authors = buildUnnamed1017(); + o.authors = buildUnnamed1043(); o.averageRating = 42.0; o.canonicalVolumeLink = "foo"; - o.categories = buildUnnamed1018(); + o.categories = buildUnnamed1044(); o.contentVersion = "foo"; o.description = "foo"; o.dimensions = buildVolumeVolumeInfoDimensions(); o.imageLinks = buildVolumeVolumeInfoImageLinks(); - o.industryIdentifiers = buildUnnamed1019(); + o.industryIdentifiers = buildUnnamed1045(); o.infoLink = "foo"; o.language = "foo"; o.mainCategory = "foo"; @@ -2797,15 +2797,15 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { unittest.expect(o.allowAnonLogging, unittest.isTrue); - checkUnnamed1017(o.authors); + checkUnnamed1043(o.authors); unittest.expect(o.averageRating, unittest.equals(42.0)); unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); - checkUnnamed1018(o.categories); + checkUnnamed1044(o.categories); unittest.expect(o.contentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkVolumeVolumeInfoDimensions(o.dimensions); checkVolumeVolumeInfoImageLinks(o.imageLinks); - checkUnnamed1019(o.industryIdentifiers); + checkUnnamed1045(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 +2866,14 @@ buildCounterVolume--; } -buildUnnamed1020() { +buildUnnamed1046() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1020(core.List<api.Volume> o) { +checkUnnamed1046(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -2884,7 +2884,7 @@ var o = new api.Volume2(); buildCounterVolume2++; if (buildCounterVolume2 < 3) { - o.items = buildUnnamed1020(); + o.items = buildUnnamed1046(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2895,7 +2895,7 @@ checkVolume2(api.Volume2 o) { buildCounterVolume2++; if (buildCounterVolume2 < 3) { - checkUnnamed1020(o.items); + checkUnnamed1046(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2927,14 +2927,14 @@ buildCounterVolumeannotationContentRanges--; } -buildUnnamed1021() { +buildUnnamed1047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1021(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')); @@ -2954,7 +2954,7 @@ o.id = "foo"; o.kind = "foo"; o.layerId = "foo"; - o.pageIds = buildUnnamed1021(); + o.pageIds = buildUnnamed1047(); o.selectedText = "foo"; o.selfLink = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2976,7 +2976,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); - checkUnnamed1021(o.pageIds); + checkUnnamed1047(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 +2985,14 @@ buildCounterVolumeannotation--; } -buildUnnamed1022() { +buildUnnamed1048() { var o = new core.List<api.Volumeannotation>(); o.add(buildVolumeannotation()); o.add(buildVolumeannotation()); return o; } -checkUnnamed1022(core.List<api.Volumeannotation> o) { +checkUnnamed1048(core.List<api.Volumeannotation> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeannotation(o[0]); checkVolumeannotation(o[1]); @@ -3003,7 +3003,7 @@ var o = new api.Volumeannotations(); buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - o.items = buildUnnamed1022(); + o.items = buildUnnamed1048(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -3016,7 +3016,7 @@ checkVolumeannotations(api.Volumeannotations o) { buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - checkUnnamed1022(o.items); + checkUnnamed1048(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 +3025,14 @@ buildCounterVolumeannotations--; } -buildUnnamed1023() { +buildUnnamed1049() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed1023(core.List<api.Volume> o) { +checkUnnamed1049(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3043,7 +3043,7 @@ var o = new api.Volumes(); buildCounterVolumes++; if (buildCounterVolumes < 3) { - o.items = buildUnnamed1023(); + o.items = buildUnnamed1049(); o.kind = "foo"; o.totalItems = 42; } @@ -3054,7 +3054,7 @@ checkVolumes(api.Volumes o) { buildCounterVolumes++; if (buildCounterVolumes < 3) { - checkUnnamed1023(o.items); + checkUnnamed1049(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -3082,14 +3082,14 @@ buildCounterVolumeseriesinfoVolumeSeriesIssue--; } -buildUnnamed1024() { +buildUnnamed1050() { var o = new core.List<api.VolumeseriesinfoVolumeSeriesIssue>(); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); return o; } -checkUnnamed1024(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { +checkUnnamed1050(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeriesIssue(o[0]); checkVolumeseriesinfoVolumeSeriesIssue(o[1]); @@ -3100,7 +3100,7 @@ var o = new api.VolumeseriesinfoVolumeSeries(); buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - o.issue = buildUnnamed1024(); + o.issue = buildUnnamed1050(); o.orderNumber = 42; o.seriesBookType = "foo"; o.seriesId = "foo"; @@ -3112,7 +3112,7 @@ checkVolumeseriesinfoVolumeSeries(api.VolumeseriesinfoVolumeSeries o) { buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - checkUnnamed1024(o.issue); + checkUnnamed1050(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 +3120,14 @@ buildCounterVolumeseriesinfoVolumeSeries--; } -buildUnnamed1025() { +buildUnnamed1051() { var o = new core.List<api.VolumeseriesinfoVolumeSeries>(); o.add(buildVolumeseriesinfoVolumeSeries()); o.add(buildVolumeseriesinfoVolumeSeries()); return o; } -checkUnnamed1025(core.List<api.VolumeseriesinfoVolumeSeries> o) { +checkUnnamed1051(core.List<api.VolumeseriesinfoVolumeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeries(o[0]); checkVolumeseriesinfoVolumeSeries(o[1]); @@ -3141,7 +3141,7 @@ o.bookDisplayNumber = "foo"; o.kind = "foo"; o.shortSeriesBookTitle = "foo"; - o.volumeSeries = buildUnnamed1025(); + o.volumeSeries = buildUnnamed1051(); } buildCounterVolumeseriesinfo--; return o; @@ -3153,162 +3153,162 @@ unittest.expect(o.bookDisplayNumber, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.shortSeriesBookTitle, unittest.equals('foo')); - checkUnnamed1025(o.volumeSeries); + checkUnnamed1051(o.volumeSeries); } buildCounterVolumeseriesinfo--; } -buildUnnamed1026() { +buildUnnamed1052() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1026(core.List<core.String> o) { +checkUnnamed1052(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1027() { +buildUnnamed1053() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1027(core.List<core.String> o) { +checkUnnamed1053(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1028() { +buildUnnamed1054() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1028(core.List<core.String> o) { +checkUnnamed1054(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1029() { +buildUnnamed1055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1029(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')); } -buildUnnamed1030() { +buildUnnamed1056() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1030(core.List<core.String> o) { +checkUnnamed1056(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1031() { +buildUnnamed1057() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1031(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')); } -buildUnnamed1032() { +buildUnnamed1058() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1032(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')); } -buildUnnamed1033() { +buildUnnamed1059() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1033(core.List<core.String> o) { +checkUnnamed1059(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1034() { +buildUnnamed1060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1034(core.List<core.String> o) { +checkUnnamed1060(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1035() { +buildUnnamed1061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1035(core.List<core.String> o) { +checkUnnamed1061(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1036() { +buildUnnamed1062() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1036(core.List<core.String> o) { +checkUnnamed1062(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1037() { +buildUnnamed1063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1037(core.List<core.String> o) { +checkUnnamed1063(core.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 +4831,7 @@ var arg_volumeId = "foo"; var arg_layerId = "foo"; var arg_contentVersion = "foo"; - var arg_annotationDataId = buildUnnamed1026(); + var arg_annotationDataId = buildUnnamed1052(); var arg_h = 42; var arg_locale = "foo"; var arg_maxResults = 42; @@ -5116,7 +5116,7 @@ var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_volumeIds = buildUnnamed1027(); + var arg_volumeIds = buildUnnamed1053(); var arg_cpksver = "foo"; var arg_locale = "foo"; var arg_source = "foo"; @@ -5229,11 +5229,11 @@ var arg_source = "foo"; var arg_nonce = "foo"; var arg_cpksver = "foo"; - var arg_features = buildUnnamed1028(); + var arg_features = buildUnnamed1054(); var arg_includeNonComicsSeries = true; var arg_locale = "foo"; var arg_showPreorders = true; - var arg_volumeIds = buildUnnamed1029(); + var arg_volumeIds = buildUnnamed1055(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5446,7 +5446,7 @@ api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; var arg_contentVersion = "foo"; var arg_layerId = "foo"; - var arg_layerIds = buildUnnamed1030(); + var arg_layerIds = buildUnnamed1056(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_showDeleted = true; @@ -5509,7 +5509,7 @@ var mock = new HttpServerMock(); api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; - var arg_layerIds = buildUnnamed1031(); + var arg_layerIds = buildUnnamed1057(); var arg_volumeId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -6236,7 +6236,7 @@ var mock = new HttpServerMock(); api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; - var arg_categoryId = buildUnnamed1032(); + var arg_categoryId = buildUnnamed1058(); var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; var arg_pageSize = 42; @@ -6527,7 +6527,7 @@ var mock = new HttpServerMock(); api.SeriesResourceApi res = new api.BooksApi(mock).series; - var arg_seriesId = buildUnnamed1033(); + var arg_seriesId = buildUnnamed1059(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -6699,6 +6699,7 @@ var arg_filter = "foo"; var arg_langRestrict = "foo"; var arg_libraryRestrict = "foo"; + var arg_maxAllowedMaturityRating = "foo"; var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_partner = "foo"; @@ -6740,6 +6741,7 @@ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["langRestrict"].first, unittest.equals(arg_langRestrict)); unittest.expect(queryMap["libraryRestrict"].first, unittest.equals(arg_libraryRestrict)); + unittest.expect(queryMap["maxAllowedMaturityRating"].first, unittest.equals(arg_maxAllowedMaturityRating)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["partner"].first, unittest.equals(arg_partner)); @@ -6756,7 +6758,7 @@ var resp = convert.JSON.encode(buildVolumes()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_q, download: arg_download, filter: arg_filter, langRestrict: arg_langRestrict, libraryRestrict: arg_libraryRestrict, maxResults: arg_maxResults, orderBy: arg_orderBy, partner: arg_partner, printType: arg_printType, projection: arg_projection, showPreorders: arg_showPreorders, source: arg_source, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) { + res.list(arg_q, download: arg_download, filter: arg_filter, langRestrict: arg_langRestrict, libraryRestrict: arg_libraryRestrict, maxAllowedMaturityRating: arg_maxAllowedMaturityRating, maxResults: arg_maxResults, orderBy: arg_orderBy, partner: arg_partner, printType: arg_printType, projection: arg_projection, showPreorders: arg_showPreorders, source: arg_source, startIndex: arg_startIndex).then(unittest.expectAsync(((api.Volumes response) { checkVolumes(response); }))); }); @@ -6834,11 +6836,11 @@ var mock = new HttpServerMock(); api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks; - var arg_acquireMethod = buildUnnamed1034(); + var arg_acquireMethod = buildUnnamed1060(); var arg_country = "foo"; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed1035(); + var arg_processingState = buildUnnamed1061(); var arg_source = "foo"; var arg_startIndex = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -7007,10 +7009,10 @@ api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.useruploaded; var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed1036(); + var arg_processingState = buildUnnamed1062(); var arg_source = "foo"; var arg_startIndex = 42; - var arg_volumeId = buildUnnamed1037(); + var arg_volumeId = buildUnnamed1063(); 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 47a8e24..e295f16 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); } -buildUnnamed1192() { +buildUnnamed1218() { var o = new core.List<api.AclRule>(); o.add(buildAclRule()); o.add(buildAclRule()); return o; } -checkUnnamed1192(core.List<api.AclRule> o) { +checkUnnamed1218(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 = buildUnnamed1192(); + o.items = buildUnnamed1218(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -83,7 +83,7 @@ buildCounterAcl++; if (buildCounterAcl < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1192(o.items); + checkUnnamed1218(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--; } -buildUnnamed1193() { +buildUnnamed1219() { var o = new core.List<api.CalendarListEntry>(); o.add(buildCalendarListEntry()); o.add(buildCalendarListEntry()); return o; } -checkUnnamed1193(core.List<api.CalendarListEntry> o) { +checkUnnamed1219(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 = buildUnnamed1193(); + o.items = buildUnnamed1219(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -202,7 +202,7 @@ buildCounterCalendarList++; if (buildCounterCalendarList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1193(o.items); + checkUnnamed1219(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--; } -buildUnnamed1194() { +buildUnnamed1220() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1194(core.List<api.EventReminder> o) { +checkUnnamed1220(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed1195() { +buildUnnamed1221() { var o = new core.List<api.CalendarNotification>(); o.add(buildCalendarNotification()); o.add(buildCalendarNotification()); return o; } -checkUnnamed1195(core.List<api.CalendarNotification> o) { +checkUnnamed1221(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 = buildUnnamed1195(); + o.notifications = buildUnnamed1221(); } buildCounterCalendarListEntryNotificationSettings--; return o; @@ -250,7 +250,7 @@ checkCalendarListEntryNotificationSettings(api.CalendarListEntryNotificationSettings o) { buildCounterCalendarListEntryNotificationSettings++; if (buildCounterCalendarListEntryNotificationSettings < 3) { - checkUnnamed1195(o.notifications); + checkUnnamed1221(o.notifications); } buildCounterCalendarListEntryNotificationSettings--; } @@ -263,7 +263,7 @@ o.accessRole = "foo"; o.backgroundColor = "foo"; o.colorId = "foo"; - o.defaultReminders = buildUnnamed1194(); + o.defaultReminders = buildUnnamed1220(); 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')); - checkUnnamed1194(o.defaultReminders); + checkUnnamed1220(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--; } -buildUnnamed1196() { +buildUnnamed1222() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1196(core.Map<core.String, core.String> o) { +checkUnnamed1222(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 = buildUnnamed1196(); + o.params = buildUnnamed1222(); 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')); - checkUnnamed1196(o.params); + checkUnnamed1222(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--; } -buildUnnamed1197() { +buildUnnamed1223() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed1197(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed1223(core.Map<core.String, api.ColorDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkColorDefinition(o["x"]); checkColorDefinition(o["y"]); } -buildUnnamed1198() { +buildUnnamed1224() { var o = new core.Map<core.String, api.ColorDefinition>(); o["x"] = buildColorDefinition(); o["y"] = buildColorDefinition(); return o; } -checkUnnamed1198(core.Map<core.String, api.ColorDefinition> o) { +checkUnnamed1224(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 = buildUnnamed1197(); - o.event = buildUnnamed1198(); + o.calendar = buildUnnamed1223(); + o.event = buildUnnamed1224(); 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) { - checkUnnamed1197(o.calendar); - checkUnnamed1198(o.event); + checkUnnamed1223(o.calendar); + checkUnnamed1224(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--; } -buildUnnamed1199() { +buildUnnamed1225() { var o = new core.List<api.EventAttachment>(); o.add(buildEventAttachment()); o.add(buildEventAttachment()); return o; } -checkUnnamed1199(core.List<api.EventAttachment> o) { +checkUnnamed1225(core.List<api.EventAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttachment(o[0]); checkEventAttachment(o[1]); } -buildUnnamed1200() { +buildUnnamed1226() { var o = new core.List<api.EventAttendee>(); o.add(buildEventAttendee()); o.add(buildEventAttendee()); return o; } -checkUnnamed1200(core.List<api.EventAttendee> o) { +checkUnnamed1226(core.List<api.EventAttendee> o) { unittest.expect(o, unittest.hasLength(2)); checkEventAttendee(o[0]); checkEventAttendee(o[1]); @@ -523,27 +523,27 @@ buildCounterEventCreator--; } -buildUnnamed1201() { +buildUnnamed1227() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1201(core.Map<core.String, core.String> o) { +checkUnnamed1227(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')); } -buildUnnamed1202() { +buildUnnamed1228() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1202(core.Map<core.String, core.String> o) { +checkUnnamed1228(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 = buildUnnamed1201(); - o.shared = buildUnnamed1202(); + o.private = buildUnnamed1227(); + o.shared = buildUnnamed1228(); } buildCounterEventExtendedProperties--; return o; @@ -564,20 +564,20 @@ checkEventExtendedProperties(api.EventExtendedProperties o) { buildCounterEventExtendedProperties++; if (buildCounterEventExtendedProperties < 3) { - checkUnnamed1201(o.private); - checkUnnamed1202(o.shared); + checkUnnamed1227(o.private); + checkUnnamed1228(o.shared); } buildCounterEventExtendedProperties--; } -buildUnnamed1203() { +buildUnnamed1229() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1203(core.Map<core.String, core.String> o) { +checkUnnamed1229(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 = buildUnnamed1203(); + o.preferences = buildUnnamed1229(); 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')); - checkUnnamed1203(o.preferences); + checkUnnamed1229(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--; } -buildUnnamed1204() { +buildUnnamed1230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1204(core.List<core.String> o) { +checkUnnamed1230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1205() { +buildUnnamed1231() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1205(core.List<api.EventReminder> o) { +checkUnnamed1231(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 = buildUnnamed1205(); + o.overrides = buildUnnamed1231(); o.useDefault = true; } buildCounterEventReminders--; @@ -682,7 +682,7 @@ checkEventReminders(api.EventReminders o) { buildCounterEventReminders++; if (buildCounterEventReminders < 3) { - checkUnnamed1205(o.overrides); + checkUnnamed1231(o.overrides); unittest.expect(o.useDefault, unittest.isTrue); } buildCounterEventReminders--; @@ -715,8 +715,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { o.anyoneCanAddSelf = true; - o.attachments = buildUnnamed1199(); - o.attendees = buildUnnamed1200(); + o.attachments = buildUnnamed1225(); + o.attendees = buildUnnamed1226(); 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 = buildUnnamed1204(); + o.recurrence = buildUnnamed1230(); o.recurringEventId = "foo"; o.reminders = buildEventReminders(); o.sequence = 42; @@ -760,8 +760,8 @@ buildCounterEvent++; if (buildCounterEvent < 3) { unittest.expect(o.anyoneCanAddSelf, unittest.isTrue); - checkUnnamed1199(o.attachments); - checkUnnamed1200(o.attendees); + checkUnnamed1225(o.attachments); + checkUnnamed1226(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); - checkUnnamed1204(o.recurrence); + checkUnnamed1230(o.recurrence); unittest.expect(o.recurringEventId, unittest.equals('foo')); checkEventReminders(o.reminders); unittest.expect(o.sequence, unittest.equals(42)); @@ -908,27 +908,27 @@ buildCounterEventReminder--; } -buildUnnamed1206() { +buildUnnamed1232() { var o = new core.List<api.EventReminder>(); o.add(buildEventReminder()); o.add(buildEventReminder()); return o; } -checkUnnamed1206(core.List<api.EventReminder> o) { +checkUnnamed1232(core.List<api.EventReminder> o) { unittest.expect(o, unittest.hasLength(2)); checkEventReminder(o[0]); checkEventReminder(o[1]); } -buildUnnamed1207() { +buildUnnamed1233() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1207(core.List<api.Event> o) { +checkUnnamed1233(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 = buildUnnamed1206(); + o.defaultReminders = buildUnnamed1232(); o.description = "foo"; o.etag = "foo"; - o.items = buildUnnamed1207(); + o.items = buildUnnamed1233(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -959,10 +959,10 @@ buildCounterEvents++; if (buildCounterEvents < 3) { unittest.expect(o.accessRole, unittest.equals('foo')); - checkUnnamed1206(o.defaultReminders); + checkUnnamed1232(o.defaultReminders); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1207(o.items); + checkUnnamed1233(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--; } -buildUnnamed1208() { +buildUnnamed1234() { var o = new core.List<api.TimePeriod>(); o.add(buildTimePeriod()); o.add(buildTimePeriod()); return o; } -checkUnnamed1208(core.List<api.TimePeriod> o) { +checkUnnamed1234(core.List<api.TimePeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkTimePeriod(o[0]); checkTimePeriod(o[1]); } -buildUnnamed1209() { +buildUnnamed1235() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1209(core.List<api.Error> o) { +checkUnnamed1235(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 = buildUnnamed1208(); - o.errors = buildUnnamed1209(); + o.busy = buildUnnamed1234(); + o.errors = buildUnnamed1235(); } buildCounterFreeBusyCalendar--; return o; @@ -1014,33 +1014,33 @@ checkFreeBusyCalendar(api.FreeBusyCalendar o) { buildCounterFreeBusyCalendar++; if (buildCounterFreeBusyCalendar < 3) { - checkUnnamed1208(o.busy); - checkUnnamed1209(o.errors); + checkUnnamed1234(o.busy); + checkUnnamed1235(o.errors); } buildCounterFreeBusyCalendar--; } -buildUnnamed1210() { +buildUnnamed1236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1210(core.List<core.String> o) { +checkUnnamed1236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1211() { +buildUnnamed1237() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1211(core.List<api.Error> o) { +checkUnnamed1237(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 = buildUnnamed1210(); - o.errors = buildUnnamed1211(); + o.calendars = buildUnnamed1236(); + o.errors = buildUnnamed1237(); } buildCounterFreeBusyGroup--; return o; @@ -1061,20 +1061,20 @@ checkFreeBusyGroup(api.FreeBusyGroup o) { buildCounterFreeBusyGroup++; if (buildCounterFreeBusyGroup < 3) { - checkUnnamed1210(o.calendars); - checkUnnamed1211(o.errors); + checkUnnamed1236(o.calendars); + checkUnnamed1237(o.errors); } buildCounterFreeBusyGroup--; } -buildUnnamed1212() { +buildUnnamed1238() { var o = new core.List<api.FreeBusyRequestItem>(); o.add(buildFreeBusyRequestItem()); o.add(buildFreeBusyRequestItem()); return o; } -checkUnnamed1212(core.List<api.FreeBusyRequestItem> o) { +checkUnnamed1238(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 = buildUnnamed1212(); + o.items = buildUnnamed1238(); 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)); - checkUnnamed1212(o.items); + checkUnnamed1238(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--; } -buildUnnamed1213() { +buildUnnamed1239() { var o = new core.Map<core.String, api.FreeBusyCalendar>(); o["x"] = buildFreeBusyCalendar(); o["y"] = buildFreeBusyCalendar(); return o; } -checkUnnamed1213(core.Map<core.String, api.FreeBusyCalendar> o) { +checkUnnamed1239(core.Map<core.String, api.FreeBusyCalendar> o) { unittest.expect(o, unittest.hasLength(2)); checkFreeBusyCalendar(o["x"]); checkFreeBusyCalendar(o["y"]); } -buildUnnamed1214() { +buildUnnamed1240() { var o = new core.Map<core.String, api.FreeBusyGroup>(); o["x"] = buildFreeBusyGroup(); o["y"] = buildFreeBusyGroup(); return o; } -checkUnnamed1214(core.Map<core.String, api.FreeBusyGroup> o) { +checkUnnamed1240(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 = buildUnnamed1213(); - o.groups = buildUnnamed1214(); + o.calendars = buildUnnamed1239(); + o.groups = buildUnnamed1240(); 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) { - checkUnnamed1213(o.calendars); - checkUnnamed1214(o.groups); + checkUnnamed1239(o.calendars); + checkUnnamed1240(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--; } -buildUnnamed1215() { +buildUnnamed1241() { var o = new core.List<api.Setting>(); o.add(buildSetting()); o.add(buildSetting()); return o; } -checkUnnamed1215(core.List<api.Setting> o) { +checkUnnamed1241(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 = buildUnnamed1215(); + o.items = buildUnnamed1241(); o.kind = "foo"; o.nextPageToken = "foo"; o.nextSyncToken = "foo"; @@ -1238,7 +1238,7 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1215(o.items); + checkUnnamed1241(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--; } -buildUnnamed1216() { +buildUnnamed1242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1216(core.List<core.String> o) { +checkUnnamed1242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1217() { +buildUnnamed1243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1217(core.List<core.String> o) { +checkUnnamed1243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1218() { +buildUnnamed1244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1218(core.List<core.String> o) { +checkUnnamed1244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1219() { +buildUnnamed1245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1219(core.List<core.String> o) { +checkUnnamed1245(core.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 = buildUnnamed1216(); + var arg_privateExtendedProperty = buildUnnamed1242(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed1217(); + var arg_sharedExtendedProperty = buildUnnamed1243(); 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 = buildUnnamed1218(); + var arg_privateExtendedProperty = buildUnnamed1244(); var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed1219(); + var arg_sharedExtendedProperty = buildUnnamed1245(); 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 d6883c3..5ca36d1 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); } -buildUnnamed2602() { +buildUnnamed2675() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2602(core.List<api.Source> o) { +checkUnnamed2675(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 = buildUnnamed2602(); + o.sources = buildUnnamed2675(); } buildCounterAdministrationRegion--; return o; @@ -86,45 +86,45 @@ unittest.expect(o.id, unittest.equals('foo')); checkAdministrationRegion(o.localJurisdiction); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2602(o.sources); + checkUnnamed2675(o.sources); } buildCounterAdministrationRegion--; } -buildUnnamed2603() { +buildUnnamed2676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2603(core.List<core.String> o) { +checkUnnamed2676(core.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() { +buildUnnamed2677() { var o = new core.List<api.ElectionOfficial>(); o.add(buildElectionOfficial()); o.add(buildElectionOfficial()); return o; } -checkUnnamed2604(core.List<api.ElectionOfficial> o) { +checkUnnamed2677(core.List<api.ElectionOfficial> o) { unittest.expect(o, unittest.hasLength(2)); checkElectionOfficial(o[0]); checkElectionOfficial(o[1]); } -buildUnnamed2605() { +buildUnnamed2678() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2605(core.List<core.String> o) { +checkUnnamed2678(core.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 = buildUnnamed2603(); + o.addressLines = buildUnnamed2676(); o.ballotInfoUrl = "foo"; o.correspondenceAddress = buildSimpleAddressType(); o.electionInfoUrl = "foo"; - o.electionOfficials = buildUnnamed2604(); + o.electionOfficials = buildUnnamed2677(); o.electionRegistrationConfirmationUrl = "foo"; o.electionRegistrationUrl = "foo"; o.electionRulesUrl = "foo"; o.hoursOfOperation = "foo"; o.name = "foo"; o.physicalAddress = buildSimpleAddressType(); - o.voterServices = buildUnnamed2605(); + o.voterServices = buildUnnamed2678(); o.votingLocationFinderUrl = "foo"; } buildCounterAdministrativeBody--; @@ -158,31 +158,31 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); - checkUnnamed2603(o.addressLines); + checkUnnamed2676(o.addressLines); unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); checkSimpleAddressType(o.correspondenceAddress); unittest.expect(o.electionInfoUrl, unittest.equals('foo')); - checkUnnamed2604(o.electionOfficials); + checkUnnamed2677(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); - checkUnnamed2605(o.voterServices); + checkUnnamed2678(o.voterServices); unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); } buildCounterAdministrativeBody--; } -buildUnnamed2606() { +buildUnnamed2679() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed2606(core.List<api.Channel> o) { +checkUnnamed2679(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 = buildUnnamed2606(); + o.channels = buildUnnamed2679(); o.email = "foo"; o.name = "foo"; o.orderOnBallot = "foo"; @@ -210,7 +210,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { unittest.expect(o.candidateUrl, unittest.equals('foo')); - checkUnnamed2606(o.channels); + checkUnnamed2679(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--; } -buildUnnamed2607() { +buildUnnamed2680() { var o = new core.List<api.Candidate>(); o.add(buildCandidate()); o.add(buildCandidate()); return o; } -checkUnnamed2607(core.List<api.Candidate> o) { +checkUnnamed2680(core.List<api.Candidate> o) { unittest.expect(o, unittest.hasLength(2)); checkCandidate(o[0]); checkCandidate(o[1]); } -buildUnnamed2608() { +buildUnnamed2681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2608(core.List<core.String> o) { +checkUnnamed2681(core.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() { +buildUnnamed2682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2609(core.List<core.String> o) { +checkUnnamed2682(core.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() { +buildUnnamed2683() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2610(core.List<core.String> o) { +checkUnnamed2683(core.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() { +buildUnnamed2684() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2611(core.List<api.Source> o) { +checkUnnamed2684(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 = buildUnnamed2607(); + o.candidates = buildUnnamed2680(); o.district = buildElectoralDistrict(); o.electorateSpecifications = "foo"; o.id = "foo"; - o.level = buildUnnamed2608(); + o.level = buildUnnamed2681(); o.numberElected = "foo"; o.numberVotingFor = "foo"; o.office = "foo"; o.primaryParty = "foo"; - o.referendumBallotResponses = buildUnnamed2609(); + o.referendumBallotResponses = buildUnnamed2682(); o.referendumBrief = "foo"; o.referendumConStatement = "foo"; o.referendumEffectOfAbstain = "foo"; @@ -332,8 +332,8 @@ o.referendumText = "foo"; o.referendumTitle = "foo"; o.referendumUrl = "foo"; - o.roles = buildUnnamed2610(); - o.sources = buildUnnamed2611(); + o.roles = buildUnnamed2683(); + o.sources = buildUnnamed2684(); o.special = "foo"; o.type = "foo"; } @@ -345,16 +345,16 @@ buildCounterContest++; if (buildCounterContest < 3) { unittest.expect(o.ballotPlacement, unittest.equals('foo')); - checkUnnamed2607(o.candidates); + checkUnnamed2680(o.candidates); checkElectoralDistrict(o.district); unittest.expect(o.electorateSpecifications, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2608(o.level); + checkUnnamed2681(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')); - checkUnnamed2609(o.referendumBallotResponses); + checkUnnamed2682(o.referendumBallotResponses); unittest.expect(o.referendumBrief, unittest.equals('foo')); unittest.expect(o.referendumConStatement, unittest.equals('foo')); unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); @@ -364,22 +364,79 @@ unittest.expect(o.referendumText, unittest.equals('foo')); unittest.expect(o.referendumTitle, unittest.equals('foo')); unittest.expect(o.referendumUrl, unittest.equals('foo')); - checkUnnamed2610(o.roles); - checkUnnamed2611(o.sources); + checkUnnamed2683(o.roles); + checkUnnamed2684(o.sources); unittest.expect(o.special, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterContest--; } -buildUnnamed2612() { +core.int buildCounterContextParams = 0; +buildContextParams() { + var o = new api.ContextParams(); + buildCounterContextParams++; + if (buildCounterContextParams < 3) { + o.clientProfile = "foo"; + } + buildCounterContextParams--; + return o; +} + +checkContextParams(api.ContextParams o) { + buildCounterContextParams++; + if (buildCounterContextParams < 3) { + unittest.expect(o.clientProfile, unittest.equals('foo')); + } + buildCounterContextParams--; +} + +core.int buildCounterDivisionRepresentativeInfoRequest = 0; +buildDivisionRepresentativeInfoRequest() { + var o = new api.DivisionRepresentativeInfoRequest(); + buildCounterDivisionRepresentativeInfoRequest++; + if (buildCounterDivisionRepresentativeInfoRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterDivisionRepresentativeInfoRequest--; + return o; +} + +checkDivisionRepresentativeInfoRequest(api.DivisionRepresentativeInfoRequest o) { + buildCounterDivisionRepresentativeInfoRequest++; + if (buildCounterDivisionRepresentativeInfoRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterDivisionRepresentativeInfoRequest--; +} + +core.int buildCounterDivisionSearchRequest = 0; +buildDivisionSearchRequest() { + var o = new api.DivisionSearchRequest(); + buildCounterDivisionSearchRequest++; + if (buildCounterDivisionSearchRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterDivisionSearchRequest--; + return o; +} + +checkDivisionSearchRequest(api.DivisionSearchRequest o) { + buildCounterDivisionSearchRequest++; + if (buildCounterDivisionSearchRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterDivisionSearchRequest--; +} + +buildUnnamed2685() { var o = new core.List<api.DivisionSearchResult>(); o.add(buildDivisionSearchResult()); o.add(buildDivisionSearchResult()); return o; } -checkUnnamed2612(core.List<api.DivisionSearchResult> o) { +checkUnnamed2685(core.List<api.DivisionSearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkDivisionSearchResult(o[0]); checkDivisionSearchResult(o[1]); @@ -391,7 +448,7 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed2612(); + o.results = buildUnnamed2685(); } buildCounterDivisionSearchResponse--; return o; @@ -401,19 +458,19 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2612(o.results); + checkUnnamed2685(o.results); } buildCounterDivisionSearchResponse--; } -buildUnnamed2613() { +buildUnnamed2686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2613(core.List<core.String> o) { +checkUnnamed2686(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -424,7 +481,7 @@ var o = new api.DivisionSearchResult(); buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - o.aliases = buildUnnamed2613(); + o.aliases = buildUnnamed2686(); o.name = "foo"; o.ocdId = "foo"; } @@ -435,7 +492,7 @@ checkDivisionSearchResult(api.DivisionSearchResult o) { buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - checkUnnamed2613(o.aliases); + checkUnnamed2686(o.aliases); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ocdId, unittest.equals('foo')); } @@ -494,14 +551,33 @@ buildCounterElectionOfficial--; } -buildUnnamed2614() { +core.int buildCounterElectionsQueryRequest = 0; +buildElectionsQueryRequest() { + var o = new api.ElectionsQueryRequest(); + buildCounterElectionsQueryRequest++; + if (buildCounterElectionsQueryRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterElectionsQueryRequest--; + return o; +} + +checkElectionsQueryRequest(api.ElectionsQueryRequest o) { + buildCounterElectionsQueryRequest++; + if (buildCounterElectionsQueryRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterElectionsQueryRequest--; +} + +buildUnnamed2687() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed2614(core.List<api.Election> o) { +checkUnnamed2687(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); @@ -512,7 +588,7 @@ var o = new api.ElectionsQueryResponse(); buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - o.elections = buildUnnamed2614(); + o.elections = buildUnnamed2687(); o.kind = "foo"; } buildCounterElectionsQueryResponse--; @@ -522,7 +598,7 @@ checkElectionsQueryResponse(api.ElectionsQueryResponse o) { buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - checkUnnamed2614(o.elections); + checkUnnamed2687(o.elections); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterElectionsQueryResponse--; @@ -553,27 +629,27 @@ buildCounterElectoralDistrict--; } -buildUnnamed2615() { +buildUnnamed2688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2615(core.List<core.String> o) { +checkUnnamed2688(core.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() { +buildUnnamed2689() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2616(core.List<core.int> o) { +checkUnnamed2689(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)); @@ -584,9 +660,9 @@ var o = new api.GeographicDivision(); buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - o.alsoKnownAs = buildUnnamed2615(); + o.alsoKnownAs = buildUnnamed2688(); o.name = "foo"; - o.officeIndices = buildUnnamed2616(); + o.officeIndices = buildUnnamed2689(); } buildCounterGeographicDivision--; return o; @@ -595,60 +671,60 @@ checkGeographicDivision(api.GeographicDivision o) { buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - checkUnnamed2615(o.alsoKnownAs); + checkUnnamed2688(o.alsoKnownAs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2616(o.officeIndices); + checkUnnamed2689(o.officeIndices); } buildCounterGeographicDivision--; } -buildUnnamed2617() { +buildUnnamed2690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2617(core.List<core.String> o) { +checkUnnamed2690(core.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() { +buildUnnamed2691() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2618(core.List<core.int> o) { +checkUnnamed2691(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)); } -buildUnnamed2619() { +buildUnnamed2692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2619(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')); } -buildUnnamed2620() { +buildUnnamed2693() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2620(core.List<api.Source> o) { +checkUnnamed2693(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -660,11 +736,11 @@ buildCounterOffice++; if (buildCounterOffice < 3) { o.divisionId = "foo"; - o.levels = buildUnnamed2617(); + o.levels = buildUnnamed2690(); o.name = "foo"; - o.officialIndices = buildUnnamed2618(); - o.roles = buildUnnamed2619(); - o.sources = buildUnnamed2620(); + o.officialIndices = buildUnnamed2691(); + o.roles = buildUnnamed2692(); + o.sources = buildUnnamed2693(); } buildCounterOffice--; return o; @@ -674,75 +750,75 @@ buildCounterOffice++; if (buildCounterOffice < 3) { unittest.expect(o.divisionId, unittest.equals('foo')); - checkUnnamed2617(o.levels); + checkUnnamed2690(o.levels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2618(o.officialIndices); - checkUnnamed2619(o.roles); - checkUnnamed2620(o.sources); + checkUnnamed2691(o.officialIndices); + checkUnnamed2692(o.roles); + checkUnnamed2693(o.sources); } buildCounterOffice--; } -buildUnnamed2621() { +buildUnnamed2694() { var o = new core.List<api.SimpleAddressType>(); o.add(buildSimpleAddressType()); o.add(buildSimpleAddressType()); return o; } -checkUnnamed2621(core.List<api.SimpleAddressType> o) { +checkUnnamed2694(core.List<api.SimpleAddressType> o) { unittest.expect(o, unittest.hasLength(2)); checkSimpleAddressType(o[0]); checkSimpleAddressType(o[1]); } -buildUnnamed2622() { +buildUnnamed2695() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed2622(core.List<api.Channel> o) { +checkUnnamed2695(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); } -buildUnnamed2623() { +buildUnnamed2696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2623(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')); } -buildUnnamed2624() { +buildUnnamed2697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2624(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')); } -buildUnnamed2625() { +buildUnnamed2698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2625(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')); @@ -753,14 +829,14 @@ var o = new api.Official(); buildCounterOfficial++; if (buildCounterOfficial < 3) { - o.address = buildUnnamed2621(); - o.channels = buildUnnamed2622(); - o.emails = buildUnnamed2623(); + o.address = buildUnnamed2694(); + o.channels = buildUnnamed2695(); + o.emails = buildUnnamed2696(); o.name = "foo"; o.party = "foo"; - o.phones = buildUnnamed2624(); + o.phones = buildUnnamed2697(); o.photoUrl = "foo"; - o.urls = buildUnnamed2625(); + o.urls = buildUnnamed2698(); } buildCounterOfficial--; return o; @@ -769,26 +845,26 @@ checkOfficial(api.Official o) { buildCounterOfficial++; if (buildCounterOfficial < 3) { - checkUnnamed2621(o.address); - checkUnnamed2622(o.channels); - checkUnnamed2623(o.emails); + checkUnnamed2694(o.address); + checkUnnamed2695(o.channels); + checkUnnamed2696(o.emails); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.party, unittest.equals('foo')); - checkUnnamed2624(o.phones); + checkUnnamed2697(o.phones); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2625(o.urls); + checkUnnamed2698(o.urls); } buildCounterOfficial--; } -buildUnnamed2626() { +buildUnnamed2699() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed2626(core.List<api.Source> o) { +checkUnnamed2699(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -805,7 +881,7 @@ o.name = "foo"; o.notes = "foo"; o.pollingHours = "foo"; - o.sources = buildUnnamed2626(); + o.sources = buildUnnamed2699(); o.startDate = "foo"; o.voterServices = "foo"; } @@ -822,47 +898,139 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.pollingHours, unittest.equals('foo')); - checkUnnamed2626(o.sources); + checkUnnamed2699(o.sources); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.voterServices, unittest.equals('foo')); } buildCounterPollingLocation--; } -buildUnnamed2627() { +buildUnnamed2700() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterPostalAddress = 0; +buildPostalAddress() { + var o = new api.PostalAddress(); + buildCounterPostalAddress++; + if (buildCounterPostalAddress < 3) { + o.addressLines = buildUnnamed2700(); + o.administrativeAreaName = "foo"; + o.countryName = "foo"; + o.countryNameCode = "foo"; + o.dependentLocalityName = "foo"; + o.dependentThoroughfareLeadingType = "foo"; + o.dependentThoroughfareName = "foo"; + o.dependentThoroughfarePostDirection = "foo"; + o.dependentThoroughfarePreDirection = "foo"; + o.dependentThoroughfareTrailingType = "foo"; + o.dependentThoroughfaresConnector = "foo"; + o.dependentThoroughfaresIndicator = "foo"; + o.dependentThoroughfaresType = "foo"; + o.firmName = "foo"; + o.isDisputed = true; + o.languageCode = "foo"; + o.localityName = "foo"; + o.postBoxNumber = "foo"; + o.postalCodeNumber = "foo"; + o.postalCodeNumberExtension = "foo"; + o.premiseName = "foo"; + o.recipientName = "foo"; + o.sortingCode = "foo"; + o.subAdministrativeAreaName = "foo"; + o.subPremiseName = "foo"; + o.thoroughfareLeadingType = "foo"; + o.thoroughfareName = "foo"; + o.thoroughfareNumber = "foo"; + o.thoroughfarePostDirection = "foo"; + o.thoroughfarePreDirection = "foo"; + o.thoroughfareTrailingType = "foo"; + } + buildCounterPostalAddress--; + return o; +} + +checkPostalAddress(api.PostalAddress o) { + buildCounterPostalAddress++; + if (buildCounterPostalAddress < 3) { + checkUnnamed2700(o.addressLines); + unittest.expect(o.administrativeAreaName, unittest.equals('foo')); + unittest.expect(o.countryName, unittest.equals('foo')); + unittest.expect(o.countryNameCode, unittest.equals('foo')); + unittest.expect(o.dependentLocalityName, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfareLeadingType, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfareName, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfarePostDirection, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfarePreDirection, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfareTrailingType, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfaresConnector, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfaresIndicator, unittest.equals('foo')); + unittest.expect(o.dependentThoroughfaresType, unittest.equals('foo')); + unittest.expect(o.firmName, unittest.equals('foo')); + unittest.expect(o.isDisputed, unittest.isTrue); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.localityName, unittest.equals('foo')); + unittest.expect(o.postBoxNumber, unittest.equals('foo')); + unittest.expect(o.postalCodeNumber, unittest.equals('foo')); + unittest.expect(o.postalCodeNumberExtension, unittest.equals('foo')); + unittest.expect(o.premiseName, unittest.equals('foo')); + unittest.expect(o.recipientName, unittest.equals('foo')); + unittest.expect(o.sortingCode, unittest.equals('foo')); + unittest.expect(o.subAdministrativeAreaName, unittest.equals('foo')); + unittest.expect(o.subPremiseName, unittest.equals('foo')); + unittest.expect(o.thoroughfareLeadingType, unittest.equals('foo')); + unittest.expect(o.thoroughfareName, unittest.equals('foo')); + unittest.expect(o.thoroughfareNumber, unittest.equals('foo')); + unittest.expect(o.thoroughfarePostDirection, unittest.equals('foo')); + unittest.expect(o.thoroughfarePreDirection, unittest.equals('foo')); + unittest.expect(o.thoroughfareTrailingType, unittest.equals('foo')); + } + buildCounterPostalAddress--; +} + +buildUnnamed2701() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed2627(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed2701(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed2628() { +buildUnnamed2702() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed2628(core.List<api.Office> o) { +checkUnnamed2702(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed2629() { +buildUnnamed2703() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed2629(core.List<api.Official> o) { +checkUnnamed2703(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -873,9 +1041,9 @@ var o = new api.RepresentativeInfoData(); buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - o.divisions = buildUnnamed2627(); - o.offices = buildUnnamed2628(); - o.officials = buildUnnamed2629(); + o.divisions = buildUnnamed2701(); + o.offices = buildUnnamed2702(); + o.officials = buildUnnamed2703(); } buildCounterRepresentativeInfoData--; return o; @@ -884,47 +1052,66 @@ checkRepresentativeInfoData(api.RepresentativeInfoData o) { buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - checkUnnamed2627(o.divisions); - checkUnnamed2628(o.offices); - checkUnnamed2629(o.officials); + checkUnnamed2701(o.divisions); + checkUnnamed2702(o.offices); + checkUnnamed2703(o.officials); } buildCounterRepresentativeInfoData--; } -buildUnnamed2630() { +core.int buildCounterRepresentativeInfoRequest = 0; +buildRepresentativeInfoRequest() { + var o = new api.RepresentativeInfoRequest(); + buildCounterRepresentativeInfoRequest++; + if (buildCounterRepresentativeInfoRequest < 3) { + o.contextParams = buildContextParams(); + } + buildCounterRepresentativeInfoRequest--; + return o; +} + +checkRepresentativeInfoRequest(api.RepresentativeInfoRequest o) { + buildCounterRepresentativeInfoRequest++; + if (buildCounterRepresentativeInfoRequest < 3) { + checkContextParams(o.contextParams); + } + buildCounterRepresentativeInfoRequest--; +} + +buildUnnamed2704() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed2630(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed2704(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed2631() { +buildUnnamed2705() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed2631(core.List<api.Office> o) { +checkUnnamed2705(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed2632() { +buildUnnamed2706() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed2632(core.List<api.Official> o) { +checkUnnamed2706(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -935,11 +1122,11 @@ var o = new api.RepresentativeInfoResponse(); buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - o.divisions = buildUnnamed2630(); + o.divisions = buildUnnamed2704(); o.kind = "foo"; o.normalizedInput = buildSimpleAddressType(); - o.offices = buildUnnamed2631(); - o.officials = buildUnnamed2632(); + o.offices = buildUnnamed2705(); + o.officials = buildUnnamed2706(); } buildCounterRepresentativeInfoResponse--; return o; @@ -948,11 +1135,11 @@ checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - checkUnnamed2630(o.divisions); + checkUnnamed2704(o.divisions); unittest.expect(o.kind, unittest.equals('foo')); checkSimpleAddressType(o.normalizedInput); - checkUnnamed2631(o.offices); - checkUnnamed2632(o.officials); + checkUnnamed2705(o.offices); + checkUnnamed2706(o.officials); } buildCounterRepresentativeInfoResponse--; } @@ -1009,79 +1196,100 @@ buildCounterSource--; } -buildUnnamed2633() { +core.int buildCounterVoterInfoRequest = 0; +buildVoterInfoRequest() { + var o = new api.VoterInfoRequest(); + buildCounterVoterInfoRequest++; + if (buildCounterVoterInfoRequest < 3) { + o.contextParams = buildContextParams(); + o.voterInfoSegmentResult = buildVoterInfoSegmentResult(); + } + buildCounterVoterInfoRequest--; + return o; +} + +checkVoterInfoRequest(api.VoterInfoRequest o) { + buildCounterVoterInfoRequest++; + if (buildCounterVoterInfoRequest < 3) { + checkContextParams(o.contextParams); + checkVoterInfoSegmentResult(o.voterInfoSegmentResult); + } + buildCounterVoterInfoRequest--; +} + +buildUnnamed2707() { var o = new core.List<api.Contest>(); o.add(buildContest()); o.add(buildContest()); return o; } -checkUnnamed2633(core.List<api.Contest> o) { +checkUnnamed2707(core.List<api.Contest> o) { unittest.expect(o, unittest.hasLength(2)); checkContest(o[0]); checkContest(o[1]); } -buildUnnamed2634() { +buildUnnamed2708() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2634(core.List<api.PollingLocation> o) { +checkUnnamed2708(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2635() { +buildUnnamed2709() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2635(core.List<api.PollingLocation> o) { +checkUnnamed2709(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2636() { +buildUnnamed2710() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed2636(core.List<api.Election> o) { +checkUnnamed2710(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); } -buildUnnamed2637() { +buildUnnamed2711() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed2637(core.List<api.PollingLocation> o) { +checkUnnamed2711(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed2638() { +buildUnnamed2712() { var o = new core.List<api.AdministrationRegion>(); o.add(buildAdministrationRegion()); o.add(buildAdministrationRegion()); return o; } -checkUnnamed2638(core.List<api.AdministrationRegion> o) { +checkUnnamed2712(core.List<api.AdministrationRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrationRegion(o[0]); checkAdministrationRegion(o[1]); @@ -1092,17 +1300,17 @@ var o = new api.VoterInfoResponse(); buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - o.contests = buildUnnamed2633(); - o.dropOffLocations = buildUnnamed2634(); - o.earlyVoteSites = buildUnnamed2635(); + o.contests = buildUnnamed2707(); + o.dropOffLocations = buildUnnamed2708(); + o.earlyVoteSites = buildUnnamed2709(); o.election = buildElection(); o.kind = "foo"; o.mailOnly = true; o.normalizedInput = buildSimpleAddressType(); - o.otherElections = buildUnnamed2636(); - o.pollingLocations = buildUnnamed2637(); + o.otherElections = buildUnnamed2710(); + o.pollingLocations = buildUnnamed2711(); o.precinctId = "foo"; - o.state = buildUnnamed2638(); + o.state = buildUnnamed2712(); } buildCounterVoterInfoResponse--; return o; @@ -1111,68 +1319,93 @@ checkVoterInfoResponse(api.VoterInfoResponse o) { buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - checkUnnamed2633(o.contests); - checkUnnamed2634(o.dropOffLocations); - checkUnnamed2635(o.earlyVoteSites); + checkUnnamed2707(o.contests); + checkUnnamed2708(o.dropOffLocations); + checkUnnamed2709(o.earlyVoteSites); checkElection(o.election); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mailOnly, unittest.isTrue); checkSimpleAddressType(o.normalizedInput); - checkUnnamed2636(o.otherElections); - checkUnnamed2637(o.pollingLocations); + checkUnnamed2710(o.otherElections); + checkUnnamed2711(o.pollingLocations); unittest.expect(o.precinctId, unittest.equals('foo')); - checkUnnamed2638(o.state); + checkUnnamed2712(o.state); } buildCounterVoterInfoResponse--; } -buildUnnamed2639() { +core.int buildCounterVoterInfoSegmentResult = 0; +buildVoterInfoSegmentResult() { + var o = new api.VoterInfoSegmentResult(); + buildCounterVoterInfoSegmentResult++; + if (buildCounterVoterInfoSegmentResult < 3) { + o.generatedMillis = "foo"; + o.postalAddress = buildPostalAddress(); + o.request = buildVoterInfoRequest(); + o.response = buildVoterInfoResponse(); + } + buildCounterVoterInfoSegmentResult--; + return o; +} + +checkVoterInfoSegmentResult(api.VoterInfoSegmentResult o) { + buildCounterVoterInfoSegmentResult++; + if (buildCounterVoterInfoSegmentResult < 3) { + unittest.expect(o.generatedMillis, unittest.equals('foo')); + checkPostalAddress(o.postalAddress); + checkVoterInfoRequest(o.request); + checkVoterInfoResponse(o.response); + } + buildCounterVoterInfoSegmentResult--; +} + +buildUnnamed2713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2639(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')); } -buildUnnamed2640() { +buildUnnamed2714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2640(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')); } -buildUnnamed2641() { +buildUnnamed2715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2641(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')); } -buildUnnamed2642() { +buildUnnamed2716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2642(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')); @@ -1225,6 +1458,33 @@ }); + unittest.group("obj-schema-ContextParams", () { + unittest.test("to-json--from-json", () { + var o = buildContextParams(); + var od = new api.ContextParams.fromJson(o.toJson()); + checkContextParams(od); + }); + }); + + + unittest.group("obj-schema-DivisionRepresentativeInfoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDivisionRepresentativeInfoRequest(); + var od = new api.DivisionRepresentativeInfoRequest.fromJson(o.toJson()); + checkDivisionRepresentativeInfoRequest(od); + }); + }); + + + unittest.group("obj-schema-DivisionSearchRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDivisionSearchRequest(); + var od = new api.DivisionSearchRequest.fromJson(o.toJson()); + checkDivisionSearchRequest(od); + }); + }); + + unittest.group("obj-schema-DivisionSearchResponse", () { unittest.test("to-json--from-json", () { var o = buildDivisionSearchResponse(); @@ -1261,6 +1521,15 @@ }); + unittest.group("obj-schema-ElectionsQueryRequest", () { + unittest.test("to-json--from-json", () { + var o = buildElectionsQueryRequest(); + var od = new api.ElectionsQueryRequest.fromJson(o.toJson()); + checkElectionsQueryRequest(od); + }); + }); + + unittest.group("obj-schema-ElectionsQueryResponse", () { unittest.test("to-json--from-json", () { var o = buildElectionsQueryResponse(); @@ -1315,6 +1584,15 @@ }); + unittest.group("obj-schema-PostalAddress", () { + unittest.test("to-json--from-json", () { + var o = buildPostalAddress(); + var od = new api.PostalAddress.fromJson(o.toJson()); + checkPostalAddress(od); + }); + }); + + unittest.group("obj-schema-RepresentativeInfoData", () { unittest.test("to-json--from-json", () { var o = buildRepresentativeInfoData(); @@ -1324,6 +1602,15 @@ }); + unittest.group("obj-schema-RepresentativeInfoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRepresentativeInfoRequest(); + var od = new api.RepresentativeInfoRequest.fromJson(o.toJson()); + checkRepresentativeInfoRequest(od); + }); + }); + + unittest.group("obj-schema-RepresentativeInfoResponse", () { unittest.test("to-json--from-json", () { var o = buildRepresentativeInfoResponse(); @@ -1351,6 +1638,15 @@ }); + unittest.group("obj-schema-VoterInfoRequest", () { + unittest.test("to-json--from-json", () { + var o = buildVoterInfoRequest(); + var od = new api.VoterInfoRequest.fromJson(o.toJson()); + checkVoterInfoRequest(od); + }); + }); + + unittest.group("obj-schema-VoterInfoResponse", () { unittest.test("to-json--from-json", () { var o = buildVoterInfoResponse(); @@ -1360,13 +1656,26 @@ }); + unittest.group("obj-schema-VoterInfoSegmentResult", () { + unittest.test("to-json--from-json", () { + var o = buildVoterInfoSegmentResult(); + var od = new api.VoterInfoSegmentResult.fromJson(o.toJson()); + checkVoterInfoSegmentResult(od); + }); + }); + + unittest.group("resource-DivisionsResourceApi", () { unittest.test("method--search", () { var mock = new HttpServerMock(); api.DivisionsResourceApi res = new api.CivicinfoApi(mock).divisions; + var arg_request = buildDivisionSearchRequest(); var arg_query = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.DivisionSearchRequest.fromJson(json); + checkDivisionSearchRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1403,7 +1712,7 @@ var resp = convert.JSON.encode(buildDivisionSearchResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.search(query: arg_query).then(unittest.expectAsync(((api.DivisionSearchResponse response) { + res.search(arg_request, query: arg_query).then(unittest.expectAsync(((api.DivisionSearchResponse response) { checkDivisionSearchResponse(response); }))); }); @@ -1416,7 +1725,11 @@ var mock = new HttpServerMock(); api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections; + var arg_request = buildElectionsQueryRequest(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ElectionsQueryRequest.fromJson(json); + checkElectionsQueryRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1452,7 +1765,7 @@ var resp = convert.JSON.encode(buildElectionsQueryResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.electionQuery().then(unittest.expectAsync(((api.ElectionsQueryResponse response) { + res.electionQuery(arg_request).then(unittest.expectAsync(((api.ElectionsQueryResponse response) { checkElectionsQueryResponse(response); }))); }); @@ -1461,11 +1774,15 @@ var mock = new HttpServerMock(); api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections; + var arg_request = buildVoterInfoRequest(); var arg_address = "foo"; var arg_electionId = "foo"; var arg_officialOnly = true; var arg_returnAllAvailableData = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.VoterInfoRequest.fromJson(json); + checkVoterInfoRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1505,7 +1822,7 @@ var resp = convert.JSON.encode(buildVoterInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.voterInfoQuery(arg_address, electionId: arg_electionId, officialOnly: arg_officialOnly, returnAllAvailableData: arg_returnAllAvailableData).then(unittest.expectAsync(((api.VoterInfoResponse response) { + res.voterInfoQuery(arg_request, arg_address, electionId: arg_electionId, officialOnly: arg_officialOnly, returnAllAvailableData: arg_returnAllAvailableData).then(unittest.expectAsync(((api.VoterInfoResponse response) { checkVoterInfoResponse(response); }))); }); @@ -1518,11 +1835,15 @@ var mock = new HttpServerMock(); api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; + var arg_request = buildRepresentativeInfoRequest(); var arg_address = "foo"; var arg_includeOffices = true; - var arg_levels = buildUnnamed2639(); - var arg_roles = buildUnnamed2640(); + var arg_levels = buildUnnamed2713(); + var arg_roles = buildUnnamed2714(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.RepresentativeInfoRequest.fromJson(json); + checkRepresentativeInfoRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1562,7 +1883,7 @@ var resp = convert.JSON.encode(buildRepresentativeInfoResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.representativeInfoByAddress(address: arg_address, includeOffices: arg_includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoResponse response) { + res.representativeInfoByAddress(arg_request, address: arg_address, includeOffices: arg_includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoResponse response) { checkRepresentativeInfoResponse(response); }))); }); @@ -1571,11 +1892,15 @@ var mock = new HttpServerMock(); api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; + var arg_request = buildDivisionRepresentativeInfoRequest(); var arg_ocdId = "foo"; - var arg_levels = buildUnnamed2641(); + var arg_levels = buildUnnamed2715(); var arg_recursive = true; - var arg_roles = buildUnnamed2642(); + var arg_roles = buildUnnamed2716(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.DivisionRepresentativeInfoRequest.fromJson(json); + checkDivisionRepresentativeInfoRequest(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -1617,7 +1942,7 @@ var resp = convert.JSON.encode(buildRepresentativeInfoData()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoData response) { + res.representativeInfoByDivision(arg_request, arg_ocdId, levels: arg_levels, recursive: arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.RepresentativeInfoData response) { checkRepresentativeInfoData(response); }))); });
diff --git a/generated/googleapis/test/classroom/v1_test.dart b/generated/googleapis/test/classroom/v1_test.dart index 71d825d..f2c575b 100644 --- a/generated/googleapis/test/classroom/v1_test.dart +++ b/generated/googleapis/test/classroom/v1_test.dart
@@ -70,14 +70,14 @@ buildCounterAssignment--; } -buildUnnamed879() { +buildUnnamed903() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed879(core.List<api.Attachment> o) { +checkUnnamed903(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 = buildUnnamed879(); + o.attachments = buildUnnamed903(); } buildCounterAssignmentSubmission--; return o; @@ -97,7 +97,7 @@ checkAssignmentSubmission(api.AssignmentSubmission o) { buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - checkUnnamed879(o.attachments); + checkUnnamed903(o.attachments); } buildCounterAssignmentSubmission--; } @@ -127,14 +127,14 @@ buildCounterAttachment--; } -buildUnnamed880() { +buildUnnamed904() { var o = new core.List<api.CourseMaterialSet>(); o.add(buildCourseMaterialSet()); o.add(buildCourseMaterialSet()); return o; } -checkUnnamed880(core.List<api.CourseMaterialSet> o) { +checkUnnamed904(core.List<api.CourseMaterialSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterialSet(o[0]); checkCourseMaterialSet(o[1]); @@ -147,12 +147,13 @@ if (buildCounterCourse < 3) { o.alternateLink = "foo"; o.courseGroupEmail = "foo"; - o.courseMaterialSets = buildUnnamed880(); + o.courseMaterialSets = buildUnnamed904(); o.courseState = "foo"; o.creationTime = "foo"; o.description = "foo"; o.descriptionHeading = "foo"; o.enrollmentCode = "foo"; + o.guardiansEnabled = true; o.id = "foo"; o.name = "foo"; o.ownerId = "foo"; @@ -171,12 +172,13 @@ if (buildCounterCourse < 3) { unittest.expect(o.alternateLink, unittest.equals('foo')); unittest.expect(o.courseGroupEmail, unittest.equals('foo')); - checkUnnamed880(o.courseMaterialSets); + checkUnnamed904(o.courseMaterialSets); unittest.expect(o.courseState, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.descriptionHeading, unittest.equals('foo')); unittest.expect(o.enrollmentCode, unittest.equals('foo')); + unittest.expect(o.guardiansEnabled, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ownerId, unittest.equals('foo')); @@ -233,14 +235,14 @@ buildCounterCourseMaterial--; } -buildUnnamed881() { +buildUnnamed905() { var o = new core.List<api.CourseMaterial>(); o.add(buildCourseMaterial()); o.add(buildCourseMaterial()); return o; } -checkUnnamed881(core.List<api.CourseMaterial> o) { +checkUnnamed905(core.List<api.CourseMaterial> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterial(o[0]); checkCourseMaterial(o[1]); @@ -251,7 +253,7 @@ var o = new api.CourseMaterialSet(); buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - o.materials = buildUnnamed881(); + o.materials = buildUnnamed905(); o.title = "foo"; } buildCounterCourseMaterialSet--; @@ -261,20 +263,20 @@ checkCourseMaterialSet(api.CourseMaterialSet o) { buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - checkUnnamed881(o.materials); + checkUnnamed905(o.materials); unittest.expect(o.title, unittest.equals('foo')); } buildCounterCourseMaterialSet--; } -buildUnnamed882() { +buildUnnamed906() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed882(core.List<api.Material> o) { +checkUnnamed906(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -294,7 +296,7 @@ o.dueDate = buildDate(); o.dueTime = buildTimeOfDay(); o.id = "foo"; - o.materials = buildUnnamed882(); + o.materials = buildUnnamed906(); o.maxPoints = 42.0; o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); o.state = "foo"; @@ -319,7 +321,7 @@ checkDate(o.dueDate); checkTimeOfDay(o.dueTime); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed882(o.materials); + checkUnnamed906(o.materials); unittest.expect(o.maxPoints, unittest.equals(42.0)); checkMultipleChoiceQuestion(o.multipleChoiceQuestion); unittest.expect(o.state, unittest.equals('foo')); @@ -563,14 +565,14 @@ buildCounterLink--; } -buildUnnamed883() { +buildUnnamed907() { var o = new core.List<api.CourseAlias>(); o.add(buildCourseAlias()); o.add(buildCourseAlias()); return o; } -checkUnnamed883(core.List<api.CourseAlias> o) { +checkUnnamed907(core.List<api.CourseAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseAlias(o[0]); checkCourseAlias(o[1]); @@ -581,7 +583,7 @@ var o = new api.ListCourseAliasesResponse(); buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - o.aliases = buildUnnamed883(); + o.aliases = buildUnnamed907(); o.nextPageToken = "foo"; } buildCounterListCourseAliasesResponse--; @@ -591,20 +593,20 @@ checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - checkUnnamed883(o.aliases); + checkUnnamed907(o.aliases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseAliasesResponse--; } -buildUnnamed884() { +buildUnnamed908() { var o = new core.List<api.CourseWork>(); o.add(buildCourseWork()); o.add(buildCourseWork()); return o; } -checkUnnamed884(core.List<api.CourseWork> o) { +checkUnnamed908(core.List<api.CourseWork> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseWork(o[0]); checkCourseWork(o[1]); @@ -615,7 +617,7 @@ var o = new api.ListCourseWorkResponse(); buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - o.courseWork = buildUnnamed884(); + o.courseWork = buildUnnamed908(); o.nextPageToken = "foo"; } buildCounterListCourseWorkResponse--; @@ -625,20 +627,20 @@ checkListCourseWorkResponse(api.ListCourseWorkResponse o) { buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - checkUnnamed884(o.courseWork); + checkUnnamed908(o.courseWork); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseWorkResponse--; } -buildUnnamed885() { +buildUnnamed909() { var o = new core.List<api.Course>(); o.add(buildCourse()); o.add(buildCourse()); return o; } -checkUnnamed885(core.List<api.Course> o) { +checkUnnamed909(core.List<api.Course> o) { unittest.expect(o, unittest.hasLength(2)); checkCourse(o[0]); checkCourse(o[1]); @@ -649,7 +651,7 @@ var o = new api.ListCoursesResponse(); buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - o.courses = buildUnnamed885(); + o.courses = buildUnnamed909(); o.nextPageToken = "foo"; } buildCounterListCoursesResponse--; @@ -659,20 +661,20 @@ checkListCoursesResponse(api.ListCoursesResponse o) { buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - checkUnnamed885(o.courses); + checkUnnamed909(o.courses); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoursesResponse--; } -buildUnnamed886() { +buildUnnamed910() { var o = new core.List<api.GuardianInvitation>(); o.add(buildGuardianInvitation()); o.add(buildGuardianInvitation()); return o; } -checkUnnamed886(core.List<api.GuardianInvitation> o) { +checkUnnamed910(core.List<api.GuardianInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardianInvitation(o[0]); checkGuardianInvitation(o[1]); @@ -683,7 +685,7 @@ var o = new api.ListGuardianInvitationsResponse(); buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - o.guardianInvitations = buildUnnamed886(); + o.guardianInvitations = buildUnnamed910(); o.nextPageToken = "foo"; } buildCounterListGuardianInvitationsResponse--; @@ -693,20 +695,20 @@ checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - checkUnnamed886(o.guardianInvitations); + checkUnnamed910(o.guardianInvitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardianInvitationsResponse--; } -buildUnnamed887() { +buildUnnamed911() { var o = new core.List<api.Guardian>(); o.add(buildGuardian()); o.add(buildGuardian()); return o; } -checkUnnamed887(core.List<api.Guardian> o) { +checkUnnamed911(core.List<api.Guardian> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardian(o[0]); checkGuardian(o[1]); @@ -717,7 +719,7 @@ var o = new api.ListGuardiansResponse(); buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - o.guardians = buildUnnamed887(); + o.guardians = buildUnnamed911(); o.nextPageToken = "foo"; } buildCounterListGuardiansResponse--; @@ -727,20 +729,20 @@ checkListGuardiansResponse(api.ListGuardiansResponse o) { buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - checkUnnamed887(o.guardians); + checkUnnamed911(o.guardians); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardiansResponse--; } -buildUnnamed888() { +buildUnnamed912() { var o = new core.List<api.Invitation>(); o.add(buildInvitation()); o.add(buildInvitation()); return o; } -checkUnnamed888(core.List<api.Invitation> o) { +checkUnnamed912(core.List<api.Invitation> o) { unittest.expect(o, unittest.hasLength(2)); checkInvitation(o[0]); checkInvitation(o[1]); @@ -751,7 +753,7 @@ var o = new api.ListInvitationsResponse(); buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - o.invitations = buildUnnamed888(); + o.invitations = buildUnnamed912(); o.nextPageToken = "foo"; } buildCounterListInvitationsResponse--; @@ -761,20 +763,20 @@ checkListInvitationsResponse(api.ListInvitationsResponse o) { buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - checkUnnamed888(o.invitations); + checkUnnamed912(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInvitationsResponse--; } -buildUnnamed889() { +buildUnnamed913() { var o = new core.List<api.StudentSubmission>(); o.add(buildStudentSubmission()); o.add(buildStudentSubmission()); return o; } -checkUnnamed889(core.List<api.StudentSubmission> o) { +checkUnnamed913(core.List<api.StudentSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkStudentSubmission(o[0]); checkStudentSubmission(o[1]); @@ -786,7 +788,7 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { o.nextPageToken = "foo"; - o.studentSubmissions = buildUnnamed889(); + o.studentSubmissions = buildUnnamed913(); } buildCounterListStudentSubmissionsResponse--; return o; @@ -796,19 +798,19 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed889(o.studentSubmissions); + checkUnnamed913(o.studentSubmissions); } buildCounterListStudentSubmissionsResponse--; } -buildUnnamed890() { +buildUnnamed914() { var o = new core.List<api.Student>(); o.add(buildStudent()); o.add(buildStudent()); return o; } -checkUnnamed890(core.List<api.Student> o) { +checkUnnamed914(core.List<api.Student> o) { unittest.expect(o, unittest.hasLength(2)); checkStudent(o[0]); checkStudent(o[1]); @@ -820,7 +822,7 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { o.nextPageToken = "foo"; - o.students = buildUnnamed890(); + o.students = buildUnnamed914(); } buildCounterListStudentsResponse--; return o; @@ -830,19 +832,19 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed890(o.students); + checkUnnamed914(o.students); } buildCounterListStudentsResponse--; } -buildUnnamed891() { +buildUnnamed915() { var o = new core.List<api.Teacher>(); o.add(buildTeacher()); o.add(buildTeacher()); return o; } -checkUnnamed891(core.List<api.Teacher> o) { +checkUnnamed915(core.List<api.Teacher> o) { unittest.expect(o, unittest.hasLength(2)); checkTeacher(o[0]); checkTeacher(o[1]); @@ -854,7 +856,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { o.nextPageToken = "foo"; - o.teachers = buildUnnamed891(); + o.teachers = buildUnnamed915(); } buildCounterListTeachersResponse--; return o; @@ -864,7 +866,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed891(o.teachers); + checkUnnamed915(o.teachers); } buildCounterListTeachersResponse--; } @@ -894,14 +896,14 @@ buildCounterMaterial--; } -buildUnnamed892() { +buildUnnamed916() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed892(core.List<api.Attachment> o) { +checkUnnamed916(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -912,7 +914,7 @@ var o = new api.ModifyAttachmentsRequest(); buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - o.addAttachments = buildUnnamed892(); + o.addAttachments = buildUnnamed916(); } buildCounterModifyAttachmentsRequest--; return o; @@ -921,19 +923,19 @@ checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - checkUnnamed892(o.addAttachments); + checkUnnamed916(o.addAttachments); } buildCounterModifyAttachmentsRequest--; } -buildUnnamed893() { +buildUnnamed917() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed893(core.List<core.String> o) { +checkUnnamed917(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -944,7 +946,7 @@ var o = new api.MultipleChoiceQuestion(); buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - o.choices = buildUnnamed893(); + o.choices = buildUnnamed917(); } buildCounterMultipleChoiceQuestion--; return o; @@ -953,7 +955,7 @@ checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - checkUnnamed893(o.choices); + checkUnnamed917(o.choices); } buildCounterMultipleChoiceQuestion--; } @@ -1213,14 +1215,14 @@ buildCounterTurnInStudentSubmissionRequest--; } -buildUnnamed894() { +buildUnnamed918() { var o = new core.List<api.GlobalPermission>(); o.add(buildGlobalPermission()); o.add(buildGlobalPermission()); return o; } -checkUnnamed894(core.List<api.GlobalPermission> o) { +checkUnnamed918(core.List<api.GlobalPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkGlobalPermission(o[0]); checkGlobalPermission(o[1]); @@ -1234,7 +1236,7 @@ o.emailAddress = "foo"; o.id = "foo"; o.name = buildName(); - o.permissions = buildUnnamed894(); + o.permissions = buildUnnamed918(); o.photoUrl = "foo"; } buildCounterUserProfile--; @@ -1247,7 +1249,7 @@ unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkName(o.name); - checkUnnamed894(o.permissions); + checkUnnamed918(o.permissions); unittest.expect(o.photoUrl, unittest.equals('foo')); } buildCounterUserProfile--; @@ -1278,40 +1280,53 @@ buildCounterYouTubeVideo--; } -buildUnnamed895() { +buildUnnamed919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed895(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')); } -buildUnnamed896() { +buildUnnamed920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed896(core.List<core.String> o) { +checkUnnamed920(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed897() { +buildUnnamed921() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed897(core.List<core.String> o) { +checkUnnamed921(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed922(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1854,6 +1869,7 @@ api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; var arg_studentId = "foo"; var arg_teacherId = "foo"; + var arg_courseStates = buildUnnamed919(); var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -1884,6 +1900,7 @@ } unittest.expect(queryMap["studentId"].first, unittest.equals(arg_studentId)); unittest.expect(queryMap["teacherId"].first, unittest.equals(arg_teacherId)); + unittest.expect(queryMap["courseStates"], unittest.equals(arg_courseStates)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1894,7 +1911,7 @@ var resp = convert.JSON.encode(buildListCoursesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(studentId: arg_studentId, teacherId: arg_teacherId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCoursesResponse response) { + res.list(studentId: arg_studentId, teacherId: arg_teacherId, courseStates: arg_courseStates, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCoursesResponse response) { checkListCoursesResponse(response); }))); }); @@ -2291,7 +2308,7 @@ var mock = new HttpServerMock(); api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses.courseWork; var arg_courseId = "foo"; - var arg_courseWorkStates = buildUnnamed895(); + var arg_courseWorkStates = buildUnnamed920(); var arg_orderBy = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; @@ -2419,7 +2436,7 @@ var arg_courseId = "foo"; var arg_courseWorkId = "foo"; var arg_userId = "foo"; - var arg_states = buildUnnamed896(); + var arg_states = buildUnnamed921(); var arg_late = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; @@ -3702,7 +3719,7 @@ api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi(mock).userProfiles.guardianInvitations; var arg_studentId = "foo"; var arg_invitedEmailAddress = "foo"; - var arg_states = buildUnnamed897(); + var arg_states = buildUnnamed922(); 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 2c0e28e..451831c 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); } -buildUnnamed1412() { +buildUnnamed1422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1412(core.List<core.String> o) { +checkUnnamed1422(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1413() { +buildUnnamed1423() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed1413(core.List<api.BuildStep> o) { +checkUnnamed1423(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); @@ -82,10 +82,11 @@ var o = new api.Build(); buildCounterBuild++; if (buildCounterBuild < 3) { + o.buildTriggerId = "foo"; o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed1412(); + o.images = buildUnnamed1422(); o.logUrl = "foo"; o.logsBucket = "foo"; o.options = buildBuildOptions(); @@ -96,7 +97,7 @@ o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed1413(); + o.steps = buildUnnamed1423(); o.timeout = "foo"; } buildCounterBuild--; @@ -106,10 +107,11 @@ checkBuild(api.Build o) { buildCounterBuild++; if (buildCounterBuild < 3) { + unittest.expect(o.buildTriggerId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.finishTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1412(o.images); + checkUnnamed1422(o.images); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.logsBucket, unittest.equals('foo')); checkBuildOptions(o.options); @@ -120,7 +122,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); - checkUnnamed1413(o.steps); + checkUnnamed1423(o.steps); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterBuild--; @@ -145,14 +147,14 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed1414() { +buildUnnamed1424() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1414(core.List<core.String> o) { +checkUnnamed1424(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -164,7 +166,7 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { o.requestedVerifyOption = "foo"; - o.sourceProvenanceHash = buildUnnamed1414(); + o.sourceProvenanceHash = buildUnnamed1424(); } buildCounterBuildOptions--; return o; @@ -174,45 +176,45 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed1414(o.sourceProvenanceHash); + checkUnnamed1424(o.sourceProvenanceHash); } buildCounterBuildOptions--; } -buildUnnamed1415() { +buildUnnamed1425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1415(core.List<core.String> o) { +checkUnnamed1425(core.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() { +buildUnnamed1426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1416(core.List<core.String> o) { +checkUnnamed1426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1417() { +buildUnnamed1427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1417(core.List<core.String> o) { +checkUnnamed1427(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -223,12 +225,12 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed1415(); + o.args = buildUnnamed1425(); o.dir = "foo"; - o.env = buildUnnamed1416(); + o.env = buildUnnamed1426(); o.id = "foo"; o.name = "foo"; - o.waitFor = buildUnnamed1417(); + o.waitFor = buildUnnamed1427(); } buildCounterBuildStep--; return o; @@ -237,12 +239,12 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed1415(o.args); + checkUnnamed1425(o.args); unittest.expect(o.dir, unittest.equals('foo')); - checkUnnamed1416(o.env); + checkUnnamed1426(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1417(o.waitFor); + checkUnnamed1427(o.waitFor); } buildCounterBuildStep--; } @@ -254,6 +256,8 @@ if (buildCounterBuildTrigger < 3) { o.build = buildBuild(); o.createTime = "foo"; + o.description = "foo"; + o.disabled = true; o.filename = "foo"; o.id = "foo"; o.triggerTemplate = buildRepoSource(); @@ -267,6 +271,8 @@ if (buildCounterBuildTrigger < 3) { checkBuild(o.build); unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRepoSource(o.triggerTemplate); @@ -329,14 +335,14 @@ buildCounterEmpty--; } -buildUnnamed1418() { +buildUnnamed1428() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed1418(core.List<api.Hash> o) { +checkUnnamed1428(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -347,7 +353,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed1418(); + o.fileHash = buildUnnamed1428(); } buildCounterFileHashes--; return o; @@ -356,7 +362,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed1418(o.fileHash); + checkUnnamed1428(o.fileHash); } buildCounterFileHashes--; } @@ -382,14 +388,14 @@ buildCounterHash--; } -buildUnnamed1419() { +buildUnnamed1429() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed1419(core.List<api.BuildTrigger> o) { +checkUnnamed1429(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -400,7 +406,7 @@ var o = new api.ListBuildTriggersResponse(); buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - o.triggers = buildUnnamed1419(); + o.triggers = buildUnnamed1429(); } buildCounterListBuildTriggersResponse--; return o; @@ -409,19 +415,19 @@ checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) { buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { - checkUnnamed1419(o.triggers); + checkUnnamed1429(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed1420() { +buildUnnamed1430() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed1420(core.List<api.Build> o) { +checkUnnamed1430(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -432,7 +438,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed1420(); + o.builds = buildUnnamed1430(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -442,20 +448,20 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed1420(o.builds); + checkUnnamed1430(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed1421() { +buildUnnamed1431() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1421(core.List<api.Operation> o) { +checkUnnamed1431(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -467,7 +473,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1421(); + o.operations = buildUnnamed1431(); } buildCounterListOperationsResponse--; return o; @@ -477,32 +483,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1421(o.operations); + checkUnnamed1431(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1422() { +buildUnnamed1432() { 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; } -checkUnnamed1422(core.Map<core.String, core.Object> o) { +checkUnnamed1432(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')); } -buildUnnamed1423() { +buildUnnamed1433() { 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; } -checkUnnamed1423(core.Map<core.String, core.Object> o) { +checkUnnamed1433(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')); @@ -515,9 +521,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1422(); + o.metadata = buildUnnamed1432(); o.name = "foo"; - o.response = buildUnnamed1423(); + o.response = buildUnnamed1433(); } buildCounterOperation--; return o; @@ -528,9 +534,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1422(o.metadata); + checkUnnamed1432(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1423(o.response); + checkUnnamed1433(o.response); } buildCounterOperation--; } @@ -562,27 +568,27 @@ buildCounterRepoSource--; } -buildUnnamed1424() { +buildUnnamed1434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1424(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')); } -buildUnnamed1425() { +buildUnnamed1435() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed1425(core.List<api.BuiltImage> o) { +checkUnnamed1435(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -593,8 +599,8 @@ var o = new api.Results(); buildCounterResults++; if (buildCounterResults < 3) { - o.buildStepImages = buildUnnamed1424(); - o.images = buildUnnamed1425(); + o.buildStepImages = buildUnnamed1434(); + o.images = buildUnnamed1435(); } buildCounterResults--; return o; @@ -603,8 +609,8 @@ checkResults(api.Results o) { buildCounterResults++; if (buildCounterResults < 3) { - checkUnnamed1424(o.buildStepImages); - checkUnnamed1425(o.images); + checkUnnamed1434(o.buildStepImages); + checkUnnamed1435(o.images); } buildCounterResults--; } @@ -630,14 +636,14 @@ buildCounterSource--; } -buildUnnamed1426() { +buildUnnamed1436() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed1426(core.Map<core.String, api.FileHashes> o) { +checkUnnamed1436(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -648,7 +654,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed1426(); + o.fileHashes = buildUnnamed1436(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -659,37 +665,37 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed1426(o.fileHashes); + checkUnnamed1436(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed1427() { +buildUnnamed1437() { 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; } -checkUnnamed1427(core.Map<core.String, core.Object> o) { +checkUnnamed1437(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')); } -buildUnnamed1428() { +buildUnnamed1438() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1427()); - o.add(buildUnnamed1427()); + o.add(buildUnnamed1437()); + o.add(buildUnnamed1437()); return o; } -checkUnnamed1428(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1438(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1427(o[0]); - checkUnnamed1427(o[1]); + checkUnnamed1437(o[0]); + checkUnnamed1437(o[1]); } core.int buildCounterStatus = 0; @@ -698,7 +704,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1428(); + o.details = buildUnnamed1438(); o.message = "foo"; } buildCounterStatus--; @@ -709,7 +715,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1428(o.details); + checkUnnamed1438(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1200,6 +1206,7 @@ api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "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; @@ -1235,6 +1242,7 @@ } } 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)); @@ -1244,7 +1252,7 @@ var resp = convert.JSON.encode(buildListBuildsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBuildsResponse response) { + res.list(arg_projectId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBuildsResponse response) { checkListBuildsResponse(response); }))); });
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index f45fcde..64aa684 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -72,66 +72,66 @@ buildCounterAliasContext--; } -buildUnnamed972() { +buildUnnamed998() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed972(core.List<api.Variable> o) { +checkUnnamed998(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed973() { +buildUnnamed999() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed973(core.List<core.String> o) { +checkUnnamed999(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed974() { +buildUnnamed1000() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed974(core.Map<core.String, core.String> o) { +checkUnnamed1000(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')); } -buildUnnamed975() { +buildUnnamed1001() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed975(core.List<api.StackFrame> o) { +checkUnnamed1001(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed976() { +buildUnnamed1002() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed976(core.List<api.Variable> o) { +checkUnnamed1002(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 = buildUnnamed972(); - o.expressions = buildUnnamed973(); + o.evaluatedExpressions = buildUnnamed998(); + o.expressions = buildUnnamed999(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed974(); + o.labels = buildUnnamed1000(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed975(); + o.stackFrames = buildUnnamed1001(); o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed976(); + o.variableTable = buildUnnamed1002(); } 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')); - checkUnnamed972(o.evaluatedExpressions); - checkUnnamed973(o.expressions); + checkUnnamed998(o.evaluatedExpressions); + checkUnnamed999(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed974(o.labels); + checkUnnamed1000(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed975(o.stackFrames); + checkUnnamed1001(o.stackFrames); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed976(o.variableTable); + checkUnnamed1002(o.variableTable); } buildCounterBreakpoint--; } @@ -253,40 +253,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed977() { +buildUnnamed1003() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed977(core.List<api.ExtendedSourceContext> o) { +checkUnnamed1003(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed978() { +buildUnnamed1004() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed978(core.Map<core.String, core.String> o) { +checkUnnamed1004(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')); } -buildUnnamed979() { +buildUnnamed1005() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed979(core.List<api.SourceContext> o) { +checkUnnamed1005(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 = buildUnnamed977(); + o.extSourceContexts = buildUnnamed1003(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed978(); + o.labels = buildUnnamed1004(); o.project = "foo"; - o.sourceContexts = buildUnnamed979(); + o.sourceContexts = buildUnnamed1005(); 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')); - checkUnnamed977(o.extSourceContexts); + checkUnnamed1003(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed978(o.labels); + checkUnnamed1004(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed979(o.sourceContexts); + checkUnnamed1005(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterEmpty--; } -buildUnnamed980() { +buildUnnamed1006() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed980(core.Map<core.String, core.String> o) { +checkUnnamed1006(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 = buildUnnamed980(); + o.labels = buildUnnamed1006(); } buildCounterExtendedSourceContext--; return o; @@ -377,19 +377,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed980(o.labels); + checkUnnamed1006(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed981() { +buildUnnamed1007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed981(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')); @@ -401,7 +401,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed981(); + o.parameters = buildUnnamed1007(); } buildCounterFormatMessage--; return o; @@ -411,7 +411,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed981(o.parameters); + checkUnnamed1007(o.parameters); } buildCounterFormatMessage--; } @@ -483,14 +483,14 @@ buildCounterGitSourceContext--; } -buildUnnamed982() { +buildUnnamed1008() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed982(core.List<api.Breakpoint> o) { +checkUnnamed1008(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 = buildUnnamed982(); + o.breakpoints = buildUnnamed1008(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -512,21 +512,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed982(o.breakpoints); + checkUnnamed1008(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed983() { +buildUnnamed1009() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed983(core.List<api.Breakpoint> o) { +checkUnnamed1009(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 = buildUnnamed983(); + o.breakpoints = buildUnnamed1009(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -547,20 +547,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed983(o.breakpoints); + checkUnnamed1009(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed984() { +buildUnnamed1010() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed984(core.List<api.Debuggee> o) { +checkUnnamed1010(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 = buildUnnamed984(); + o.debuggees = buildUnnamed1010(); } buildCounterListDebuggeesResponse--; return o; @@ -580,7 +580,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed984(o.debuggees); + checkUnnamed1010(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -730,27 +730,27 @@ buildCounterSourceLocation--; } -buildUnnamed985() { +buildUnnamed1011() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed985(core.List<api.Variable> o) { +checkUnnamed1011(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed986() { +buildUnnamed1012() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed986(core.List<api.Variable> o) { +checkUnnamed1012(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 = buildUnnamed985(); + o.arguments = buildUnnamed1011(); o.function = "foo"; - o.locals = buildUnnamed986(); + o.locals = buildUnnamed1012(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -773,9 +773,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed985(o.arguments); + checkUnnamed1011(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed986(o.locals); + checkUnnamed1012(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -840,14 +840,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed987() { +buildUnnamed1013() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed987(core.List<api.Variable> o) { +checkUnnamed1013(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 = buildUnnamed987(); + o.members = buildUnnamed1013(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -872,7 +872,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed987(o.members); + checkUnnamed1013(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 81a2322..641c65f 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2174() { +buildUnnamed1927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2174(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')); @@ -69,7 +69,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed2174(); + o.members = buildUnnamed1927(); o.role = "foo"; } buildCounterBinding--; @@ -79,7 +79,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2174(o.members); + checkUnnamed1927(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -102,6 +102,50 @@ buildCounterEmpty--; } +core.int buildCounterFolderOperation = 0; +buildFolderOperation() { + var o = new api.FolderOperation(); + buildCounterFolderOperation++; + if (buildCounterFolderOperation < 3) { + o.destinationParent = "foo"; + o.displayName = "foo"; + o.operationType = "foo"; + o.sourceParent = "foo"; + } + buildCounterFolderOperation--; + return o; +} + +checkFolderOperation(api.FolderOperation o) { + buildCounterFolderOperation++; + if (buildCounterFolderOperation < 3) { + unittest.expect(o.destinationParent, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.operationType, unittest.equals('foo')); + unittest.expect(o.sourceParent, unittest.equals('foo')); + } + buildCounterFolderOperation--; +} + +core.int buildCounterFolderOperationError = 0; +buildFolderOperationError() { + var o = new api.FolderOperationError(); + buildCounterFolderOperationError++; + if (buildCounterFolderOperationError < 3) { + o.errorMessageId = "foo"; + } + buildCounterFolderOperationError--; + return o; +} + +checkFolderOperationError(api.FolderOperationError o) { + buildCounterFolderOperationError++; + if (buildCounterFolderOperationError < 3) { + unittest.expect(o.errorMessageId, unittest.equals('foo')); + } + buildCounterFolderOperationError--; +} + core.int buildCounterGetIamPolicyRequest = 0; buildGetIamPolicyRequest() { var o = new api.GetIamPolicyRequest(); @@ -119,14 +163,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2175() { +buildUnnamed1928() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2175(core.List<api.Project> o) { +checkUnnamed1928(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -138,7 +182,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed2175(); + o.projects = buildUnnamed1928(); } buildCounterListProjectsResponse--; return o; @@ -148,32 +192,32 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2175(o.projects); + checkUnnamed1928(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed2176() { +buildUnnamed1929() { 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; } -checkUnnamed2176(core.Map<core.String, core.Object> o) { +checkUnnamed1929(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')); } -buildUnnamed2177() { +buildUnnamed1930() { 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; } -checkUnnamed2177(core.Map<core.String, core.Object> o) { +checkUnnamed1930(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')); @@ -186,9 +230,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2176(); + o.metadata = buildUnnamed1929(); o.name = "foo"; - o.response = buildUnnamed2177(); + o.response = buildUnnamed1930(); } buildCounterOperation--; return o; @@ -199,21 +243,67 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2176(o.metadata); + checkUnnamed1929(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2177(o.response); + checkUnnamed1930(o.response); } buildCounterOperation--; } -buildUnnamed2178() { +core.int buildCounterOrganization = 0; +buildOrganization() { + var o = new api.Organization(); + buildCounterOrganization++; + if (buildCounterOrganization < 3) { + o.creationTime = "foo"; + o.displayName = "foo"; + o.lifecycleState = "foo"; + o.name = "foo"; + o.owner = buildOrganizationOwner(); + } + buildCounterOrganization--; + return o; +} + +checkOrganization(api.Organization o) { + buildCounterOrganization++; + if (buildCounterOrganization < 3) { + unittest.expect(o.creationTime, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.lifecycleState, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkOrganizationOwner(o.owner); + } + buildCounterOrganization--; +} + +core.int buildCounterOrganizationOwner = 0; +buildOrganizationOwner() { + var o = new api.OrganizationOwner(); + buildCounterOrganizationOwner++; + if (buildCounterOrganizationOwner < 3) { + o.directoryCustomerId = "foo"; + } + buildCounterOrganizationOwner--; + return o; +} + +checkOrganizationOwner(api.OrganizationOwner o) { + buildCounterOrganizationOwner++; + if (buildCounterOrganizationOwner < 3) { + unittest.expect(o.directoryCustomerId, unittest.equals('foo')); + } + buildCounterOrganizationOwner--; +} + +buildUnnamed1931() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2178(core.List<api.Binding> o) { +checkUnnamed1931(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -224,7 +314,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2178(); + o.bindings = buildUnnamed1931(); o.etag = "foo"; o.version = 42; } @@ -235,21 +325,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2178(o.bindings); + checkUnnamed1931(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2179() { +buildUnnamed1932() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2179(core.Map<core.String, core.String> o) { +checkUnnamed1932(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')); @@ -261,7 +351,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed2179(); + o.labels = buildUnnamed1932(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -276,7 +366,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2179(o.labels); + checkUnnamed1932(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -286,6 +376,29 @@ buildCounterProject--; } +core.int buildCounterProjectCreationStatus = 0; +buildProjectCreationStatus() { + var o = new api.ProjectCreationStatus(); + buildCounterProjectCreationStatus++; + if (buildCounterProjectCreationStatus < 3) { + o.createTime = "foo"; + o.gettable = true; + o.ready = true; + } + buildCounterProjectCreationStatus--; + return o; +} + +checkProjectCreationStatus(api.ProjectCreationStatus o) { + buildCounterProjectCreationStatus++; + if (buildCounterProjectCreationStatus < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.gettable, unittest.isTrue); + unittest.expect(o.ready, unittest.isTrue); + } + buildCounterProjectCreationStatus--; +} + core.int buildCounterResourceId = 0; buildResourceId() { var o = new api.ResourceId(); @@ -307,6 +420,63 @@ buildCounterResourceId--; } +core.int buildCounterSearchOrganizationsRequest = 0; +buildSearchOrganizationsRequest() { + var o = new api.SearchOrganizationsRequest(); + buildCounterSearchOrganizationsRequest++; + if (buildCounterSearchOrganizationsRequest < 3) { + o.filter = "foo"; + o.pageSize = 42; + o.pageToken = "foo"; + } + buildCounterSearchOrganizationsRequest--; + return o; +} + +checkSearchOrganizationsRequest(api.SearchOrganizationsRequest o) { + buildCounterSearchOrganizationsRequest++; + if (buildCounterSearchOrganizationsRequest < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.pageSize, unittest.equals(42)); + unittest.expect(o.pageToken, unittest.equals('foo')); + } + buildCounterSearchOrganizationsRequest--; +} + +buildUnnamed1933() { + var o = new core.List<api.Organization>(); + o.add(buildOrganization()); + o.add(buildOrganization()); + return o; +} + +checkUnnamed1933(core.List<api.Organization> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOrganization(o[0]); + checkOrganization(o[1]); +} + +core.int buildCounterSearchOrganizationsResponse = 0; +buildSearchOrganizationsResponse() { + var o = new api.SearchOrganizationsResponse(); + buildCounterSearchOrganizationsResponse++; + if (buildCounterSearchOrganizationsResponse < 3) { + o.nextPageToken = "foo"; + o.organizations = buildUnnamed1933(); + } + buildCounterSearchOrganizationsResponse--; + return o; +} + +checkSearchOrganizationsResponse(api.SearchOrganizationsResponse o) { + buildCounterSearchOrganizationsResponse++; + if (buildCounterSearchOrganizationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1933(o.organizations); + } + buildCounterSearchOrganizationsResponse--; +} + core.int buildCounterSetIamPolicyRequest = 0; buildSetIamPolicyRequest() { var o = new api.SetIamPolicyRequest(); @@ -326,30 +496,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2180() { +buildUnnamed1934() { 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; } -checkUnnamed2180(core.Map<core.String, core.Object> o) { +checkUnnamed1934(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')); } -buildUnnamed2181() { +buildUnnamed1935() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2180()); - o.add(buildUnnamed2180()); + o.add(buildUnnamed1934()); + o.add(buildUnnamed1934()); return o; } -checkUnnamed2181(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1935(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2180(o[0]); - checkUnnamed2180(o[1]); + checkUnnamed1934(o[0]); + checkUnnamed1934(o[1]); } core.int buildCounterStatus = 0; @@ -358,7 +528,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2181(); + o.details = buildUnnamed1935(); o.message = "foo"; } buildCounterStatus--; @@ -369,20 +539,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2181(o.details); + checkUnnamed1935(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2182() { +buildUnnamed1936() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2182(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')); @@ -393,7 +563,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2182(); + o.permissions = buildUnnamed1936(); } buildCounterTestIamPermissionsRequest--; return o; @@ -402,19 +572,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2182(o.permissions); + checkUnnamed1936(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2183() { +buildUnnamed1937() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2183(core.List<core.String> o) { +checkUnnamed1937(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -425,7 +595,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2183(); + o.permissions = buildUnnamed1937(); } buildCounterTestIamPermissionsResponse--; return o; @@ -434,7 +604,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2183(o.permissions); + checkUnnamed1937(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -476,6 +646,24 @@ }); + unittest.group("obj-schema-FolderOperation", () { + unittest.test("to-json--from-json", () { + var o = buildFolderOperation(); + var od = new api.FolderOperation.fromJson(o.toJson()); + checkFolderOperation(od); + }); + }); + + + unittest.group("obj-schema-FolderOperationError", () { + unittest.test("to-json--from-json", () { + var o = buildFolderOperationError(); + var od = new api.FolderOperationError.fromJson(o.toJson()); + checkFolderOperationError(od); + }); + }); + + unittest.group("obj-schema-GetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildGetIamPolicyRequest(); @@ -503,6 +691,24 @@ }); + unittest.group("obj-schema-Organization", () { + unittest.test("to-json--from-json", () { + var o = buildOrganization(); + var od = new api.Organization.fromJson(o.toJson()); + checkOrganization(od); + }); + }); + + + unittest.group("obj-schema-OrganizationOwner", () { + unittest.test("to-json--from-json", () { + var o = buildOrganizationOwner(); + var od = new api.OrganizationOwner.fromJson(o.toJson()); + checkOrganizationOwner(od); + }); + }); + + unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -521,6 +727,15 @@ }); + unittest.group("obj-schema-ProjectCreationStatus", () { + unittest.test("to-json--from-json", () { + var o = buildProjectCreationStatus(); + var od = new api.ProjectCreationStatus.fromJson(o.toJson()); + checkProjectCreationStatus(od); + }); + }); + + unittest.group("obj-schema-ResourceId", () { unittest.test("to-json--from-json", () { var o = buildResourceId(); @@ -530,6 +745,24 @@ }); + unittest.group("obj-schema-SearchOrganizationsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSearchOrganizationsRequest(); + var od = new api.SearchOrganizationsRequest.fromJson(o.toJson()); + checkSearchOrganizationsRequest(od); + }); + }); + + + unittest.group("obj-schema-SearchOrganizationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchOrganizationsResponse(); + var od = new api.SearchOrganizationsResponse.fromJson(o.toJson()); + checkSearchOrganizationsResponse(od); + }); + }); + + unittest.group("obj-schema-SetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildSetIamPolicyRequest(); @@ -624,7 +857,297 @@ }); + unittest.group("resource-OrganizationsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_name = "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("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(buildOrganization()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { + checkOrganization(response); + }))); + }); + + unittest.test("method--getIamPolicy", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildGetIamPolicyRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GetIamPolicyRequest.fromJson(json); + checkGetIamPolicyRequest(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(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--search", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildSearchOrganizationsRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SearchOrganizationsRequest.fromJson(json); + checkSearchOrganizationsRequest(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 + 23), unittest.equals("v1/organizations:search")); + pathOffset += 23; + + 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(buildSearchOrganizationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.search(arg_request).then(unittest.expectAsync(((api.SearchOrganizationsResponse response) { + checkSearchOrganizationsResponse(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SetIamPolicyRequest.fromJson(json); + checkSetIamPolicyRequest(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(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).organizations; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TestIamPermissionsRequest.fromJson(json); + checkTestIamPermissionsRequest(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(buildTestIamPermissionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + checkTestIamPermissionsResponse(response); + }))); + }); + + }); + + unittest.group("resource-ProjectsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; + var arg_request = buildProject(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Project.fromJson(json); + checkProject(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 + 11), unittest.equals("v1/projects")); + 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(buildOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--delete", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index 46c3733..7379eec 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccessConfig--; } -buildUnnamed2425() { +buildUnnamed2215() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2425(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')); @@ -103,7 +103,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.users = buildUnnamed2425(); + o.users = buildUnnamed2215(); } 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')); - checkUnnamed2425(o.users); + checkUnnamed2215(o.users); } buildCounterAddress--; } -buildUnnamed2426() { +buildUnnamed2216() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed2426(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed2216(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 = buildUnnamed2426(); + o.items = buildUnnamed2216(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -158,7 +158,7 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2426(o.items); + checkUnnamed2216(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--; } -buildUnnamed2427() { +buildUnnamed2217() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2427(core.List<api.Address> o) { +checkUnnamed2217(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 = buildUnnamed2427(); + o.items = buildUnnamed2217(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -198,7 +198,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2427(o.items); + checkUnnamed2217(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--; } -buildUnnamed2428() { +buildUnnamed2218() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed2428(core.List<api.Address> o) { +checkUnnamed2218(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -240,14 +240,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed2429() { +buildUnnamed2219() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed2429(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed2219(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 = buildUnnamed2429(); + o.data = buildUnnamed2219(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -270,7 +270,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2429(o.data); + checkUnnamed2219(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 = buildUnnamed2428(); + o.addresses = buildUnnamed2218(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -291,20 +291,20 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed2428(o.addresses); + checkUnnamed2218(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; } -buildUnnamed2430() { +buildUnnamed2220() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2430(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')); @@ -323,7 +323,7 @@ o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2430(); + o.licenses = buildUnnamed2220(); 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')); - checkUnnamed2430(o.licenses); + checkUnnamed2220(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -389,6 +389,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; + o.region = "foo"; o.selfLink = "foo"; o.target = "foo"; o.zone = "foo"; @@ -406,6 +407,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -413,14 +415,14 @@ buildCounterAutoscaler--; } -buildUnnamed2431() { +buildUnnamed2221() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed2431(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed2221(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); @@ -432,7 +434,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2431(); + o.items = buildUnnamed2221(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -445,7 +447,7 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2431(o.items); + checkUnnamed2221(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -453,14 +455,14 @@ buildCounterAutoscalerAggregatedList--; } -buildUnnamed2432() { +buildUnnamed2222() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2432(core.List<api.Autoscaler> o) { +checkUnnamed2222(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -472,7 +474,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed2432(); + o.items = buildUnnamed2222(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -485,7 +487,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2432(o.items); + checkUnnamed2222(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -493,14 +495,14 @@ buildCounterAutoscalerList--; } -buildUnnamed2433() { +buildUnnamed2223() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed2433(core.List<api.Autoscaler> o) { +checkUnnamed2223(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -527,14 +529,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed2434() { +buildUnnamed2224() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed2434(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed2224(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -546,7 +548,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2434(); + o.data = buildUnnamed2224(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -557,7 +559,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2434(o.data); + checkUnnamed2224(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -568,7 +570,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed2433(); + o.autoscalers = buildUnnamed2223(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -578,20 +580,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed2433(o.autoscalers); + checkUnnamed2223(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed2435() { +buildUnnamed2225() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed2435(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed2225(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -604,7 +606,7 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed2435(); + o.customMetricUtilizations = buildUnnamed2225(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; o.minNumReplicas = 42; @@ -618,7 +620,7 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed2435(o.customMetricUtilizations); + checkUnnamed2225(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); @@ -696,6 +698,8 @@ o.capacityScaler = 42.0; o.description = "foo"; o.group = "foo"; + o.maxConnections = 42; + o.maxConnectionsPerInstance = 42; o.maxRate = 42; o.maxRatePerInstance = 42.0; o.maxUtilization = 42.0; @@ -711,6 +715,8 @@ unittest.expect(o.capacityScaler, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.group, unittest.equals('foo')); + unittest.expect(o.maxConnections, unittest.equals(42)); + unittest.expect(o.maxConnectionsPerInstance, unittest.equals(42)); unittest.expect(o.maxRate, unittest.equals(42)); unittest.expect(o.maxRatePerInstance, unittest.equals(42.0)); unittest.expect(o.maxUtilization, unittest.equals(42.0)); @@ -718,27 +724,27 @@ buildCounterBackend--; } -buildUnnamed2436() { +buildUnnamed2226() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed2436(core.List<api.Backend> o) { +checkUnnamed2226(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed2437() { +buildUnnamed2227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2437(core.List<core.String> o) { +checkUnnamed2227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -750,12 +756,13 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed2436(); + o.backends = buildUnnamed2226(); + o.connectionDraining = buildConnectionDraining(); o.creationTimestamp = "foo"; o.description = "foo"; o.enableCDN = true; o.fingerprint = "foo"; - o.healthChecks = buildUnnamed2437(); + o.healthChecks = buildUnnamed2227(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -775,12 +782,13 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed2436(o.backends); + checkUnnamed2226(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')); - checkUnnamed2437(o.healthChecks); + checkUnnamed2227(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -795,14 +803,14 @@ buildCounterBackendService--; } -buildUnnamed2438() { +buildUnnamed2228() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2438(core.List<api.HealthStatus> o) { +checkUnnamed2228(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -813,7 +821,7 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed2438(); + o.healthStatus = buildUnnamed2228(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -823,20 +831,20 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed2438(o.healthStatus); + checkUnnamed2228(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; } -buildUnnamed2439() { +buildUnnamed2229() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed2439(core.List<api.BackendService> o) { +checkUnnamed2229(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -848,7 +856,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed2439(); + o.items = buildUnnamed2229(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -861,7 +869,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2439(o.items); + checkUnnamed2229(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -888,6 +896,25 @@ buildCounterCacheInvalidationRule--; } +core.int buildCounterConnectionDraining = 0; +buildConnectionDraining() { + var o = new api.ConnectionDraining(); + buildCounterConnectionDraining++; + if (buildCounterConnectionDraining < 3) { + o.drainingTimeoutSec = 42; + } + buildCounterConnectionDraining--; + return o; +} + +checkConnectionDraining(api.ConnectionDraining o) { + buildCounterConnectionDraining++; + if (buildCounterConnectionDraining < 3) { + unittest.expect(o.drainingTimeoutSec, unittest.equals(42)); + } + buildCounterConnectionDraining--; +} + core.int buildCounterCustomerEncryptionKey = 0; buildCustomerEncryptionKey() { var o = new api.CustomerEncryptionKey(); @@ -957,27 +984,27 @@ buildCounterDeprecationStatus--; } -buildUnnamed2440() { +buildUnnamed2230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2440(core.List<core.String> o) { +checkUnnamed2230(core.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() { +buildUnnamed2231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2441(core.List<core.String> o) { +checkUnnamed2231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -995,7 +1022,7 @@ o.kind = "foo"; o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenses = buildUnnamed2440(); + o.licenses = buildUnnamed2230(); o.name = "foo"; o.options = "foo"; o.selfLink = "foo"; @@ -1008,7 +1035,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed2441(); + o.users = buildUnnamed2231(); o.zone = "foo"; } buildCounterDisk--; @@ -1025,7 +1052,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed2440(o.licenses); + checkUnnamed2230(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1038,20 +1065,20 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed2441(o.users); + checkUnnamed2231(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed2442() { +buildUnnamed2232() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed2442(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed2232(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); @@ -1063,7 +1090,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2442(); + o.items = buildUnnamed2232(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1076,7 +1103,7 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2442(o.items); + checkUnnamed2232(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1084,14 +1111,14 @@ buildCounterDiskAggregatedList--; } -buildUnnamed2443() { +buildUnnamed2233() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2443(core.List<api.Disk> o) { +checkUnnamed2233(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1103,7 +1130,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed2443(); + o.items = buildUnnamed2233(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1116,7 +1143,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2443(o.items); + checkUnnamed2233(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1182,14 +1209,14 @@ buildCounterDiskType--; } -buildUnnamed2444() { +buildUnnamed2234() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed2444(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed2234(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); @@ -1201,7 +1228,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2444(); + o.items = buildUnnamed2234(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1214,7 +1241,7 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2444(o.items); + checkUnnamed2234(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1222,14 +1249,14 @@ buildCounterDiskTypeAggregatedList--; } -buildUnnamed2445() { +buildUnnamed2235() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2445(core.List<api.DiskType> o) { +checkUnnamed2235(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1241,7 +1268,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2445(); + o.items = buildUnnamed2235(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1254,7 +1281,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2445(o.items); + checkUnnamed2235(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1262,14 +1289,14 @@ buildCounterDiskTypeList--; } -buildUnnamed2446() { +buildUnnamed2236() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed2446(core.List<api.DiskType> o) { +checkUnnamed2236(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -1296,14 +1323,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed2447() { +buildUnnamed2237() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed2447(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed2237(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -1315,7 +1342,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2447(); + o.data = buildUnnamed2237(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -1326,7 +1353,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2447(o.data); + checkUnnamed2237(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -1337,7 +1364,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed2446(); + o.diskTypes = buildUnnamed2236(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -1347,7 +1374,7 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed2446(o.diskTypes); + checkUnnamed2236(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; @@ -1372,14 +1399,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed2448() { +buildUnnamed2238() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed2448(core.List<api.Disk> o) { +checkUnnamed2238(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -1406,14 +1433,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed2449() { +buildUnnamed2239() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed2449(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed2239(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -1425,7 +1452,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2449(); + o.data = buildUnnamed2239(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -1436,7 +1463,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2449(o.data); + checkUnnamed2239(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -1447,7 +1474,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed2448(); + o.disks = buildUnnamed2238(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -1457,20 +1484,20 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed2448(o.disks); + checkUnnamed2238(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; } -buildUnnamed2450() { +buildUnnamed2240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2450(core.List<core.String> o) { +checkUnnamed2240(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1482,7 +1509,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed2450(); + o.ports = buildUnnamed2240(); } buildCounterFirewallAllowed--; return o; @@ -1492,58 +1519,58 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed2450(o.ports); + checkUnnamed2240(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed2451() { +buildUnnamed2241() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed2451(core.List<api.FirewallAllowed> o) { +checkUnnamed2241(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed2452() { +buildUnnamed2242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2452(core.List<core.String> o) { +checkUnnamed2242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2453() { +buildUnnamed2243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2453(core.List<core.String> o) { +checkUnnamed2243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2454() { +buildUnnamed2244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2454(core.List<core.String> o) { +checkUnnamed2244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1554,7 +1581,7 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed2451(); + o.allowed = buildUnnamed2241(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; @@ -1562,9 +1589,9 @@ o.name = "foo"; o.network = "foo"; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed2452(); - o.sourceTags = buildUnnamed2453(); - o.targetTags = buildUnnamed2454(); + o.sourceRanges = buildUnnamed2242(); + o.sourceTags = buildUnnamed2243(); + o.targetTags = buildUnnamed2244(); } buildCounterFirewall--; return o; @@ -1573,7 +1600,7 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed2451(o.allowed); + checkUnnamed2241(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -1581,21 +1608,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2452(o.sourceRanges); - checkUnnamed2453(o.sourceTags); - checkUnnamed2454(o.targetTags); + checkUnnamed2242(o.sourceRanges); + checkUnnamed2243(o.sourceTags); + checkUnnamed2244(o.targetTags); } buildCounterFirewall--; } -buildUnnamed2455() { +buildUnnamed2245() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed2455(core.List<api.Firewall> o) { +checkUnnamed2245(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -1607,7 +1634,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed2455(); + o.items = buildUnnamed2245(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1620,7 +1647,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2455(o.items); + checkUnnamed2245(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1667,14 +1694,14 @@ buildCounterForwardingRule--; } -buildUnnamed2456() { +buildUnnamed2246() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed2456(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed2246(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); @@ -1686,7 +1713,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2456(); + o.items = buildUnnamed2246(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1699,7 +1726,7 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2456(o.items); + checkUnnamed2246(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1707,14 +1734,14 @@ buildCounterForwardingRuleAggregatedList--; } -buildUnnamed2457() { +buildUnnamed2247() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2457(core.List<api.ForwardingRule> o) { +checkUnnamed2247(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -1726,7 +1753,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed2457(); + o.items = buildUnnamed2247(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1739,7 +1766,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2457(o.items); + checkUnnamed2247(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1747,14 +1774,14 @@ buildCounterForwardingRuleList--; } -buildUnnamed2458() { +buildUnnamed2248() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed2458(core.List<api.ForwardingRule> o) { +checkUnnamed2248(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -1781,14 +1808,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed2459() { +buildUnnamed2249() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed2459(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed2249(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -1800,7 +1827,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2459(); + o.data = buildUnnamed2249(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -1811,7 +1838,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2459(o.data); + checkUnnamed2249(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -1822,7 +1849,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed2458(); + o.forwardingRules = buildUnnamed2248(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -1832,12 +1859,182 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed2458(o.forwardingRules); + checkUnnamed2248(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"; + } + buildCounterHTTP2HealthCheck--; + 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')); + } + buildCounterHTTP2HealthCheck--; +} + +core.int buildCounterHTTPHealthCheck = 0; +buildHTTPHealthCheck() { + var o = new api.HTTPHealthCheck(); + buildCounterHTTPHealthCheck++; + if (buildCounterHTTPHealthCheck < 3) { + o.host = "foo"; + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.requestPath = "foo"; + } + buildCounterHTTPHealthCheck--; + return o; +} + +checkHTTPHealthCheck(api.HTTPHealthCheck o) { + buildCounterHTTPHealthCheck++; + if (buildCounterHTTPHealthCheck < 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')); + } + buildCounterHTTPHealthCheck--; +} + +core.int buildCounterHTTPSHealthCheck = 0; +buildHTTPSHealthCheck() { + var o = new api.HTTPSHealthCheck(); + buildCounterHTTPSHealthCheck++; + if (buildCounterHTTPSHealthCheck < 3) { + o.host = "foo"; + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.requestPath = "foo"; + } + buildCounterHTTPSHealthCheck--; + return o; +} + +checkHTTPSHealthCheck(api.HTTPSHealthCheck o) { + buildCounterHTTPSHealthCheck++; + if (buildCounterHTTPSHealthCheck < 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')); + } + buildCounterHTTPSHealthCheck--; +} + +core.int buildCounterHealthCheck = 0; +buildHealthCheck() { + var o = new api.HealthCheck(); + buildCounterHealthCheck++; + if (buildCounterHealthCheck < 3) { + o.checkIntervalSec = 42; + o.creationTimestamp = "foo"; + o.description = "foo"; + o.healthyThreshold = 42; + o.http2HealthCheck = buildHTTP2HealthCheck(); + o.httpHealthCheck = buildHTTPHealthCheck(); + o.httpsHealthCheck = buildHTTPSHealthCheck(); + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.selfLink = "foo"; + o.sslHealthCheck = buildSSLHealthCheck(); + o.tcpHealthCheck = buildTCPHealthCheck(); + o.timeoutSec = 42; + o.type = "foo"; + o.unhealthyThreshold = 42; + } + buildCounterHealthCheck--; + return o; +} + +checkHealthCheck(api.HealthCheck o) { + buildCounterHealthCheck++; + if (buildCounterHealthCheck < 3) { + unittest.expect(o.checkIntervalSec, unittest.equals(42)); + 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')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkSSLHealthCheck(o.sslHealthCheck); + checkTCPHealthCheck(o.tcpHealthCheck); + unittest.expect(o.timeoutSec, unittest.equals(42)); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.unhealthyThreshold, unittest.equals(42)); + } + buildCounterHealthCheck--; +} + +buildUnnamed2250() { + var o = new core.List<api.HealthCheck>(); + o.add(buildHealthCheck()); + o.add(buildHealthCheck()); + return o; +} + +checkUnnamed2250(core.List<api.HealthCheck> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHealthCheck(o[0]); + checkHealthCheck(o[1]); +} + +core.int buildCounterHealthCheckList = 0; +buildHealthCheckList() { + var o = new api.HealthCheckList(); + buildCounterHealthCheckList++; + if (buildCounterHealthCheckList < 3) { + o.id = "foo"; + o.items = buildUnnamed2250(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterHealthCheckList--; + return o; +} + +checkHealthCheckList(api.HealthCheckList o) { + buildCounterHealthCheckList++; + if (buildCounterHealthCheckList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2250(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterHealthCheckList--; +} + core.int buildCounterHealthCheckReference = 0; buildHealthCheckReference() { var o = new api.HealthCheckReference(); @@ -1882,14 +2079,14 @@ buildCounterHealthStatus--; } -buildUnnamed2460() { +buildUnnamed2251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2460(core.List<core.String> o) { +checkUnnamed2251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1901,7 +2098,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed2460(); + o.hosts = buildUnnamed2251(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -1912,7 +2109,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2460(o.hosts); + checkUnnamed2251(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -1961,14 +2158,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed2461() { +buildUnnamed2252() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed2461(core.List<api.HttpHealthCheck> o) { +checkUnnamed2252(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -1980,7 +2177,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2461(); + o.items = buildUnnamed2252(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1993,7 +2190,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2461(o.items); + checkUnnamed2252(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2044,14 +2241,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed2462() { +buildUnnamed2253() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed2462(core.List<api.HttpsHealthCheck> o) { +checkUnnamed2253(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -2063,7 +2260,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed2462(); + o.items = buildUnnamed2253(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2076,7 +2273,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2462(o.items); + checkUnnamed2253(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2084,14 +2281,14 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed2463() { +buildUnnamed2254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2463(core.List<core.String> o) { +checkUnnamed2254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2134,7 +2331,7 @@ o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; - o.licenses = buildUnnamed2463(); + o.licenses = buildUnnamed2254(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -2160,7 +2357,7 @@ unittest.expect(o.id, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2463(o.licenses); + checkUnnamed2254(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2173,14 +2370,14 @@ buildCounterImage--; } -buildUnnamed2464() { +buildUnnamed2255() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed2464(core.List<api.Image> o) { +checkUnnamed2255(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -2192,7 +2389,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed2464(); + o.items = buildUnnamed2255(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2205,7 +2402,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2464(o.items); + checkUnnamed2255(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2213,40 +2410,40 @@ buildCounterImageList--; } -buildUnnamed2465() { +buildUnnamed2256() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2465(core.List<api.AttachedDisk> o) { +checkUnnamed2256(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2466() { +buildUnnamed2257() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2466(core.List<api.NetworkInterface> o) { +checkUnnamed2257(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2467() { +buildUnnamed2258() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2467(core.List<api.ServiceAccount> o) { +checkUnnamed2258(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -2261,16 +2458,16 @@ o.cpuPlatform = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; - o.disks = buildUnnamed2465(); + o.disks = buildUnnamed2256(); o.id = "foo"; o.kind = "foo"; o.machineType = "foo"; o.metadata = buildMetadata(); o.name = "foo"; - o.networkInterfaces = buildUnnamed2466(); + o.networkInterfaces = buildUnnamed2257(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed2467(); + o.serviceAccounts = buildUnnamed2258(); o.status = "foo"; o.statusMessage = "foo"; o.tags = buildTags(); @@ -2287,16 +2484,16 @@ unittest.expect(o.cpuPlatform, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2465(o.disks); + checkUnnamed2256(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')); - checkUnnamed2466(o.networkInterfaces); + checkUnnamed2257(o.networkInterfaces); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2467(o.serviceAccounts); + checkUnnamed2258(o.serviceAccounts); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); checkTags(o.tags); @@ -2305,14 +2502,14 @@ buildCounterInstance--; } -buildUnnamed2468() { +buildUnnamed2259() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed2468(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed2259(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); @@ -2324,7 +2521,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2468(); + o.items = buildUnnamed2259(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2337,7 +2534,7 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2468(o.items); + checkUnnamed2259(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2345,14 +2542,14 @@ buildCounterInstanceAggregatedList--; } -buildUnnamed2469() { +buildUnnamed2260() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2469(core.List<api.NamedPort> o) { +checkUnnamed2260(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -2369,8 +2566,9 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2469(); + o.namedPorts = buildUnnamed2260(); o.network = "foo"; + o.region = "foo"; o.selfLink = "foo"; o.size = 42; o.subnetwork = "foo"; @@ -2389,8 +2587,9 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2469(o.namedPorts); + checkUnnamed2260(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.size, unittest.equals(42)); unittest.expect(o.subnetwork, unittest.equals('foo')); @@ -2399,14 +2598,14 @@ buildCounterInstanceGroup--; } -buildUnnamed2470() { +buildUnnamed2261() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed2470(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed2261(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); @@ -2418,7 +2617,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2470(); + o.items = buildUnnamed2261(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2431,7 +2630,7 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2470(o.items); + checkUnnamed2261(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2439,14 +2638,14 @@ buildCounterInstanceGroupAggregatedList--; } -buildUnnamed2471() { +buildUnnamed2262() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2471(core.List<api.InstanceGroup> o) { +checkUnnamed2262(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -2458,7 +2657,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed2471(); + o.items = buildUnnamed2262(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2471,7 +2670,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2471(o.items); + checkUnnamed2262(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2479,27 +2678,27 @@ buildCounterInstanceGroupList--; } -buildUnnamed2472() { +buildUnnamed2263() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2472(core.List<api.NamedPort> o) { +checkUnnamed2263(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed2473() { +buildUnnamed2264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2473(core.List<core.String> o) { +checkUnnamed2264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2520,9 +2719,10 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed2472(); + o.namedPorts = buildUnnamed2263(); + o.region = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed2473(); + o.targetPools = buildUnnamed2264(); o.targetSize = 42; o.zone = "foo"; } @@ -2543,9 +2743,10 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2472(o.namedPorts); + checkUnnamed2263(o.namedPorts); + unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2473(o.targetPools); + checkUnnamed2264(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); unittest.expect(o.zone, unittest.equals('foo')); } @@ -2585,14 +2786,14 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed2474() { +buildUnnamed2265() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed2474(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed2265(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); @@ -2604,7 +2805,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2474(); + o.items = buildUnnamed2265(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2617,7 +2818,7 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2474(o.items); + checkUnnamed2265(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2625,14 +2826,14 @@ buildCounterInstanceGroupManagerAggregatedList--; } -buildUnnamed2475() { +buildUnnamed2266() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2475(core.List<api.InstanceGroupManager> o) { +checkUnnamed2266(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -2644,7 +2845,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed2475(); + o.items = buildUnnamed2266(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2657,7 +2858,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2475(o.items); + checkUnnamed2266(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2665,14 +2866,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed2476() { +buildUnnamed2267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2476(core.List<core.String> o) { +checkUnnamed2267(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2683,7 +2884,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed2476(); + o.instances = buildUnnamed2267(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -2692,19 +2893,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed2476(o.instances); + checkUnnamed2267(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed2477() { +buildUnnamed2268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2477(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')); @@ -2715,7 +2916,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed2477(); + o.instances = buildUnnamed2268(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -2724,19 +2925,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed2477(o.instances); + checkUnnamed2268(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed2478() { +buildUnnamed2269() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed2478(core.List<api.ManagedInstance> o) { +checkUnnamed2269(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -2747,7 +2948,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed2478(); + o.managedInstances = buildUnnamed2269(); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; return o; @@ -2756,19 +2957,19 @@ checkInstanceGroupManagersListManagedInstancesResponse(api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed2478(o.managedInstances); + checkUnnamed2269(o.managedInstances); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed2479() { +buildUnnamed2270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2479(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')); @@ -2779,7 +2980,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed2479(); + o.instances = buildUnnamed2270(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -2788,19 +2989,19 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed2479(o.instances); + checkUnnamed2270(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed2480() { +buildUnnamed2271() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed2480(core.List<api.InstanceGroupManager> o) { +checkUnnamed2271(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -2827,14 +3028,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed2481() { +buildUnnamed2272() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed2481(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed2272(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -2846,7 +3047,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2481(); + o.data = buildUnnamed2272(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -2857,7 +3058,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2481(o.data); + checkUnnamed2272(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -2868,7 +3069,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed2480(); + o.instanceGroupManagers = buildUnnamed2271(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -2878,7 +3079,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed2480(o.instanceGroupManagers); + checkUnnamed2271(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -2903,14 +3104,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed2482() { +buildUnnamed2273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2482(core.List<core.String> o) { +checkUnnamed2273(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2922,7 +3123,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed2482(); + o.targetPools = buildUnnamed2273(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -2932,19 +3133,19 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2482(o.targetPools); + checkUnnamed2273(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed2483() { +buildUnnamed2274() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2483(core.List<api.InstanceReference> o) { +checkUnnamed2274(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -2955,7 +3156,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed2483(); + o.instances = buildUnnamed2274(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -2964,19 +3165,19 @@ checkInstanceGroupsAddInstancesRequest(api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed2483(o.instances); + checkUnnamed2274(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed2484() { +buildUnnamed2275() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed2484(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2275(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -2988,7 +3189,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed2484(); + o.items = buildUnnamed2275(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3001,7 +3202,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2484(o.items); + checkUnnamed2275(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3028,14 +3229,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed2485() { +buildUnnamed2276() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2485(core.List<api.InstanceReference> o) { +checkUnnamed2276(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -3046,7 +3247,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed2485(); + o.instances = buildUnnamed2276(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -3055,19 +3256,19 @@ checkInstanceGroupsRemoveInstancesRequest(api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed2485(o.instances); + checkUnnamed2276(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed2486() { +buildUnnamed2277() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed2486(core.List<api.InstanceGroup> o) { +checkUnnamed2277(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -3094,14 +3295,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed2487() { +buildUnnamed2278() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed2487(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed2278(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -3113,7 +3314,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2487(); + o.data = buildUnnamed2278(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -3124,7 +3325,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2487(o.data); + checkUnnamed2278(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -3135,7 +3336,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed2486(); + o.instanceGroups = buildUnnamed2277(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -3145,20 +3346,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed2486(o.instanceGroups); + checkUnnamed2277(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed2488() { +buildUnnamed2279() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2488(core.List<api.NamedPort> o) { +checkUnnamed2279(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3170,7 +3371,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed2488(); + o.namedPorts = buildUnnamed2279(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -3180,19 +3381,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2488(o.namedPorts); + checkUnnamed2279(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed2489() { +buildUnnamed2280() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2489(core.List<api.Instance> o) { +checkUnnamed2280(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3204,7 +3405,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2489(); + o.items = buildUnnamed2280(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3217,7 +3418,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2489(o.items); + checkUnnamed2280(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3246,40 +3447,40 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed2490() { +buildUnnamed2281() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed2490(core.List<api.AttachedDisk> o) { +checkUnnamed2281(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed2491() { +buildUnnamed2282() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed2491(core.List<api.NetworkInterface> o) { +checkUnnamed2282(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed2492() { +buildUnnamed2283() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed2492(core.List<api.ServiceAccount> o) { +checkUnnamed2283(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -3292,12 +3493,12 @@ if (buildCounterInstanceProperties < 3) { o.canIpForward = true; o.description = "foo"; - o.disks = buildUnnamed2490(); + o.disks = buildUnnamed2281(); o.machineType = "foo"; o.metadata = buildMetadata(); - o.networkInterfaces = buildUnnamed2491(); + o.networkInterfaces = buildUnnamed2282(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed2492(); + o.serviceAccounts = buildUnnamed2283(); o.tags = buildTags(); } buildCounterInstanceProperties--; @@ -3309,12 +3510,12 @@ if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2490(o.disks); + checkUnnamed2281(o.disks); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); - checkUnnamed2491(o.networkInterfaces); + checkUnnamed2282(o.networkInterfaces); checkScheduling(o.scheduling); - checkUnnamed2492(o.serviceAccounts); + checkUnnamed2283(o.serviceAccounts); checkTags(o.tags); } buildCounterInstanceProperties--; @@ -3370,14 +3571,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed2493() { +buildUnnamed2284() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed2493(core.List<api.InstanceTemplate> o) { +checkUnnamed2284(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -3389,7 +3590,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed2493(); + o.items = buildUnnamed2284(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3402,7 +3603,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2493(o.items); + checkUnnamed2284(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3410,14 +3611,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed2494() { +buildUnnamed2285() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed2494(core.List<api.NamedPort> o) { +checkUnnamed2285(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -3429,7 +3630,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed2494(); + o.namedPorts = buildUnnamed2285(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -3440,20 +3641,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed2494(o.namedPorts); + checkUnnamed2285(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed2495() { +buildUnnamed2286() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2495(core.List<api.Instance> o) { +checkUnnamed2286(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -3480,14 +3681,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed2496() { +buildUnnamed2287() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed2496(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed2287(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -3499,7 +3700,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2496(); + o.data = buildUnnamed2287(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -3510,7 +3711,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2496(o.data); + checkUnnamed2287(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -3521,7 +3722,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed2495(); + o.instances = buildUnnamed2286(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -3531,7 +3732,7 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed2495(o.instances); + checkUnnamed2286(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; @@ -3556,14 +3757,14 @@ buildCounterInstancesSetMachineTypeRequest--; } -buildUnnamed2497() { +buildUnnamed2288() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed2497(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed2288(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -3574,7 +3775,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed2497(); + o.disks = buildUnnamed2288(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -3583,7 +3784,7 @@ checkInstancesStartWithEncryptionKeyRequest(api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed2497(o.disks); + checkUnnamed2288(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } @@ -3632,14 +3833,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed2498() { +buildUnnamed2289() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed2498(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed2289(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -3662,7 +3863,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed2498(); + o.scratchDisks = buildUnnamed2289(); o.selfLink = "foo"; o.zone = "foo"; } @@ -3685,21 +3886,21 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2498(o.scratchDisks); + checkUnnamed2289(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed2499() { +buildUnnamed2290() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed2499(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed2290(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); @@ -3711,7 +3912,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2499(); + o.items = buildUnnamed2290(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3724,7 +3925,7 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2499(o.items); + checkUnnamed2290(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3732,14 +3933,14 @@ buildCounterMachineTypeAggregatedList--; } -buildUnnamed2500() { +buildUnnamed2291() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2500(core.List<api.MachineType> o) { +checkUnnamed2291(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -3751,7 +3952,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed2500(); + o.items = buildUnnamed2291(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3764,7 +3965,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2500(o.items); + checkUnnamed2291(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3772,14 +3973,14 @@ buildCounterMachineTypeList--; } -buildUnnamed2501() { +buildUnnamed2292() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed2501(core.List<api.MachineType> o) { +checkUnnamed2292(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -3806,14 +4007,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed2502() { +buildUnnamed2293() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed2502(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed2293(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -3825,7 +4026,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2502(); + o.data = buildUnnamed2293(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -3836,7 +4037,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2502(o.data); + checkUnnamed2293(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -3847,7 +4048,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed2501(); + o.machineTypes = buildUnnamed2292(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -3857,7 +4058,7 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed2501(o.machineTypes); + checkUnnamed2292(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; @@ -3913,14 +4114,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed2503() { +buildUnnamed2294() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed2503(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed2294(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -3931,7 +4132,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed2503(); + o.errors = buildUnnamed2294(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -3940,7 +4141,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed2503(o.errors); + checkUnnamed2294(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -3985,14 +4186,14 @@ buildCounterMetadataItems--; } -buildUnnamed2504() { +buildUnnamed2295() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed2504(core.List<api.MetadataItems> o) { +checkUnnamed2295(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -4004,7 +4205,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2504(); + o.items = buildUnnamed2295(); o.kind = "foo"; } buildCounterMetadata--; @@ -4015,7 +4216,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2504(o.items); + checkUnnamed2295(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -4042,14 +4243,14 @@ buildCounterNamedPort--; } -buildUnnamed2505() { +buildUnnamed2296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2505(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')); @@ -4069,7 +4270,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.subnetworks = buildUnnamed2505(); + o.subnetworks = buildUnnamed2296(); } buildCounterNetwork--; return o; @@ -4087,19 +4288,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2505(o.subnetworks); + checkUnnamed2296(o.subnetworks); } buildCounterNetwork--; } -buildUnnamed2506() { +buildUnnamed2297() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed2506(core.List<api.AccessConfig> o) { +checkUnnamed2297(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); @@ -4110,7 +4311,7 @@ var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed2506(); + o.accessConfigs = buildUnnamed2297(); o.name = "foo"; o.network = "foo"; o.networkIP = "foo"; @@ -4123,7 +4324,7 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed2506(o.accessConfigs); + checkUnnamed2297(o.accessConfigs); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.networkIP, unittest.equals('foo')); @@ -4132,14 +4333,14 @@ buildCounterNetworkInterface--; } -buildUnnamed2507() { +buildUnnamed2298() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed2507(core.List<api.Network> o) { +checkUnnamed2298(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -4151,7 +4352,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2507(); + o.items = buildUnnamed2298(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4164,7 +4365,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2507(o.items); + checkUnnamed2298(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4195,14 +4396,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2508() { +buildUnnamed2299() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2508(core.List<api.OperationErrorErrors> o) { +checkUnnamed2299(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -4213,7 +4414,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2508(); + o.errors = buildUnnamed2299(); } buildCounterOperationError--; return o; @@ -4222,7 +4423,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2508(o.errors); + checkUnnamed2299(o.errors); } buildCounterOperationError--; } @@ -4248,14 +4449,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2509() { +buildUnnamed2300() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2509(core.List<api.OperationWarningsData> o) { +checkUnnamed2300(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -4267,7 +4468,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2509(); + o.data = buildUnnamed2300(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -4278,20 +4479,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2509(o.data); + checkUnnamed2300(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2510() { +buildUnnamed2301() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2510(core.List<api.OperationWarnings> o) { +checkUnnamed2301(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -4323,7 +4524,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2510(); + o.warnings = buildUnnamed2301(); o.zone = "foo"; } buildCounterOperation--; @@ -4354,20 +4555,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2510(o.warnings); + checkUnnamed2301(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2511() { +buildUnnamed2302() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed2511(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed2302(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); @@ -4379,7 +4580,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2511(); + o.items = buildUnnamed2302(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4392,7 +4593,7 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2511(o.items); + checkUnnamed2302(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4400,14 +4601,14 @@ buildCounterOperationAggregatedList--; } -buildUnnamed2512() { +buildUnnamed2303() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2512(core.List<api.Operation> o) { +checkUnnamed2303(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4419,7 +4620,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed2512(); + o.items = buildUnnamed2303(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4432,7 +4633,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2512(o.items); + checkUnnamed2303(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4440,14 +4641,14 @@ buildCounterOperationList--; } -buildUnnamed2513() { +buildUnnamed2304() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2513(core.List<api.Operation> o) { +checkUnnamed2304(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -4474,14 +4675,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed2514() { +buildUnnamed2305() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed2514(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed2305(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -4493,7 +4694,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2514(); + o.data = buildUnnamed2305(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -4504,7 +4705,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2514(o.data); + checkUnnamed2305(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -4515,7 +4716,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed2513(); + o.operations = buildUnnamed2304(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -4525,20 +4726,20 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed2513(o.operations); + checkUnnamed2304(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; } -buildUnnamed2515() { +buildUnnamed2306() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed2515(core.List<api.PathRule> o) { +checkUnnamed2306(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); @@ -4552,7 +4753,7 @@ o.defaultService = "foo"; o.description = "foo"; o.name = "foo"; - o.pathRules = buildUnnamed2515(); + o.pathRules = buildUnnamed2306(); } buildCounterPathMatcher--; return o; @@ -4564,19 +4765,19 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2515(o.pathRules); + checkUnnamed2306(o.pathRules); } buildCounterPathMatcher--; } -buildUnnamed2516() { +buildUnnamed2307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2516(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')); @@ -4587,7 +4788,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed2516(); + o.paths = buildUnnamed2307(); o.service = "foo"; } buildCounterPathRule--; @@ -4597,33 +4798,33 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed2516(o.paths); + checkUnnamed2307(o.paths); unittest.expect(o.service, unittest.equals('foo')); } buildCounterPathRule--; } -buildUnnamed2517() { +buildUnnamed2308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2517(core.List<core.String> o) { +checkUnnamed2308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2518() { +buildUnnamed2309() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2518(core.List<api.Quota> o) { +checkUnnamed2309(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -4638,11 +4839,11 @@ o.creationTimestamp = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed2517(); + o.enabledFeatures = buildUnnamed2308(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2518(); + o.quotas = buildUnnamed2309(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); } @@ -4657,11 +4858,11 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2517(o.enabledFeatures); + checkUnnamed2308(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2518(o.quotas); + checkUnnamed2309(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); } @@ -4691,27 +4892,27 @@ buildCounterQuota--; } -buildUnnamed2519() { +buildUnnamed2310() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed2519(core.List<api.Quota> o) { +checkUnnamed2310(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed2520() { +buildUnnamed2311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2520(core.List<core.String> o) { +checkUnnamed2311(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4728,10 +4929,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed2519(); + o.quotas = buildUnnamed2310(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed2520(); + o.zones = buildUnnamed2311(); } buildCounterRegion--; return o; @@ -4746,22 +4947,22 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2519(o.quotas); + checkUnnamed2310(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2520(o.zones); + checkUnnamed2311(o.zones); } buildCounterRegion--; } -buildUnnamed2521() { +buildUnnamed2312() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2521(core.List<api.Region> o) { +checkUnnamed2312(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4773,7 +4974,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed2521(); + o.items = buildUnnamed2312(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4786,7 +4987,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2521(o.items); + checkUnnamed2312(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4813,14 +5014,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed2522() { +buildUnnamed2313() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2522(core.List<core.String> o) { +checkUnnamed2313(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4847,14 +5048,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2523() { +buildUnnamed2314() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2523(core.List<api.RouteWarningsData> o) { +checkUnnamed2314(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -4866,7 +5067,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2523(); + o.data = buildUnnamed2314(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -4877,20 +5078,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2523(o.data); + checkUnnamed2314(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2524() { +buildUnnamed2315() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2524(core.List<api.RouteWarnings> o) { +checkUnnamed2315(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -4915,8 +5116,8 @@ o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2522(); - o.warnings = buildUnnamed2524(); + o.tags = buildUnnamed2313(); + o.warnings = buildUnnamed2315(); } buildCounterRoute--; return o; @@ -4939,20 +5140,20 @@ unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2522(o.tags); - checkUnnamed2524(o.warnings); + checkUnnamed2313(o.tags); + checkUnnamed2315(o.warnings); } buildCounterRoute--; } -buildUnnamed2525() { +buildUnnamed2316() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2525(core.List<api.Route> o) { +checkUnnamed2316(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -4964,7 +5165,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2525(); + o.items = buildUnnamed2316(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4977,7 +5178,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2525(o.items); + checkUnnamed2316(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4985,27 +5186,27 @@ buildCounterRouteList--; } -buildUnnamed2526() { +buildUnnamed2317() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2526(core.List<api.RouterBgpPeer> o) { +checkUnnamed2317(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2527() { +buildUnnamed2318() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2527(core.List<api.RouterInterface> o) { +checkUnnamed2318(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); @@ -5017,11 +5218,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2526(); + o.bgpPeers = buildUnnamed2317(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2527(); + o.interfaces = buildUnnamed2318(); o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -5036,11 +5237,11 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2526(o.bgpPeers); + checkUnnamed2317(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2527(o.interfaces); + checkUnnamed2318(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -5050,14 +5251,14 @@ buildCounterRouter--; } -buildUnnamed2528() { +buildUnnamed2319() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2528(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed2319(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); @@ -5069,7 +5270,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2528(); + o.items = buildUnnamed2319(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5082,7 +5283,7 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2528(o.items); + checkUnnamed2319(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5161,14 +5362,14 @@ buildCounterRouterInterface--; } -buildUnnamed2529() { +buildUnnamed2320() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2529(core.List<api.Router> o) { +checkUnnamed2320(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -5180,7 +5381,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2529(); + o.items = buildUnnamed2320(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5193,7 +5394,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2529(o.items); + checkUnnamed2320(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5201,27 +5402,27 @@ buildCounterRouterList--; } -buildUnnamed2530() { +buildUnnamed2321() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2530(core.List<api.Route> o) { +checkUnnamed2321(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2531() { +buildUnnamed2322() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2531(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed2322(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); @@ -5232,8 +5433,8 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2530(); - o.bgpPeerStatus = buildUnnamed2531(); + o.bestRoutes = buildUnnamed2321(); + o.bgpPeerStatus = buildUnnamed2322(); o.network = "foo"; } buildCounterRouterStatus--; @@ -5243,21 +5444,21 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2530(o.bestRoutes); - checkUnnamed2531(o.bgpPeerStatus); + checkUnnamed2321(o.bestRoutes); + checkUnnamed2322(o.bgpPeerStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2532() { +buildUnnamed2323() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2532(core.List<api.Route> o) { +checkUnnamed2323(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -5268,7 +5469,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2532(); + o.advertisedRoutes = buildUnnamed2323(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -5286,7 +5487,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2532(o.advertisedRoutes); + checkUnnamed2323(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -5340,14 +5541,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2533() { +buildUnnamed2324() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2533(core.List<api.Router> o) { +checkUnnamed2324(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -5374,14 +5575,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2534() { +buildUnnamed2325() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2534(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed2325(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -5393,7 +5594,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2534(); + o.data = buildUnnamed2325(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -5404,7 +5605,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2534(o.data); + checkUnnamed2325(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -5415,7 +5616,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2533(); + o.routers = buildUnnamed2324(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -5425,12 +5626,39 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2533(o.routers); + checkUnnamed2324(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; } +core.int buildCounterSSLHealthCheck = 0; +buildSSLHealthCheck() { + var o = new api.SSLHealthCheck(); + buildCounterSSLHealthCheck++; + if (buildCounterSSLHealthCheck < 3) { + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.request = "foo"; + o.response = "foo"; + } + buildCounterSSLHealthCheck--; + return o; +} + +checkSSLHealthCheck(api.SSLHealthCheck o) { + buildCounterSSLHealthCheck++; + if (buildCounterSSLHealthCheck < 3) { + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.request, unittest.equals('foo')); + unittest.expect(o.response, unittest.equals('foo')); + } + buildCounterSSLHealthCheck--; +} + core.int buildCounterScheduling = 0; buildScheduling() { var o = new api.Scheduling(); @@ -5477,14 +5705,14 @@ buildCounterSerialPortOutput--; } -buildUnnamed2535() { +buildUnnamed2326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2535(core.List<core.String> o) { +checkUnnamed2326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5496,7 +5724,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2535(); + o.scopes = buildUnnamed2326(); } buildCounterServiceAccount--; return o; @@ -5506,19 +5734,19 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2535(o.scopes); + checkUnnamed2326(o.scopes); } buildCounterServiceAccount--; } -buildUnnamed2536() { +buildUnnamed2327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2536(core.List<core.String> o) { +checkUnnamed2327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5534,7 +5762,7 @@ o.diskSizeGb = "foo"; o.id = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed2536(); + o.licenses = buildUnnamed2327(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -5557,7 +5785,7 @@ unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2536(o.licenses); + checkUnnamed2327(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -5571,14 +5799,14 @@ buildCounterSnapshot--; } -buildUnnamed2537() { +buildUnnamed2328() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2537(core.List<api.Snapshot> o) { +checkUnnamed2328(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -5590,7 +5818,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2537(); + o.items = buildUnnamed2328(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5603,7 +5831,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2537(o.items); + checkUnnamed2328(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5644,14 +5872,14 @@ buildCounterSslCertificate--; } -buildUnnamed2538() { +buildUnnamed2329() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2538(core.List<api.SslCertificate> o) { +checkUnnamed2329(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -5663,7 +5891,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2538(); + o.items = buildUnnamed2329(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5676,7 +5904,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2538(o.items); + checkUnnamed2329(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5721,14 +5949,14 @@ buildCounterSubnetwork--; } -buildUnnamed2539() { +buildUnnamed2330() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2539(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed2330(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); @@ -5740,7 +5968,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2539(); + o.items = buildUnnamed2330(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5753,7 +5981,7 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2539(o.items); + checkUnnamed2330(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5761,14 +5989,14 @@ buildCounterSubnetworkAggregatedList--; } -buildUnnamed2540() { +buildUnnamed2331() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2540(core.List<api.Subnetwork> o) { +checkUnnamed2331(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -5780,7 +6008,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2540(); + o.items = buildUnnamed2331(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5793,7 +6021,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2540(o.items); + checkUnnamed2331(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5801,14 +6029,33 @@ buildCounterSubnetworkList--; } -buildUnnamed2541() { +core.int buildCounterSubnetworksExpandIpCidrRangeRequest = 0; +buildSubnetworksExpandIpCidrRangeRequest() { + var o = new api.SubnetworksExpandIpCidrRangeRequest(); + buildCounterSubnetworksExpandIpCidrRangeRequest++; + if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { + o.ipCidrRange = "foo"; + } + buildCounterSubnetworksExpandIpCidrRangeRequest--; + return o; +} + +checkSubnetworksExpandIpCidrRangeRequest(api.SubnetworksExpandIpCidrRangeRequest o) { + buildCounterSubnetworksExpandIpCidrRangeRequest++; + if (buildCounterSubnetworksExpandIpCidrRangeRequest < 3) { + unittest.expect(o.ipCidrRange, unittest.equals('foo')); + } + buildCounterSubnetworksExpandIpCidrRangeRequest--; +} + +buildUnnamed2332() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2541(core.List<api.Subnetwork> o) { +checkUnnamed2332(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -5835,14 +6082,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2542() { +buildUnnamed2333() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2542(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed2333(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -5854,7 +6101,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2542(); + o.data = buildUnnamed2333(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -5865,7 +6112,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2542(o.data); + checkUnnamed2333(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -5876,7 +6123,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2541(); + o.subnetworks = buildUnnamed2332(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -5886,20 +6133,47 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2541(o.subnetworks); + checkUnnamed2332(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; } -buildUnnamed2543() { +core.int buildCounterTCPHealthCheck = 0; +buildTCPHealthCheck() { + var o = new api.TCPHealthCheck(); + buildCounterTCPHealthCheck++; + if (buildCounterTCPHealthCheck < 3) { + o.port = 42; + o.portName = "foo"; + o.proxyHeader = "foo"; + o.request = "foo"; + o.response = "foo"; + } + buildCounterTCPHealthCheck--; + return o; +} + +checkTCPHealthCheck(api.TCPHealthCheck o) { + buildCounterTCPHealthCheck++; + if (buildCounterTCPHealthCheck < 3) { + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.request, unittest.equals('foo')); + unittest.expect(o.response, unittest.equals('foo')); + } + buildCounterTCPHealthCheck--; +} + +buildUnnamed2334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2543(core.List<core.String> o) { +checkUnnamed2334(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5911,7 +6185,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2543(); + o.items = buildUnnamed2334(); } buildCounterTags--; return o; @@ -5921,7 +6195,7 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2543(o.items); + checkUnnamed2334(o.items); } buildCounterTags--; } @@ -5957,14 +6231,14 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2544() { +buildUnnamed2335() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2544(core.List<api.TargetHttpProxy> o) { +checkUnnamed2335(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -5976,7 +6250,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2544(); + o.items = buildUnnamed2335(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5989,7 +6263,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2544(o.items); + checkUnnamed2335(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5997,14 +6271,14 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2545() { +buildUnnamed2336() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2545(core.List<core.String> o) { +checkUnnamed2336(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6015,7 +6289,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2545(); + o.sslCertificates = buildUnnamed2336(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -6024,19 +6298,19 @@ checkTargetHttpsProxiesSetSslCertificatesRequest(api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2545(o.sslCertificates); + checkUnnamed2336(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2546() { +buildUnnamed2337() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2546(core.List<core.String> o) { +checkUnnamed2337(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6053,7 +6327,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2546(); + o.sslCertificates = buildUnnamed2337(); o.urlMap = "foo"; } buildCounterTargetHttpsProxy--; @@ -6069,20 +6343,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2546(o.sslCertificates); + checkUnnamed2337(o.sslCertificates); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2547() { +buildUnnamed2338() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2547(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2338(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -6094,7 +6368,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2547(); + o.items = buildUnnamed2338(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6107,7 +6381,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2547(o.items); + checkUnnamed2338(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6150,14 +6424,14 @@ buildCounterTargetInstance--; } -buildUnnamed2548() { +buildUnnamed2339() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2548(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed2339(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); @@ -6169,7 +6443,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2548(); + o.items = buildUnnamed2339(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6182,7 +6456,7 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2548(o.items); + checkUnnamed2339(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6190,14 +6464,14 @@ buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2549() { +buildUnnamed2340() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2549(core.List<api.TargetInstance> o) { +checkUnnamed2340(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -6209,7 +6483,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2549(); + o.items = buildUnnamed2340(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6222,7 +6496,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2549(o.items); + checkUnnamed2340(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6230,14 +6504,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2550() { +buildUnnamed2341() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2550(core.List<api.TargetInstance> o) { +checkUnnamed2341(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -6264,14 +6538,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2551() { +buildUnnamed2342() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2551(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed2342(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -6283,7 +6557,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2551(); + o.data = buildUnnamed2342(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -6294,7 +6568,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2551(o.data); + checkUnnamed2342(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -6305,7 +6579,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2550(); + o.targetInstances = buildUnnamed2341(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -6315,33 +6589,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2550(o.targetInstances); + checkUnnamed2341(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2552() { +buildUnnamed2343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2552(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')); } -buildUnnamed2553() { +buildUnnamed2344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2553(core.List<core.String> o) { +checkUnnamed2344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6356,9 +6630,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2552(); + o.healthChecks = buildUnnamed2343(); o.id = "foo"; - o.instances = buildUnnamed2553(); + o.instances = buildUnnamed2344(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -6376,9 +6650,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2552(o.healthChecks); + checkUnnamed2343(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2553(o.instances); + checkUnnamed2344(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -6388,14 +6662,14 @@ buildCounterTargetPool--; } -buildUnnamed2554() { +buildUnnamed2345() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2554(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed2345(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); @@ -6407,7 +6681,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2554(); + o.items = buildUnnamed2345(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6420,7 +6694,7 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2554(o.items); + checkUnnamed2345(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6428,14 +6702,14 @@ buildCounterTargetPoolAggregatedList--; } -buildUnnamed2555() { +buildUnnamed2346() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2555(core.List<api.HealthStatus> o) { +checkUnnamed2346(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -6446,7 +6720,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2555(); + o.healthStatus = buildUnnamed2346(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -6456,20 +6730,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2555(o.healthStatus); + checkUnnamed2346(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2556() { +buildUnnamed2347() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2556(core.List<api.TargetPool> o) { +checkUnnamed2347(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -6481,7 +6755,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2556(); + o.items = buildUnnamed2347(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6494,7 +6768,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2556(o.items); + checkUnnamed2347(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6502,14 +6776,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2557() { +buildUnnamed2348() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2557(core.List<api.HealthCheckReference> o) { +checkUnnamed2348(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -6520,7 +6794,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2557(); + o.healthChecks = buildUnnamed2348(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -6529,19 +6803,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2557(o.healthChecks); + checkUnnamed2348(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2558() { +buildUnnamed2349() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2558(core.List<api.InstanceReference> o) { +checkUnnamed2349(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6552,7 +6826,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2558(); + o.instances = buildUnnamed2349(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -6561,19 +6835,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2558(o.instances); + checkUnnamed2349(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2559() { +buildUnnamed2350() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2559(core.List<api.HealthCheckReference> o) { +checkUnnamed2350(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -6584,7 +6858,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2559(); + o.healthChecks = buildUnnamed2350(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -6593,19 +6867,19 @@ checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2559(o.healthChecks); + checkUnnamed2350(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2560() { +buildUnnamed2351() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2560(core.List<api.InstanceReference> o) { +checkUnnamed2351(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -6616,7 +6890,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2560(); + o.instances = buildUnnamed2351(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -6625,19 +6899,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2560(o.instances); + checkUnnamed2351(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2561() { +buildUnnamed2352() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2561(core.List<api.TargetPool> o) { +checkUnnamed2352(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -6664,14 +6938,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2562() { +buildUnnamed2353() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2562(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed2353(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -6683,7 +6957,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2562(); + o.data = buildUnnamed2353(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -6694,7 +6968,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2562(o.data); + checkUnnamed2353(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -6705,7 +6979,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2561(); + o.targetPools = buildUnnamed2352(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -6715,7 +6989,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2561(o.targetPools); + checkUnnamed2352(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -6740,27 +7014,185 @@ buildCounterTargetReference--; } -buildUnnamed2563() { +core.int buildCounterTargetSslProxiesSetBackendServiceRequest = 0; +buildTargetSslProxiesSetBackendServiceRequest() { + var o = new api.TargetSslProxiesSetBackendServiceRequest(); + buildCounterTargetSslProxiesSetBackendServiceRequest++; + if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) { + o.service = "foo"; + } + buildCounterTargetSslProxiesSetBackendServiceRequest--; + return o; +} + +checkTargetSslProxiesSetBackendServiceRequest(api.TargetSslProxiesSetBackendServiceRequest o) { + buildCounterTargetSslProxiesSetBackendServiceRequest++; + if (buildCounterTargetSslProxiesSetBackendServiceRequest < 3) { + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterTargetSslProxiesSetBackendServiceRequest--; +} + +core.int buildCounterTargetSslProxiesSetProxyHeaderRequest = 0; +buildTargetSslProxiesSetProxyHeaderRequest() { + var o = new api.TargetSslProxiesSetProxyHeaderRequest(); + buildCounterTargetSslProxiesSetProxyHeaderRequest++; + if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { + o.proxyHeader = "foo"; + } + buildCounterTargetSslProxiesSetProxyHeaderRequest--; + return o; +} + +checkTargetSslProxiesSetProxyHeaderRequest(api.TargetSslProxiesSetProxyHeaderRequest o) { + buildCounterTargetSslProxiesSetProxyHeaderRequest++; + if (buildCounterTargetSslProxiesSetProxyHeaderRequest < 3) { + unittest.expect(o.proxyHeader, unittest.equals('foo')); + } + buildCounterTargetSslProxiesSetProxyHeaderRequest--; +} + +buildUnnamed2354() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2563(core.List<core.String> o) { +checkUnnamed2354(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2564() { +core.int buildCounterTargetSslProxiesSetSslCertificatesRequest = 0; +buildTargetSslProxiesSetSslCertificatesRequest() { + var o = new api.TargetSslProxiesSetSslCertificatesRequest(); + buildCounterTargetSslProxiesSetSslCertificatesRequest++; + if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { + o.sslCertificates = buildUnnamed2354(); + } + buildCounterTargetSslProxiesSetSslCertificatesRequest--; + return o; +} + +checkTargetSslProxiesSetSslCertificatesRequest(api.TargetSslProxiesSetSslCertificatesRequest o) { + buildCounterTargetSslProxiesSetSslCertificatesRequest++; + if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { + checkUnnamed2354(o.sslCertificates); + } + buildCounterTargetSslProxiesSetSslCertificatesRequest--; +} + +buildUnnamed2355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2564(core.List<core.String> o) { +checkUnnamed2355(core.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 buildCounterTargetSslProxy = 0; +buildTargetSslProxy() { + var o = new api.TargetSslProxy(); + buildCounterTargetSslProxy++; + if (buildCounterTargetSslProxy < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.proxyHeader = "foo"; + o.selfLink = "foo"; + o.service = "foo"; + o.sslCertificates = buildUnnamed2355(); + } + buildCounterTargetSslProxy--; + return o; +} + +checkTargetSslProxy(api.TargetSslProxy o) { + buildCounterTargetSslProxy++; + if (buildCounterTargetSslProxy < 3) { + 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.name, unittest.equals('foo')); + unittest.expect(o.proxyHeader, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.service, unittest.equals('foo')); + checkUnnamed2355(o.sslCertificates); + } + buildCounterTargetSslProxy--; +} + +buildUnnamed2356() { + var o = new core.List<api.TargetSslProxy>(); + o.add(buildTargetSslProxy()); + o.add(buildTargetSslProxy()); + return o; +} + +checkUnnamed2356(core.List<api.TargetSslProxy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetSslProxy(o[0]); + checkTargetSslProxy(o[1]); +} + +core.int buildCounterTargetSslProxyList = 0; +buildTargetSslProxyList() { + var o = new api.TargetSslProxyList(); + buildCounterTargetSslProxyList++; + if (buildCounterTargetSslProxyList < 3) { + o.id = "foo"; + o.items = buildUnnamed2356(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + } + buildCounterTargetSslProxyList--; + return o; +} + +checkTargetSslProxyList(api.TargetSslProxyList o) { + buildCounterTargetSslProxyList++; + if (buildCounterTargetSslProxyList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2356(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterTargetSslProxyList--; +} + +buildUnnamed2357() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2357(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); @@ -6773,7 +7205,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2563(); + o.forwardingRules = buildUnnamed2357(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -6781,7 +7213,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2564(); + o.tunnels = buildUnnamed2358(); } buildCounterTargetVpnGateway--; return o; @@ -6792,7 +7224,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2563(o.forwardingRules); + checkUnnamed2357(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -6800,19 +7232,19 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2564(o.tunnels); + checkUnnamed2358(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2565() { +buildUnnamed2359() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2565(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed2359(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); @@ -6824,7 +7256,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2565(); + o.items = buildUnnamed2359(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6837,7 +7269,7 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2565(o.items); + checkUnnamed2359(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6845,14 +7277,14 @@ buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2566() { +buildUnnamed2360() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2566(core.List<api.TargetVpnGateway> o) { +checkUnnamed2360(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -6864,7 +7296,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2566(); + o.items = buildUnnamed2360(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6877,7 +7309,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2566(o.items); + checkUnnamed2360(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6885,14 +7317,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2567() { +buildUnnamed2361() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2567(core.List<api.TargetVpnGateway> o) { +checkUnnamed2361(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -6919,14 +7351,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2568() { +buildUnnamed2362() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2568(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed2362(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -6938,7 +7370,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2568(); + o.data = buildUnnamed2362(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -6949,7 +7381,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2568(o.data); + checkUnnamed2362(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -6960,7 +7392,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2567(); + o.targetVpnGateways = buildUnnamed2361(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -6970,7 +7402,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2567(o.targetVpnGateways); + checkUnnamed2361(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -7001,40 +7433,40 @@ buildCounterTestFailure--; } -buildUnnamed2569() { +buildUnnamed2363() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2569(core.List<api.HostRule> o) { +checkUnnamed2363(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2570() { +buildUnnamed2364() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2570(core.List<api.PathMatcher> o) { +checkUnnamed2364(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2571() { +buildUnnamed2365() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2571(core.List<api.UrlMapTest> o) { +checkUnnamed2365(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -7049,13 +7481,13 @@ o.defaultService = "foo"; o.description = "foo"; o.fingerprint = "foo"; - o.hostRules = buildUnnamed2569(); + o.hostRules = buildUnnamed2363(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2570(); + o.pathMatchers = buildUnnamed2364(); o.selfLink = "foo"; - o.tests = buildUnnamed2571(); + o.tests = buildUnnamed2365(); } buildCounterUrlMap--; return o; @@ -7068,25 +7500,25 @@ unittest.expect(o.defaultService, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2569(o.hostRules); + checkUnnamed2363(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2570(o.pathMatchers); + checkUnnamed2364(o.pathMatchers); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2571(o.tests); + checkUnnamed2365(o.tests); } buildCounterUrlMap--; } -buildUnnamed2572() { +buildUnnamed2366() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2572(core.List<api.UrlMap> o) { +checkUnnamed2366(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -7098,7 +7530,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2572(); + o.items = buildUnnamed2366(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7111,7 +7543,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2572(o.items); + checkUnnamed2366(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7163,27 +7595,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2573() { +buildUnnamed2367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2573(core.List<core.String> o) { +checkUnnamed2367(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2574() { +buildUnnamed2368() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2574(core.List<api.TestFailure> o) { +checkUnnamed2368(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -7194,9 +7626,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2573(); + o.loadErrors = buildUnnamed2367(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2574(); + o.testFailures = buildUnnamed2368(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -7206,9 +7638,9 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2573(o.loadErrors); + checkUnnamed2367(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2574(o.testFailures); + checkUnnamed2368(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; @@ -7273,27 +7705,27 @@ buildCounterUsageExportLocation--; } -buildUnnamed2575() { +buildUnnamed2369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2575(core.List<core.String> o) { +checkUnnamed2369(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2576() { +buildUnnamed2370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2576(core.List<core.String> o) { +checkUnnamed2370(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7310,11 +7742,11 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2575(); + o.localTrafficSelector = buildUnnamed2369(); o.name = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2576(); + o.remoteTrafficSelector = buildUnnamed2370(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -7335,11 +7767,11 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2575(o.localTrafficSelector); + checkUnnamed2369(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2576(o.remoteTrafficSelector); + checkUnnamed2370(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -7350,14 +7782,14 @@ buildCounterVpnTunnel--; } -buildUnnamed2577() { +buildUnnamed2371() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2577(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed2371(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); @@ -7369,7 +7801,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2577(); + o.items = buildUnnamed2371(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7382,7 +7814,7 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2577(o.items); + checkUnnamed2371(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7390,14 +7822,14 @@ buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2578() { +buildUnnamed2372() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2578(core.List<api.VpnTunnel> o) { +checkUnnamed2372(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -7409,7 +7841,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2578(); + o.items = buildUnnamed2372(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7422,7 +7854,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2578(o.items); + checkUnnamed2372(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7430,14 +7862,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2579() { +buildUnnamed2373() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2579(core.List<api.VpnTunnel> o) { +checkUnnamed2373(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -7464,14 +7896,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2580() { +buildUnnamed2374() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2580(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed2374(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -7483,7 +7915,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2580(); + o.data = buildUnnamed2374(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -7494,7 +7926,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2580(o.data); + checkUnnamed2374(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -7505,7 +7937,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2579(); + o.vpnTunnels = buildUnnamed2373(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -7515,7 +7947,7 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2579(o.vpnTunnels); + checkUnnamed2373(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; @@ -7556,14 +7988,14 @@ buildCounterZone--; } -buildUnnamed2581() { +buildUnnamed2375() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2581(core.List<api.Zone> o) { +checkUnnamed2375(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -7575,7 +8007,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2581(); + o.items = buildUnnamed2375(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7588,7 +8020,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2581(o.items); + checkUnnamed2375(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7814,6 +8246,15 @@ }); + unittest.group("obj-schema-ConnectionDraining", () { + unittest.test("to-json--from-json", () { + var o = buildConnectionDraining(); + var od = new api.ConnectionDraining.fromJson(o.toJson()); + checkConnectionDraining(od); + }); + }); + + unittest.group("obj-schema-CustomerEncryptionKey", () { unittest.test("to-json--from-json", () { var o = buildCustomerEncryptionKey(); @@ -8048,6 +8489,51 @@ }); + unittest.group("obj-schema-HTTP2HealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHTTP2HealthCheck(); + var od = new api.HTTP2HealthCheck.fromJson(o.toJson()); + checkHTTP2HealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HTTPHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHTTPHealthCheck(); + var od = new api.HTTPHealthCheck.fromJson(o.toJson()); + checkHTTPHealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HTTPSHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHTTPSHealthCheck(); + var od = new api.HTTPSHealthCheck.fromJson(o.toJson()); + checkHTTPSHealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheck(); + var od = new api.HealthCheck.fromJson(o.toJson()); + checkHealthCheck(od); + }); + }); + + + unittest.group("obj-schema-HealthCheckList", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckList(); + var od = new api.HealthCheckList.fromJson(o.toJson()); + checkHealthCheckList(od); + }); + }); + + unittest.group("obj-schema-HealthCheckReference", () { unittest.test("to-json--from-json", () { var o = buildHealthCheckReference(); @@ -8948,6 +9434,15 @@ }); + unittest.group("obj-schema-SSLHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildSSLHealthCheck(); + var od = new api.SSLHealthCheck.fromJson(o.toJson()); + checkSSLHealthCheck(od); + }); + }); + + unittest.group("obj-schema-Scheduling", () { unittest.test("to-json--from-json", () { var o = buildScheduling(); @@ -9038,6 +9533,15 @@ }); + unittest.group("obj-schema-SubnetworksExpandIpCidrRangeRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSubnetworksExpandIpCidrRangeRequest(); + var od = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(o.toJson()); + checkSubnetworksExpandIpCidrRangeRequest(od); + }); + }); + + unittest.group("obj-schema-SubnetworksScopedListWarningData", () { unittest.test("to-json--from-json", () { var o = buildSubnetworksScopedListWarningData(); @@ -9065,6 +9569,15 @@ }); + unittest.group("obj-schema-TCPHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildTCPHealthCheck(); + var od = new api.TCPHealthCheck.fromJson(o.toJson()); + checkTCPHealthCheck(od); + }); + }); + + unittest.group("obj-schema-Tags", () { unittest.test("to-json--from-json", () { var o = buildTags(); @@ -9281,6 +9794,51 @@ }); + unittest.group("obj-schema-TargetSslProxiesSetBackendServiceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxiesSetBackendServiceRequest(); + var od = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(o.toJson()); + checkTargetSslProxiesSetBackendServiceRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxiesSetProxyHeaderRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxiesSetProxyHeaderRequest(); + var od = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(o.toJson()); + checkTargetSslProxiesSetProxyHeaderRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxiesSetSslCertificatesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxiesSetSslCertificatesRequest(); + var od = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(o.toJson()); + checkTargetSslProxiesSetSslCertificatesRequest(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxy", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxy(); + var od = new api.TargetSslProxy.fromJson(o.toJson()); + checkTargetSslProxy(od); + }); + }); + + + unittest.group("obj-schema-TargetSslProxyList", () { + unittest.test("to-json--from-json", () { + var o = buildTargetSslProxyList(); + var od = new api.TargetSslProxyList.fromJson(o.toJson()); + checkTargetSslProxyList(od); + }); + }); + + unittest.group("obj-schema-TargetVpnGateway", () { unittest.test("to-json--from-json", () { var o = buildTargetVpnGateway(); @@ -9496,6 +10054,7 @@ 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; @@ -9523,6 +10082,7 @@ } 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)); @@ -9532,7 +10092,7 @@ var resp = convert.JSON.encode(buildAddressAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregatedList response) { checkAddressAggregatedList(response); }))); }); @@ -9680,6 +10240,7 @@ 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; @@ -9707,6 +10268,7 @@ } 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)); @@ -9716,7 +10278,7 @@ var resp = convert.JSON.encode(buildAddressList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { checkAddressList(response); }))); }); @@ -9732,6 +10294,7 @@ 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; @@ -9759,6 +10322,7 @@ } 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)); @@ -9768,7 +10332,7 @@ var resp = convert.JSON.encode(buildAutoscalerAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerAggregatedList response) { checkAutoscalerAggregatedList(response); }))); }); @@ -9916,6 +10480,7 @@ var arg_zone = "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; @@ -9943,6 +10508,7 @@ } 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)); @@ -9952,7 +10518,7 @@ var resp = convert.JSON.encode(buildAutoscalerList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AutoscalerList response) { checkAutoscalerList(response); }))); }); @@ -10245,6 +10811,7 @@ 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; @@ -10272,6 +10839,7 @@ } 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)); @@ -10281,7 +10849,7 @@ var resp = convert.JSON.encode(buildBackendServiceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList response) { checkBackendServiceList(response); }))); }); @@ -10391,6 +10959,7 @@ 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; @@ -10418,6 +10987,7 @@ } 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)); @@ -10427,7 +10997,7 @@ var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregatedList response) { checkDiskTypeAggregatedList(response); }))); }); @@ -10484,6 +11054,7 @@ var arg_zone = "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; @@ -10511,6 +11082,7 @@ } 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)); @@ -10520,7 +11092,7 @@ var resp = convert.JSON.encode(buildDiskTypeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList response) { checkDiskTypeList(response); }))); }); @@ -10536,6 +11108,7 @@ 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; @@ -10563,6 +11136,7 @@ } 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)); @@ -10572,7 +11146,7 @@ var resp = convert.JSON.encode(buildDiskAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedList response) { checkDiskAggregatedList(response); }))); }); @@ -10770,6 +11344,7 @@ var arg_zone = "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; @@ -10797,6 +11372,7 @@ } 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)); @@ -10806,7 +11382,7 @@ var resp = convert.JSON.encode(buildDiskList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList response) { checkDiskList(response); }))); }); @@ -11002,6 +11578,7 @@ 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; @@ -11029,6 +11606,7 @@ } 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)); @@ -11038,7 +11616,7 @@ var resp = convert.JSON.encode(buildFirewallList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { checkFirewallList(response); }))); }); @@ -11148,6 +11726,7 @@ 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; @@ -11175,6 +11754,7 @@ } 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)); @@ -11184,7 +11764,7 @@ var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAggregatedList response) { checkForwardingRuleAggregatedList(response); }))); }); @@ -11332,6 +11912,7 @@ 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; @@ -11359,6 +11940,7 @@ } 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)); @@ -11368,7 +11950,7 @@ var resp = convert.JSON.encode(buildForwardingRuleList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { checkForwardingRuleList(response); }))); }); @@ -11564,6 +12146,7 @@ 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; @@ -11591,6 +12174,7 @@ } 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)); @@ -11600,7 +12184,7 @@ var resp = convert.JSON.encode(buildAddressList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { checkAddressList(response); }))); }); @@ -11748,6 +12332,7 @@ 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; @@ -11775,6 +12360,7 @@ } 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)); @@ -11784,7 +12370,7 @@ var resp = convert.JSON.encode(buildForwardingRuleList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList response) { checkForwardingRuleList(response); }))); }); @@ -11847,6 +12433,7 @@ 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; @@ -11874,6 +12461,7 @@ } 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)); @@ -11883,7 +12471,7 @@ var resp = convert.JSON.encode(buildOperationAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggregatedList response) { checkOperationAggregatedList(response); }))); }); @@ -11979,6 +12567,7 @@ 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; @@ -12006,6 +12595,7 @@ } 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)); @@ -12015,7 +12605,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { checkOperationList(response); }))); }); @@ -12023,6 +12613,286 @@ }); + unittest.group("resource-HealthChecksResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_project = "foo"; + var arg_healthCheck = "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_healthCheck).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_project = "foo"; + var arg_healthCheck = "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(buildHealthCheck()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_healthCheck).then(unittest.expectAsync(((api.HealthCheck response) { + checkHealthCheck(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_request = buildHealthCheck(); + var arg_project = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.HealthCheck.fromJson(json); + checkHealthCheck(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).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + 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(buildHealthCheckList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HealthCheckList response) { + checkHealthCheckList(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_request = buildHealthCheck(); + var arg_project = "foo"; + var arg_healthCheck = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.HealthCheck.fromJson(json); + checkHealthCheck(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_healthCheck).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.HealthChecksResourceApi res = new api.ComputeApi(mock).healthChecks; + var arg_request = buildHealthCheck(); + var arg_project = "foo"; + var arg_healthCheck = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.HealthCheck.fromJson(json); + checkHealthCheck(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_healthCheck).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + unittest.group("resource-HttpHealthChecksResourceApi", () { unittest.test("method--delete", () { @@ -12163,6 +13033,7 @@ 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; @@ -12190,6 +13061,7 @@ } 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)); @@ -12199,7 +13071,7 @@ var resp = convert.JSON.encode(buildHttpHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList response) { checkHttpHealthCheckList(response); }))); }); @@ -12441,6 +13313,7 @@ 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; @@ -12468,6 +13341,7 @@ } 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)); @@ -12477,7 +13351,7 @@ var resp = convert.JSON.encode(buildHttpsHealthCheckList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.HttpsHealthCheckList response) { checkHttpsHealthCheckList(response); }))); }); @@ -12809,6 +13683,7 @@ 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; @@ -12836,6 +13711,7 @@ } 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)); @@ -12845,7 +13721,7 @@ var resp = convert.JSON.encode(buildImageList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { checkImageList(response); }))); }); @@ -12909,6 +13785,7 @@ 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; @@ -12936,6 +13813,7 @@ } 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)); @@ -12945,7 +13823,7 @@ var resp = convert.JSON.encode(buildInstanceGroupManagerAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerAggregatedList response) { checkInstanceGroupManagerAggregatedList(response); }))); }); @@ -13141,6 +14019,58 @@ var arg_zone = "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(buildInstanceGroupManagerList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) { + checkInstanceGroupManagerList(response); + }))); + }); + + unittest.test("method--listManagedInstances", () { + + var mock = new HttpServerMock(); + api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers; + 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; @@ -13174,54 +14104,10 @@ var h = { "content-type" : "application/json; charset=utf-8", }; - var resp = convert.JSON.encode(buildInstanceGroupManagerList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagerList response) { - checkInstanceGroupManagerList(response); - }))); - }); - - unittest.test("method--listManagedInstances", () { - - var mock = new HttpServerMock(); - api.InstanceGroupManagersResourceApi res = new api.ComputeApi(mock).instanceGroupManagers; - var arg_project = "foo"; - var arg_zone = "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(buildInstanceGroupManagersListManagedInstancesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { + res.listManagedInstances(arg_project, arg_zone, arg_instanceGroupManager, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupManagersListManagedInstancesResponse response) { checkInstanceGroupManagersListManagedInstancesResponse(response); }))); }); @@ -13475,6 +14361,7 @@ 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; @@ -13502,6 +14389,7 @@ } 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)); @@ -13511,7 +14399,7 @@ var resp = convert.JSON.encode(buildInstanceGroupAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupAggregatedList response) { checkInstanceGroupAggregatedList(response); }))); }); @@ -13659,6 +14547,7 @@ var arg_zone = "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; @@ -13686,6 +14575,7 @@ } 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)); @@ -13695,7 +14585,7 @@ var resp = convert.JSON.encode(buildInstanceGroupList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupList response) { checkInstanceGroupList(response); }))); }); @@ -13710,6 +14600,7 @@ 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.InstanceGroupsListInstancesRequest.fromJson(json); @@ -13740,6 +14631,7 @@ } 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)); @@ -13749,7 +14641,7 @@ var resp = convert.JSON.encode(buildInstanceGroupsListInstances()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) { + res.listInstances(arg_request, arg_project, arg_zone, arg_instanceGroup, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceGroupsListInstances response) { checkInstanceGroupsListInstances(response); }))); }); @@ -13993,6 +14885,7 @@ 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; @@ -14020,6 +14913,7 @@ } 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)); @@ -14029,7 +14923,7 @@ var resp = convert.JSON.encode(buildInstanceTemplateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList response) { checkInstanceTemplateList(response); }))); }); @@ -14095,6 +14989,7 @@ 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; @@ -14122,6 +15017,7 @@ } 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)); @@ -14131,7 +15027,7 @@ var resp = convert.JSON.encode(buildInstanceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregatedList response) { checkInstanceAggregatedList(response); }))); }); @@ -14467,6 +15363,7 @@ var arg_zone = "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; @@ -14494,6 +15391,7 @@ } 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)); @@ -14503,7 +15401,7 @@ var resp = convert.JSON.encode(buildInstanceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList response) { checkInstanceList(response); }))); }); @@ -14986,6 +15884,7 @@ 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; @@ -15013,6 +15912,7 @@ } 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)); @@ -15022,7 +15922,7 @@ var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggregatedList response) { checkMachineTypeAggregatedList(response); }))); }); @@ -15079,6 +15979,7 @@ var arg_zone = "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; @@ -15106,6 +16007,7 @@ } 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)); @@ -15115,7 +16017,7 @@ var resp = convert.JSON.encode(buildMachineTypeList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList response) { checkMachineTypeList(response); }))); }); @@ -15263,6 +16165,7 @@ 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; @@ -15290,6 +16193,7 @@ } 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)); @@ -15299,11 +16203,54 @@ var resp = convert.JSON.encode(buildNetworkList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { checkNetworkList(response); }))); }); + unittest.test("method--switchToCustomMode", () { + + var mock = new HttpServerMock(); + api.NetworksResourceApi res = new api.ComputeApi(mock).networks; + var arg_project = "foo"; + var arg_network = "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.switchToCustomMode(arg_project, arg_network).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + }); @@ -15632,6 +16579,7 @@ 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; @@ -15659,6 +16607,7 @@ } 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)); @@ -15668,7 +16617,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { checkOperationList(response); }))); }); @@ -15727,6 +16676,7 @@ 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; @@ -15754,6 +16704,7 @@ } 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)); @@ -15763,7 +16714,7 @@ var resp = convert.JSON.encode(buildRegionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { checkRegionList(response); }))); }); @@ -15779,6 +16730,7 @@ 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; @@ -15806,6 +16758,7 @@ } 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)); @@ -15815,7 +16768,7 @@ var resp = convert.JSON.encode(buildRouterAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterAggregatedList response) { checkRouterAggregatedList(response); }))); }); @@ -16007,6 +16960,7 @@ 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; @@ -16034,6 +16988,7 @@ } 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)); @@ -16043,7 +16998,7 @@ var resp = convert.JSON.encode(buildRouterList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouterList response) { checkRouterList(response); }))); }); @@ -16335,6 +17290,7 @@ 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; @@ -16362,6 +17318,7 @@ } 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)); @@ -16371,7 +17328,7 @@ var resp = convert.JSON.encode(buildRouteList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { checkRouteList(response); }))); }); @@ -16473,6 +17430,7 @@ 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; @@ -16500,6 +17458,7 @@ } 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)); @@ -16509,7 +17468,7 @@ var resp = convert.JSON.encode(buildSnapshotList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { checkSnapshotList(response); }))); }); @@ -16657,6 +17616,7 @@ 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; @@ -16684,6 +17644,7 @@ } 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)); @@ -16693,7 +17654,7 @@ var resp = convert.JSON.encode(buildSslCertificateList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SslCertificateList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SslCertificateList response) { checkSslCertificateList(response); }))); }); @@ -16709,6 +17670,7 @@ 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; @@ -16736,6 +17698,7 @@ } 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)); @@ -16745,7 +17708,7 @@ var resp = convert.JSON.encode(buildSubnetworkAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkAggregatedList response) { checkSubnetworkAggregatedList(response); }))); }); @@ -16794,6 +17757,54 @@ }))); }); + unittest.test("method--expandIpCidrRange", () { + + var mock = new HttpServerMock(); + api.SubnetworksResourceApi res = new api.ComputeApi(mock).subnetworks; + var arg_request = buildSubnetworksExpandIpCidrRangeRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_subnetwork = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SubnetworksExpandIpCidrRangeRequest.fromJson(json); + checkSubnetworksExpandIpCidrRangeRequest(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.expandIpCidrRange(arg_request, arg_project, arg_region, arg_subnetwork).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -16893,6 +17904,7 @@ 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; @@ -16920,6 +17932,7 @@ } 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)); @@ -16929,7 +17942,7 @@ var resp = convert.JSON.encode(buildSubnetworkList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.SubnetworkList response) { checkSubnetworkList(response); }))); }); @@ -17077,6 +18090,7 @@ 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; @@ -17104,6 +18118,7 @@ } 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)); @@ -17113,7 +18128,7 @@ var resp = convert.JSON.encode(buildTargetHttpProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList response) { checkTargetHttpProxyList(response); }))); }); @@ -17308,6 +18323,7 @@ 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; @@ -17335,6 +18351,7 @@ } 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)); @@ -17344,7 +18361,7 @@ var resp = convert.JSON.encode(buildTargetHttpsProxyList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpsProxyList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpsProxyList response) { checkTargetHttpsProxyList(response); }))); }); @@ -17454,6 +18471,7 @@ 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; @@ -17481,6 +18499,7 @@ } 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)); @@ -17490,7 +18509,7 @@ var resp = convert.JSON.encode(buildTargetInstanceAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAggregatedList response) { checkTargetInstanceAggregatedList(response); }))); }); @@ -17638,6 +18657,7 @@ var arg_zone = "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; @@ -17665,6 +18685,7 @@ } 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)); @@ -17674,7 +18695,7 @@ var resp = convert.JSON.encode(buildTargetInstanceList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceList response) { checkTargetInstanceList(response); }))); }); @@ -17786,6 +18807,7 @@ 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; @@ -17813,6 +18835,7 @@ } 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)); @@ -17822,7 +18845,7 @@ var resp = convert.JSON.encode(buildTargetPoolAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggregatedList response) { checkTargetPoolAggregatedList(response); }))); }); @@ -18018,6 +19041,7 @@ 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; @@ -18045,6 +19069,7 @@ } 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)); @@ -18054,7 +19079,7 @@ var resp = convert.JSON.encode(buildTargetPoolList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList response) { checkTargetPoolList(response); }))); }); @@ -18208,14 +19233,147 @@ }); - unittest.group("resource-TargetVpnGatewaysResourceApi", () { - unittest.test("method--aggregatedList", () { + unittest.group("resource-TargetSslProxiesResourceApi", () { + unittest.test("method--delete", () { var mock = new HttpServerMock(); - api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnGateways; + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_project = "foo"; + var arg_targetSslProxy = "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_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_project = "foo"; + var arg_targetSslProxy = "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(buildTargetSslProxy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.TargetSslProxy response) { + checkTargetSslProxy(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxy(); + var arg_project = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxy.fromJson(json); + checkTargetSslProxy(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).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; 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; @@ -18243,6 +19401,202 @@ } 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(buildTargetSslProxyList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetSslProxyList response) { + checkTargetSslProxyList(response); + }))); + }); + + unittest.test("method--setBackendService", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxiesSetBackendServiceRequest(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxiesSetBackendServiceRequest.fromJson(json); + checkTargetSslProxiesSetBackendServiceRequest(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.setBackendService(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setProxyHeader", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxiesSetProxyHeaderRequest(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxiesSetProxyHeaderRequest.fromJson(json); + checkTargetSslProxiesSetProxyHeaderRequest(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.setProxyHeader(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setSslCertificates", () { + + var mock = new HttpServerMock(); + api.TargetSslProxiesResourceApi res = new api.ComputeApi(mock).targetSslProxies; + var arg_request = buildTargetSslProxiesSetSslCertificatesRequest(); + var arg_project = "foo"; + var arg_targetSslProxy = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetSslProxiesSetSslCertificatesRequest.fromJson(json); + checkTargetSslProxiesSetSslCertificatesRequest(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.setSslCertificates(arg_request, arg_project, arg_targetSslProxy).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + + }); + + + unittest.group("resource-TargetVpnGatewaysResourceApi", () { + unittest.test("method--aggregatedList", () { + + var mock = new HttpServerMock(); + api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnGateways; + 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)); @@ -18252,7 +19606,7 @@ var resp = convert.JSON.encode(buildTargetVpnGatewayAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayAggregatedList response) { checkTargetVpnGatewayAggregatedList(response); }))); }); @@ -18400,6 +19754,7 @@ 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; @@ -18427,6 +19782,7 @@ } 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)); @@ -18436,7 +19792,7 @@ var resp = convert.JSON.encode(buildTargetVpnGatewayList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatewayList response) { checkTargetVpnGatewayList(response); }))); }); @@ -18631,6 +19987,7 @@ 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; @@ -18658,6 +20015,7 @@ } 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)); @@ -18667,7 +20025,7 @@ var resp = convert.JSON.encode(buildUrlMapList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { checkUrlMapList(response); }))); }); @@ -18824,6 +20182,7 @@ 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; @@ -18851,6 +20210,7 @@ } 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)); @@ -18860,7 +20220,7 @@ var resp = convert.JSON.encode(buildVpnTunnelAggregatedList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelAggregatedList response) { + res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelAggregatedList response) { checkVpnTunnelAggregatedList(response); }))); }); @@ -19008,6 +20368,7 @@ 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; @@ -19035,6 +20396,7 @@ } 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)); @@ -19044,7 +20406,7 @@ var resp = convert.JSON.encode(buildVpnTunnelList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelList response) { + res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelList response) { checkVpnTunnelList(response); }))); }); @@ -19147,6 +20509,7 @@ var arg_zone = "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; @@ -19174,6 +20537,7 @@ } 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)); @@ -19183,7 +20547,7 @@ var resp = convert.JSON.encode(buildOperationList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { + res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { checkOperationList(response); }))); }); @@ -19242,6 +20606,7 @@ 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; @@ -19269,6 +20634,7 @@ } 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)); @@ -19278,7 +20644,7 @@ var resp = convert.JSON.encode(buildZoneList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { checkZoneList(response); }))); });
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/consumersurveys/v2_test.dart index 14b1fe8..610d09f 100644 --- a/generated/googleapis/test/consumersurveys/v2_test.dart +++ b/generated/googleapis/test/consumersurveys/v2_test.dart
@@ -278,6 +278,7 @@ o.description = "foo"; o.owners = buildUnnamed25(); o.questions = buildUnnamed26(); + o.rejectionReason = buildSurveyRejection(); o.state = "foo"; o.surveyUrlId = "foo"; o.title = "foo"; @@ -296,6 +297,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkUnnamed25(o.owners); checkUnnamed26(o.questions); + checkSurveyRejection(o.rejectionReason); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.surveyUrlId, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -514,6 +516,27 @@ buildCounterSurveyQuestionImage--; } +core.int buildCounterSurveyRejection = 0; +buildSurveyRejection() { + var o = new api.SurveyRejection(); + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + o.explanation = "foo"; + o.type = "foo"; + } + buildCounterSurveyRejection--; + return o; +} + +checkSurveyRejection(api.SurveyRejection o) { + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + unittest.expect(o.explanation, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterSurveyRejection--; +} + core.int buildCounterSurveyResults = 0; buildSurveyResults() { var o = new api.SurveyResults(); @@ -775,6 +798,15 @@ }); + unittest.group("obj-schema-SurveyRejection", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyRejection(); + var od = new api.SurveyRejection.fromJson(o.toJson()); + checkSurveyRejection(od); + }); + }); + + unittest.group("obj-schema-SurveyResults", () { unittest.test("to-json--from-json", () { var o = buildSurveyResults();
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index a1d28e4..c0f58de 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -72,40 +72,40 @@ buildCounterAddonsConfig--; } -buildUnnamed2184() { +buildUnnamed1938() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2184(core.List<core.String> o) { +checkUnnamed1938(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2185() { +buildUnnamed1939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2185(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')); } -buildUnnamed2186() { +buildUnnamed1940() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed2186(core.List<api.NodePool> o) { +checkUnnamed1940(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 = buildUnnamed2184(); - o.locations = buildUnnamed2185(); + o.instanceGroupUrls = buildUnnamed1938(); + o.locations = buildUnnamed1939(); o.loggingService = "foo"; o.masterAuth = buildMasterAuth(); o.monitoringService = "foo"; @@ -135,7 +135,7 @@ o.network = "foo"; o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed2186(); + o.nodePools = buildUnnamed1940(); 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)); - checkUnnamed2184(o.instanceGroupUrls); - checkUnnamed2185(o.locations); + checkUnnamed1938(o.instanceGroupUrls); + checkUnnamed1939(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)); - checkUnnamed2186(o.nodePools); + checkUnnamed1940(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--; } -buildUnnamed2187() { +buildUnnamed1941() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed2187(core.List<api.Cluster> o) { +checkUnnamed1941(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed2188() { +buildUnnamed1942() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2188(core.List<core.String> o) { +checkUnnamed1942(core.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 = buildUnnamed2187(); - o.missingZones = buildUnnamed2188(); + o.clusters = buildUnnamed1941(); + o.missingZones = buildUnnamed1942(); } buildCounterListClustersResponse--; return o; @@ -324,20 +324,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed2187(o.clusters); - checkUnnamed2188(o.missingZones); + checkUnnamed1941(o.clusters); + checkUnnamed1942(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed2189() { +buildUnnamed1943() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed2189(core.List<api.NodePool> o) { +checkUnnamed1943(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 = buildUnnamed2189(); + o.nodePools = buildUnnamed1943(); } buildCounterListNodePoolsResponse--; return o; @@ -357,32 +357,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed2189(o.nodePools); + checkUnnamed1943(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed2190() { +buildUnnamed1944() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2190(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')); } -buildUnnamed2191() { +buildUnnamed1945() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2191(core.List<api.Operation> o) { +checkUnnamed1945(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 = buildUnnamed2190(); - o.operations = buildUnnamed2191(); + o.missingZones = buildUnnamed1944(); + o.operations = buildUnnamed1945(); } buildCounterListOperationsResponse--; return o; @@ -403,8 +403,8 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed2190(o.missingZones); - checkUnnamed2191(o.operations); + checkUnnamed1944(o.missingZones); + checkUnnamed1945(o.operations); } buildCounterListOperationsResponse--; } @@ -436,27 +436,27 @@ buildCounterMasterAuth--; } -buildUnnamed2192() { +buildUnnamed1946() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2192(core.Map<core.String, core.String> o) { +checkUnnamed1946(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')); } -buildUnnamed2193() { +buildUnnamed1947() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2193(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')); @@ -469,8 +469,8 @@ if (buildCounterNodeConfig < 3) { o.diskSizeGb = 42; o.machineType = "foo"; - o.metadata = buildUnnamed2192(); - o.oauthScopes = buildUnnamed2193(); + o.metadata = buildUnnamed1946(); + o.oauthScopes = buildUnnamed1947(); } buildCounterNodeConfig--; return o; @@ -481,20 +481,20 @@ if (buildCounterNodeConfig < 3) { unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed2192(o.metadata); - checkUnnamed2193(o.oauthScopes); + checkUnnamed1946(o.metadata); + checkUnnamed1947(o.oauthScopes); } buildCounterNodeConfig--; } -buildUnnamed2194() { +buildUnnamed1948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2194(core.List<core.String> o) { +checkUnnamed1948(core.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 = buildUnnamed2194(); + o.instanceGroupUrls = buildUnnamed1948(); 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)); - checkUnnamed2194(o.instanceGroupUrls); + checkUnnamed1948(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--; } -buildUnnamed2195() { +buildUnnamed1949() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2195(core.List<core.String> o) { +checkUnnamed1949(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2196() { +buildUnnamed1950() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2196(core.List<core.String> o) { +checkUnnamed1950(core.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 = buildUnnamed2195(); - o.validNodeVersions = buildUnnamed2196(); + o.validImageFamilies = buildUnnamed1949(); + o.validNodeVersions = buildUnnamed1950(); } buildCounterServerConfig--; return o; @@ -611,8 +611,8 @@ if (buildCounterServerConfig < 3) { unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageFamily, unittest.equals('foo')); - checkUnnamed2195(o.validImageFamilies); - checkUnnamed2196(o.validNodeVersions); + checkUnnamed1949(o.validImageFamilies); + checkUnnamed1950(o.validNodeVersions); } buildCounterServerConfig--; }
diff --git a/generated/googleapis/test/content/v2_test.dart b/generated/googleapis/test/content/v2_test.dart index 76e7f60..3cf821d 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); } -buildUnnamed498() { +buildUnnamed513() { var o = new core.List<api.AccountAdwordsLink>(); o.add(buildAccountAdwordsLink()); o.add(buildAccountAdwordsLink()); return o; } -checkUnnamed498(core.List<api.AccountAdwordsLink> o) { +checkUnnamed513(core.List<api.AccountAdwordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountAdwordsLink(o[0]); checkAccountAdwordsLink(o[1]); } -buildUnnamed499() { +buildUnnamed514() { var o = new core.List<api.AccountUser>(); o.add(buildAccountUser()); o.add(buildAccountUser()); return o; } -checkUnnamed499(core.List<api.AccountUser> o) { +checkUnnamed514(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 = buildUnnamed498(); + o.adwordsLinks = buildUnnamed513(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.reviewsUrl = "foo"; o.sellerId = "foo"; - o.users = buildUnnamed499(); + o.users = buildUnnamed514(); o.websiteUrl = "foo"; } buildCounterAccount--; @@ -100,13 +100,13 @@ buildCounterAccount++; if (buildCounterAccount < 3) { unittest.expect(o.adultContent, unittest.isTrue); - checkUnnamed498(o.adwordsLinks); + checkUnnamed513(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')); - checkUnnamed499(o.users); + checkUnnamed514(o.users); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterAccount--; @@ -154,53 +154,53 @@ buildCounterAccountIdentifier--; } -buildUnnamed500() { +buildUnnamed515() { var o = new core.List<api.AccountShippingCarrierRate>(); o.add(buildAccountShippingCarrierRate()); o.add(buildAccountShippingCarrierRate()); return o; } -checkUnnamed500(core.List<api.AccountShippingCarrierRate> o) { +checkUnnamed515(core.List<api.AccountShippingCarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingCarrierRate(o[0]); checkAccountShippingCarrierRate(o[1]); } -buildUnnamed501() { +buildUnnamed516() { var o = new core.List<api.AccountShippingLocationGroup>(); o.add(buildAccountShippingLocationGroup()); o.add(buildAccountShippingLocationGroup()); return o; } -checkUnnamed501(core.List<api.AccountShippingLocationGroup> o) { +checkUnnamed516(core.List<api.AccountShippingLocationGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingLocationGroup(o[0]); checkAccountShippingLocationGroup(o[1]); } -buildUnnamed502() { +buildUnnamed517() { var o = new core.List<api.AccountShippingRateTable>(); o.add(buildAccountShippingRateTable()); o.add(buildAccountShippingRateTable()); return o; } -checkUnnamed502(core.List<api.AccountShippingRateTable> o) { +checkUnnamed517(core.List<api.AccountShippingRateTable> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingRateTable(o[0]); checkAccountShippingRateTable(o[1]); } -buildUnnamed503() { +buildUnnamed518() { var o = new core.List<api.AccountShippingShippingService>(); o.add(buildAccountShippingShippingService()); o.add(buildAccountShippingShippingService()); return o; } -checkUnnamed503(core.List<api.AccountShippingShippingService> o) { +checkUnnamed518(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 = buildUnnamed500(); + o.carrierRates = buildUnnamed515(); o.kind = "foo"; - o.locationGroups = buildUnnamed501(); - o.rateTables = buildUnnamed502(); - o.services = buildUnnamed503(); + o.locationGroups = buildUnnamed516(); + o.rateTables = buildUnnamed517(); + o.services = buildUnnamed518(); } buildCounterAccountShipping--; return o; @@ -226,11 +226,11 @@ buildCounterAccountShipping++; if (buildCounterAccountShipping < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed500(o.carrierRates); + checkUnnamed515(o.carrierRates); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed501(o.locationGroups); - checkUnnamed502(o.rateTables); - checkUnnamed503(o.services); + checkUnnamed516(o.locationGroups); + checkUnnamed517(o.rateTables); + checkUnnamed518(o.services); } buildCounterAccountShipping--; } @@ -297,40 +297,40 @@ buildCounterAccountShippingCondition--; } -buildUnnamed504() { +buildUnnamed519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed504(core.List<core.String> o) { +checkUnnamed519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed505() { +buildUnnamed520() { var o = new core.List<api.AccountShippingPostalCodeRange>(); o.add(buildAccountShippingPostalCodeRange()); o.add(buildAccountShippingPostalCodeRange()); return o; } -checkUnnamed505(core.List<api.AccountShippingPostalCodeRange> o) { +checkUnnamed520(core.List<api.AccountShippingPostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountShippingPostalCodeRange(o[0]); checkAccountShippingPostalCodeRange(o[1]); } -buildUnnamed506() { +buildUnnamed521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed506(core.List<core.String> o) { +checkUnnamed521(core.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 = buildUnnamed504(); + o.locationIds = buildUnnamed519(); o.name = "foo"; - o.postalCodeRanges = buildUnnamed505(); - o.postalCodes = buildUnnamed506(); + o.postalCodeRanges = buildUnnamed520(); + o.postalCodes = buildUnnamed521(); } buildCounterAccountShippingLocationGroup--; return o; @@ -355,10 +355,10 @@ buildCounterAccountShippingLocationGroup++; if (buildCounterAccountShippingLocationGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed504(o.locationIds); + checkUnnamed519(o.locationIds); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed505(o.postalCodeRanges); - checkUnnamed506(o.postalCodes); + checkUnnamed520(o.postalCodeRanges); + checkUnnamed521(o.postalCodes); } buildCounterAccountShippingLocationGroup--; } @@ -384,14 +384,14 @@ buildCounterAccountShippingPostalCodeRange--; } -buildUnnamed507() { +buildUnnamed522() { var o = new core.List<api.AccountShippingRateTableCell>(); o.add(buildAccountShippingRateTableCell()); o.add(buildAccountShippingRateTableCell()); return o; } -checkUnnamed507(core.List<api.AccountShippingRateTableCell> o) { +checkUnnamed522(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 = buildUnnamed507(); + o.content = buildUnnamed522(); o.name = "foo"; o.saleCountry = "foo"; } @@ -413,7 +413,7 @@ checkAccountShippingRateTable(api.AccountShippingRateTable o) { buildCounterAccountShippingRateTable++; if (buildCounterAccountShippingRateTable < 3) { - checkUnnamed507(o.content); + checkUnnamed522(o.content); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.saleCountry, unittest.equals('foo')); } @@ -499,14 +499,14 @@ buildCounterAccountShippingShippingServiceCalculationMethod--; } -buildUnnamed508() { +buildUnnamed523() { var o = new core.List<api.AccountShippingShippingServiceCostRule>(); o.add(buildAccountShippingShippingServiceCostRule()); o.add(buildAccountShippingShippingServiceCostRule()); return o; } -checkUnnamed508(core.List<api.AccountShippingShippingServiceCostRule> o) { +checkUnnamed523(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 = buildUnnamed508(); + o.children = buildUnnamed523(); o.condition = buildAccountShippingCondition(); } buildCounterAccountShippingShippingServiceCostRule--; @@ -529,20 +529,20 @@ buildCounterAccountShippingShippingServiceCostRule++; if (buildCounterAccountShippingShippingServiceCostRule < 3) { checkAccountShippingShippingServiceCalculationMethod(o.calculationMethod); - checkUnnamed508(o.children); + checkUnnamed523(o.children); checkAccountShippingCondition(o.condition); } buildCounterAccountShippingShippingServiceCostRule--; } -buildUnnamed509() { +buildUnnamed524() { var o = new core.List<api.AccountStatusDataQualityIssue>(); o.add(buildAccountStatusDataQualityIssue()); o.add(buildAccountStatusDataQualityIssue()); return o; } -checkUnnamed509(core.List<api.AccountStatusDataQualityIssue> o) { +checkUnnamed524(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 = buildUnnamed509(); + o.dataQualityIssues = buildUnnamed524(); o.kind = "foo"; } buildCounterAccountStatus--; @@ -565,20 +565,20 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed509(o.dataQualityIssues); + checkUnnamed524(o.dataQualityIssues); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountStatus--; } -buildUnnamed510() { +buildUnnamed525() { var o = new core.List<api.AccountStatusExampleItem>(); o.add(buildAccountStatusExampleItem()); o.add(buildAccountStatusExampleItem()); return o; } -checkUnnamed510(core.List<api.AccountStatusExampleItem> o) { +checkUnnamed525(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 = buildUnnamed510(); + o.exampleItems = buildUnnamed525(); 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')); - checkUnnamed510(o.exampleItems); + checkUnnamed525(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--; } -buildUnnamed511() { +buildUnnamed526() { var o = new core.List<api.AccountTaxTaxRule>(); o.add(buildAccountTaxTaxRule()); o.add(buildAccountTaxTaxRule()); return o; } -checkUnnamed511(core.List<api.AccountTaxTaxRule> o) { +checkUnnamed526(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 = buildUnnamed511(); + o.rules = buildUnnamed526(); } buildCounterAccountTax--; return o; @@ -675,7 +675,7 @@ if (buildCounterAccountTax < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed511(o.rules); + checkUnnamed526(o.rules); } buildCounterAccountTax--; } @@ -728,14 +728,14 @@ buildCounterAccountUser--; } -buildUnnamed512() { +buildUnnamed527() { var o = new core.List<api.AccountIdentifier>(); o.add(buildAccountIdentifier()); o.add(buildAccountIdentifier()); return o; } -checkUnnamed512(core.List<api.AccountIdentifier> o) { +checkUnnamed527(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 = buildUnnamed512(); + o.accountIdentifiers = buildUnnamed527(); o.kind = "foo"; } buildCounterAccountsAuthInfoResponse--; @@ -756,20 +756,20 @@ checkAccountsAuthInfoResponse(api.AccountsAuthInfoResponse o) { buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - checkUnnamed512(o.accountIdentifiers); + checkUnnamed527(o.accountIdentifiers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsAuthInfoResponse--; } -buildUnnamed513() { +buildUnnamed528() { var o = new core.List<api.AccountsCustomBatchRequestEntry>(); o.add(buildAccountsCustomBatchRequestEntry()); o.add(buildAccountsCustomBatchRequestEntry()); return o; } -checkUnnamed513(core.List<api.AccountsCustomBatchRequestEntry> o) { +checkUnnamed528(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 = buildUnnamed513(); + o.entries = buildUnnamed528(); } buildCounterAccountsCustomBatchRequest--; return o; @@ -789,7 +789,7 @@ checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - checkUnnamed513(o.entries); + checkUnnamed528(o.entries); } buildCounterAccountsCustomBatchRequest--; } @@ -821,14 +821,14 @@ buildCounterAccountsCustomBatchRequestEntry--; } -buildUnnamed514() { +buildUnnamed529() { var o = new core.List<api.AccountsCustomBatchResponseEntry>(); o.add(buildAccountsCustomBatchResponseEntry()); o.add(buildAccountsCustomBatchResponseEntry()); return o; } -checkUnnamed514(core.List<api.AccountsCustomBatchResponseEntry> o) { +checkUnnamed529(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 = buildUnnamed514(); + o.entries = buildUnnamed529(); o.kind = "foo"; } buildCounterAccountsCustomBatchResponse--; @@ -849,7 +849,7 @@ checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - checkUnnamed514(o.entries); + checkUnnamed529(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsCustomBatchResponse--; @@ -880,14 +880,14 @@ buildCounterAccountsCustomBatchResponseEntry--; } -buildUnnamed515() { +buildUnnamed530() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed515(core.List<api.Account> o) { +checkUnnamed530(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 = buildUnnamed515(); + o.resources = buildUnnamed530(); } buildCounterAccountsListResponse--; return o; @@ -911,19 +911,19 @@ if (buildCounterAccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed515(o.resources); + checkUnnamed530(o.resources); } buildCounterAccountsListResponse--; } -buildUnnamed516() { +buildUnnamed531() { var o = new core.List<api.AccountshippingCustomBatchRequestEntry>(); o.add(buildAccountshippingCustomBatchRequestEntry()); o.add(buildAccountshippingCustomBatchRequestEntry()); return o; } -checkUnnamed516(core.List<api.AccountshippingCustomBatchRequestEntry> o) { +checkUnnamed531(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 = buildUnnamed516(); + o.entries = buildUnnamed531(); } buildCounterAccountshippingCustomBatchRequest--; return o; @@ -943,7 +943,7 @@ checkAccountshippingCustomBatchRequest(api.AccountshippingCustomBatchRequest o) { buildCounterAccountshippingCustomBatchRequest++; if (buildCounterAccountshippingCustomBatchRequest < 3) { - checkUnnamed516(o.entries); + checkUnnamed531(o.entries); } buildCounterAccountshippingCustomBatchRequest--; } @@ -975,14 +975,14 @@ buildCounterAccountshippingCustomBatchRequestEntry--; } -buildUnnamed517() { +buildUnnamed532() { var o = new core.List<api.AccountshippingCustomBatchResponseEntry>(); o.add(buildAccountshippingCustomBatchResponseEntry()); o.add(buildAccountshippingCustomBatchResponseEntry()); return o; } -checkUnnamed517(core.List<api.AccountshippingCustomBatchResponseEntry> o) { +checkUnnamed532(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 = buildUnnamed517(); + o.entries = buildUnnamed532(); o.kind = "foo"; } buildCounterAccountshippingCustomBatchResponse--; @@ -1003,7 +1003,7 @@ checkAccountshippingCustomBatchResponse(api.AccountshippingCustomBatchResponse o) { buildCounterAccountshippingCustomBatchResponse++; if (buildCounterAccountshippingCustomBatchResponse < 3) { - checkUnnamed517(o.entries); + checkUnnamed532(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountshippingCustomBatchResponse--; @@ -1034,14 +1034,14 @@ buildCounterAccountshippingCustomBatchResponseEntry--; } -buildUnnamed518() { +buildUnnamed533() { var o = new core.List<api.AccountShipping>(); o.add(buildAccountShipping()); o.add(buildAccountShipping()); return o; } -checkUnnamed518(core.List<api.AccountShipping> o) { +checkUnnamed533(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 = buildUnnamed518(); + o.resources = buildUnnamed533(); } buildCounterAccountshippingListResponse--; return o; @@ -1065,19 +1065,19 @@ if (buildCounterAccountshippingListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed518(o.resources); + checkUnnamed533(o.resources); } buildCounterAccountshippingListResponse--; } -buildUnnamed519() { +buildUnnamed534() { var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); o.add(buildAccountstatusesCustomBatchRequestEntry()); o.add(buildAccountstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed519(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { +checkUnnamed534(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 = buildUnnamed519(); + o.entries = buildUnnamed534(); } buildCounterAccountstatusesCustomBatchRequest--; return o; @@ -1097,7 +1097,7 @@ checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o) { buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - checkUnnamed519(o.entries); + checkUnnamed534(o.entries); } buildCounterAccountstatusesCustomBatchRequest--; } @@ -1127,14 +1127,14 @@ buildCounterAccountstatusesCustomBatchRequestEntry--; } -buildUnnamed520() { +buildUnnamed535() { var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); o.add(buildAccountstatusesCustomBatchResponseEntry()); o.add(buildAccountstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed520(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { +checkUnnamed535(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 = buildUnnamed520(); + o.entries = buildUnnamed535(); o.kind = "foo"; } buildCounterAccountstatusesCustomBatchResponse--; @@ -1155,7 +1155,7 @@ checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o) { buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - checkUnnamed520(o.entries); + checkUnnamed535(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchResponse--; @@ -1184,14 +1184,14 @@ buildCounterAccountstatusesCustomBatchResponseEntry--; } -buildUnnamed521() { +buildUnnamed536() { var o = new core.List<api.AccountStatus>(); o.add(buildAccountStatus()); o.add(buildAccountStatus()); return o; } -checkUnnamed521(core.List<api.AccountStatus> o) { +checkUnnamed536(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 = buildUnnamed521(); + o.resources = buildUnnamed536(); } buildCounterAccountstatusesListResponse--; return o; @@ -1215,19 +1215,19 @@ if (buildCounterAccountstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed521(o.resources); + checkUnnamed536(o.resources); } buildCounterAccountstatusesListResponse--; } -buildUnnamed522() { +buildUnnamed537() { var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); o.add(buildAccounttaxCustomBatchRequestEntry()); o.add(buildAccounttaxCustomBatchRequestEntry()); return o; } -checkUnnamed522(core.List<api.AccounttaxCustomBatchRequestEntry> o) { +checkUnnamed537(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 = buildUnnamed522(); + o.entries = buildUnnamed537(); } buildCounterAccounttaxCustomBatchRequest--; return o; @@ -1247,7 +1247,7 @@ checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - checkUnnamed522(o.entries); + checkUnnamed537(o.entries); } buildCounterAccounttaxCustomBatchRequest--; } @@ -1279,14 +1279,14 @@ buildCounterAccounttaxCustomBatchRequestEntry--; } -buildUnnamed523() { +buildUnnamed538() { var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); o.add(buildAccounttaxCustomBatchResponseEntry()); o.add(buildAccounttaxCustomBatchResponseEntry()); return o; } -checkUnnamed523(core.List<api.AccounttaxCustomBatchResponseEntry> o) { +checkUnnamed538(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 = buildUnnamed523(); + o.entries = buildUnnamed538(); o.kind = "foo"; } buildCounterAccounttaxCustomBatchResponse--; @@ -1307,7 +1307,7 @@ checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - checkUnnamed523(o.entries); + checkUnnamed538(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounttaxCustomBatchResponse--; @@ -1338,14 +1338,14 @@ buildCounterAccounttaxCustomBatchResponseEntry--; } -buildUnnamed524() { +buildUnnamed539() { var o = new core.List<api.AccountTax>(); o.add(buildAccountTax()); o.add(buildAccountTax()); return o; } -checkUnnamed524(core.List<api.AccountTax> o) { +checkUnnamed539(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 = buildUnnamed524(); + o.resources = buildUnnamed539(); } buildCounterAccounttaxListResponse--; return o; @@ -1369,7 +1369,7 @@ if (buildCounterAccounttaxListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed524(o.resources); + checkUnnamed539(o.resources); } buildCounterAccounttaxListResponse--; } @@ -1403,14 +1403,14 @@ buildCounterCarrierRate--; } -buildUnnamed525() { +buildUnnamed540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed525(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')); @@ -1423,7 +1423,7 @@ if (buildCounterCarriersCarrier < 3) { o.country = "foo"; o.name = "foo"; - o.services = buildUnnamed525(); + o.services = buildUnnamed540(); } buildCounterCarriersCarrier--; return o; @@ -1434,19 +1434,19 @@ if (buildCounterCarriersCarrier < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed525(o.services); + checkUnnamed540(o.services); } buildCounterCarriersCarrier--; } -buildUnnamed526() { +buildUnnamed541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed526(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')); @@ -1464,7 +1464,7 @@ o.fileName = "foo"; o.format = buildDatafeedFormat(); o.id = "foo"; - o.intendedDestinations = buildUnnamed526(); + o.intendedDestinations = buildUnnamed541(); 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')); - checkUnnamed526(o.intendedDestinations); + checkUnnamed541(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--; } -buildUnnamed527() { +buildUnnamed542() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed527(core.List<api.DatafeedStatusError> o) { +checkUnnamed542(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); } -buildUnnamed528() { +buildUnnamed543() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed528(core.List<api.DatafeedStatusError> o) { +checkUnnamed543(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 = buildUnnamed527(); + o.errors = buildUnnamed542(); o.itemsTotal = "foo"; o.itemsValid = "foo"; o.kind = "foo"; o.lastUploadDate = "foo"; o.processingStatus = "foo"; - o.warnings = buildUnnamed528(); + o.warnings = buildUnnamed543(); } buildCounterDatafeedStatus--; return o; @@ -1595,25 +1595,25 @@ buildCounterDatafeedStatus++; if (buildCounterDatafeedStatus < 3) { unittest.expect(o.datafeedId, unittest.equals('foo')); - checkUnnamed527(o.errors); + checkUnnamed542(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')); - checkUnnamed528(o.warnings); + checkUnnamed543(o.warnings); } buildCounterDatafeedStatus--; } -buildUnnamed529() { +buildUnnamed544() { var o = new core.List<api.DatafeedStatusExample>(); o.add(buildDatafeedStatusExample()); o.add(buildDatafeedStatusExample()); return o; } -checkUnnamed529(core.List<api.DatafeedStatusExample> o) { +checkUnnamed544(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 = buildUnnamed529(); + o.examples = buildUnnamed544(); 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')); - checkUnnamed529(o.examples); + checkUnnamed544(o.examples); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDatafeedStatusError--; @@ -1667,14 +1667,14 @@ buildCounterDatafeedStatusExample--; } -buildUnnamed530() { +buildUnnamed545() { var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); o.add(buildDatafeedsCustomBatchRequestEntry()); o.add(buildDatafeedsCustomBatchRequestEntry()); return o; } -checkUnnamed530(core.List<api.DatafeedsCustomBatchRequestEntry> o) { +checkUnnamed545(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 = buildUnnamed530(); + o.entries = buildUnnamed545(); } buildCounterDatafeedsCustomBatchRequest--; return o; @@ -1694,7 +1694,7 @@ checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - checkUnnamed530(o.entries); + checkUnnamed545(o.entries); } buildCounterDatafeedsCustomBatchRequest--; } @@ -1726,14 +1726,14 @@ buildCounterDatafeedsCustomBatchRequestEntry--; } -buildUnnamed531() { +buildUnnamed546() { var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); o.add(buildDatafeedsCustomBatchResponseEntry()); o.add(buildDatafeedsCustomBatchResponseEntry()); return o; } -checkUnnamed531(core.List<api.DatafeedsCustomBatchResponseEntry> o) { +checkUnnamed546(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 = buildUnnamed531(); + o.entries = buildUnnamed546(); o.kind = "foo"; } buildCounterDatafeedsCustomBatchResponse--; @@ -1754,7 +1754,7 @@ checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - checkUnnamed531(o.entries); + checkUnnamed546(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedsCustomBatchResponse--; @@ -1783,14 +1783,14 @@ buildCounterDatafeedsCustomBatchResponseEntry--; } -buildUnnamed532() { +buildUnnamed547() { var o = new core.List<api.Datafeed>(); o.add(buildDatafeed()); o.add(buildDatafeed()); return o; } -checkUnnamed532(core.List<api.Datafeed> o) { +checkUnnamed547(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 = buildUnnamed532(); + o.resources = buildUnnamed547(); } buildCounterDatafeedsListResponse--; return o; @@ -1814,19 +1814,19 @@ if (buildCounterDatafeedsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed532(o.resources); + checkUnnamed547(o.resources); } buildCounterDatafeedsListResponse--; } -buildUnnamed533() { +buildUnnamed548() { var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed533(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { +checkUnnamed548(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 = buildUnnamed533(); + o.entries = buildUnnamed548(); } buildCounterDatafeedstatusesCustomBatchRequest--; return o; @@ -1846,7 +1846,7 @@ checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o) { buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - checkUnnamed533(o.entries); + checkUnnamed548(o.entries); } buildCounterDatafeedstatusesCustomBatchRequest--; } @@ -1876,14 +1876,14 @@ buildCounterDatafeedstatusesCustomBatchRequestEntry--; } -buildUnnamed534() { +buildUnnamed549() { var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed534(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { +checkUnnamed549(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 = buildUnnamed534(); + o.entries = buildUnnamed549(); o.kind = "foo"; } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1904,7 +1904,7 @@ checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse o) { buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - checkUnnamed534(o.entries); + checkUnnamed549(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1933,14 +1933,14 @@ buildCounterDatafeedstatusesCustomBatchResponseEntry--; } -buildUnnamed535() { +buildUnnamed550() { var o = new core.List<api.DatafeedStatus>(); o.add(buildDatafeedStatus()); o.add(buildDatafeedStatus()); return o; } -checkUnnamed535(core.List<api.DatafeedStatus> o) { +checkUnnamed550(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 = buildUnnamed535(); + o.resources = buildUnnamed550(); } buildCounterDatafeedstatusesListResponse--; return o; @@ -1964,7 +1964,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed535(o.resources); + checkUnnamed550(o.resources); } buildCounterDatafeedstatusesListResponse--; } @@ -2013,14 +2013,14 @@ buildCounterError--; } -buildUnnamed536() { +buildUnnamed551() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed536(core.List<api.Error> o) { +checkUnnamed551(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 = buildUnnamed536(); + o.errors = buildUnnamed551(); o.message = "foo"; } buildCounterErrors--; @@ -2043,72 +2043,72 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed536(o.errors); + checkUnnamed551(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed537() { +buildUnnamed552() { var o = new core.List<api.LocationIdSet>(); o.add(buildLocationIdSet()); o.add(buildLocationIdSet()); return o; } -checkUnnamed537(core.List<api.LocationIdSet> o) { +checkUnnamed552(core.List<api.LocationIdSet> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationIdSet(o[0]); checkLocationIdSet(o[1]); } -buildUnnamed538() { +buildUnnamed553() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed538(core.List<core.String> o) { +checkUnnamed553(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed539() { +buildUnnamed554() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed539(core.List<core.String> o) { +checkUnnamed554(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed540() { +buildUnnamed555() { var o = new core.List<api.Price>(); o.add(buildPrice()); o.add(buildPrice()); return o; } -checkUnnamed540(core.List<api.Price> o) { +checkUnnamed555(core.List<api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o[0]); checkPrice(o[1]); } -buildUnnamed541() { +buildUnnamed556() { var o = new core.List<api.Weight>(); o.add(buildWeight()); o.add(buildWeight()); return o; } -checkUnnamed541(core.List<api.Weight> o) { +checkUnnamed556(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 = buildUnnamed537(); - o.numberOfItems = buildUnnamed538(); - o.postalCodeGroupNames = buildUnnamed539(); - o.prices = buildUnnamed540(); - o.weights = buildUnnamed541(); + o.locations = buildUnnamed552(); + o.numberOfItems = buildUnnamed553(); + o.postalCodeGroupNames = buildUnnamed554(); + o.prices = buildUnnamed555(); + o.weights = buildUnnamed556(); } buildCounterHeaders--; return o; @@ -2132,11 +2132,11 @@ checkHeaders(api.Headers o) { buildCounterHeaders++; if (buildCounterHeaders < 3) { - checkUnnamed537(o.locations); - checkUnnamed538(o.numberOfItems); - checkUnnamed539(o.postalCodeGroupNames); - checkUnnamed540(o.prices); - checkUnnamed541(o.weights); + checkUnnamed552(o.locations); + checkUnnamed553(o.numberOfItems); + checkUnnamed554(o.postalCodeGroupNames); + checkUnnamed555(o.prices); + checkUnnamed556(o.weights); } buildCounterHeaders--; } @@ -2171,6 +2171,7 @@ o.installment = buildInstallment(); o.kind = "foo"; o.loyaltyPoints = buildLoyaltyPoints(); + o.pickup = buildInventoryPickup(); o.price = buildPrice(); o.quantity = 42; o.salePrice = buildPrice(); @@ -2188,6 +2189,7 @@ checkInstallment(o.installment); unittest.expect(o.kind, unittest.equals('foo')); checkLoyaltyPoints(o.loyaltyPoints); + checkInventoryPickup(o.pickup); checkPrice(o.price); unittest.expect(o.quantity, unittest.equals(42)); checkPrice(o.salePrice); @@ -2197,14 +2199,14 @@ buildCounterInventory--; } -buildUnnamed542() { +buildUnnamed557() { var o = new core.List<api.InventoryCustomBatchRequestEntry>(); o.add(buildInventoryCustomBatchRequestEntry()); o.add(buildInventoryCustomBatchRequestEntry()); return o; } -checkUnnamed542(core.List<api.InventoryCustomBatchRequestEntry> o) { +checkUnnamed557(core.List<api.InventoryCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchRequestEntry(o[0]); checkInventoryCustomBatchRequestEntry(o[1]); @@ -2215,7 +2217,7 @@ var o = new api.InventoryCustomBatchRequest(); buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - o.entries = buildUnnamed542(); + o.entries = buildUnnamed557(); } buildCounterInventoryCustomBatchRequest--; return o; @@ -2224,7 +2226,7 @@ checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { buildCounterInventoryCustomBatchRequest++; if (buildCounterInventoryCustomBatchRequest < 3) { - checkUnnamed542(o.entries); + checkUnnamed557(o.entries); } buildCounterInventoryCustomBatchRequest--; } @@ -2256,14 +2258,14 @@ buildCounterInventoryCustomBatchRequestEntry--; } -buildUnnamed543() { +buildUnnamed558() { var o = new core.List<api.InventoryCustomBatchResponseEntry>(); o.add(buildInventoryCustomBatchResponseEntry()); o.add(buildInventoryCustomBatchResponseEntry()); return o; } -checkUnnamed543(core.List<api.InventoryCustomBatchResponseEntry> o) { +checkUnnamed558(core.List<api.InventoryCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryCustomBatchResponseEntry(o[0]); checkInventoryCustomBatchResponseEntry(o[1]); @@ -2274,7 +2276,7 @@ var o = new api.InventoryCustomBatchResponse(); buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - o.entries = buildUnnamed543(); + o.entries = buildUnnamed558(); o.kind = "foo"; } buildCounterInventoryCustomBatchResponse--; @@ -2284,7 +2286,7 @@ checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { buildCounterInventoryCustomBatchResponse++; if (buildCounterInventoryCustomBatchResponse < 3) { - checkUnnamed543(o.entries); + checkUnnamed558(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterInventoryCustomBatchResponse--; @@ -2313,6 +2315,27 @@ buildCounterInventoryCustomBatchResponseEntry--; } +core.int buildCounterInventoryPickup = 0; +buildInventoryPickup() { + var o = new api.InventoryPickup(); + buildCounterInventoryPickup++; + if (buildCounterInventoryPickup < 3) { + o.pickupMethod = "foo"; + o.pickupSla = "foo"; + } + buildCounterInventoryPickup--; + return o; +} + +checkInventoryPickup(api.InventoryPickup o) { + buildCounterInventoryPickup++; + if (buildCounterInventoryPickup < 3) { + unittest.expect(o.pickupMethod, unittest.equals('foo')); + unittest.expect(o.pickupSla, unittest.equals('foo')); + } + buildCounterInventoryPickup--; +} + core.int buildCounterInventorySetRequest = 0; buildInventorySetRequest() { var o = new api.InventorySetRequest(); @@ -2321,6 +2344,7 @@ o.availability = "foo"; o.installment = buildInstallment(); o.loyaltyPoints = buildLoyaltyPoints(); + o.pickup = buildInventoryPickup(); o.price = buildPrice(); o.quantity = 42; o.salePrice = buildPrice(); @@ -2337,6 +2361,7 @@ unittest.expect(o.availability, unittest.equals('foo')); checkInstallment(o.installment); checkLoyaltyPoints(o.loyaltyPoints); + checkInventoryPickup(o.pickup); checkPrice(o.price); unittest.expect(o.quantity, unittest.equals(42)); checkPrice(o.salePrice); @@ -2365,14 +2390,14 @@ buildCounterInventorySetResponse--; } -buildUnnamed544() { +buildUnnamed559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed544(core.List<core.String> o) { +checkUnnamed559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2383,7 +2408,7 @@ var o = new api.LocationIdSet(); buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - o.locationIds = buildUnnamed544(); + o.locationIds = buildUnnamed559(); } buildCounterLocationIdSet--; return o; @@ -2392,7 +2417,7 @@ checkLocationIdSet(api.LocationIdSet o) { buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - checkUnnamed544(o.locationIds); + checkUnnamed559(o.locationIds); } buildCounterLocationIdSet--; } @@ -2420,53 +2445,53 @@ buildCounterLoyaltyPoints--; } -buildUnnamed545() { +buildUnnamed560() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed545(core.List<api.OrderLineItem> o) { +checkUnnamed560(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed546() { +buildUnnamed561() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed546(core.List<api.OrderPromotion> o) { +checkUnnamed561(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed547() { +buildUnnamed562() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed547(core.List<api.OrderRefund> o) { +checkUnnamed562(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed548() { +buildUnnamed563() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed548(core.List<api.OrderShipment> o) { +checkUnnamed563(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -2478,20 +2503,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { o.acknowledged = true; + o.channelType = "foo"; o.customer = buildOrderCustomer(); o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed545(); + o.lineItems = buildUnnamed560(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed546(); - o.refunds = buildUnnamed547(); - o.shipments = buildUnnamed548(); + o.promotions = buildUnnamed561(); + o.refunds = buildUnnamed562(); + o.shipments = buildUnnamed563(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -2505,20 +2531,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { unittest.expect(o.acknowledged, unittest.isTrue); + unittest.expect(o.channelType, unittest.equals('foo')); checkOrderCustomer(o.customer); checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed545(o.lineItems); + checkUnnamed560(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')); - checkUnnamed546(o.promotions); - checkUnnamed547(o.refunds); - checkUnnamed548(o.shipments); + checkUnnamed561(o.promotions); + checkUnnamed562(o.refunds); + checkUnnamed563(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -2527,27 +2554,27 @@ buildCounterOrder--; } -buildUnnamed549() { +buildUnnamed564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed549(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')); } -buildUnnamed550() { +buildUnnamed565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed550(core.List<core.String> o) { +checkUnnamed565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2559,13 +2586,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed549(); + o.fullAddress = buildUnnamed564(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed550(); + o.streetAddress = buildUnnamed565(); } buildCounterOrderAddress--; return o; @@ -2575,13 +2602,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed549(o.fullAddress); + checkUnnamed564(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')); - checkUnnamed550(o.streetAddress); + checkUnnamed565(o.streetAddress); } buildCounterOrderAddress--; } @@ -2657,27 +2684,27 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed551() { +buildUnnamed566() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed551(core.List<api.OrderCancellation> o) { +checkUnnamed566(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed552() { +buildUnnamed567() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed552(core.List<api.OrderReturn> o) { +checkUnnamed567(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -2688,7 +2715,7 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.cancellations = buildUnnamed551(); + o.cancellations = buildUnnamed566(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -2699,7 +2726,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed552(); + o.returns = buildUnnamed567(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -2710,7 +2737,7 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed551(o.cancellations); + checkUnnamed566(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -2721,21 +2748,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed552(o.returns); + checkUnnamed567(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed553() { +buildUnnamed568() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed553(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed568(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -2760,7 +2787,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed553(); + o.variantAttributes = buildUnnamed568(); } buildCounterOrderLineItemProduct--; return o; @@ -2783,7 +2810,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed553(o.variantAttributes); + checkUnnamed568(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -2909,14 +2936,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed554() { +buildUnnamed569() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed554(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed569(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -2927,7 +2954,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed554(); + o.benefits = buildUnnamed569(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -2942,7 +2969,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed554(o.benefits); + checkUnnamed569(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -2953,14 +2980,14 @@ buildCounterOrderPromotion--; } -buildUnnamed555() { +buildUnnamed570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed555(core.List<core.String> o) { +checkUnnamed570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2972,7 +2999,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed555(); + o.offerIds = buildUnnamed570(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -2985,7 +3012,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed555(o.offerIds); + checkUnnamed570(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -3047,14 +3074,14 @@ buildCounterOrderReturn--; } -buildUnnamed556() { +buildUnnamed571() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed556(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed571(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3069,7 +3096,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed556(); + o.lineItems = buildUnnamed571(); o.status = "foo"; o.trackingId = "foo"; } @@ -3084,7 +3111,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed556(o.lineItems); + checkUnnamed571(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -3307,14 +3334,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed557() { +buildUnnamed572() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed557(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed572(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -3325,7 +3352,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed557(); + o.entries = buildUnnamed572(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -3334,7 +3361,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed557(o.entries); + checkUnnamed572(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -3476,14 +3503,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; } -buildUnnamed558() { +buildUnnamed573() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed558(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed573(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3495,7 +3522,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed558(); + o.lineItems = buildUnnamed573(); o.shipmentId = "foo"; o.trackingId = "foo"; } @@ -3507,7 +3534,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed558(o.lineItems); + checkUnnamed573(o.lineItems); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -3539,14 +3566,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed559() { +buildUnnamed574() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed559(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed574(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -3557,7 +3584,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed559(); + o.entries = buildUnnamed574(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -3567,7 +3594,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed559(o.entries); + checkUnnamed574(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -3642,14 +3669,14 @@ buildCounterOrdersGetTestOrderTemplateResponse--; } -buildUnnamed560() { +buildUnnamed575() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed560(core.List<api.Order> o) { +checkUnnamed575(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -3662,7 +3689,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed560(); + o.resources = buildUnnamed575(); } buildCounterOrdersListResponse--; return o; @@ -3673,7 +3700,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed560(o.resources); + checkUnnamed575(o.resources); } buildCounterOrdersListResponse--; } @@ -3772,14 +3799,14 @@ buildCounterOrdersReturnLineItemResponse--; } -buildUnnamed561() { +buildUnnamed576() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed561(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed576(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -3791,7 +3818,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed561(); + o.lineItems = buildUnnamed576(); o.operationId = "foo"; o.shipmentId = "foo"; o.trackingId = "foo"; @@ -3804,7 +3831,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed561(o.lineItems); + checkUnnamed576(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -3923,14 +3950,14 @@ buildCounterOrdersUpdateShipmentResponse--; } -buildUnnamed562() { +buildUnnamed577() { var o = new core.List<api.PostalCodeRange>(); o.add(buildPostalCodeRange()); o.add(buildPostalCodeRange()); return o; } -checkUnnamed562(core.List<api.PostalCodeRange> o) { +checkUnnamed577(core.List<api.PostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeRange(o[0]); checkPostalCodeRange(o[1]); @@ -3943,7 +3970,7 @@ if (buildCounterPostalCodeGroup < 3) { o.country = "foo"; o.name = "foo"; - o.postalCodeRanges = buildUnnamed562(); + o.postalCodeRanges = buildUnnamed577(); } buildCounterPostalCodeGroup--; return o; @@ -3954,7 +3981,7 @@ if (buildCounterPostalCodeGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed562(o.postalCodeRanges); + checkUnnamed577(o.postalCodeRanges); } buildCounterPostalCodeGroup--; } @@ -4001,183 +4028,183 @@ buildCounterPrice--; } -buildUnnamed563() { +buildUnnamed578() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed563(core.List<core.String> o) { +checkUnnamed578(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed564() { +buildUnnamed579() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed564(core.List<core.String> o) { +checkUnnamed579(core.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() { +buildUnnamed580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed565(core.List<core.String> o) { +checkUnnamed580(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed566() { +buildUnnamed581() { var o = new core.List<api.ProductAspect>(); o.add(buildProductAspect()); o.add(buildProductAspect()); return o; } -checkUnnamed566(core.List<api.ProductAspect> o) { +checkUnnamed581(core.List<api.ProductAspect> o) { unittest.expect(o, unittest.hasLength(2)); checkProductAspect(o[0]); checkProductAspect(o[1]); } -buildUnnamed567() { +buildUnnamed582() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed567(core.List<api.ProductCustomAttribute> o) { +checkUnnamed582(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); } -buildUnnamed568() { +buildUnnamed583() { var o = new core.List<api.ProductCustomGroup>(); o.add(buildProductCustomGroup()); o.add(buildProductCustomGroup()); return o; } -checkUnnamed568(core.List<api.ProductCustomGroup> o) { +checkUnnamed583(core.List<api.ProductCustomGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomGroup(o[0]); checkProductCustomGroup(o[1]); } -buildUnnamed569() { +buildUnnamed584() { var o = new core.List<api.ProductDestination>(); o.add(buildProductDestination()); o.add(buildProductDestination()); return o; } -checkUnnamed569(core.List<api.ProductDestination> o) { +checkUnnamed584(core.List<api.ProductDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDestination(o[0]); checkProductDestination(o[1]); } -buildUnnamed570() { +buildUnnamed585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed570(core.List<core.String> o) { +checkUnnamed585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed571() { +buildUnnamed586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed571(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')); } -buildUnnamed572() { +buildUnnamed587() { var o = new core.List<api.ProductShipping>(); o.add(buildProductShipping()); o.add(buildProductShipping()); return o; } -checkUnnamed572(core.List<api.ProductShipping> o) { +checkUnnamed587(core.List<api.ProductShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkProductShipping(o[0]); checkProductShipping(o[1]); } -buildUnnamed573() { +buildUnnamed588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed573(core.List<core.String> o) { +checkUnnamed588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed574() { +buildUnnamed589() { var o = new core.List<api.ProductTax>(); o.add(buildProductTax()); o.add(buildProductTax()); return o; } -checkUnnamed574(core.List<api.ProductTax> o) { +checkUnnamed589(core.List<api.ProductTax> o) { unittest.expect(o, unittest.hasLength(2)); checkProductTax(o[0]); checkProductTax(o[1]); } -buildUnnamed575() { +buildUnnamed590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed575(core.List<core.String> o) { +checkUnnamed590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed576() { +buildUnnamed591() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed576(core.List<api.Error> o) { +checkUnnamed591(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -4188,14 +4215,14 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.additionalImageLinks = buildUnnamed563(); - o.additionalProductTypes = buildUnnamed564(); + o.additionalImageLinks = buildUnnamed578(); + o.additionalProductTypes = buildUnnamed579(); o.adult = true; o.adwordsGrouping = "foo"; - o.adwordsLabels = buildUnnamed565(); + o.adwordsLabels = buildUnnamed580(); o.adwordsRedirect = "foo"; o.ageGroup = "foo"; - o.aspects = buildUnnamed566(); + o.aspects = buildUnnamed581(); o.availability = "foo"; o.availabilityDate = "foo"; o.brand = "foo"; @@ -4203,18 +4230,18 @@ o.color = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; - o.customAttributes = buildUnnamed567(); - o.customGroups = buildUnnamed568(); + o.customAttributes = buildUnnamed582(); + o.customGroups = buildUnnamed583(); o.customLabel0 = "foo"; o.customLabel1 = "foo"; o.customLabel2 = "foo"; o.customLabel3 = "foo"; o.customLabel4 = "foo"; o.description = "foo"; - o.destinations = buildUnnamed569(); + o.destinations = buildUnnamed584(); o.displayAdsId = "foo"; o.displayAdsLink = "foo"; - o.displayAdsSimilarIds = buildUnnamed570(); + o.displayAdsSimilarIds = buildUnnamed585(); o.displayAdsTitle = "foo"; o.displayAdsValue = 42.0; o.energyEfficiencyClass = "foo"; @@ -4240,11 +4267,11 @@ o.pattern = "foo"; o.price = buildPrice(); o.productType = "foo"; - o.promotionIds = buildUnnamed571(); + o.promotionIds = buildUnnamed586(); o.salePrice = buildPrice(); o.salePriceEffectiveDate = "foo"; o.sellOnGoogleQuantity = "foo"; - o.shipping = buildUnnamed572(); + o.shipping = buildUnnamed587(); o.shippingHeight = buildProductShippingDimension(); o.shippingLabel = "foo"; o.shippingLength = buildProductShippingDimension(); @@ -4252,14 +4279,14 @@ o.shippingWidth = buildProductShippingDimension(); o.sizeSystem = "foo"; o.sizeType = "foo"; - o.sizes = buildUnnamed573(); + o.sizes = buildUnnamed588(); o.targetCountry = "foo"; - o.taxes = buildUnnamed574(); + o.taxes = buildUnnamed589(); o.title = "foo"; o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); o.unitPricingMeasure = buildProductUnitPricingMeasure(); - o.validatedDestinations = buildUnnamed575(); - o.warnings = buildUnnamed576(); + o.validatedDestinations = buildUnnamed590(); + o.warnings = buildUnnamed591(); } buildCounterProduct--; return o; @@ -4268,14 +4295,14 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed563(o.additionalImageLinks); - checkUnnamed564(o.additionalProductTypes); + checkUnnamed578(o.additionalImageLinks); + checkUnnamed579(o.additionalProductTypes); unittest.expect(o.adult, unittest.isTrue); unittest.expect(o.adwordsGrouping, unittest.equals('foo')); - checkUnnamed565(o.adwordsLabels); + checkUnnamed580(o.adwordsLabels); unittest.expect(o.adwordsRedirect, unittest.equals('foo')); unittest.expect(o.ageGroup, unittest.equals('foo')); - checkUnnamed566(o.aspects); + checkUnnamed581(o.aspects); unittest.expect(o.availability, unittest.equals('foo')); unittest.expect(o.availabilityDate, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -4283,18 +4310,18 @@ unittest.expect(o.color, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed567(o.customAttributes); - checkUnnamed568(o.customGroups); + checkUnnamed582(o.customAttributes); + checkUnnamed583(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')); - checkUnnamed569(o.destinations); + checkUnnamed584(o.destinations); unittest.expect(o.displayAdsId, unittest.equals('foo')); unittest.expect(o.displayAdsLink, unittest.equals('foo')); - checkUnnamed570(o.displayAdsSimilarIds); + checkUnnamed585(o.displayAdsSimilarIds); unittest.expect(o.displayAdsTitle, unittest.equals('foo')); unittest.expect(o.displayAdsValue, unittest.equals(42.0)); unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); @@ -4320,11 +4347,11 @@ unittest.expect(o.pattern, unittest.equals('foo')); checkPrice(o.price); unittest.expect(o.productType, unittest.equals('foo')); - checkUnnamed571(o.promotionIds); + checkUnnamed586(o.promotionIds); checkPrice(o.salePrice); unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); unittest.expect(o.sellOnGoogleQuantity, unittest.equals('foo')); - checkUnnamed572(o.shipping); + checkUnnamed587(o.shipping); checkProductShippingDimension(o.shippingHeight); unittest.expect(o.shippingLabel, unittest.equals('foo')); checkProductShippingDimension(o.shippingLength); @@ -4332,14 +4359,14 @@ checkProductShippingDimension(o.shippingWidth); unittest.expect(o.sizeSystem, unittest.equals('foo')); unittest.expect(o.sizeType, unittest.equals('foo')); - checkUnnamed573(o.sizes); + checkUnnamed588(o.sizes); unittest.expect(o.targetCountry, unittest.equals('foo')); - checkUnnamed574(o.taxes); + checkUnnamed589(o.taxes); unittest.expect(o.title, unittest.equals('foo')); checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); checkProductUnitPricingMeasure(o.unitPricingMeasure); - checkUnnamed575(o.validatedDestinations); - checkUnnamed576(o.warnings); + checkUnnamed590(o.validatedDestinations); + checkUnnamed591(o.warnings); } buildCounterProduct--; } @@ -4392,14 +4419,14 @@ buildCounterProductCustomAttribute--; } -buildUnnamed577() { +buildUnnamed592() { var o = new core.List<api.ProductCustomAttribute>(); o.add(buildProductCustomAttribute()); o.add(buildProductCustomAttribute()); return o; } -checkUnnamed577(core.List<api.ProductCustomAttribute> o) { +checkUnnamed592(core.List<api.ProductCustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkProductCustomAttribute(o[0]); checkProductCustomAttribute(o[1]); @@ -4410,7 +4437,7 @@ var o = new api.ProductCustomGroup(); buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - o.attributes = buildUnnamed577(); + o.attributes = buildUnnamed592(); o.name = "foo"; } buildCounterProductCustomGroup--; @@ -4420,7 +4447,7 @@ checkProductCustomGroup(api.ProductCustomGroup o) { buildCounterProductCustomGroup++; if (buildCounterProductCustomGroup < 3) { - checkUnnamed577(o.attributes); + checkUnnamed592(o.attributes); unittest.expect(o.name, unittest.equals('foo')); } buildCounterProductCustomGroup--; @@ -4520,27 +4547,27 @@ buildCounterProductShippingWeight--; } -buildUnnamed578() { +buildUnnamed593() { var o = new core.List<api.ProductStatusDataQualityIssue>(); o.add(buildProductStatusDataQualityIssue()); o.add(buildProductStatusDataQualityIssue()); return o; } -checkUnnamed578(core.List<api.ProductStatusDataQualityIssue> o) { +checkUnnamed593(core.List<api.ProductStatusDataQualityIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDataQualityIssue(o[0]); checkProductStatusDataQualityIssue(o[1]); } -buildUnnamed579() { +buildUnnamed594() { var o = new core.List<api.ProductStatusDestinationStatus>(); o.add(buildProductStatusDestinationStatus()); o.add(buildProductStatusDestinationStatus()); return o; } -checkUnnamed579(core.List<api.ProductStatusDestinationStatus> o) { +checkUnnamed594(core.List<api.ProductStatusDestinationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDestinationStatus(o[0]); checkProductStatusDestinationStatus(o[1]); @@ -4552,8 +4579,8 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { o.creationDate = "foo"; - o.dataQualityIssues = buildUnnamed578(); - o.destinationStatuses = buildUnnamed579(); + o.dataQualityIssues = buildUnnamed593(); + o.destinationStatuses = buildUnnamed594(); o.googleExpirationDate = "foo"; o.kind = "foo"; o.lastUpdateDate = "foo"; @@ -4569,8 +4596,8 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { unittest.expect(o.creationDate, unittest.equals('foo')); - checkUnnamed578(o.dataQualityIssues); - checkUnnamed579(o.destinationStatuses); + checkUnnamed593(o.dataQualityIssues); + checkUnnamed594(o.destinationStatuses); unittest.expect(o.googleExpirationDate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateDate, unittest.equals('foo')); @@ -4708,14 +4735,14 @@ buildCounterProductUnitPricingMeasure--; } -buildUnnamed580() { +buildUnnamed595() { var o = new core.List<api.ProductsCustomBatchRequestEntry>(); o.add(buildProductsCustomBatchRequestEntry()); o.add(buildProductsCustomBatchRequestEntry()); return o; } -checkUnnamed580(core.List<api.ProductsCustomBatchRequestEntry> o) { +checkUnnamed595(core.List<api.ProductsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchRequestEntry(o[0]); checkProductsCustomBatchRequestEntry(o[1]); @@ -4726,7 +4753,7 @@ var o = new api.ProductsCustomBatchRequest(); buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - o.entries = buildUnnamed580(); + o.entries = buildUnnamed595(); } buildCounterProductsCustomBatchRequest--; return o; @@ -4735,7 +4762,7 @@ checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - checkUnnamed580(o.entries); + checkUnnamed595(o.entries); } buildCounterProductsCustomBatchRequest--; } @@ -4767,14 +4794,14 @@ buildCounterProductsCustomBatchRequestEntry--; } -buildUnnamed581() { +buildUnnamed596() { var o = new core.List<api.ProductsCustomBatchResponseEntry>(); o.add(buildProductsCustomBatchResponseEntry()); o.add(buildProductsCustomBatchResponseEntry()); return o; } -checkUnnamed581(core.List<api.ProductsCustomBatchResponseEntry> o) { +checkUnnamed596(core.List<api.ProductsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchResponseEntry(o[0]); checkProductsCustomBatchResponseEntry(o[1]); @@ -4785,7 +4812,7 @@ var o = new api.ProductsCustomBatchResponse(); buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - o.entries = buildUnnamed581(); + o.entries = buildUnnamed596(); o.kind = "foo"; } buildCounterProductsCustomBatchResponse--; @@ -4795,7 +4822,7 @@ checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - checkUnnamed581(o.entries); + checkUnnamed596(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductsCustomBatchResponse--; @@ -4826,14 +4853,14 @@ buildCounterProductsCustomBatchResponseEntry--; } -buildUnnamed582() { +buildUnnamed597() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed582(core.List<api.Product> o) { +checkUnnamed597(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -4846,7 +4873,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed582(); + o.resources = buildUnnamed597(); } buildCounterProductsListResponse--; return o; @@ -4857,19 +4884,19 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed582(o.resources); + checkUnnamed597(o.resources); } buildCounterProductsListResponse--; } -buildUnnamed583() { +buildUnnamed598() { var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); o.add(buildProductstatusesCustomBatchRequestEntry()); o.add(buildProductstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed583(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { +checkUnnamed598(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchRequestEntry(o[0]); checkProductstatusesCustomBatchRequestEntry(o[1]); @@ -4880,7 +4907,7 @@ var o = new api.ProductstatusesCustomBatchRequest(); buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed583(); + o.entries = buildUnnamed598(); } buildCounterProductstatusesCustomBatchRequest--; return o; @@ -4889,7 +4916,7 @@ checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o) { buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - checkUnnamed583(o.entries); + checkUnnamed598(o.entries); } buildCounterProductstatusesCustomBatchRequest--; } @@ -4919,14 +4946,14 @@ buildCounterProductstatusesCustomBatchRequestEntry--; } -buildUnnamed584() { +buildUnnamed599() { var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); o.add(buildProductstatusesCustomBatchResponseEntry()); o.add(buildProductstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed584(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { +checkUnnamed599(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchResponseEntry(o[0]); checkProductstatusesCustomBatchResponseEntry(o[1]); @@ -4937,7 +4964,7 @@ var o = new api.ProductstatusesCustomBatchResponse(); buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed584(); + o.entries = buildUnnamed599(); o.kind = "foo"; } buildCounterProductstatusesCustomBatchResponse--; @@ -4947,7 +4974,7 @@ checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o) { buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - checkUnnamed584(o.entries); + checkUnnamed599(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductstatusesCustomBatchResponse--; @@ -4978,14 +5005,14 @@ buildCounterProductstatusesCustomBatchResponseEntry--; } -buildUnnamed585() { +buildUnnamed600() { var o = new core.List<api.ProductStatus>(); o.add(buildProductStatus()); o.add(buildProductStatus()); return o; } -checkUnnamed585(core.List<api.ProductStatus> o) { +checkUnnamed600(core.List<api.ProductStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatus(o[0]); checkProductStatus(o[1]); @@ -4998,7 +5025,7 @@ if (buildCounterProductstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed585(); + o.resources = buildUnnamed600(); } buildCounterProductstatusesListResponse--; return o; @@ -5009,45 +5036,45 @@ if (buildCounterProductstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed585(o.resources); + checkUnnamed600(o.resources); } buildCounterProductstatusesListResponse--; } -buildUnnamed586() { +buildUnnamed601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed586(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')); } -buildUnnamed587() { +buildUnnamed602() { var o = new core.List<api.CarrierRate>(); o.add(buildCarrierRate()); o.add(buildCarrierRate()); return o; } -checkUnnamed587(core.List<api.CarrierRate> o) { +checkUnnamed602(core.List<api.CarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkCarrierRate(o[0]); checkCarrierRate(o[1]); } -buildUnnamed588() { +buildUnnamed603() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed588(core.List<api.Table> o) { +checkUnnamed603(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -5058,11 +5085,11 @@ var o = new api.RateGroup(); buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - o.applicableShippingLabels = buildUnnamed586(); - o.carrierRates = buildUnnamed587(); + o.applicableShippingLabels = buildUnnamed601(); + o.carrierRates = buildUnnamed602(); o.mainTable = buildTable(); o.singleValue = buildValue(); - o.subtables = buildUnnamed588(); + o.subtables = buildUnnamed603(); } buildCounterRateGroup--; return o; @@ -5071,23 +5098,23 @@ checkRateGroup(api.RateGroup o) { buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - checkUnnamed586(o.applicableShippingLabels); - checkUnnamed587(o.carrierRates); + checkUnnamed601(o.applicableShippingLabels); + checkUnnamed602(o.carrierRates); checkTable(o.mainTable); checkValue(o.singleValue); - checkUnnamed588(o.subtables); + checkUnnamed603(o.subtables); } buildCounterRateGroup--; } -buildUnnamed589() { +buildUnnamed604() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed589(core.List<api.Value> o) { +checkUnnamed604(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -5098,7 +5125,7 @@ var o = new api.Row(); buildCounterRow++; if (buildCounterRow < 3) { - o.cells = buildUnnamed589(); + o.cells = buildUnnamed604(); } buildCounterRow--; return o; @@ -5107,19 +5134,19 @@ checkRow(api.Row o) { buildCounterRow++; if (buildCounterRow < 3) { - checkUnnamed589(o.cells); + checkUnnamed604(o.cells); } buildCounterRow--; } -buildUnnamed590() { +buildUnnamed605() { var o = new core.List<api.RateGroup>(); o.add(buildRateGroup()); o.add(buildRateGroup()); return o; } -checkUnnamed590(core.List<api.RateGroup> o) { +checkUnnamed605(core.List<api.RateGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkRateGroup(o[0]); checkRateGroup(o[1]); @@ -5135,7 +5162,7 @@ o.deliveryCountry = "foo"; o.deliveryTime = buildDeliveryTime(); o.name = "foo"; - o.rateGroups = buildUnnamed590(); + o.rateGroups = buildUnnamed605(); } buildCounterService--; return o; @@ -5149,32 +5176,32 @@ unittest.expect(o.deliveryCountry, unittest.equals('foo')); checkDeliveryTime(o.deliveryTime); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed590(o.rateGroups); + checkUnnamed605(o.rateGroups); } buildCounterService--; } -buildUnnamed591() { +buildUnnamed606() { var o = new core.List<api.PostalCodeGroup>(); o.add(buildPostalCodeGroup()); o.add(buildPostalCodeGroup()); return o; } -checkUnnamed591(core.List<api.PostalCodeGroup> o) { +checkUnnamed606(core.List<api.PostalCodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeGroup(o[0]); checkPostalCodeGroup(o[1]); } -buildUnnamed592() { +buildUnnamed607() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed592(core.List<api.Service> o) { +checkUnnamed607(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -5186,8 +5213,8 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { o.accountId = "foo"; - o.postalCodeGroups = buildUnnamed591(); - o.services = buildUnnamed592(); + o.postalCodeGroups = buildUnnamed606(); + o.services = buildUnnamed607(); } buildCounterShippingSettings--; return o; @@ -5197,20 +5224,20 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed591(o.postalCodeGroups); - checkUnnamed592(o.services); + checkUnnamed606(o.postalCodeGroups); + checkUnnamed607(o.services); } buildCounterShippingSettings--; } -buildUnnamed593() { +buildUnnamed608() { var o = new core.List<api.ShippingsettingsCustomBatchRequestEntry>(); o.add(buildShippingsettingsCustomBatchRequestEntry()); o.add(buildShippingsettingsCustomBatchRequestEntry()); return o; } -checkUnnamed593(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { +checkUnnamed608(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchRequestEntry(o[0]); checkShippingsettingsCustomBatchRequestEntry(o[1]); @@ -5221,7 +5248,7 @@ var o = new api.ShippingsettingsCustomBatchRequest(); buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - o.entries = buildUnnamed593(); + o.entries = buildUnnamed608(); } buildCounterShippingsettingsCustomBatchRequest--; return o; @@ -5230,7 +5257,7 @@ checkShippingsettingsCustomBatchRequest(api.ShippingsettingsCustomBatchRequest o) { buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - checkUnnamed593(o.entries); + checkUnnamed608(o.entries); } buildCounterShippingsettingsCustomBatchRequest--; } @@ -5262,14 +5289,14 @@ buildCounterShippingsettingsCustomBatchRequestEntry--; } -buildUnnamed594() { +buildUnnamed609() { var o = new core.List<api.ShippingsettingsCustomBatchResponseEntry>(); o.add(buildShippingsettingsCustomBatchResponseEntry()); o.add(buildShippingsettingsCustomBatchResponseEntry()); return o; } -checkUnnamed594(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { +checkUnnamed609(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchResponseEntry(o[0]); checkShippingsettingsCustomBatchResponseEntry(o[1]); @@ -5280,7 +5307,7 @@ var o = new api.ShippingsettingsCustomBatchResponse(); buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - o.entries = buildUnnamed594(); + o.entries = buildUnnamed609(); o.kind = "foo"; } buildCounterShippingsettingsCustomBatchResponse--; @@ -5290,7 +5317,7 @@ checkShippingsettingsCustomBatchResponse(api.ShippingsettingsCustomBatchResponse o) { buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - checkUnnamed594(o.entries); + checkUnnamed609(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsCustomBatchResponse--; @@ -5321,14 +5348,14 @@ buildCounterShippingsettingsCustomBatchResponseEntry--; } -buildUnnamed595() { +buildUnnamed610() { var o = new core.List<api.CarriersCarrier>(); o.add(buildCarriersCarrier()); o.add(buildCarriersCarrier()); return o; } -checkUnnamed595(core.List<api.CarriersCarrier> o) { +checkUnnamed610(core.List<api.CarriersCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkCarriersCarrier(o[0]); checkCarriersCarrier(o[1]); @@ -5339,7 +5366,7 @@ var o = new api.ShippingsettingsGetSupportedCarriersResponse(); buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - o.carriers = buildUnnamed595(); + o.carriers = buildUnnamed610(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedCarriersResponse--; @@ -5349,20 +5376,20 @@ checkShippingsettingsGetSupportedCarriersResponse(api.ShippingsettingsGetSupportedCarriersResponse o) { buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - checkUnnamed595(o.carriers); + checkUnnamed610(o.carriers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedCarriersResponse--; } -buildUnnamed596() { +buildUnnamed611() { var o = new core.List<api.ShippingSettings>(); o.add(buildShippingSettings()); o.add(buildShippingSettings()); return o; } -checkUnnamed596(core.List<api.ShippingSettings> o) { +checkUnnamed611(core.List<api.ShippingSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingSettings(o[0]); checkShippingSettings(o[1]); @@ -5375,7 +5402,7 @@ if (buildCounterShippingsettingsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed596(); + o.resources = buildUnnamed611(); } buildCounterShippingsettingsListResponse--; return o; @@ -5386,19 +5413,19 @@ if (buildCounterShippingsettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed596(o.resources); + checkUnnamed611(o.resources); } buildCounterShippingsettingsListResponse--; } -buildUnnamed597() { +buildUnnamed612() { var o = new core.List<api.Row>(); o.add(buildRow()); o.add(buildRow()); return o; } -checkUnnamed597(core.List<api.Row> o) { +checkUnnamed612(core.List<api.Row> o) { unittest.expect(o, unittest.hasLength(2)); checkRow(o[0]); checkRow(o[1]); @@ -5412,7 +5439,7 @@ o.columnHeaders = buildHeaders(); o.name = "foo"; o.rowHeaders = buildHeaders(); - o.rows = buildUnnamed597(); + o.rows = buildUnnamed612(); } buildCounterTable--; return o; @@ -5424,32 +5451,32 @@ checkHeaders(o.columnHeaders); unittest.expect(o.name, unittest.equals('foo')); checkHeaders(o.rowHeaders); - checkUnnamed597(o.rows); + checkUnnamed612(o.rows); } buildCounterTable--; } -buildUnnamed598() { +buildUnnamed613() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed598(core.List<api.TestOrderLineItem> o) { +checkUnnamed613(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed599() { +buildUnnamed614() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed599(core.List<api.OrderPromotion> o) { +checkUnnamed614(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -5462,10 +5489,10 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed598(); + o.lineItems = buildUnnamed613(); o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed599(); + o.promotions = buildUnnamed614(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -5479,10 +5506,10 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed598(o.lineItems); + checkUnnamed613(o.lineItems); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed599(o.promotions); + checkUnnamed614(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -5540,14 +5567,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed600() { +buildUnnamed615() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed600(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed615(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -5570,7 +5597,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed600(); + o.variantAttributes = buildUnnamed615(); } buildCounterTestOrderLineItemProduct--; return o; @@ -5591,7 +5618,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed600(o.variantAttributes); + checkUnnamed615(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -5671,14 +5698,14 @@ buildCounterWeight--; } -buildUnnamed601() { +buildUnnamed616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed601(core.List<core.String> o) { +checkUnnamed616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6298,6 +6325,15 @@ }); + unittest.group("obj-schema-InventoryPickup", () { + unittest.test("to-json--from-json", () { + var o = buildInventoryPickup(); + var od = new api.InventoryPickup.fromJson(o.toJson()); + checkInventoryPickup(od); + }); + }); + + unittest.group("obj-schema-InventorySetRequest", () { unittest.test("to-json--from-json", () { var o = buildInventorySetRequest(); @@ -9193,7 +9229,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed601(); + var arg_statuses = buildUnnamed616(); 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 d772208..39eba4b 100644 --- a/generated/googleapis/test/content/v2sandbox_test.dart +++ b/generated/googleapis/test/content/v2sandbox_test.dart
@@ -74,14 +74,14 @@ buildCounterError--; } -buildUnnamed1489() { +buildUnnamed1499() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1489(core.List<api.Error> o) { +checkUnnamed1499(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 = buildUnnamed1489(); + o.errors = buildUnnamed1499(); o.message = "foo"; } buildCounterErrors--; @@ -104,59 +104,59 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1489(o.errors); + checkUnnamed1499(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed1490() { +buildUnnamed1500() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed1490(core.List<api.OrderLineItem> o) { +checkUnnamed1500(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed1491() { +buildUnnamed1501() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1491(core.List<api.OrderPromotion> o) { +checkUnnamed1501(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed1492() { +buildUnnamed1502() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed1492(core.List<api.OrderRefund> o) { +checkUnnamed1502(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed1493() { +buildUnnamed1503() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed1493(core.List<api.OrderShipment> o) { +checkUnnamed1503(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -168,20 +168,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { o.acknowledged = true; + o.channelType = "foo"; o.customer = buildOrderCustomer(); o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed1490(); + o.lineItems = buildUnnamed1500(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netAmount = buildPrice(); o.paymentMethod = buildOrderPaymentMethod(); o.paymentStatus = "foo"; o.placedDate = "foo"; - o.promotions = buildUnnamed1491(); - o.refunds = buildUnnamed1492(); - o.shipments = buildUnnamed1493(); + o.promotions = buildUnnamed1501(); + o.refunds = buildUnnamed1502(); + o.shipments = buildUnnamed1503(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -195,20 +196,21 @@ buildCounterOrder++; if (buildCounterOrder < 3) { unittest.expect(o.acknowledged, unittest.isTrue); + unittest.expect(o.channelType, unittest.equals('foo')); checkOrderCustomer(o.customer); checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1490(o.lineItems); + checkUnnamed1500(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')); - checkUnnamed1491(o.promotions); - checkUnnamed1492(o.refunds); - checkUnnamed1493(o.shipments); + checkUnnamed1501(o.promotions); + checkUnnamed1502(o.refunds); + checkUnnamed1503(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -217,27 +219,27 @@ buildCounterOrder--; } -buildUnnamed1494() { +buildUnnamed1504() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1494(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')); } -buildUnnamed1495() { +buildUnnamed1505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1495(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')); @@ -249,13 +251,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed1494(); + o.fullAddress = buildUnnamed1504(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed1495(); + o.streetAddress = buildUnnamed1505(); } buildCounterOrderAddress--; return o; @@ -265,13 +267,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed1494(o.fullAddress); + checkUnnamed1504(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')); - checkUnnamed1495(o.streetAddress); + checkUnnamed1505(o.streetAddress); } buildCounterOrderAddress--; } @@ -347,27 +349,27 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed1496() { +buildUnnamed1506() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed1496(core.List<api.OrderCancellation> o) { +checkUnnamed1506(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed1497() { +buildUnnamed1507() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed1497(core.List<api.OrderReturn> o) { +checkUnnamed1507(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -378,7 +380,7 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.cancellations = buildUnnamed1496(); + o.cancellations = buildUnnamed1506(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -389,7 +391,7 @@ o.quantityReturned = 42; o.quantityShipped = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed1497(); + o.returns = buildUnnamed1507(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -400,7 +402,7 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed1496(o.cancellations); + checkUnnamed1506(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -411,21 +413,21 @@ unittest.expect(o.quantityReturned, unittest.equals(42)); unittest.expect(o.quantityShipped, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed1497(o.returns); + checkUnnamed1507(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } buildCounterOrderLineItem--; } -buildUnnamed1498() { +buildUnnamed1508() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1498(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1508(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -450,7 +452,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1498(); + o.variantAttributes = buildUnnamed1508(); } buildCounterOrderLineItemProduct--; return o; @@ -473,7 +475,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1498(o.variantAttributes); + checkUnnamed1508(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -599,14 +601,14 @@ buildCounterOrderPaymentMethod--; } -buildUnnamed1499() { +buildUnnamed1509() { var o = new core.List<api.OrderPromotionBenefit>(); o.add(buildOrderPromotionBenefit()); o.add(buildOrderPromotionBenefit()); return o; } -checkUnnamed1499(core.List<api.OrderPromotionBenefit> o) { +checkUnnamed1509(core.List<api.OrderPromotionBenefit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionBenefit(o[0]); checkOrderPromotionBenefit(o[1]); @@ -617,7 +619,7 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.benefits = buildUnnamed1499(); + o.benefits = buildUnnamed1509(); o.effectiveDates = "foo"; o.genericRedemptionCode = "foo"; o.id = "foo"; @@ -632,7 +634,7 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed1499(o.benefits); + checkUnnamed1509(o.benefits); unittest.expect(o.effectiveDates, unittest.equals('foo')); unittest.expect(o.genericRedemptionCode, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -643,14 +645,14 @@ buildCounterOrderPromotion--; } -buildUnnamed1500() { +buildUnnamed1510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1500(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')); @@ -662,7 +664,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { o.discount = buildPrice(); - o.offerIds = buildUnnamed1500(); + o.offerIds = buildUnnamed1510(); o.subType = "foo"; o.taxImpact = buildPrice(); o.type = "foo"; @@ -675,7 +677,7 @@ buildCounterOrderPromotionBenefit++; if (buildCounterOrderPromotionBenefit < 3) { checkPrice(o.discount); - checkUnnamed1500(o.offerIds); + checkUnnamed1510(o.offerIds); unittest.expect(o.subType, unittest.equals('foo')); checkPrice(o.taxImpact); unittest.expect(o.type, unittest.equals('foo')); @@ -737,14 +739,14 @@ buildCounterOrderReturn--; } -buildUnnamed1501() { +buildUnnamed1511() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1501(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1511(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -759,7 +761,7 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed1501(); + o.lineItems = buildUnnamed1511(); o.status = "foo"; o.trackingId = "foo"; } @@ -774,7 +776,7 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1501(o.lineItems); + checkUnnamed1511(o.lineItems); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -997,14 +999,14 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed1502() { +buildUnnamed1512() { var o = new core.List<api.OrdersCustomBatchRequestEntry>(); o.add(buildOrdersCustomBatchRequestEntry()); o.add(buildOrdersCustomBatchRequestEntry()); return o; } -checkUnnamed1502(core.List<api.OrdersCustomBatchRequestEntry> o) { +checkUnnamed1512(core.List<api.OrdersCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntry(o[0]); checkOrdersCustomBatchRequestEntry(o[1]); @@ -1015,7 +1017,7 @@ var o = new api.OrdersCustomBatchRequest(); buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - o.entries = buildUnnamed1502(); + o.entries = buildUnnamed1512(); } buildCounterOrdersCustomBatchRequest--; return o; @@ -1024,7 +1026,7 @@ checkOrdersCustomBatchRequest(api.OrdersCustomBatchRequest o) { buildCounterOrdersCustomBatchRequest++; if (buildCounterOrdersCustomBatchRequest < 3) { - checkUnnamed1502(o.entries); + checkUnnamed1512(o.entries); } buildCounterOrdersCustomBatchRequest--; } @@ -1166,14 +1168,14 @@ buildCounterOrdersCustomBatchRequestEntryReturnLineItem--; } -buildUnnamed1503() { +buildUnnamed1513() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1503(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1513(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -1185,7 +1187,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed1503(); + o.lineItems = buildUnnamed1513(); o.shipmentId = "foo"; o.trackingId = "foo"; } @@ -1197,7 +1199,7 @@ buildCounterOrdersCustomBatchRequestEntryShipLineItems++; if (buildCounterOrdersCustomBatchRequestEntryShipLineItems < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed1503(o.lineItems); + checkUnnamed1513(o.lineItems); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); } @@ -1229,14 +1231,14 @@ buildCounterOrdersCustomBatchRequestEntryUpdateShipment--; } -buildUnnamed1504() { +buildUnnamed1514() { var o = new core.List<api.OrdersCustomBatchResponseEntry>(); o.add(buildOrdersCustomBatchResponseEntry()); o.add(buildOrdersCustomBatchResponseEntry()); return o; } -checkUnnamed1504(core.List<api.OrdersCustomBatchResponseEntry> o) { +checkUnnamed1514(core.List<api.OrdersCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchResponseEntry(o[0]); checkOrdersCustomBatchResponseEntry(o[1]); @@ -1247,7 +1249,7 @@ var o = new api.OrdersCustomBatchResponse(); buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - o.entries = buildUnnamed1504(); + o.entries = buildUnnamed1514(); o.kind = "foo"; } buildCounterOrdersCustomBatchResponse--; @@ -1257,7 +1259,7 @@ checkOrdersCustomBatchResponse(api.OrdersCustomBatchResponse o) { buildCounterOrdersCustomBatchResponse++; if (buildCounterOrdersCustomBatchResponse < 3) { - checkUnnamed1504(o.entries); + checkUnnamed1514(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOrdersCustomBatchResponse--; @@ -1332,14 +1334,14 @@ buildCounterOrdersGetTestOrderTemplateResponse--; } -buildUnnamed1505() { +buildUnnamed1515() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1505(core.List<api.Order> o) { +checkUnnamed1515(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -1352,7 +1354,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1505(); + o.resources = buildUnnamed1515(); } buildCounterOrdersListResponse--; return o; @@ -1363,7 +1365,7 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1505(o.resources); + checkUnnamed1515(o.resources); } buildCounterOrdersListResponse--; } @@ -1462,14 +1464,14 @@ buildCounterOrdersReturnLineItemResponse--; } -buildUnnamed1506() { +buildUnnamed1516() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1506(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1516(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -1481,7 +1483,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { o.carrier = "foo"; - o.lineItems = buildUnnamed1506(); + o.lineItems = buildUnnamed1516(); o.operationId = "foo"; o.shipmentId = "foo"; o.trackingId = "foo"; @@ -1494,7 +1496,7 @@ buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); - checkUnnamed1506(o.lineItems); + checkUnnamed1516(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -1634,27 +1636,27 @@ buildCounterPrice--; } -buildUnnamed1507() { +buildUnnamed1517() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed1507(core.List<api.TestOrderLineItem> o) { +checkUnnamed1517(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed1508() { +buildUnnamed1518() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1508(core.List<api.OrderPromotion> o) { +checkUnnamed1518(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -1667,10 +1669,10 @@ if (buildCounterTestOrder < 3) { o.customer = buildTestOrderCustomer(); o.kind = "foo"; - o.lineItems = buildUnnamed1507(); + o.lineItems = buildUnnamed1517(); o.paymentMethod = buildTestOrderPaymentMethod(); o.predefinedDeliveryAddress = "foo"; - o.promotions = buildUnnamed1508(); + o.promotions = buildUnnamed1518(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.shippingOption = "foo"; @@ -1684,10 +1686,10 @@ if (buildCounterTestOrder < 3) { checkTestOrderCustomer(o.customer); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1507(o.lineItems); + checkUnnamed1517(o.lineItems); checkTestOrderPaymentMethod(o.paymentMethod); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); - checkUnnamed1508(o.promotions); + checkUnnamed1518(o.promotions); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.shippingOption, unittest.equals('foo')); @@ -1745,14 +1747,14 @@ buildCounterTestOrderLineItem--; } -buildUnnamed1509() { +buildUnnamed1519() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1509(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1519(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -1775,7 +1777,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1509(); + o.variantAttributes = buildUnnamed1519(); } buildCounterTestOrderLineItemProduct--; return o; @@ -1796,7 +1798,7 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1509(o.variantAttributes); + checkUnnamed1519(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } @@ -1828,14 +1830,14 @@ buildCounterTestOrderPaymentMethod--; } -buildUnnamed1510() { +buildUnnamed1520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1510(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')); @@ -2785,7 +2787,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed1510(); + var arg_statuses = buildUnnamed1520(); 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 ae62cca..accc031 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -74,30 +74,30 @@ buildCounterContextFacets--; } -buildUnnamed467() { +buildUnnamed482() { var o = new core.List<api.ContextFacets>(); o.add(buildContextFacets()); o.add(buildContextFacets()); return o; } -checkUnnamed467(core.List<api.ContextFacets> o) { +checkUnnamed482(core.List<api.ContextFacets> o) { unittest.expect(o, unittest.hasLength(2)); checkContextFacets(o[0]); checkContextFacets(o[1]); } -buildUnnamed468() { +buildUnnamed483() { var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed467()); - o.add(buildUnnamed467()); + o.add(buildUnnamed482()); + o.add(buildUnnamed482()); return o; } -checkUnnamed468(core.List<core.List<api.ContextFacets>> o) { +checkUnnamed483(core.List<core.List<api.ContextFacets>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed467(o[0]); - checkUnnamed467(o[1]); + checkUnnamed482(o[0]); + checkUnnamed482(o[1]); } core.int buildCounterContext = 0; @@ -105,7 +105,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.facets = buildUnnamed468(); + o.facets = buildUnnamed483(); o.title = "foo"; } buildCounterContext--; @@ -115,7 +115,7 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed468(o.facets); + checkUnnamed483(o.facets); unittest.expect(o.title, unittest.equals('foo')); } buildCounterContext--; @@ -146,14 +146,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed469() { +buildUnnamed484() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed469(core.List<api.PromotionBodyLines> o) { +checkUnnamed484(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 = buildUnnamed469(); + o.bodyLines = buildUnnamed484(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -201,7 +201,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed469(o.bodyLines); + checkUnnamed484(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -356,56 +356,56 @@ buildCounterResultLabels--; } -buildUnnamed470() { +buildUnnamed485() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed470(core.List<api.ResultLabels> o) { +checkUnnamed485(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed471() { +buildUnnamed486() { 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; } -checkUnnamed471(core.Map<core.String, core.Object> o) { +checkUnnamed486(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')); } -buildUnnamed472() { +buildUnnamed487() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed471()); - o.add(buildUnnamed471()); + o.add(buildUnnamed486()); + o.add(buildUnnamed486()); return o; } -checkUnnamed472(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed487(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed471(o[0]); - checkUnnamed471(o[1]); + checkUnnamed486(o[0]); + checkUnnamed486(o[1]); } -buildUnnamed473() { +buildUnnamed488() { var o = new core.Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed472(); - o["y"] = buildUnnamed472(); + o["x"] = buildUnnamed487(); + o["y"] = buildUnnamed487(); return o; } -checkUnnamed473(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { +checkUnnamed488(core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed472(o["x"]); - checkUnnamed472(o["y"]); + checkUnnamed487(o["x"]); + checkUnnamed487(o["y"]); } core.int buildCounterResult = 0; @@ -422,10 +422,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed470(); + o.labels = buildUnnamed485(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed473(); + o.pagemap = buildUnnamed488(); 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')); - checkUnnamed470(o.labels); + checkUnnamed485(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed473(o.pagemap); + checkUnnamed488(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed474() { +buildUnnamed489() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed474(core.List<api.Result> o) { +checkUnnamed489(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed475() { +buildUnnamed490() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed475(core.List<api.Promotion> o) { +checkUnnamed490(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed476() { +buildUnnamed491() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed476(core.List<api.Query> o) { +checkUnnamed491(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); } -buildUnnamed477() { +buildUnnamed492() { var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed476(); - o["y"] = buildUnnamed476(); + o["x"] = buildUnnamed491(); + o["y"] = buildUnnamed491(); return o; } -checkUnnamed477(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed492(core.Map<core.String, core.List<api.Query>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed476(o["x"]); - checkUnnamed476(o["y"]); + checkUnnamed491(o["x"]); + checkUnnamed491(o["y"]); } core.int buildCounterSearchSearchInformation = 0; @@ -580,10 +580,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { o.context = buildContext(); - o.items = buildUnnamed474(); + o.items = buildUnnamed489(); o.kind = "foo"; - o.promotions = buildUnnamed475(); - o.queries = buildUnnamed477(); + o.promotions = buildUnnamed490(); + o.queries = buildUnnamed492(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -596,10 +596,10 @@ buildCounterSearch++; if (buildCounterSearch < 3) { checkContext(o.context); - checkUnnamed474(o.items); + checkUnnamed489(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed475(o.promotions); - checkUnnamed477(o.queries); + checkUnnamed490(o.promotions); + checkUnnamed492(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 8928160..c55d13d 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -68,14 +68,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed669() { +buildUnnamed687() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed688() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed669(core.List<api.ClusterStatus> o) { +checkUnnamed688(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -89,9 +102,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); + o.labels = buildUnnamed687(); + o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed669(); + o.statusHistory = buildUnnamed688(); } buildCounterCluster--; return o; @@ -103,21 +118,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); + checkUnnamed687(o.labels); + checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed669(o.statusHistory); + checkUnnamed688(o.statusHistory); } buildCounterCluster--; } -buildUnnamed670() { +buildUnnamed689() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed670(core.List<api.NodeInitializationAction> o) { +checkUnnamed689(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -130,7 +147,7 @@ if (buildCounterClusterConfig < 3) { o.configBucket = "foo"; o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed670(); + o.initializationActions = buildUnnamed689(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.softwareConfig = buildSoftwareConfig(); @@ -145,7 +162,7 @@ if (buildCounterClusterConfig < 3) { unittest.expect(o.configBucket, unittest.equals('foo')); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed670(o.initializationActions); + checkUnnamed689(o.initializationActions); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSoftwareConfig(o.softwareConfig); @@ -154,14 +171,74 @@ buildCounterClusterConfig--; } -buildUnnamed671() { +buildUnnamed690() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed691() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterClusterMetrics = 0; +buildClusterMetrics() { + var o = new api.ClusterMetrics(); + buildCounterClusterMetrics++; + if (buildCounterClusterMetrics < 3) { + o.hdfsMetrics = buildUnnamed690(); + o.yarnMetrics = buildUnnamed691(); + } + buildCounterClusterMetrics--; + return o; +} + +checkClusterMetrics(api.ClusterMetrics o) { + buildCounterClusterMetrics++; + if (buildCounterClusterMetrics < 3) { + checkUnnamed690(o.hdfsMetrics); + checkUnnamed691(o.yarnMetrics); + } + buildCounterClusterMetrics--; +} + +buildUnnamed692() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed693() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed671(core.List<api.ClusterOperationStatus> o) { +checkUnnamed693(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); @@ -175,9 +252,10 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; + o.labels = buildUnnamed692(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed671(); + o.statusHistory = buildUnnamed693(); } buildCounterClusterOperationMetadata--; return o; @@ -189,9 +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); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed671(o.statusHistory); + checkUnnamed693(o.statusHistory); } buildCounterClusterOperationMetadata--; } @@ -337,40 +416,40 @@ buildCounterEmpty--; } -buildUnnamed672() { +buildUnnamed694() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed672(core.Map<core.String, core.String> o) { +checkUnnamed694(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')); } -buildUnnamed673() { +buildUnnamed695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed673(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')); } -buildUnnamed674() { +buildUnnamed696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed674(core.List<core.String> o) { +checkUnnamed696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -381,11 +460,12 @@ var o = new api.GceClusterConfig(); buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { - o.metadata = buildUnnamed672(); + o.internalIpOnly = true; + o.metadata = buildUnnamed694(); o.networkUri = "foo"; - o.serviceAccountScopes = buildUnnamed673(); + o.serviceAccountScopes = buildUnnamed695(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed674(); + o.tags = buildUnnamed696(); o.zoneUri = "foo"; } buildCounterGceClusterConfig--; @@ -395,76 +475,77 @@ checkGceClusterConfig(api.GceClusterConfig o) { buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { - checkUnnamed672(o.metadata); + unittest.expect(o.internalIpOnly, unittest.isTrue); + checkUnnamed694(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); - checkUnnamed673(o.serviceAccountScopes); + checkUnnamed695(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed674(o.tags); + checkUnnamed696(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfig--; } -buildUnnamed675() { +buildUnnamed697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed675(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')); } -buildUnnamed676() { +buildUnnamed698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed676(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')); } -buildUnnamed677() { +buildUnnamed699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed677(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')); } -buildUnnamed678() { +buildUnnamed700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed678(core.List<core.String> o) { +checkUnnamed700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed679() { +buildUnnamed701() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed679(core.Map<core.String, core.String> o) { +checkUnnamed701(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')); @@ -475,14 +556,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed675(); - o.args = buildUnnamed676(); - o.fileUris = buildUnnamed677(); - o.jarFileUris = buildUnnamed678(); + o.archiveUris = buildUnnamed697(); + o.args = buildUnnamed698(); + o.fileUris = buildUnnamed699(); + o.jarFileUris = buildUnnamed700(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed679(); + o.properties = buildUnnamed701(); } buildCounterHadoopJob--; return o; @@ -491,52 +572,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed675(o.archiveUris); - checkUnnamed676(o.args); - checkUnnamed677(o.fileUris); - checkUnnamed678(o.jarFileUris); + checkUnnamed697(o.archiveUris); + checkUnnamed698(o.args); + checkUnnamed699(o.fileUris); + checkUnnamed700(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed679(o.properties); + checkUnnamed701(o.properties); } buildCounterHadoopJob--; } -buildUnnamed680() { +buildUnnamed702() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed680(core.List<core.String> o) { +checkUnnamed702(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed681() { +buildUnnamed703() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed681(core.Map<core.String, core.String> o) { +checkUnnamed703(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')); } -buildUnnamed682() { +buildUnnamed704() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed682(core.Map<core.String, core.String> o) { +checkUnnamed704(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')); @@ -548,11 +629,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed680(); - o.properties = buildUnnamed681(); + o.jarFileUris = buildUnnamed702(); + o.properties = buildUnnamed703(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed682(); + o.scriptVariables = buildUnnamed704(); } buildCounterHiveJob--; return o; @@ -562,23 +643,23 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed680(o.jarFileUris); - checkUnnamed681(o.properties); + checkUnnamed702(o.jarFileUris); + checkUnnamed703(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed682(o.scriptVariables); + checkUnnamed704(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed683() { +buildUnnamed705() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed683(core.List<core.String> o) { +checkUnnamed705(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -591,7 +672,7 @@ if (buildCounterInstanceGroupConfig < 3) { o.diskConfig = buildDiskConfig(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed683(); + o.instanceNames = buildUnnamed705(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfig = buildManagedGroupConfig(); @@ -606,7 +687,7 @@ if (buildCounterInstanceGroupConfig < 3) { checkDiskConfig(o.diskConfig); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed683(o.instanceNames); + checkUnnamed705(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfig(o.managedGroupConfig); @@ -615,19 +696,45 @@ buildCounterInstanceGroupConfig--; } -buildUnnamed684() { +buildUnnamed706() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed707() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed684(core.List<api.JobStatus> o) { +checkUnnamed707(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } +buildUnnamed708() { + var o = new core.List<api.YarnApplication>(); + o.add(buildYarnApplication()); + o.add(buildYarnApplication()); + return o; +} + +checkUnnamed708(core.List<api.YarnApplication> o) { + unittest.expect(o, unittest.hasLength(2)); + checkYarnApplication(o[0]); + checkYarnApplication(o[1]); +} + core.int buildCounterJob = 0; buildJob() { var o = new api.Job(); @@ -637,6 +744,7 @@ o.driverOutputResourceUri = "foo"; o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); + o.labels = buildUnnamed706(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -644,7 +752,8 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed684(); + o.statusHistory = buildUnnamed707(); + o.yarnApplications = buildUnnamed708(); } buildCounterJob--; return o; @@ -657,6 +766,7 @@ unittest.expect(o.driverOutputResourceUri, unittest.equals('foo')); checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); + checkUnnamed706(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -664,7 +774,8 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed684(o.statusHistory); + checkUnnamed707(o.statusHistory); + checkUnnamed708(o.yarnApplications); } buildCounterJob--; } @@ -734,14 +845,14 @@ buildCounterJobStatus--; } -buildUnnamed685() { +buildUnnamed709() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed685(core.List<api.Cluster> o) { +checkUnnamed709(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -752,7 +863,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed685(); + o.clusters = buildUnnamed709(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -762,20 +873,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed685(o.clusters); + checkUnnamed709(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed686() { +buildUnnamed710() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed686(core.List<api.Job> o) { +checkUnnamed710(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -786,7 +897,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed686(); + o.jobs = buildUnnamed710(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -796,20 +907,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed686(o.jobs); + checkUnnamed710(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed687() { +buildUnnamed711() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed687(core.List<api.Operation> o) { +checkUnnamed711(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -821,7 +932,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed687(); + o.operations = buildUnnamed711(); } buildCounterListOperationsResponse--; return o; @@ -831,19 +942,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed687(o.operations); + checkUnnamed711(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed688() { +buildUnnamed712() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed688(core.Map<core.String, core.String> o) { +checkUnnamed712(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')); @@ -854,7 +965,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed688(); + o.driverLogLevels = buildUnnamed712(); } buildCounterLoggingConfig--; return o; @@ -863,7 +974,7 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed688(o.driverLogLevels); + checkUnnamed712(o.driverLogLevels); } buildCounterLoggingConfig--; } @@ -910,27 +1021,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed689() { +buildUnnamed713() { 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; } -checkUnnamed689(core.Map<core.String, core.Object> o) { +checkUnnamed713(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')); } -buildUnnamed690() { +buildUnnamed714() { 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; } -checkUnnamed690(core.Map<core.String, core.Object> o) { +checkUnnamed714(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')); @@ -943,9 +1054,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed689(); + o.metadata = buildUnnamed713(); o.name = "foo"; - o.response = buildUnnamed690(); + o.response = buildUnnamed714(); } buildCounterOperation--; return o; @@ -956,21 +1067,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed689(o.metadata); + checkUnnamed713(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed690(o.response); + checkUnnamed714(o.response); } buildCounterOperation--; } -buildUnnamed691() { +buildUnnamed715() { var o = new core.List<api.OperationStatus>(); o.add(buildOperationStatus()); o.add(buildOperationStatus()); return o; } -checkUnnamed691(core.List<api.OperationStatus> o) { +checkUnnamed715(core.List<api.OperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationStatus(o[0]); checkOperationStatus(o[1]); @@ -992,7 +1103,7 @@ o.startTime = "foo"; o.state = "foo"; o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed691(); + o.statusHistory = buildUnnamed715(); } buildCounterOperationMetadata--; return o; @@ -1012,7 +1123,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); checkOperationStatus(o.status); - checkUnnamed691(o.statusHistory); + checkUnnamed715(o.statusHistory); } buildCounterOperationMetadata--; } @@ -1042,40 +1153,40 @@ buildCounterOperationStatus--; } -buildUnnamed692() { +buildUnnamed716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed692(core.List<core.String> o) { +checkUnnamed716(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed693() { +buildUnnamed717() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed693(core.Map<core.String, core.String> o) { +checkUnnamed717(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')); } -buildUnnamed694() { +buildUnnamed718() { 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) { +checkUnnamed718(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')); @@ -1087,12 +1198,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed692(); + o.jarFileUris = buildUnnamed716(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed693(); + o.properties = buildUnnamed717(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed694(); + o.scriptVariables = buildUnnamed718(); } buildCounterPigJob--; return o; @@ -1102,89 +1213,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed692(o.jarFileUris); + checkUnnamed716(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed693(o.properties); + checkUnnamed717(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed694(o.scriptVariables); + checkUnnamed718(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed695() { +buildUnnamed719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed695(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')); } -buildUnnamed696() { +buildUnnamed720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed696(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')); } -buildUnnamed697() { +buildUnnamed721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed697(core.List<core.String> o) { +checkUnnamed721(core.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() { +buildUnnamed722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed698(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')); } -buildUnnamed699() { +buildUnnamed723() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed699(core.Map<core.String, core.String> o) { +checkUnnamed723(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')); } -buildUnnamed700() { +buildUnnamed724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed700(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')); @@ -1195,14 +1306,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed695(); - o.args = buildUnnamed696(); - o.fileUris = buildUnnamed697(); - o.jarFileUris = buildUnnamed698(); + o.archiveUris = buildUnnamed719(); + o.args = buildUnnamed720(); + o.fileUris = buildUnnamed721(); + o.jarFileUris = buildUnnamed722(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed699(); - o.pythonFileUris = buildUnnamed700(); + o.properties = buildUnnamed723(); + o.pythonFileUris = buildUnnamed724(); } buildCounterPySparkJob--; return o; @@ -1211,26 +1322,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed695(o.archiveUris); - checkUnnamed696(o.args); - checkUnnamed697(o.fileUris); - checkUnnamed698(o.jarFileUris); + checkUnnamed719(o.archiveUris); + checkUnnamed720(o.args); + checkUnnamed721(o.fileUris); + checkUnnamed722(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed699(o.properties); - checkUnnamed700(o.pythonFileUris); + checkUnnamed723(o.properties); + checkUnnamed724(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed701() { +buildUnnamed725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed701(core.List<core.String> o) { +checkUnnamed725(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1241,7 +1352,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed701(); + o.queries = buildUnnamed725(); } buildCounterQueryList--; return o; @@ -1250,19 +1361,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed701(o.queries); + checkUnnamed725(o.queries); } buildCounterQueryList--; } -buildUnnamed702() { +buildUnnamed726() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed702(core.Map<core.String, core.String> o) { +checkUnnamed726(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')); @@ -1274,7 +1385,7 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed702(); + o.properties = buildUnnamed726(); } buildCounterSoftwareConfig--; return o; @@ -1284,71 +1395,71 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed702(o.properties); + checkUnnamed726(o.properties); } buildCounterSoftwareConfig--; } -buildUnnamed703() { +buildUnnamed727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed703(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')); } -buildUnnamed704() { +buildUnnamed728() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed704(core.List<core.String> o) { +checkUnnamed728(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed705() { +buildUnnamed729() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed705(core.List<core.String> o) { +checkUnnamed729(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed706() { +buildUnnamed730() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed706(core.List<core.String> o) { +checkUnnamed730(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed707() { +buildUnnamed731() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed707(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')); @@ -1359,14 +1470,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed703(); - o.args = buildUnnamed704(); - o.fileUris = buildUnnamed705(); - o.jarFileUris = buildUnnamed706(); + o.archiveUris = buildUnnamed727(); + o.args = buildUnnamed728(); + o.fileUris = buildUnnamed729(); + o.jarFileUris = buildUnnamed730(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed707(); + o.properties = buildUnnamed731(); } buildCounterSparkJob--; return o; @@ -1375,52 +1486,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed703(o.archiveUris); - checkUnnamed704(o.args); - checkUnnamed705(o.fileUris); - checkUnnamed706(o.jarFileUris); + checkUnnamed727(o.archiveUris); + checkUnnamed728(o.args); + checkUnnamed729(o.fileUris); + checkUnnamed730(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed707(o.properties); + checkUnnamed731(o.properties); } buildCounterSparkJob--; } -buildUnnamed708() { +buildUnnamed732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed708(core.List<core.String> o) { +checkUnnamed732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed709() { +buildUnnamed733() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed709(core.Map<core.String, core.String> o) { +checkUnnamed733(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')); } -buildUnnamed710() { +buildUnnamed734() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed710(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')); @@ -1431,12 +1542,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed708(); + o.jarFileUris = buildUnnamed732(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed709(); + o.properties = buildUnnamed733(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed710(); + o.scriptVariables = buildUnnamed734(); } buildCounterSparkSqlJob--; return o; @@ -1445,40 +1556,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed708(o.jarFileUris); + checkUnnamed732(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed709(o.properties); + checkUnnamed733(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed710(o.scriptVariables); + checkUnnamed734(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed711() { +buildUnnamed735() { 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; } -checkUnnamed711(core.Map<core.String, core.Object> o) { +checkUnnamed735(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')); } -buildUnnamed712() { +buildUnnamed736() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed711()); - o.add(buildUnnamed711()); + o.add(buildUnnamed735()); + o.add(buildUnnamed735()); return o; } -checkUnnamed712(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed736(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed711(o[0]); - checkUnnamed711(o[1]); + checkUnnamed735(o[0]); + checkUnnamed735(o[1]); } core.int buildCounterStatus = 0; @@ -1487,7 +1598,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed712(); + o.details = buildUnnamed736(); o.message = "foo"; } buildCounterStatus--; @@ -1498,7 +1609,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed712(o.details); + checkUnnamed736(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1523,6 +1634,31 @@ buildCounterSubmitJobRequest--; } +core.int buildCounterYarnApplication = 0; +buildYarnApplication() { + var o = new api.YarnApplication(); + buildCounterYarnApplication++; + if (buildCounterYarnApplication < 3) { + o.name = "foo"; + o.progress = 42.0; + o.state = "foo"; + o.trackingUrl = "foo"; + } + buildCounterYarnApplication--; + return o; +} + +checkYarnApplication(api.YarnApplication o) { + buildCounterYarnApplication++; + if (buildCounterYarnApplication < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.progress, unittest.equals(42.0)); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.trackingUrl, unittest.equals('foo')); + } + buildCounterYarnApplication--; +} + main() { unittest.group("obj-schema-CancelJobRequest", () { @@ -1552,6 +1688,15 @@ }); + unittest.group("obj-schema-ClusterMetrics", () { + unittest.test("to-json--from-json", () { + var o = buildClusterMetrics(); + var od = new api.ClusterMetrics.fromJson(o.toJson()); + checkClusterMetrics(od); + }); + }); + + unittest.group("obj-schema-ClusterOperationMetadata", () { unittest.test("to-json--from-json", () { var o = buildClusterOperationMetadata(); @@ -1849,6 +1994,15 @@ }); + unittest.group("obj-schema-YarnApplication", () { + unittest.test("to-json--from-json", () { + var o = buildYarnApplication(); + var od = new api.YarnApplication.fromJson(o.toJson()); + checkYarnApplication(od); + }); + }); + + unittest.group("resource-ProjectsRegionsClustersResourceApi", () { unittest.test("method--create", () { @@ -2116,6 +2270,7 @@ api.ProjectsRegionsClustersResourceApi res = new api.DataprocApi(mock).projects.regions.clusters; var arg_projectId = "foo"; var arg_region = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -2158,6 +2313,7 @@ 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)); @@ -2168,7 +2324,7 @@ var resp = convert.JSON.encode(buildListClustersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { + res.list(arg_projectId, arg_region, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { checkListClustersResponse(response); }))); }); @@ -2453,6 +2609,7 @@ var arg_pageToken = "foo"; var arg_clusterName = "foo"; var arg_jobStateMatcher = "foo"; + var arg_filter = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2497,6 +2654,7 @@ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clusterName)); unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_jobStateMatcher)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2505,7 +2663,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, arg_region, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher, filter: arg_filter).then(unittest.expectAsync(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); });
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index 357d9eb..8bd0bb2 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); } -buildUnnamed778() { +buildUnnamed802() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed778(core.List<api.Key> o) { +checkUnnamed802(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 = buildUnnamed778(); + o.keys = buildUnnamed802(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed778(o.keys); + checkUnnamed802(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed779() { +buildUnnamed803() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed779(core.List<api.Key> o) { +checkUnnamed803(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 = buildUnnamed779(); + o.keys = buildUnnamed803(); } buildCounterAllocateIdsResponse--; return o; @@ -110,19 +110,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed779(o.keys); + checkUnnamed803(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed780() { +buildUnnamed804() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed780(core.List<api.Value> o) { +checkUnnamed804(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 = buildUnnamed780(); + o.values = buildUnnamed804(); } buildCounterArrayValue--; return o; @@ -142,7 +142,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed780(o.values); + checkUnnamed804(o.values); } buildCounterArrayValue--; } @@ -183,14 +183,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed781() { +buildUnnamed805() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed781(core.List<api.Mutation> o) { +checkUnnamed805(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 = buildUnnamed781(); + o.mutations = buildUnnamed805(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -213,20 +213,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed781(o.mutations); + checkUnnamed805(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed782() { +buildUnnamed806() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed782(core.List<api.MutationResult> o) { +checkUnnamed806(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 = buildUnnamed782(); + o.mutationResults = buildUnnamed806(); } buildCounterCommitResponse--; return o; @@ -248,19 +248,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed782(o.mutationResults); + checkUnnamed806(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed783() { +buildUnnamed807() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed783(core.List<api.Filter> o) { +checkUnnamed807(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 = buildUnnamed783(); + o.filters = buildUnnamed807(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -281,20 +281,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed783(o.filters); + checkUnnamed807(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed784() { +buildUnnamed808() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed784(core.Map<core.String, api.Value> o) { +checkUnnamed808(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 = buildUnnamed784(); + o.properties = buildUnnamed808(); } buildCounterEntity--; return o; @@ -316,7 +316,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed784(o.properties); + checkUnnamed808(o.properties); } buildCounterEntity--; } @@ -365,27 +365,27 @@ buildCounterFilter--; } -buildUnnamed785() { +buildUnnamed809() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed785(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed809(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed786() { +buildUnnamed810() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed786(core.List<api.GqlQueryParameter> o) { +checkUnnamed810(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 = buildUnnamed785(); - o.positionalBindings = buildUnnamed786(); + o.namedBindings = buildUnnamed809(); + o.positionalBindings = buildUnnamed810(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -409,8 +409,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed785(o.namedBindings); - checkUnnamed786(o.positionalBindings); + checkUnnamed809(o.namedBindings); + checkUnnamed810(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -437,14 +437,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed787() { +buildUnnamed811() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed787(core.List<api.PathElement> o) { +checkUnnamed811(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 = buildUnnamed787(); + o.path = buildUnnamed811(); } buildCounterKey--; return o; @@ -466,7 +466,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed787(o.path); + checkUnnamed811(o.path); } buildCounterKey--; } @@ -511,14 +511,14 @@ buildCounterLatLng--; } -buildUnnamed788() { +buildUnnamed812() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed788(core.List<api.Key> o) { +checkUnnamed812(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 = buildUnnamed788(); + o.keys = buildUnnamed812(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -539,46 +539,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed788(o.keys); + checkUnnamed812(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed789() { +buildUnnamed813() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed789(core.List<api.Key> o) { +checkUnnamed813(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed790() { +buildUnnamed814() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed790(core.List<api.EntityResult> o) { +checkUnnamed814(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed791() { +buildUnnamed815() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed791(core.List<api.EntityResult> o) { +checkUnnamed815(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 = buildUnnamed789(); - o.found = buildUnnamed790(); - o.missing = buildUnnamed791(); + o.deferred = buildUnnamed813(); + o.found = buildUnnamed814(); + o.missing = buildUnnamed815(); } buildCounterLookupResponse--; return o; @@ -600,9 +600,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed789(o.deferred); - checkUnnamed790(o.found); - checkUnnamed791(o.missing); + checkUnnamed813(o.deferred); + checkUnnamed814(o.found); + checkUnnamed815(o.missing); } buildCounterLookupResponse--; } @@ -783,53 +783,53 @@ buildCounterPropertyReference--; } -buildUnnamed792() { +buildUnnamed816() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed792(core.List<api.PropertyReference> o) { +checkUnnamed816(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed793() { +buildUnnamed817() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed793(core.List<api.KindExpression> o) { +checkUnnamed817(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed794() { +buildUnnamed818() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed794(core.List<api.PropertyOrder> o) { +checkUnnamed818(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed795() { +buildUnnamed819() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed795(core.List<api.Projection> o) { +checkUnnamed819(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 = buildUnnamed792(); + o.distinctOn = buildUnnamed816(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed793(); + o.kind = buildUnnamed817(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed794(); - o.projection = buildUnnamed795(); + o.order = buildUnnamed818(); + o.projection = buildUnnamed819(); o.startCursor = "foo"; } buildCounterQuery--; @@ -857,27 +857,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed792(o.distinctOn); + checkUnnamed816(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed793(o.kind); + checkUnnamed817(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed794(o.order); - checkUnnamed795(o.projection); + checkUnnamed818(o.order); + checkUnnamed819(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed796() { +buildUnnamed820() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed796(core.List<api.EntityResult> o) { +checkUnnamed820(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 = buildUnnamed796(); + o.entityResults = buildUnnamed820(); 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')); - checkUnnamed796(o.entityResults); + checkUnnamed820(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 bbad98f..29c261f 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -51,6 +51,116 @@ return new http.StreamedResponse(stream, status, headers: headers); } +buildUnnamed2172() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterAuditConfig = 0; +buildAuditConfig() { + var o = new api.AuditConfig(); + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + o.exemptedMembers = buildUnnamed2172(); + o.service = "foo"; + } + buildCounterAuditConfig--; + return o; +} + +checkAuditConfig(api.AuditConfig o) { + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + checkUnnamed2172(o.exemptedMembers); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterAuditConfig--; +} + +buildUnnamed2173() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2173(core.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 buildCounterBinding = 0; +buildBinding() { + var o = new api.Binding(); + buildCounterBinding++; + if (buildCounterBinding < 3) { + o.members = buildUnnamed2173(); + o.role = "foo"; + } + buildCounterBinding--; + return o; +} + +checkBinding(api.Binding o) { + buildCounterBinding++; + if (buildCounterBinding < 3) { + checkUnnamed2173(o.members); + unittest.expect(o.role, unittest.equals('foo')); + } + buildCounterBinding--; +} + +buildUnnamed2174() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterCondition = 0; +buildCondition() { + var o = new api.Condition(); + buildCounterCondition++; + if (buildCounterCondition < 3) { + o.iam = "foo"; + o.op = "foo"; + o.svc = "foo"; + o.sys = "foo"; + o.value = "foo"; + o.values = buildUnnamed2174(); + } + buildCounterCondition--; + return o; +} + +checkCondition(api.Condition o) { + buildCounterCondition++; + if (buildCounterCondition < 3) { + unittest.expect(o.iam, unittest.equals('foo')); + unittest.expect(o.op, unittest.equals('foo')); + unittest.expect(o.svc, unittest.equals('foo')); + unittest.expect(o.sys, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + checkUnnamed2174(o.values); + } + buildCounterCondition--; +} + core.int buildCounterConfigFile = 0; buildConfigFile() { var o = new api.ConfigFile(); @@ -70,14 +180,14 @@ buildCounterConfigFile--; } -buildUnnamed2408() { +buildUnnamed2175() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed2408(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed2175(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -92,7 +202,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed2408(); + o.labels = buildUnnamed2175(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -111,7 +221,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed2408(o.labels); + checkUnnamed2175(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -143,14 +253,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed2409() { +buildUnnamed2176() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed2409(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed2176(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -161,7 +271,7 @@ var o = new api.DeploymentUpdate(); buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { - o.labels = buildUnnamed2409(); + o.labels = buildUnnamed2176(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -171,7 +281,7 @@ checkDeploymentUpdate(api.DeploymentUpdate o) { buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { - checkUnnamed2409(o.labels); + checkUnnamed2176(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -217,14 +327,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed2410() { +buildUnnamed2177() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed2410(core.List<api.Deployment> o) { +checkUnnamed2177(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -235,7 +345,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed2410(); + o.deployments = buildUnnamed2177(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -245,7 +355,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed2410(o.deployments); + checkUnnamed2177(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -291,14 +401,54 @@ buildCounterImportFile--; } -buildUnnamed2411() { +core.int buildCounterLogConfig = 0; +buildLogConfig() { + var o = new api.LogConfig(); + buildCounterLogConfig++; + if (buildCounterLogConfig < 3) { + o.counter = buildLogConfigCounterOptions(); + } + buildCounterLogConfig--; + return o; +} + +checkLogConfig(api.LogConfig o) { + buildCounterLogConfig++; + if (buildCounterLogConfig < 3) { + checkLogConfigCounterOptions(o.counter); + } + buildCounterLogConfig--; +} + +core.int buildCounterLogConfigCounterOptions = 0; +buildLogConfigCounterOptions() { + var o = new api.LogConfigCounterOptions(); + buildCounterLogConfigCounterOptions++; + if (buildCounterLogConfigCounterOptions < 3) { + o.field = "foo"; + o.metric = "foo"; + } + buildCounterLogConfigCounterOptions--; + return o; +} + +checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { + buildCounterLogConfigCounterOptions++; + if (buildCounterLogConfigCounterOptions < 3) { + unittest.expect(o.field, unittest.equals('foo')); + unittest.expect(o.metric, unittest.equals('foo')); + } + buildCounterLogConfigCounterOptions--; +} + +buildUnnamed2178() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2411(core.List<api.ImportFile> o) { +checkUnnamed2178(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -312,7 +462,7 @@ o.config = buildConfigFile(); o.expandedConfig = "foo"; o.id = "foo"; - o.imports = buildUnnamed2411(); + o.imports = buildUnnamed2178(); o.insertTime = "foo"; o.layout = "foo"; o.name = "foo"; @@ -328,7 +478,7 @@ checkConfigFile(o.config); unittest.expect(o.expandedConfig, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2411(o.imports); + checkUnnamed2178(o.imports); unittest.expect(o.insertTime, unittest.equals('foo')); unittest.expect(o.layout, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -337,14 +487,14 @@ buildCounterManifest--; } -buildUnnamed2412() { +buildUnnamed2179() { var o = new core.List<api.Manifest>(); o.add(buildManifest()); o.add(buildManifest()); return o; } -checkUnnamed2412(core.List<api.Manifest> o) { +checkUnnamed2179(core.List<api.Manifest> o) { unittest.expect(o, unittest.hasLength(2)); checkManifest(o[0]); checkManifest(o[1]); @@ -355,7 +505,7 @@ var o = new api.ManifestsListResponse(); buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - o.manifests = buildUnnamed2412(); + o.manifests = buildUnnamed2179(); o.nextPageToken = "foo"; } buildCounterManifestsListResponse--; @@ -365,7 +515,7 @@ checkManifestsListResponse(api.ManifestsListResponse o) { buildCounterManifestsListResponse++; if (buildCounterManifestsListResponse < 3) { - checkUnnamed2412(o.manifests); + checkUnnamed2179(o.manifests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManifestsListResponse--; @@ -394,14 +544,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed2413() { +buildUnnamed2180() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed2413(core.List<api.OperationErrorErrors> o) { +checkUnnamed2180(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -412,7 +562,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed2413(); + o.errors = buildUnnamed2180(); } buildCounterOperationError--; return o; @@ -421,7 +571,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed2413(o.errors); + checkUnnamed2180(o.errors); } buildCounterOperationError--; } @@ -447,14 +597,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed2414() { +buildUnnamed2181() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed2414(core.List<api.OperationWarningsData> o) { +checkUnnamed2181(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -466,7 +616,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2414(); + o.data = buildUnnamed2181(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -477,20 +627,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2414(o.data); + checkUnnamed2181(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed2415() { +buildUnnamed2182() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed2415(core.List<api.OperationWarnings> o) { +checkUnnamed2182(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -522,7 +672,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed2415(); + o.warnings = buildUnnamed2182(); o.zone = "foo"; } buildCounterOperation--; @@ -553,20 +703,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed2415(o.warnings); + checkUnnamed2182(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed2416() { +buildUnnamed2183() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2416(core.List<api.Operation> o) { +checkUnnamed2183(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -578,7 +728,7 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2416(); + o.operations = buildUnnamed2183(); } buildCounterOperationsListResponse--; return o; @@ -588,11 +738,79 @@ buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2416(o.operations); + checkUnnamed2183(o.operations); } buildCounterOperationsListResponse--; } +buildUnnamed2184() { + var o = new core.List<api.AuditConfig>(); + o.add(buildAuditConfig()); + o.add(buildAuditConfig()); + return o; +} + +checkUnnamed2184(core.List<api.AuditConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditConfig(o[0]); + checkAuditConfig(o[1]); +} + +buildUnnamed2185() { + var o = new core.List<api.Binding>(); + o.add(buildBinding()); + o.add(buildBinding()); + return o; +} + +checkUnnamed2185(core.List<api.Binding> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBinding(o[0]); + checkBinding(o[1]); +} + +buildUnnamed2186() { + var o = new core.List<api.Rule>(); + o.add(buildRule()); + o.add(buildRule()); + return o; +} + +checkUnnamed2186(core.List<api.Rule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRule(o[0]); + checkRule(o[1]); +} + +core.int buildCounterPolicy = 0; +buildPolicy() { + var o = new api.Policy(); + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + o.auditConfigs = buildUnnamed2184(); + o.bindings = buildUnnamed2185(); + o.etag = "foo"; + o.iamOwned = true; + o.rules = buildUnnamed2186(); + o.version = 42; + } + buildCounterPolicy--; + return o; +} + +checkPolicy(api.Policy o) { + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + checkUnnamed2184(o.auditConfigs); + checkUnnamed2185(o.bindings); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.iamOwned, unittest.isTrue); + checkUnnamed2186(o.rules); + unittest.expect(o.version, unittest.equals(42)); + } + buildCounterPolicy--; +} + core.int buildCounterResourceWarningsData = 0; buildResourceWarningsData() { var o = new api.ResourceWarningsData(); @@ -614,14 +832,14 @@ buildCounterResourceWarningsData--; } -buildUnnamed2417() { +buildUnnamed2187() { var o = new core.List<api.ResourceWarningsData>(); o.add(buildResourceWarningsData()); o.add(buildResourceWarningsData()); return o; } -checkUnnamed2417(core.List<api.ResourceWarningsData> o) { +checkUnnamed2187(core.List<api.ResourceWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarningsData(o[0]); checkResourceWarningsData(o[1]); @@ -633,7 +851,7 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2417(); + o.data = buildUnnamed2187(); o.message = "foo"; } buildCounterResourceWarnings--; @@ -644,20 +862,20 @@ buildCounterResourceWarnings++; if (buildCounterResourceWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2417(o.data); + checkUnnamed2187(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceWarnings--; } -buildUnnamed2418() { +buildUnnamed2188() { var o = new core.List<api.ResourceWarnings>(); o.add(buildResourceWarnings()); o.add(buildResourceWarnings()); return o; } -checkUnnamed2418(core.List<api.ResourceWarnings> o) { +checkUnnamed2188(core.List<api.ResourceWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceWarnings(o[0]); checkResourceWarnings(o[1]); @@ -668,6 +886,7 @@ var o = new api.Resource(); buildCounterResource++; if (buildCounterResource < 3) { + o.accessControl = buildResourceAccessControl(); o.finalProperties = "foo"; o.id = "foo"; o.insertTime = "foo"; @@ -678,7 +897,7 @@ o.update = buildResourceUpdate(); o.updateTime = "foo"; o.url = "foo"; - o.warnings = buildUnnamed2418(); + o.warnings = buildUnnamed2188(); } buildCounterResource--; return o; @@ -687,6 +906,7 @@ checkResource(api.Resource o) { buildCounterResource++; if (buildCounterResource < 3) { + checkResourceAccessControl(o.accessControl); unittest.expect(o.finalProperties, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); @@ -697,11 +917,30 @@ checkResourceUpdate(o.update); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); - checkUnnamed2418(o.warnings); + checkUnnamed2188(o.warnings); } buildCounterResource--; } +core.int buildCounterResourceAccessControl = 0; +buildResourceAccessControl() { + var o = new api.ResourceAccessControl(); + buildCounterResourceAccessControl++; + if (buildCounterResourceAccessControl < 3) { + o.gcpIamPolicy = "foo"; + } + buildCounterResourceAccessControl--; + return o; +} + +checkResourceAccessControl(api.ResourceAccessControl o) { + buildCounterResourceAccessControl++; + if (buildCounterResourceAccessControl < 3) { + unittest.expect(o.gcpIamPolicy, unittest.equals('foo')); + } + buildCounterResourceAccessControl--; +} + core.int buildCounterResourceUpdateErrorErrors = 0; buildResourceUpdateErrorErrors() { var o = new api.ResourceUpdateErrorErrors(); @@ -725,14 +964,14 @@ buildCounterResourceUpdateErrorErrors--; } -buildUnnamed2419() { +buildUnnamed2189() { var o = new core.List<api.ResourceUpdateErrorErrors>(); o.add(buildResourceUpdateErrorErrors()); o.add(buildResourceUpdateErrorErrors()); return o; } -checkUnnamed2419(core.List<api.ResourceUpdateErrorErrors> o) { +checkUnnamed2189(core.List<api.ResourceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateErrorErrors(o[0]); checkResourceUpdateErrorErrors(o[1]); @@ -743,7 +982,7 @@ var o = new api.ResourceUpdateError(); buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - o.errors = buildUnnamed2419(); + o.errors = buildUnnamed2189(); } buildCounterResourceUpdateError--; return o; @@ -752,7 +991,7 @@ checkResourceUpdateError(api.ResourceUpdateError o) { buildCounterResourceUpdateError++; if (buildCounterResourceUpdateError < 3) { - checkUnnamed2419(o.errors); + checkUnnamed2189(o.errors); } buildCounterResourceUpdateError--; } @@ -778,14 +1017,14 @@ buildCounterResourceUpdateWarningsData--; } -buildUnnamed2420() { +buildUnnamed2190() { var o = new core.List<api.ResourceUpdateWarningsData>(); o.add(buildResourceUpdateWarningsData()); o.add(buildResourceUpdateWarningsData()); return o; } -checkUnnamed2420(core.List<api.ResourceUpdateWarningsData> o) { +checkUnnamed2190(core.List<api.ResourceUpdateWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarningsData(o[0]); checkResourceUpdateWarningsData(o[1]); @@ -797,7 +1036,7 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2420(); + o.data = buildUnnamed2190(); o.message = "foo"; } buildCounterResourceUpdateWarnings--; @@ -808,20 +1047,20 @@ buildCounterResourceUpdateWarnings++; if (buildCounterResourceUpdateWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2420(o.data); + checkUnnamed2190(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourceUpdateWarnings--; } -buildUnnamed2421() { +buildUnnamed2191() { var o = new core.List<api.ResourceUpdateWarnings>(); o.add(buildResourceUpdateWarnings()); o.add(buildResourceUpdateWarnings()); return o; } -checkUnnamed2421(core.List<api.ResourceUpdateWarnings> o) { +checkUnnamed2191(core.List<api.ResourceUpdateWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceUpdateWarnings(o[0]); checkResourceUpdateWarnings(o[1]); @@ -832,13 +1071,14 @@ var o = new api.ResourceUpdate(); buildCounterResourceUpdate++; if (buildCounterResourceUpdate < 3) { + o.accessControl = buildResourceAccessControl(); o.error = buildResourceUpdateError(); o.finalProperties = "foo"; o.intent = "foo"; o.manifest = "foo"; o.properties = "foo"; o.state = "foo"; - o.warnings = buildUnnamed2421(); + o.warnings = buildUnnamed2191(); } buildCounterResourceUpdate--; return o; @@ -847,25 +1087,26 @@ checkResourceUpdate(api.ResourceUpdate o) { buildCounterResourceUpdate++; if (buildCounterResourceUpdate < 3) { + checkResourceAccessControl(o.accessControl); checkResourceUpdateError(o.error); unittest.expect(o.finalProperties, unittest.equals('foo')); unittest.expect(o.intent, unittest.equals('foo')); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.properties, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2421(o.warnings); + checkUnnamed2191(o.warnings); } buildCounterResourceUpdate--; } -buildUnnamed2422() { +buildUnnamed2192() { var o = new core.List<api.Resource>(); o.add(buildResource()); o.add(buildResource()); return o; } -checkUnnamed2422(core.List<api.Resource> o) { +checkUnnamed2192(core.List<api.Resource> o) { unittest.expect(o, unittest.hasLength(2)); checkResource(o[0]); checkResource(o[1]); @@ -877,7 +1118,7 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { o.nextPageToken = "foo"; - o.resources = buildUnnamed2422(); + o.resources = buildUnnamed2192(); } buildCounterResourcesListResponse--; return o; @@ -887,19 +1128,115 @@ buildCounterResourcesListResponse++; if (buildCounterResourcesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2422(o.resources); + checkUnnamed2192(o.resources); } buildCounterResourcesListResponse--; } -buildUnnamed2423() { +buildUnnamed2193() { + var o = new core.List<api.Condition>(); + o.add(buildCondition()); + o.add(buildCondition()); + return o; +} + +checkUnnamed2193(core.List<api.Condition> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCondition(o[0]); + checkCondition(o[1]); +} + +buildUnnamed2194() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2194(core.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() { + var o = new core.List<api.LogConfig>(); + o.add(buildLogConfig()); + o.add(buildLogConfig()); + return o; +} + +checkUnnamed2195(core.List<api.LogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogConfig(o[0]); + checkLogConfig(o[1]); +} + +buildUnnamed2196() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2196(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2197(core.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 buildCounterRule = 0; +buildRule() { + var o = new api.Rule(); + buildCounterRule++; + if (buildCounterRule < 3) { + o.action = "foo"; + o.conditions = buildUnnamed2193(); + o.description = "foo"; + o.ins = buildUnnamed2194(); + o.logConfigs = buildUnnamed2195(); + o.notIns = buildUnnamed2196(); + o.permissions = buildUnnamed2197(); + } + buildCounterRule--; + return o; +} + +checkRule(api.Rule o) { + buildCounterRule++; + if (buildCounterRule < 3) { + unittest.expect(o.action, unittest.equals('foo')); + checkUnnamed2193(o.conditions); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed2194(o.ins); + checkUnnamed2195(o.logConfigs); + checkUnnamed2196(o.notIns); + checkUnnamed2197(o.permissions); + } + buildCounterRule--; +} + +buildUnnamed2198() { var o = new core.List<api.ImportFile>(); o.add(buildImportFile()); o.add(buildImportFile()); return o; } -checkUnnamed2423(core.List<api.ImportFile> o) { +checkUnnamed2198(core.List<api.ImportFile> o) { unittest.expect(o, unittest.hasLength(2)); checkImportFile(o[0]); checkImportFile(o[1]); @@ -911,7 +1248,7 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { o.config = buildConfigFile(); - o.imports = buildUnnamed2423(); + o.imports = buildUnnamed2198(); } buildCounterTargetConfiguration--; return o; @@ -921,11 +1258,75 @@ buildCounterTargetConfiguration++; if (buildCounterTargetConfiguration < 3) { checkConfigFile(o.config); - checkUnnamed2423(o.imports); + checkUnnamed2198(o.imports); } buildCounterTargetConfiguration--; } +buildUnnamed2199() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2199(core.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 buildCounterTestPermissionsRequest = 0; +buildTestPermissionsRequest() { + var o = new api.TestPermissionsRequest(); + buildCounterTestPermissionsRequest++; + if (buildCounterTestPermissionsRequest < 3) { + o.permissions = buildUnnamed2199(); + } + buildCounterTestPermissionsRequest--; + return o; +} + +checkTestPermissionsRequest(api.TestPermissionsRequest o) { + buildCounterTestPermissionsRequest++; + if (buildCounterTestPermissionsRequest < 3) { + checkUnnamed2199(o.permissions); + } + buildCounterTestPermissionsRequest--; +} + +buildUnnamed2200() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2200(core.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 buildCounterTestPermissionsResponse = 0; +buildTestPermissionsResponse() { + var o = new api.TestPermissionsResponse(); + buildCounterTestPermissionsResponse++; + if (buildCounterTestPermissionsResponse < 3) { + o.permissions = buildUnnamed2200(); + } + buildCounterTestPermissionsResponse--; + return o; +} + +checkTestPermissionsResponse(api.TestPermissionsResponse o) { + buildCounterTestPermissionsResponse++; + if (buildCounterTestPermissionsResponse < 3) { + checkUnnamed2200(o.permissions); + } + buildCounterTestPermissionsResponse--; +} + core.int buildCounterType = 0; buildType() { var o = new api.Type(); @@ -953,14 +1354,14 @@ buildCounterType--; } -buildUnnamed2424() { +buildUnnamed2201() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2424(core.List<api.Type> o) { +checkUnnamed2201(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -972,7 +1373,7 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { o.nextPageToken = "foo"; - o.types = buildUnnamed2424(); + o.types = buildUnnamed2201(); } buildCounterTypesListResponse--; return o; @@ -982,13 +1383,40 @@ buildCounterTypesListResponse++; if (buildCounterTypesListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2424(o.types); + checkUnnamed2201(o.types); } buildCounterTypesListResponse--; } main() { + unittest.group("obj-schema-AuditConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAuditConfig(); + var od = new api.AuditConfig.fromJson(o.toJson()); + checkAuditConfig(od); + }); + }); + + + unittest.group("obj-schema-Binding", () { + unittest.test("to-json--from-json", () { + var o = buildBinding(); + var od = new api.Binding.fromJson(o.toJson()); + checkBinding(od); + }); + }); + + + unittest.group("obj-schema-Condition", () { + unittest.test("to-json--from-json", () { + var o = buildCondition(); + var od = new api.Condition.fromJson(o.toJson()); + checkCondition(od); + }); + }); + + unittest.group("obj-schema-ConfigFile", () { unittest.test("to-json--from-json", () { var o = buildConfigFile(); @@ -1070,6 +1498,24 @@ }); + unittest.group("obj-schema-LogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildLogConfig(); + var od = new api.LogConfig.fromJson(o.toJson()); + checkLogConfig(od); + }); + }); + + + unittest.group("obj-schema-LogConfigCounterOptions", () { + unittest.test("to-json--from-json", () { + var o = buildLogConfigCounterOptions(); + var od = new api.LogConfigCounterOptions.fromJson(o.toJson()); + checkLogConfigCounterOptions(od); + }); + }); + + unittest.group("obj-schema-Manifest", () { unittest.test("to-json--from-json", () { var o = buildManifest(); @@ -1142,6 +1588,15 @@ }); + unittest.group("obj-schema-Policy", () { + unittest.test("to-json--from-json", () { + var o = buildPolicy(); + var od = new api.Policy.fromJson(o.toJson()); + checkPolicy(od); + }); + }); + + unittest.group("obj-schema-ResourceWarningsData", () { unittest.test("to-json--from-json", () { var o = buildResourceWarningsData(); @@ -1169,6 +1624,15 @@ }); + unittest.group("obj-schema-ResourceAccessControl", () { + unittest.test("to-json--from-json", () { + var o = buildResourceAccessControl(); + var od = new api.ResourceAccessControl.fromJson(o.toJson()); + checkResourceAccessControl(od); + }); + }); + + unittest.group("obj-schema-ResourceUpdateErrorErrors", () { unittest.test("to-json--from-json", () { var o = buildResourceUpdateErrorErrors(); @@ -1223,6 +1687,15 @@ }); + unittest.group("obj-schema-Rule", () { + unittest.test("to-json--from-json", () { + var o = buildRule(); + var od = new api.Rule.fromJson(o.toJson()); + checkRule(od); + }); + }); + + unittest.group("obj-schema-TargetConfiguration", () { unittest.test("to-json--from-json", () { var o = buildTargetConfiguration(); @@ -1232,6 +1705,24 @@ }); + unittest.group("obj-schema-TestPermissionsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTestPermissionsRequest(); + var od = new api.TestPermissionsRequest.fromJson(o.toJson()); + checkTestPermissionsRequest(od); + }); + }); + + + unittest.group("obj-schema-TestPermissionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildTestPermissionsResponse(); + var od = new api.TestPermissionsResponse.fromJson(o.toJson()); + checkTestPermissionsResponse(od); + }); + }); + + unittest.group("obj-schema-Type", () { unittest.test("to-json--from-json", () { var o = buildType(); @@ -1384,6 +1875,49 @@ }))); }); + unittest.test("method--getIamPolicy", () { + + var mock = new HttpServerMock(); + api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; + var arg_project = "foo"; + var arg_resource = "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(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getIamPolicy(arg_project, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + unittest.test("method--insert", () { var mock = new HttpServerMock(); @@ -1439,6 +1973,7 @@ 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; @@ -1466,6 +2001,7 @@ } 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)); @@ -1475,7 +2011,7 @@ var resp = convert.JSON.encode(buildDeploymentsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DeploymentsListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DeploymentsListResponse response) { checkDeploymentsListResponse(response); }))); }); @@ -1533,6 +2069,53 @@ }))); }); + unittest.test("method--setIamPolicy", () { + + var mock = new HttpServerMock(); + api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; + var arg_request = buildPolicy(); + var arg_project = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Policy.fromJson(json); + checkPolicy(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(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setIamPolicy(arg_request, arg_project, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + unittest.test("method--stop", () { var mock = new HttpServerMock(); @@ -1580,6 +2163,53 @@ }))); }); + unittest.test("method--testIamPermissions", () { + + var mock = new HttpServerMock(); + api.DeploymentsResourceApi res = new api.DeploymentmanagerApi(mock).deployments; + var arg_request = buildTestPermissionsRequest(); + var arg_project = "foo"; + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TestPermissionsRequest.fromJson(json); + checkTestPermissionsRequest(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(buildTestPermissionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.testIamPermissions(arg_request, arg_project, arg_resource).then(unittest.expectAsync(((api.TestPermissionsResponse response) { + checkTestPermissionsResponse(response); + }))); + }); + unittest.test("method--update", () { var mock = new HttpServerMock(); @@ -1689,6 +2319,7 @@ var arg_deployment = "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; @@ -1716,6 +2347,7 @@ } 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)); @@ -1725,7 +2357,7 @@ var resp = convert.JSON.encode(buildManifestsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManifestsListResponse response) { + res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ManifestsListResponse response) { checkManifestsListResponse(response); }))); }); @@ -1784,6 +2416,7 @@ 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; @@ -1811,6 +2444,7 @@ } 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)); @@ -1820,7 +2454,7 @@ var resp = convert.JSON.encode(buildOperationsListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationsListResponse response) { checkOperationsListResponse(response); }))); }); @@ -1881,6 +2515,7 @@ var arg_deployment = "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; @@ -1908,6 +2543,7 @@ } 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)); @@ -1917,7 +2553,7 @@ var resp = convert.JSON.encode(buildResourcesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ResourcesListResponse response) { + res.list(arg_project, arg_deployment, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ResourcesListResponse response) { checkResourcesListResponse(response); }))); }); @@ -1933,6 +2569,7 @@ 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; @@ -1960,6 +2597,7 @@ } 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)); @@ -1969,7 +2607,7 @@ var resp = convert.JSON.encode(buildTypesListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response) { + res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TypesListResponse response) { checkTypesListResponse(response); }))); });
diff --git a/generated/googleapis/test/dfareporting/v2_2_test.dart b/generated/googleapis/test/dfareporting/v2_2_test.dart deleted file mode 100644 index 211b4b4..0000000 --- a/generated/googleapis/test/dfareporting/v2_2_test.dart +++ /dev/null
@@ -1,22742 +0,0 @@ -library googleapis.dfareporting.v2_2.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_2.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); -} - -buildUnnamed3042() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed3043() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -core.int buildCounterAccount = 0; -buildAccount() { - var o = new api.Account(); - buildCounterAccount++; - if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed3042(); - o.accountProfile = "foo"; - o.active = true; - o.activeAdsLimitTier = "foo"; - o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed3043(); - 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) { - checkUnnamed3042(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); - checkUnnamed3043(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--; -} - -buildUnnamed3044() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -core.int buildCounterAccountPermission = 0; -buildAccountPermission() { - var o = new api.AccountPermission(); - buildCounterAccountPermission++; - if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed3044(); - 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) { - checkUnnamed3044(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--; -} - -buildUnnamed3045() { - var o = new core.List<api.AccountPermissionGroup>(); - o.add(buildAccountPermissionGroup()); - o.add(buildAccountPermissionGroup()); - return o; -} - -checkUnnamed3045(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 = buildUnnamed3045(); - o.kind = "foo"; - } - buildCounterAccountPermissionGroupsListResponse--; - return o; -} - -checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { - buildCounterAccountPermissionGroupsListResponse++; - if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed3045(o.accountPermissionGroups); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAccountPermissionGroupsListResponse--; -} - -buildUnnamed3046() { - var o = new core.List<api.AccountPermission>(); - o.add(buildAccountPermission()); - o.add(buildAccountPermission()); - return o; -} - -checkUnnamed3046(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 = buildUnnamed3046(); - o.kind = "foo"; - } - buildCounterAccountPermissionsListResponse--; - return o; -} - -checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { - buildCounterAccountPermissionsListResponse++; - if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed3046(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--; -} - -buildUnnamed3047() { - var o = new core.List<api.AccountUserProfile>(); - o.add(buildAccountUserProfile()); - o.add(buildAccountUserProfile()); - return o; -} - -checkUnnamed3047(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 = buildUnnamed3047(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAccountUserProfilesListResponse--; - return o; -} - -checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { - buildCounterAccountUserProfilesListResponse++; - if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed3047(o.accountUserProfiles); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAccountUserProfilesListResponse--; -} - -buildUnnamed3048() { - var o = new core.List<api.Account>(); - o.add(buildAccount()); - o.add(buildAccount()); - return o; -} - -checkUnnamed3048(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 = buildUnnamed3048(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAccountsListResponse--; - return o; -} - -checkAccountsListResponse(api.AccountsListResponse o) { - buildCounterAccountsListResponse++; - if (buildCounterAccountsListResponse < 3) { - checkUnnamed3048(o.accounts); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAccountsListResponse--; -} - -buildUnnamed3049() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3049(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3050() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -core.int buildCounterActivities = 0; -buildActivities() { - var o = new api.Activities(); - buildCounterActivities++; - if (buildCounterActivities < 3) { - o.filters = buildUnnamed3049(); - o.kind = "foo"; - o.metricNames = buildUnnamed3050(); - } - buildCounterActivities--; - return o; -} - -checkActivities(api.Activities o) { - buildCounterActivities++; - if (buildCounterActivities < 3) { - checkUnnamed3049(o.filters); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3050(o.metricNames); - } - buildCounterActivities--; -} - -buildUnnamed3051() { - var o = new core.List<api.CreativeGroupAssignment>(); - o.add(buildCreativeGroupAssignment()); - o.add(buildCreativeGroupAssignment()); - return o; -} - -checkUnnamed3051(core.List<api.CreativeGroupAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroupAssignment(o[0]); - checkCreativeGroupAssignment(o[1]); -} - -buildUnnamed3052() { - var o = new core.List<api.EventTagOverride>(); - o.add(buildEventTagOverride()); - o.add(buildEventTagOverride()); - return o; -} - -checkUnnamed3052(core.List<api.EventTagOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTagOverride(o[0]); - checkEventTagOverride(o[1]); -} - -buildUnnamed3053() { - var o = new core.List<api.PlacementAssignment>(); - o.add(buildPlacementAssignment()); - o.add(buildPlacementAssignment()); - return o; -} - -checkUnnamed3053(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 = buildUnnamed3051(); - 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 = buildUnnamed3052(); - o.geoTargeting = buildGeoTargeting(); - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); - o.kind = "foo"; - o.lastModifiedInfo = buildLastModifiedInfo(); - o.name = "foo"; - o.placementAssignments = buildUnnamed3053(); - 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); - checkUnnamed3051(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"))); - checkUnnamed3052(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')); - checkUnnamed3053(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--; -} - -buildUnnamed3054() { - var o = new core.List<api.Ad>(); - o.add(buildAd()); - o.add(buildAd()); - return o; -} - -checkUnnamed3054(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 = buildUnnamed3054(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdsListResponse--; - return o; -} - -checkAdsListResponse(api.AdsListResponse o) { - buildCounterAdsListResponse++; - if (buildCounterAdsListResponse < 3) { - checkUnnamed3054(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--; -} - -buildUnnamed3055() { - var o = new core.List<api.AdvertiserGroup>(); - o.add(buildAdvertiserGroup()); - o.add(buildAdvertiserGroup()); - return o; -} - -checkUnnamed3055(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 = buildUnnamed3055(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdvertiserGroupsListResponse--; - return o; -} - -checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { - buildCounterAdvertiserGroupsListResponse++; - if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed3055(o.advertiserGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterAdvertiserGroupsListResponse--; -} - -buildUnnamed3056() { - var o = new core.List<api.Advertiser>(); - o.add(buildAdvertiser()); - o.add(buildAdvertiser()); - return o; -} - -checkUnnamed3056(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 = buildUnnamed3056(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterAdvertisersListResponse--; - return o; -} - -checkAdvertisersListResponse(api.AdvertisersListResponse o) { - buildCounterAdvertisersListResponse++; - if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed3056(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--; -} - -buildUnnamed3057() { - var o = new core.List<api.AudienceSegment>(); - o.add(buildAudienceSegment()); - o.add(buildAudienceSegment()); - return o; -} - -checkUnnamed3057(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 = buildUnnamed3057(); - o.id = "foo"; - o.name = "foo"; - } - buildCounterAudienceSegmentGroup--; - return o; -} - -checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { - buildCounterAudienceSegmentGroup++; - if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed3057(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--; -} - -buildUnnamed3058() { - var o = new core.List<api.Browser>(); - o.add(buildBrowser()); - o.add(buildBrowser()); - return o; -} - -checkUnnamed3058(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 = buildUnnamed3058(); - o.kind = "foo"; - } - buildCounterBrowsersListResponse--; - return o; -} - -checkBrowsersListResponse(api.BrowsersListResponse o) { - buildCounterBrowsersListResponse++; - if (buildCounterBrowsersListResponse < 3) { - checkUnnamed3058(o.browsers); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterBrowsersListResponse--; -} - -buildUnnamed3059() { - var o = new core.List<api.CreativeOptimizationConfiguration>(); - o.add(buildCreativeOptimizationConfiguration()); - o.add(buildCreativeOptimizationConfiguration()); - return o; -} - -checkUnnamed3059(core.List<api.CreativeOptimizationConfiguration> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeOptimizationConfiguration(o[0]); - checkCreativeOptimizationConfiguration(o[1]); -} - -buildUnnamed3060() { - var o = new core.List<api.AudienceSegmentGroup>(); - o.add(buildAudienceSegmentGroup()); - o.add(buildAudienceSegmentGroup()); - return o; -} - -checkUnnamed3060(core.List<api.AudienceSegmentGroup> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAudienceSegmentGroup(o[0]); - checkAudienceSegmentGroup(o[1]); -} - -buildUnnamed3061() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3061(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3062() { - var o = new core.List<api.EventTagOverride>(); - o.add(buildEventTagOverride()); - o.add(buildEventTagOverride()); - return o; -} - -checkUnnamed3062(core.List<api.EventTagOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEventTagOverride(o[0]); - checkEventTagOverride(o[1]); -} - -buildUnnamed3063() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3063(core.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 = buildUnnamed3059(); - o.advertiserGroupId = "foo"; - o.advertiserId = "foo"; - o.advertiserIdDimensionValue = buildDimensionValue(); - o.archived = true; - o.audienceSegmentGroups = buildUnnamed3060(); - o.billingInvoiceCode = "foo"; - o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); - o.comment = "foo"; - o.comscoreVceEnabled = true; - o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed3061(); - o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); - o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); - o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed3062(); - 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 = buildUnnamed3063(); - } - buildCounterCampaign--; - return o; -} - -checkCampaign(api.Campaign o) { - buildCounterCampaign++; - if (buildCounterCampaign < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3059(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); - checkUnnamed3060(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); - checkUnnamed3061(o.creativeGroupIds); - checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); - checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); - unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3062(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')); - checkUnnamed3063(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--; -} - -buildUnnamed3064() { - var o = new core.List<api.CampaignCreativeAssociation>(); - o.add(buildCampaignCreativeAssociation()); - o.add(buildCampaignCreativeAssociation()); - return o; -} - -checkUnnamed3064(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 = buildUnnamed3064(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCampaignCreativeAssociationsListResponse--; - return o; -} - -checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { - buildCounterCampaignCreativeAssociationsListResponse++; - if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed3064(o.campaignCreativeAssociations); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCampaignCreativeAssociationsListResponse--; -} - -buildUnnamed3065() { - var o = new core.List<api.Campaign>(); - o.add(buildCampaign()); - o.add(buildCampaign()); - return o; -} - -checkUnnamed3065(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 = buildUnnamed3065(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCampaignsListResponse--; - return o; -} - -checkCampaignsListResponse(api.CampaignsListResponse o) { - buildCounterCampaignsListResponse++; - if (buildCounterCampaignsListResponse < 3) { - checkUnnamed3065(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--; -} - -buildUnnamed3066() { - var o = new core.List<api.ChangeLog>(); - o.add(buildChangeLog()); - o.add(buildChangeLog()); - return o; -} - -checkUnnamed3066(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 = buildUnnamed3066(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterChangeLogsListResponse--; - return o; -} - -checkChangeLogsListResponse(api.ChangeLogsListResponse o) { - buildCounterChangeLogsListResponse++; - if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed3066(o.changeLogs); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterChangeLogsListResponse--; -} - -buildUnnamed3067() { - var o = new core.List<api.City>(); - o.add(buildCity()); - o.add(buildCity()); - return o; -} - -checkUnnamed3067(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 = buildUnnamed3067(); - o.kind = "foo"; - } - buildCounterCitiesListResponse--; - return o; -} - -checkCitiesListResponse(api.CitiesListResponse o) { - buildCounterCitiesListResponse++; - if (buildCounterCitiesListResponse < 3) { - checkUnnamed3067(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--; -} - -buildUnnamed3068() { - var o = new core.List<api.ConnectionType>(); - o.add(buildConnectionType()); - o.add(buildConnectionType()); - return o; -} - -checkUnnamed3068(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 = buildUnnamed3068(); - o.kind = "foo"; - } - buildCounterConnectionTypesListResponse--; - return o; -} - -checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { - buildCounterConnectionTypesListResponse++; - if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed3068(o.connectionTypes); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterConnectionTypesListResponse--; -} - -buildUnnamed3069() { - var o = new core.List<api.ContentCategory>(); - o.add(buildContentCategory()); - o.add(buildContentCategory()); - return o; -} - -checkUnnamed3069(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 = buildUnnamed3069(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterContentCategoriesListResponse--; - return o; -} - -checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { - buildCounterContentCategoriesListResponse++; - if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed3069(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--; -} - -buildUnnamed3070() { - var o = new core.List<api.Country>(); - o.add(buildCountry()); - o.add(buildCountry()); - return o; -} - -checkUnnamed3070(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 = buildUnnamed3070(); - o.kind = "foo"; - } - buildCounterCountriesListResponse--; - return o; -} - -checkCountriesListResponse(api.CountriesListResponse o) { - buildCounterCountriesListResponse++; - if (buildCounterCountriesListResponse < 3) { - checkUnnamed3070(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--; -} - -buildUnnamed3071() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3071(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3072() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3072(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3073() { - var o = new core.List<api.ClickTag>(); - o.add(buildClickTag()); - o.add(buildClickTag()); - return o; -} - -checkUnnamed3073(core.List<api.ClickTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClickTag(o[0]); - checkClickTag(o[1]); -} - -buildUnnamed3074() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3074(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3075() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3075(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3076() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed3076(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -buildUnnamed3077() { - var o = new core.List<api.CreativeAsset>(); - o.add(buildCreativeAsset()); - o.add(buildCreativeAsset()); - return o; -} - -checkUnnamed3077(core.List<api.CreativeAsset> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeAsset(o[0]); - checkCreativeAsset(o[1]); -} - -buildUnnamed3078() { - var o = new core.List<api.CreativeFieldAssignment>(); - o.add(buildCreativeFieldAssignment()); - o.add(buildCreativeFieldAssignment()); - return o; -} - -checkUnnamed3078(core.List<api.CreativeFieldAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeFieldAssignment(o[0]); - checkCreativeFieldAssignment(o[1]); -} - -buildUnnamed3079() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3079(core.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() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed3080(core.List<api.CreativeCustomEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeCustomEvent(o[0]); - checkCreativeCustomEvent(o[1]); -} - -buildUnnamed3081() { - var o = new core.List<api.ThirdPartyTrackingUrl>(); - o.add(buildThirdPartyTrackingUrl()); - o.add(buildThirdPartyTrackingUrl()); - return o; -} - -checkUnnamed3081(core.List<api.ThirdPartyTrackingUrl> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyTrackingUrl(o[0]); - checkThirdPartyTrackingUrl(o[1]); -} - -buildUnnamed3082() { - var o = new core.List<api.CreativeCustomEvent>(); - o.add(buildCreativeCustomEvent()); - o.add(buildCreativeCustomEvent()); - return o; -} - -checkUnnamed3082(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 = buildUnnamed3071(); - o.advertiserId = "foo"; - o.allowScriptAccess = true; - o.archived = true; - o.artworkType = "foo"; - o.authoringTool = "foo"; - o.autoAdvanceImages = true; - o.backgroundColor = "foo"; - o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed3072(); - o.backupImageReportingLabel = "foo"; - o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed3073(); - o.commercialId = "foo"; - o.companionCreatives = buildUnnamed3074(); - o.compatibility = buildUnnamed3075(); - o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed3076(); - o.creativeAssets = buildUnnamed3077(); - o.creativeFieldAssignments = buildUnnamed3078(); - o.customKeyValues = buildUnnamed3079(); - o.exitCustomEvents = buildUnnamed3080(); - 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 = buildUnnamed3081(); - o.timerCustomEvents = buildUnnamed3082(); - 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')); - checkUnnamed3071(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.authoringTool, unittest.equals('foo')); - unittest.expect(o.autoAdvanceImages, unittest.isTrue); - unittest.expect(o.backgroundColor, unittest.equals('foo')); - unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed3072(o.backupImageFeatures); - unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); - checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed3073(o.clickTags); - unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed3074(o.companionCreatives); - checkUnnamed3075(o.compatibility); - unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed3076(o.counterCustomEvents); - checkUnnamed3077(o.creativeAssets); - checkUnnamed3078(o.creativeFieldAssignments); - checkUnnamed3079(o.customKeyValues); - checkUnnamed3080(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')); - checkUnnamed3081(o.thirdPartyUrls); - checkUnnamed3082(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--; -} - -buildUnnamed3083() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3083(core.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 = buildUnnamed3083(); - 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)); - checkUnnamed3083(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--; -} - -buildUnnamed3084() { - var o = new core.List<api.ClickTag>(); - o.add(buildClickTag()); - o.add(buildClickTag()); - return o; -} - -checkUnnamed3084(core.List<api.ClickTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkClickTag(o[0]); - checkClickTag(o[1]); -} - -buildUnnamed3085() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3085(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3086(core.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 = buildUnnamed3084(); - o.detectedFeatures = buildUnnamed3085(); - o.kind = "foo"; - o.warnedValidationRules = buildUnnamed3086(); - } - buildCounterCreativeAssetMetadata--; - return o; -} - -checkCreativeAssetMetadata(api.CreativeAssetMetadata o) { - buildCounterCreativeAssetMetadata++; - if (buildCounterCreativeAssetMetadata < 3) { - checkCreativeAssetId(o.assetIdentifier); - checkUnnamed3084(o.clickTags); - checkUnnamed3085(o.detectedFeatures); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3086(o.warnedValidationRules); - } - buildCounterCreativeAssetMetadata--; -} - -buildUnnamed3087() { - var o = new core.List<api.CompanionClickThroughOverride>(); - o.add(buildCompanionClickThroughOverride()); - o.add(buildCompanionClickThroughOverride()); - return o; -} - -checkUnnamed3087(core.List<api.CompanionClickThroughOverride> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCompanionClickThroughOverride(o[0]); - checkCompanionClickThroughOverride(o[1]); -} - -buildUnnamed3088() { - var o = new core.List<api.CreativeGroupAssignment>(); - o.add(buildCreativeGroupAssignment()); - o.add(buildCreativeGroupAssignment()); - return o; -} - -checkUnnamed3088(core.List<api.CreativeGroupAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCreativeGroupAssignment(o[0]); - checkCreativeGroupAssignment(o[1]); -} - -buildUnnamed3089() { - var o = new core.List<api.RichMediaExitOverride>(); - o.add(buildRichMediaExitOverride()); - o.add(buildRichMediaExitOverride()); - return o; -} - -checkUnnamed3089(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 = buildUnnamed3087(); - o.creativeGroupAssignments = buildUnnamed3088(); - o.creativeId = "foo"; - o.creativeIdDimensionValue = buildDimensionValue(); - o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed3089(); - 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); - checkUnnamed3087(o.companionCreativeOverrides); - checkUnnamed3088(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"))); - checkUnnamed3089(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.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.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--; -} - -buildUnnamed3090() { - var o = new core.List<api.CreativeFieldValue>(); - o.add(buildCreativeFieldValue()); - o.add(buildCreativeFieldValue()); - return o; -} - -checkUnnamed3090(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 = buildUnnamed3090(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeFieldValuesListResponse--; - return o; -} - -checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { - buildCounterCreativeFieldValuesListResponse++; - if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed3090(o.creativeFieldValues); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeFieldValuesListResponse--; -} - -buildUnnamed3091() { - var o = new core.List<api.CreativeField>(); - o.add(buildCreativeField()); - o.add(buildCreativeField()); - return o; -} - -checkUnnamed3091(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 = buildUnnamed3091(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeFieldsListResponse--; - return o; -} - -checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { - buildCounterCreativeFieldsListResponse++; - if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed3091(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--; -} - -buildUnnamed3092() { - var o = new core.List<api.CreativeGroup>(); - o.add(buildCreativeGroup()); - o.add(buildCreativeGroup()); - return o; -} - -checkUnnamed3092(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 = buildUnnamed3092(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativeGroupsListResponse--; - return o; -} - -checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { - buildCounterCreativeGroupsListResponse++; - if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed3092(o.creativeGroups); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativeGroupsListResponse--; -} - -buildUnnamed3093() { - var o = new core.List<api.OptimizationActivity>(); - o.add(buildOptimizationActivity()); - o.add(buildOptimizationActivity()); - return o; -} - -checkUnnamed3093(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 = buildUnnamed3093(); - 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')); - checkUnnamed3093(o.optimizationActivitys); - unittest.expect(o.optimizationModel, unittest.equals('foo')); - } - buildCounterCreativeOptimizationConfiguration--; -} - -buildUnnamed3094() { - var o = new core.List<api.CreativeAssignment>(); - o.add(buildCreativeAssignment()); - o.add(buildCreativeAssignment()); - return o; -} - -checkUnnamed3094(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 = buildUnnamed3094(); - o.creativeOptimizationConfigurationId = "foo"; - o.type = "foo"; - o.weightCalculationStrategy = "foo"; - } - buildCounterCreativeRotation--; - return o; -} - -checkCreativeRotation(api.CreativeRotation o) { - buildCounterCreativeRotation++; - if (buildCounterCreativeRotation < 3) { - checkUnnamed3094(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--; -} - -buildUnnamed3095() { - var o = new core.List<api.Creative>(); - o.add(buildCreative()); - o.add(buildCreative()); - return o; -} - -checkUnnamed3095(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 = buildUnnamed3095(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterCreativesListResponse--; - return o; -} - -checkCreativesListResponse(api.CreativesListResponse o) { - buildCounterCreativesListResponse++; - if (buildCounterCreativesListResponse < 3) { - checkUnnamed3095(o.creatives); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterCreativesListResponse--; -} - -buildUnnamed3096() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3096(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3097() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3097(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3098() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3098(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3099() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3099(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 = buildUnnamed3096(); - o.dimensionFilters = buildUnnamed3097(); - o.kind = "foo"; - o.metrics = buildUnnamed3098(); - o.overlapMetrics = buildUnnamed3099(); - } - buildCounterCrossDimensionReachReportCompatibleFields--; - return o; -} - -checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { - buildCounterCrossDimensionReachReportCompatibleFields++; - if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed3096(o.breakdown); - checkUnnamed3097(o.dimensionFilters); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3098(o.metrics); - checkUnnamed3099(o.overlapMetrics); - } - buildCounterCrossDimensionReachReportCompatibleFields--; -} - -buildUnnamed3100() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3100(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 = buildUnnamed3100(); - o.kind = "foo"; - } - buildCounterCustomRichMediaEvents--; - return o; -} - -checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { - buildCounterCustomRichMediaEvents++; - if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed3100(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--; -} - -buildUnnamed3101() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3101(core.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() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed3102(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 = buildUnnamed3101(); - o.hoursOfDay = buildUnnamed3102(); - o.userLocalTime = true; - } - buildCounterDayPartTargeting--; - return o; -} - -checkDayPartTargeting(api.DayPartTargeting o) { - buildCounterDayPartTargeting++; - if (buildCounterDayPartTargeting < 3) { - checkUnnamed3101(o.daysOfWeek); - checkUnnamed3102(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--; -} - -buildUnnamed3103() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3103(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 = buildUnnamed3103(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDimensionValueList--; - return o; -} - -checkDimensionValueList(api.DimensionValueList o) { - buildCounterDimensionValueList++; - if (buildCounterDimensionValueList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3103(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDimensionValueList--; -} - -buildUnnamed3104() { - var o = new core.List<api.DimensionFilter>(); - o.add(buildDimensionFilter()); - o.add(buildDimensionFilter()); - return o; -} - -checkUnnamed3104(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 = buildUnnamed3104(); - 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"))); - checkUnnamed3104(o.filters); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - } - buildCounterDimensionValueRequest--; -} - -buildUnnamed3105() { - var o = new core.List<api.DirectorySiteContactAssignment>(); - o.add(buildDirectorySiteContactAssignment()); - o.add(buildDirectorySiteContactAssignment()); - return o; -} - -checkUnnamed3105(core.List<api.DirectorySiteContactAssignment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDirectorySiteContactAssignment(o[0]); - checkDirectorySiteContactAssignment(o[1]); -} - -buildUnnamed3106() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3106(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3107() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3107(core.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 = buildUnnamed3105(); - o.countryId = "foo"; - o.currencyId = "foo"; - o.description = "foo"; - o.id = "foo"; - o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed3106(); - o.interstitialTagFormats = buildUnnamed3107(); - 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); - checkUnnamed3105(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); - checkUnnamed3106(o.inpageTagFormats); - checkUnnamed3107(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--; -} - -buildUnnamed3108() { - var o = new core.List<api.DirectorySiteContact>(); - o.add(buildDirectorySiteContact()); - o.add(buildDirectorySiteContact()); - return o; -} - -checkUnnamed3108(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 = buildUnnamed3108(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDirectorySiteContactsListResponse--; - return o; -} - -checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { - buildCounterDirectorySiteContactsListResponse++; - if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed3108(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--; -} - -buildUnnamed3109() { - var o = new core.List<api.DirectorySite>(); - o.add(buildDirectorySite()); - o.add(buildDirectorySite()); - return o; -} - -checkUnnamed3109(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 = buildUnnamed3109(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterDirectorySitesListResponse--; - return o; -} - -checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { - buildCounterDirectorySitesListResponse++; - if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed3109(o.directorySites); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterDirectorySitesListResponse--; -} - -buildUnnamed3110() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3110(core.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 = buildUnnamed3110(); - 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')); - checkUnnamed3110(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--; -} - -buildUnnamed3111() { - var o = new core.List<api.EventTag>(); - o.add(buildEventTag()); - o.add(buildEventTag()); - return o; -} - -checkUnnamed3111(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 = buildUnnamed3111(); - o.kind = "foo"; - } - buildCounterEventTagsListResponse--; - return o; -} - -checkEventTagsListResponse(api.EventTagsListResponse o) { - buildCounterEventTagsListResponse++; - if (buildCounterEventTagsListResponse < 3) { - checkUnnamed3111(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--; -} - -buildUnnamed3112() { - var o = new core.List<api.File>(); - o.add(buildFile()); - o.add(buildFile()); - return o; -} - -checkUnnamed3112(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 = buildUnnamed3112(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFileList--; - return o; -} - -checkFileList(api.FileList o) { - buildCounterFileList++; - if (buildCounterFileList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3112(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--; -} - -buildUnnamed3113() { - var o = new core.List<api.FloodlightActivity>(); - o.add(buildFloodlightActivity()); - o.add(buildFloodlightActivity()); - return o; -} - -checkUnnamed3113(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 = buildUnnamed3113(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFloodlightActivitiesListResponse--; - return o; -} - -checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { - buildCounterFloodlightActivitiesListResponse++; - if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed3113(o.floodlightActivities); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterFloodlightActivitiesListResponse--; -} - -buildUnnamed3114() { - var o = new core.List<api.FloodlightActivityDynamicTag>(); - o.add(buildFloodlightActivityDynamicTag()); - o.add(buildFloodlightActivityDynamicTag()); - return o; -} - -checkUnnamed3114(core.List<api.FloodlightActivityDynamicTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityDynamicTag(o[0]); - checkFloodlightActivityDynamicTag(o[1]); -} - -buildUnnamed3115() { - var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); - o.add(buildFloodlightActivityPublisherDynamicTag()); - o.add(buildFloodlightActivityPublisherDynamicTag()); - return o; -} - -checkUnnamed3115(core.List<api.FloodlightActivityPublisherDynamicTag> o) { - unittest.expect(o, unittest.hasLength(2)); - checkFloodlightActivityPublisherDynamicTag(o[0]); - checkFloodlightActivityPublisherDynamicTag(o[1]); -} - -buildUnnamed3116() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3116(core.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 = buildUnnamed3114(); - 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 = buildUnnamed3115(); - o.secure = true; - o.sslCompliant = true; - o.sslRequired = true; - o.subaccountId = "foo"; - o.tagFormat = "foo"; - o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed3116(); - } - 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')); - checkUnnamed3114(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')); - checkUnnamed3115(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')); - checkUnnamed3116(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--; -} - -buildUnnamed3117() { - var o = new core.List<api.FloodlightActivityGroup>(); - o.add(buildFloodlightActivityGroup()); - o.add(buildFloodlightActivityGroup()); - return o; -} - -checkUnnamed3117(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 = buildUnnamed3117(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterFloodlightActivityGroupsListResponse--; - return o; -} - -checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { - buildCounterFloodlightActivityGroupsListResponse++; - if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed3117(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--; -} - -buildUnnamed3118() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3118(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3119() { - var o = new core.List<api.ThirdPartyAuthenticationToken>(); - o.add(buildThirdPartyAuthenticationToken()); - o.add(buildThirdPartyAuthenticationToken()); - return o; -} - -checkUnnamed3119(core.List<api.ThirdPartyAuthenticationToken> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyAuthenticationToken(o[0]); - checkThirdPartyAuthenticationToken(o[1]); -} - -buildUnnamed3120() { - var o = new core.List<api.UserDefinedVariableConfiguration>(); - o.add(buildUserDefinedVariableConfiguration()); - o.add(buildUserDefinedVariableConfiguration()); - return o; -} - -checkUnnamed3120(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.sslRequired = true; - o.standardVariableTypes = buildUnnamed3118(); - o.subaccountId = "foo"; - o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed3119(); - o.userDefinedVariableConfigurations = buildUnnamed3120(); - } - 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); - unittest.expect(o.sslRequired, unittest.isTrue); - checkUnnamed3118(o.standardVariableTypes); - unittest.expect(o.subaccountId, unittest.equals('foo')); - checkTagSettings(o.tagSettings); - checkUnnamed3119(o.thirdPartyAuthenticationTokens); - checkUnnamed3120(o.userDefinedVariableConfigurations); - } - buildCounterFloodlightConfiguration--; -} - -buildUnnamed3121() { - var o = new core.List<api.FloodlightConfiguration>(); - o.add(buildFloodlightConfiguration()); - o.add(buildFloodlightConfiguration()); - return o; -} - -checkUnnamed3121(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 = buildUnnamed3121(); - o.kind = "foo"; - } - buildCounterFloodlightConfigurationsListResponse--; - return o; -} - -checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { - buildCounterFloodlightConfigurationsListResponse++; - if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed3121(o.floodlightConfigurations); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterFloodlightConfigurationsListResponse--; -} - -buildUnnamed3122() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3122(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3123() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3123(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3124() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3124(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 = buildUnnamed3122(); - o.dimensions = buildUnnamed3123(); - o.kind = "foo"; - o.metrics = buildUnnamed3124(); - } - buildCounterFloodlightReportCompatibleFields--; - return o; -} - -checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { - buildCounterFloodlightReportCompatibleFields++; - if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed3122(o.dimensionFilters); - checkUnnamed3123(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3124(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--; -} - -buildUnnamed3125() { - var o = new core.List<api.City>(); - o.add(buildCity()); - o.add(buildCity()); - return o; -} - -checkUnnamed3125(core.List<api.City> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCity(o[0]); - checkCity(o[1]); -} - -buildUnnamed3126() { - var o = new core.List<api.Country>(); - o.add(buildCountry()); - o.add(buildCountry()); - return o; -} - -checkUnnamed3126(core.List<api.Country> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCountry(o[0]); - checkCountry(o[1]); -} - -buildUnnamed3127() { - var o = new core.List<api.Metro>(); - o.add(buildMetro()); - o.add(buildMetro()); - return o; -} - -checkUnnamed3127(core.List<api.Metro> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetro(o[0]); - checkMetro(o[1]); -} - -buildUnnamed3128() { - var o = new core.List<api.PostalCode>(); - o.add(buildPostalCode()); - o.add(buildPostalCode()); - return o; -} - -checkUnnamed3128(core.List<api.PostalCode> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPostalCode(o[0]); - checkPostalCode(o[1]); -} - -buildUnnamed3129() { - var o = new core.List<api.Region>(); - o.add(buildRegion()); - o.add(buildRegion()); - return o; -} - -checkUnnamed3129(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 = buildUnnamed3125(); - o.countries = buildUnnamed3126(); - o.excludeCountries = true; - o.metros = buildUnnamed3127(); - o.postalCodes = buildUnnamed3128(); - o.regions = buildUnnamed3129(); - } - buildCounterGeoTargeting--; - return o; -} - -checkGeoTargeting(api.GeoTargeting o) { - buildCounterGeoTargeting++; - if (buildCounterGeoTargeting < 3) { - checkUnnamed3125(o.cities); - checkUnnamed3126(o.countries); - unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed3127(o.metros); - checkUnnamed3128(o.postalCodes); - checkUnnamed3129(o.regions); - } - buildCounterGeoTargeting--; -} - -buildUnnamed3130() { - var o = new core.List<api.AdSlot>(); - o.add(buildAdSlot()); - o.add(buildAdSlot()); - return o; -} - -checkUnnamed3130(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 = buildUnnamed3130(); - 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"; - } - buildCounterInventoryItem--; - return o; -} - -checkInventoryItem(api.InventoryItem o) { - buildCounterInventoryItem++; - if (buildCounterInventoryItem < 3) { - unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3130(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')); - } - buildCounterInventoryItem--; -} - -buildUnnamed3131() { - var o = new core.List<api.InventoryItem>(); - o.add(buildInventoryItem()); - o.add(buildInventoryItem()); - return o; -} - -checkUnnamed3131(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 = buildUnnamed3131(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterInventoryItemsListResponse--; - return o; -} - -checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { - buildCounterInventoryItemsListResponse++; - if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed3131(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--; -} - -buildUnnamed3132() { - var o = new core.List<api.LandingPage>(); - o.add(buildLandingPage()); - o.add(buildLandingPage()); - return o; -} - -checkUnnamed3132(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 = buildUnnamed3132(); - } - buildCounterLandingPagesListResponse--; - return o; -} - -checkLandingPagesListResponse(api.LandingPagesListResponse o) { - buildCounterLandingPagesListResponse++; - if (buildCounterLandingPagesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3132(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--; -} - -buildUnnamed3133() { - var o = new core.List<api.ListPopulationTerm>(); - o.add(buildListPopulationTerm()); - o.add(buildListPopulationTerm()); - return o; -} - -checkUnnamed3133(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 = buildUnnamed3133(); - } - buildCounterListPopulationClause--; - return o; -} - -checkListPopulationClause(api.ListPopulationClause o) { - buildCounterListPopulationClause++; - if (buildCounterListPopulationClause < 3) { - checkUnnamed3133(o.terms); - } - buildCounterListPopulationClause--; -} - -buildUnnamed3134() { - var o = new core.List<api.ListPopulationClause>(); - o.add(buildListPopulationClause()); - o.add(buildListPopulationClause()); - return o; -} - -checkUnnamed3134(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 = buildUnnamed3134(); - } - 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')); - checkUnnamed3134(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--; -} - -buildUnnamed3135() { - var o = new core.List<api.Metro>(); - o.add(buildMetro()); - o.add(buildMetro()); - return o; -} - -checkUnnamed3135(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 = buildUnnamed3135(); - } - buildCounterMetrosListResponse--; - return o; -} - -checkMetrosListResponse(api.MetrosListResponse o) { - buildCounterMetrosListResponse++; - if (buildCounterMetrosListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3135(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--; -} - -buildUnnamed3136() { - var o = new core.List<api.MobileCarrier>(); - o.add(buildMobileCarrier()); - o.add(buildMobileCarrier()); - return o; -} - -checkUnnamed3136(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 = buildUnnamed3136(); - } - buildCounterMobileCarriersListResponse--; - return o; -} - -checkMobileCarriersListResponse(api.MobileCarriersListResponse o) { - buildCounterMobileCarriersListResponse++; - if (buildCounterMobileCarriersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3136(o.mobileCarriers); - } - buildCounterMobileCarriersListResponse--; -} - -buildUnnamed3137() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3137(core.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 = buildUnnamed3137(); - o.status = "foo"; - } - buildCounterObjectFilter--; - return o; -} - -checkObjectFilter(api.ObjectFilter o) { - buildCounterObjectFilter++; - if (buildCounterObjectFilter < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3137(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--; -} - -buildUnnamed3138() { - var o = new core.List<api.OperatingSystemVersion>(); - o.add(buildOperatingSystemVersion()); - o.add(buildOperatingSystemVersion()); - return o; -} - -checkUnnamed3138(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 = buildUnnamed3138(); - } - buildCounterOperatingSystemVersionsListResponse--; - return o; -} - -checkOperatingSystemVersionsListResponse(api.OperatingSystemVersionsListResponse o) { - buildCounterOperatingSystemVersionsListResponse++; - if (buildCounterOperatingSystemVersionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3138(o.operatingSystemVersions); - } - buildCounterOperatingSystemVersionsListResponse--; -} - -buildUnnamed3139() { - var o = new core.List<api.OperatingSystem>(); - o.add(buildOperatingSystem()); - o.add(buildOperatingSystem()); - return o; -} - -checkUnnamed3139(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 = buildUnnamed3139(); - } - buildCounterOperatingSystemsListResponse--; - return o; -} - -checkOperatingSystemsListResponse(api.OperatingSystemsListResponse o) { - buildCounterOperatingSystemsListResponse++; - if (buildCounterOperatingSystemsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3139(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--; -} - -buildUnnamed3140() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3140(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3141() { - var o = new core.List<api.OrderContact>(); - o.add(buildOrderContact()); - o.add(buildOrderContact()); - return o; -} - -checkUnnamed3141(core.List<api.OrderContact> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOrderContact(o[0]); - checkOrderContact(o[1]); -} - -buildUnnamed3142() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3142(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3143() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3143(core.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 = buildUnnamed3140(); - o.buyerInvoiceId = "foo"; - o.buyerOrganizationName = "foo"; - o.comments = "foo"; - o.contacts = buildUnnamed3141(); - 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 = buildUnnamed3142(); - o.siteNames = buildUnnamed3143(); - 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')); - checkUnnamed3140(o.approverUserProfileIds); - unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); - unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); - unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed3141(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')); - checkUnnamed3142(o.siteId); - checkUnnamed3143(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--; -} - -buildUnnamed3144() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3144(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3145() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3145(core.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 = buildUnnamed3144(); - o.cancelled = true; - o.createdInfo = buildLastModifiedInfo(); - o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.id = "foo"; - o.kind = "foo"; - o.lastSentRecipients = buildUnnamed3145(); - 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')); - checkUnnamed3144(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')); - checkUnnamed3145(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--; -} - -buildUnnamed3146() { - var o = new core.List<api.OrderDocument>(); - o.add(buildOrderDocument()); - o.add(buildOrderDocument()); - return o; -} - -checkUnnamed3146(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 = buildUnnamed3146(); - } - 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')); - checkUnnamed3146(o.orderDocuments); - } - buildCounterOrderDocumentsListResponse--; -} - -buildUnnamed3147() { - var o = new core.List<api.Order>(); - o.add(buildOrder()); - o.add(buildOrder()); - return o; -} - -checkUnnamed3147(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 = buildUnnamed3147(); - } - 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')); - checkUnnamed3147(o.orders); - } - buildCounterOrdersListResponse--; -} - -buildUnnamed3148() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3148(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3149() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3149(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3150() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3150(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3151() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3151(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 = buildUnnamed3148(); - o.customFloodlightVariables = buildUnnamed3149(); - o.kind = "foo"; - o.metrics = buildUnnamed3150(); - o.perInteractionDimensions = buildUnnamed3151(); - } - buildCounterPathToConversionReportCompatibleFields--; - return o; -} - -checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { - buildCounterPathToConversionReportCompatibleFields++; - if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed3148(o.conversionDimensions); - checkUnnamed3149(o.customFloodlightVariables); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3150(o.metrics); - checkUnnamed3151(o.perInteractionDimensions); - } - buildCounterPathToConversionReportCompatibleFields--; -} - -buildUnnamed3152() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3152(core.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 = buildUnnamed3152(); - 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')); - checkUnnamed3152(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--; -} - -buildUnnamed3153() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3153(core.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 = buildUnnamed3153(); - 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); - checkUnnamed3153(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--; -} - -buildUnnamed3154() { - var o = new core.List<api.PlacementGroup>(); - o.add(buildPlacementGroup()); - o.add(buildPlacementGroup()); - return o; -} - -checkUnnamed3154(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 = buildUnnamed3154(); - } - 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')); - checkUnnamed3154(o.placementGroups); - } - buildCounterPlacementGroupsListResponse--; -} - -buildUnnamed3155() { - var o = new core.List<api.PlacementStrategy>(); - o.add(buildPlacementStrategy()); - o.add(buildPlacementStrategy()); - return o; -} - -checkUnnamed3155(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 = buildUnnamed3155(); - } - 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')); - checkUnnamed3155(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--; -} - -buildUnnamed3156() { - var o = new core.List<api.TagData>(); - o.add(buildTagData()); - o.add(buildTagData()); - return o; -} - -checkUnnamed3156(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 = buildUnnamed3156(); - } - buildCounterPlacementTag--; - return o; -} - -checkPlacementTag(api.PlacementTag o) { - buildCounterPlacementTag++; - if (buildCounterPlacementTag < 3) { - unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed3156(o.tagDatas); - } - buildCounterPlacementTag--; -} - -buildUnnamed3157() { - var o = new core.List<api.PlacementTag>(); - o.add(buildPlacementTag()); - o.add(buildPlacementTag()); - return o; -} - -checkUnnamed3157(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 = buildUnnamed3157(); - } - buildCounterPlacementsGenerateTagsResponse--; - return o; -} - -checkPlacementsGenerateTagsResponse(api.PlacementsGenerateTagsResponse o) { - buildCounterPlacementsGenerateTagsResponse++; - if (buildCounterPlacementsGenerateTagsResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3157(o.placementTags); - } - buildCounterPlacementsGenerateTagsResponse--; -} - -buildUnnamed3158() { - var o = new core.List<api.Placement>(); - o.add(buildPlacement()); - o.add(buildPlacement()); - return o; -} - -checkUnnamed3158(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 = buildUnnamed3158(); - } - 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')); - checkUnnamed3158(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--; -} - -buildUnnamed3159() { - var o = new core.List<api.PlatformType>(); - o.add(buildPlatformType()); - o.add(buildPlatformType()); - return o; -} - -checkUnnamed3159(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 = buildUnnamed3159(); - } - buildCounterPlatformTypesListResponse--; - return o; -} - -checkPlatformTypesListResponse(api.PlatformTypesListResponse o) { - buildCounterPlatformTypesListResponse++; - if (buildCounterPlatformTypesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3159(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--; -} - -buildUnnamed3160() { - var o = new core.List<api.PostalCode>(); - o.add(buildPostalCode()); - o.add(buildPostalCode()); - return o; -} - -checkUnnamed3160(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 = buildUnnamed3160(); - } - buildCounterPostalCodesListResponse--; - return o; -} - -checkPostalCodesListResponse(api.PostalCodesListResponse o) { - buildCounterPostalCodesListResponse++; - if (buildCounterPostalCodesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3160(o.postalCodes); - } - buildCounterPostalCodesListResponse--; -} - -buildUnnamed3161() { - var o = new core.List<api.Flight>(); - o.add(buildFlight()); - o.add(buildFlight()); - return o; -} - -checkUnnamed3161(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 = buildUnnamed3161(); - 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"))); - checkUnnamed3161(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--; -} - -buildUnnamed3162() { - var o = new core.List<api.PricingSchedulePricingPeriod>(); - o.add(buildPricingSchedulePricingPeriod()); - o.add(buildPricingSchedulePricingPeriod()); - return o; -} - -checkUnnamed3162(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 = buildUnnamed3162(); - 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')); - checkUnnamed3162(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--; -} - -buildUnnamed3163() { - var o = new core.List<api.Project>(); - o.add(buildProject()); - o.add(buildProject()); - return o; -} - -checkUnnamed3163(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 = buildUnnamed3163(); - } - 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')); - checkUnnamed3163(o.projects); - } - buildCounterProjectsListResponse--; -} - -buildUnnamed3164() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3164(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3165() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3165(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3166() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3166(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3167() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3167(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3168() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3168(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 = buildUnnamed3164(); - o.dimensions = buildUnnamed3165(); - o.kind = "foo"; - o.metrics = buildUnnamed3166(); - o.pivotedActivityMetrics = buildUnnamed3167(); - o.reachByFrequencyMetrics = buildUnnamed3168(); - } - buildCounterReachReportCompatibleFields--; - return o; -} - -checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { - buildCounterReachReportCompatibleFields++; - if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed3164(o.dimensionFilters); - checkUnnamed3165(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3166(o.metrics); - checkUnnamed3167(o.pivotedActivityMetrics); - checkUnnamed3168(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--; -} - -buildUnnamed3169() { - var o = new core.List<api.Region>(); - o.add(buildRegion()); - o.add(buildRegion()); - return o; -} - -checkUnnamed3169(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 = buildUnnamed3169(); - } - buildCounterRegionsListResponse--; - return o; -} - -checkRegionsListResponse(api.RegionsListResponse o) { - buildCounterRegionsListResponse++; - if (buildCounterRegionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3169(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--; -} - -buildUnnamed3170() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3170(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3171() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3171(core.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 = buildUnnamed3170(); - o.sharedAdvertiserIds = buildUnnamed3171(); - } - 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')); - checkUnnamed3170(o.sharedAccountIds); - checkUnnamed3171(o.sharedAdvertiserIds); - } - buildCounterRemarketingListShare--; -} - -buildUnnamed3172() { - var o = new core.List<api.RemarketingList>(); - o.add(buildRemarketingList()); - o.add(buildRemarketingList()); - return o; -} - -checkUnnamed3172(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 = buildUnnamed3172(); - } - 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')); - checkUnnamed3172(o.remarketingLists); - } - buildCounterRemarketingListsListResponse--; -} - -buildUnnamed3173() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3173(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3174() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3174(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3175() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3175(core.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 = buildUnnamed3173(); - o.dimensions = buildUnnamed3174(); - o.metricNames = buildUnnamed3175(); - } - buildCounterReportCriteria--; - return o; -} - -checkReportCriteria(api.ReportCriteria o) { - buildCounterReportCriteria++; - if (buildCounterReportCriteria < 3) { - checkActivities(o.activities); - checkCustomRichMediaEvents(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed3173(o.dimensionFilters); - checkUnnamed3174(o.dimensions); - checkUnnamed3175(o.metricNames); - } - buildCounterReportCriteria--; -} - -buildUnnamed3176() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3176(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3177() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3177(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3178() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3178(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3179() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3179(core.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 = buildUnnamed3176(); - o.dateRange = buildDateRange(); - o.dimension = "foo"; - o.dimensionFilters = buildUnnamed3177(); - o.metricNames = buildUnnamed3178(); - o.overlapMetricNames = buildUnnamed3179(); - o.pivoted = true; - } - buildCounterReportCrossDimensionReachCriteria--; - return o; -} - -checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { - buildCounterReportCrossDimensionReachCriteria++; - if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed3176(o.breakdown); - checkDateRange(o.dateRange); - unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed3177(o.dimensionFilters); - checkUnnamed3178(o.metricNames); - checkUnnamed3179(o.overlapMetricNames); - unittest.expect(o.pivoted, unittest.isTrue); - } - buildCounterReportCrossDimensionReachCriteria--; -} - -buildUnnamed3180() { - var o = new core.List<api.Recipient>(); - o.add(buildRecipient()); - o.add(buildRecipient()); - return o; -} - -checkUnnamed3180(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 = buildUnnamed3180(); - } - 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')); - checkUnnamed3180(o.recipients); - } - buildCounterReportDelivery--; -} - -buildUnnamed3181() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3181(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3182() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3182(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3183() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3183(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3184() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3184(core.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 = buildUnnamed3181(); - o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3182(); - o.dimensions = buildUnnamed3183(); - o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3184(); - o.reportProperties = buildReportFloodlightCriteriaReportProperties(); - } - buildCounterReportFloodlightCriteria--; - return o; -} - -checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { - buildCounterReportFloodlightCriteria++; - if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed3181(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed3182(o.dimensionFilters); - checkUnnamed3183(o.dimensions); - checkDimensionValue(o.floodlightConfigId); - checkUnnamed3184(o.metricNames); - checkReportFloodlightCriteriaReportProperties(o.reportProperties); - } - buildCounterReportFloodlightCriteria--; -} - -buildUnnamed3185() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3185(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3186() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3186(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3187() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3187(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3188() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3188(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3189() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3189(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3190() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3190(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 = buildUnnamed3185(); - o.conversionDimensions = buildUnnamed3186(); - o.customFloodlightVariables = buildUnnamed3187(); - o.customRichMediaEvents = buildUnnamed3188(); - o.dateRange = buildDateRange(); - o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3189(); - o.perInteractionDimensions = buildUnnamed3190(); - o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); - } - buildCounterReportPathToConversionCriteria--; - return o; -} - -checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { - buildCounterReportPathToConversionCriteria++; - if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed3185(o.activityFilters); - checkUnnamed3186(o.conversionDimensions); - checkUnnamed3187(o.customFloodlightVariables); - checkUnnamed3188(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkDimensionValue(o.floodlightConfigId); - checkUnnamed3189(o.metricNames); - checkUnnamed3190(o.perInteractionDimensions); - checkReportPathToConversionCriteriaReportProperties(o.reportProperties); - } - buildCounterReportPathToConversionCriteria--; -} - -buildUnnamed3191() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed3191(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed3192() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed3192(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed3193() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3193(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3194() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3194(core.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 = buildUnnamed3191(); - o.dimensions = buildUnnamed3192(); - o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed3193(); - o.reachByFrequencyMetricNames = buildUnnamed3194(); - } - buildCounterReportReachCriteria--; - return o; -} - -checkReportReachCriteria(api.ReportReachCriteria o) { - buildCounterReportReachCriteria++; - if (buildCounterReportReachCriteria < 3) { - checkActivities(o.activities); - checkCustomRichMediaEvents(o.customRichMediaEvents); - checkDateRange(o.dateRange); - checkUnnamed3191(o.dimensionFilters); - checkUnnamed3192(o.dimensions); - unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed3193(o.metricNames); - checkUnnamed3194(o.reachByFrequencyMetricNames); - } - buildCounterReportReachCriteria--; -} - -buildUnnamed3195() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3195(core.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 = buildUnnamed3195(); - 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')); - checkUnnamed3195(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--; -} - -buildUnnamed3196() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3196(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3197() { - var o = new core.List<api.Dimension>(); - o.add(buildDimension()); - o.add(buildDimension()); - return o; -} - -checkUnnamed3197(core.List<api.Dimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimension(o[0]); - checkDimension(o[1]); -} - -buildUnnamed3198() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3198(core.List<api.Metric> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMetric(o[0]); - checkMetric(o[1]); -} - -buildUnnamed3199() { - var o = new core.List<api.Metric>(); - o.add(buildMetric()); - o.add(buildMetric()); - return o; -} - -checkUnnamed3199(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 = buildUnnamed3196(); - o.dimensions = buildUnnamed3197(); - o.kind = "foo"; - o.metrics = buildUnnamed3198(); - o.pivotedActivityMetrics = buildUnnamed3199(); - } - buildCounterReportCompatibleFields--; - return o; -} - -checkReportCompatibleFields(api.ReportCompatibleFields o) { - buildCounterReportCompatibleFields++; - if (buildCounterReportCompatibleFields < 3) { - checkUnnamed3196(o.dimensionFilters); - checkUnnamed3197(o.dimensions); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3198(o.metrics); - checkUnnamed3199(o.pivotedActivityMetrics); - } - buildCounterReportCompatibleFields--; -} - -buildUnnamed3200() { - var o = new core.List<api.Report>(); - o.add(buildReport()); - o.add(buildReport()); - return o; -} - -checkUnnamed3200(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 = buildUnnamed3200(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterReportList--; - return o; -} - -checkReportList(api.ReportList o) { - buildCounterReportList++; - if (buildCounterReportList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3200(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--; -} - -buildUnnamed3201() { - var o = new core.List<api.SiteContact>(); - o.add(buildSiteContact()); - o.add(buildSiteContact()); - return o; -} - -checkUnnamed3201(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 = buildUnnamed3201(); - 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')); - checkUnnamed3201(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(); - } - 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); - } - buildCounterSiteSettings--; -} - -buildUnnamed3202() { - var o = new core.List<api.Site>(); - o.add(buildSite()); - o.add(buildSite()); - return o; -} - -checkUnnamed3202(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 = buildUnnamed3202(); - } - 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')); - checkUnnamed3202(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--; -} - -buildUnnamed3203() { - var o = new core.List<api.Size>(); - o.add(buildSize()); - o.add(buildSize()); - return o; -} - -checkUnnamed3203(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 = buildUnnamed3203(); - } - buildCounterSizesListResponse--; - return o; -} - -checkSizesListResponse(api.SizesListResponse o) { - buildCounterSizesListResponse++; - if (buildCounterSizesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3203(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--; -} - -buildUnnamed3204() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3204(core.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 = buildUnnamed3204(); - 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')); - checkUnnamed3204(o.availablePermissionIds); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterSubaccount--; -} - -buildUnnamed3205() { - var o = new core.List<api.Subaccount>(); - o.add(buildSubaccount()); - o.add(buildSubaccount()); - return o; -} - -checkUnnamed3205(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 = buildUnnamed3205(); - } - 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')); - checkUnnamed3205(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--; -} - -buildUnnamed3206() { - var o = new core.List<api.TargetableRemarketingList>(); - o.add(buildTargetableRemarketingList()); - o.add(buildTargetableRemarketingList()); - return o; -} - -checkUnnamed3206(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 = buildUnnamed3206(); - } - 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')); - checkUnnamed3206(o.targetableRemarketingLists); - } - buildCounterTargetableRemarketingListsListResponse--; -} - -buildUnnamed3207() { - var o = new core.List<api.Browser>(); - o.add(buildBrowser()); - o.add(buildBrowser()); - return o; -} - -checkUnnamed3207(core.List<api.Browser> o) { - unittest.expect(o, unittest.hasLength(2)); - checkBrowser(o[0]); - checkBrowser(o[1]); -} - -buildUnnamed3208() { - var o = new core.List<api.ConnectionType>(); - o.add(buildConnectionType()); - o.add(buildConnectionType()); - return o; -} - -checkUnnamed3208(core.List<api.ConnectionType> o) { - unittest.expect(o, unittest.hasLength(2)); - checkConnectionType(o[0]); - checkConnectionType(o[1]); -} - -buildUnnamed3209() { - var o = new core.List<api.MobileCarrier>(); - o.add(buildMobileCarrier()); - o.add(buildMobileCarrier()); - return o; -} - -checkUnnamed3209(core.List<api.MobileCarrier> o) { - unittest.expect(o, unittest.hasLength(2)); - checkMobileCarrier(o[0]); - checkMobileCarrier(o[1]); -} - -buildUnnamed3210() { - var o = new core.List<api.OperatingSystemVersion>(); - o.add(buildOperatingSystemVersion()); - o.add(buildOperatingSystemVersion()); - return o; -} - -checkUnnamed3210(core.List<api.OperatingSystemVersion> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystemVersion(o[0]); - checkOperatingSystemVersion(o[1]); -} - -buildUnnamed3211() { - var o = new core.List<api.OperatingSystem>(); - o.add(buildOperatingSystem()); - o.add(buildOperatingSystem()); - return o; -} - -checkUnnamed3211(core.List<api.OperatingSystem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkOperatingSystem(o[0]); - checkOperatingSystem(o[1]); -} - -buildUnnamed3212() { - var o = new core.List<api.PlatformType>(); - o.add(buildPlatformType()); - o.add(buildPlatformType()); - return o; -} - -checkUnnamed3212(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 = buildUnnamed3207(); - o.connectionTypes = buildUnnamed3208(); - o.mobileCarriers = buildUnnamed3209(); - o.operatingSystemVersions = buildUnnamed3210(); - o.operatingSystems = buildUnnamed3211(); - o.platformTypes = buildUnnamed3212(); - } - buildCounterTechnologyTargeting--; - return o; -} - -checkTechnologyTargeting(api.TechnologyTargeting o) { - buildCounterTechnologyTargeting++; - if (buildCounterTechnologyTargeting < 3) { - checkUnnamed3207(o.browsers); - checkUnnamed3208(o.connectionTypes); - checkUnnamed3209(o.mobileCarriers); - checkUnnamed3210(o.operatingSystemVersions); - checkUnnamed3211(o.operatingSystems); - checkUnnamed3212(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--; -} - -buildUnnamed3213() { - var o = new core.List<api.UserProfile>(); - o.add(buildUserProfile()); - o.add(buildUserProfile()); - return o; -} - -checkUnnamed3213(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 = buildUnnamed3213(); - o.kind = "foo"; - } - buildCounterUserProfileList--; - return o; -} - -checkUserProfileList(api.UserProfileList o) { - buildCounterUserProfileList++; - if (buildCounterUserProfileList < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3213(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterUserProfileList--; -} - -buildUnnamed3214() { - var o = new core.List<api.UserRolePermission>(); - o.add(buildUserRolePermission()); - o.add(buildUserRolePermission()); - return o; -} - -checkUnnamed3214(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 = buildUnnamed3214(); - 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')); - checkUnnamed3214(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--; -} - -buildUnnamed3215() { - var o = new core.List<api.UserRolePermissionGroup>(); - o.add(buildUserRolePermissionGroup()); - o.add(buildUserRolePermissionGroup()); - return o; -} - -checkUnnamed3215(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 = buildUnnamed3215(); - } - buildCounterUserRolePermissionGroupsListResponse--; - return o; -} - -checkUserRolePermissionGroupsListResponse(api.UserRolePermissionGroupsListResponse o) { - buildCounterUserRolePermissionGroupsListResponse++; - if (buildCounterUserRolePermissionGroupsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3215(o.userRolePermissionGroups); - } - buildCounterUserRolePermissionGroupsListResponse--; -} - -buildUnnamed3216() { - var o = new core.List<api.UserRolePermission>(); - o.add(buildUserRolePermission()); - o.add(buildUserRolePermission()); - return o; -} - -checkUnnamed3216(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 = buildUnnamed3216(); - } - buildCounterUserRolePermissionsListResponse--; - return o; -} - -checkUserRolePermissionsListResponse(api.UserRolePermissionsListResponse o) { - buildCounterUserRolePermissionsListResponse++; - if (buildCounterUserRolePermissionsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3216(o.userRolePermissions); - } - buildCounterUserRolePermissionsListResponse--; -} - -buildUnnamed3217() { - var o = new core.List<api.UserRole>(); - o.add(buildUserRole()); - o.add(buildUserRole()); - return o; -} - -checkUnnamed3217(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 = buildUnnamed3217(); - } - 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')); - checkUnnamed3217(o.userRoles); - } - buildCounterUserRolesListResponse--; -} - -buildUnnamed3218() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3218(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3219() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3219(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3220() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3220(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3221() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3221(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3222() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3222(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3223() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3223(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3224() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3224(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3225() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3225(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3226() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3226(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3227() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3227(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3228() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3228(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3229() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3229(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3230() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3230(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3231(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3232(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3233(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3234(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3235(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3236() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3236(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3237(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3238() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3238(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3239() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3239(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3240() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3240(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3241() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3241(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3242() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3242(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3243() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3243(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3244() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3244(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3245(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3246(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3247() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3247(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3248(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3249(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3250(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3251(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3252(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3253(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3254(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3255(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3256(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3257(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3258(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3259(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3260(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3261(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3262(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3263(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3264(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3265(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3266(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3267(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3268() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3268(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3269() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3269(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3270() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3270(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3271() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3271(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3272() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3272(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3273() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3273(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3274() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3274(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3275() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3275(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3276() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3276(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3277() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3277(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3278() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3278(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3279() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3279(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3280() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3280(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3281() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3281(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3282() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3282(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3283() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3283(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3284() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3284(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3285() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3285(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3286() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3286(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3287() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3287(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3288() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3288(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3289() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3289(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3290() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3290(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3291() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3291(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3292() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3292(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3293() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3293(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3294() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3294(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3295() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3295(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3296() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3296(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3297() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3297(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3298() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3298(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3299() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3299(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3300() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3300(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3301() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3301(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3302() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3302(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3303() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3303(core.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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3218(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3219(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3220(); - var arg_campaignIds = buildUnnamed3221(); - var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed3222(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed3223(); - var arg_creativeType = "foo"; - var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed3224(); - var arg_landingPageIds = buildUnnamed3225(); - var arg_maxResults = 42; - var arg_overriddenEventTagId = "foo"; - var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed3226(); - var arg_remarketingListIds = buildUnnamed3227(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3228(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_sslCompliant = true; - var arg_sslRequired = true; - var arg_type = buildUnnamed3229(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3230(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3231(); - var arg_floodlightConfigurationIds = buildUnnamed3232(); - var arg_ids = buildUnnamed3233(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3234(); - var arg_advertiserIds = buildUnnamed3235(); - var arg_archived = true; - var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed3236(); - var arg_ids = buildUnnamed3237(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3238(); - var arg_maxChangeTime = "foo"; - var arg_maxResults = 42; - var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed3239(); - var arg_objectType = "foo"; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed3240(); - 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.2/")); - 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 = buildUnnamed3241(); - var arg_dartIds = buildUnnamed3242(); - var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed3243(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3244(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3245(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3246(); - var arg_ids = buildUnnamed3247(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3248(); - var arg_groupNumber = 42; - var arg_ids = buildUnnamed3249(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3250(); - var arg_creativeFieldIds = buildUnnamed3251(); - var arg_ids = buildUnnamed3252(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed3253(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3254(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed3255(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3256(); - var arg_ids = buildUnnamed3257(); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3258(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3259(); - var arg_ids = buildUnnamed3260(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3261(); - var arg_floodlightActivityGroupName = "foo"; - var arg_floodlightActivityGroupTagString = "foo"; - var arg_floodlightActivityGroupType = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed3262(); - 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.2/")); - 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.2/")); - 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.2/")); - 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--delete", () { - - 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.2/")); - 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 = ""; - 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.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.2/")); - 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.2/")); - 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 = buildUnnamed3263(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3264(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3265(); - var arg_inPlan = true; - var arg_maxResults = 42; - var arg_orderId = buildUnnamed3266(); - var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed3267(); - 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.2/")); - 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)); - - - 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).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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3268(); - var arg_maxResults = 42; - var arg_orderId = buildUnnamed3269(); - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3270(); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3271(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3272(); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3273(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed3274(); - var arg_contentCategoryIds = buildUnnamed3275(); - var arg_directorySiteIds = buildUnnamed3276(); - var arg_ids = buildUnnamed3277(); - 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 = buildUnnamed3278(); - var arg_pricingTypes = buildUnnamed3279(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3280(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3281(); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3282(); - var arg_tagFormats = buildUnnamed3283(); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3284(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed3285(); - var arg_compatibilities = buildUnnamed3286(); - var arg_contentCategoryIds = buildUnnamed3287(); - var arg_directorySiteIds = buildUnnamed3288(); - var arg_groupIds = buildUnnamed3289(); - var arg_ids = buildUnnamed3290(); - 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 = buildUnnamed3291(); - var arg_pricingTypes = buildUnnamed3292(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3293(); - var arg_sizeIds = buildUnnamed3294(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3295(); - var arg_ids = buildUnnamed3296(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3297(); - var arg_directorySiteIds = buildUnnamed3298(); - var arg_ids = buildUnnamed3299(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3300(); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3301(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3302(); - 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.2/")); - 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.2/")); - 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.2/")); - 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.2/")); - 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 = buildUnnamed3303(); - 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.2/")); - 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.2/")); - 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.2/")); - 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_4_test.dart b/generated/googleapis/test/dfareporting/v2_4_test.dart index e1eee00..8a4a768 100644 --- a/generated/googleapis/test/dfareporting/v2_4_test.dart +++ b/generated/googleapis/test/dfareporting/v2_4_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed182() { +buildUnnamed197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed182(core.List<core.String> 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')); } -buildUnnamed183() { +buildUnnamed198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed183(core.List<core.String> 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')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed182(); + o.accountPermissionIds = buildUnnamed197(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed183(); + o.availablePermissionIds = buildUnnamed198(); o.comscoreVceEnabled = true; o.countryId = "foo"; o.currencyId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed182(o.accountPermissionIds); + 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); - checkUnnamed183(o.availablePermissionIds); + checkUnnamed198(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--; } -buildUnnamed184() { +buildUnnamed199() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed184(core.List<core.String> 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')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed184(); + o.accountProfiles = buildUnnamed199(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed184(o.accountProfiles); + checkUnnamed199(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--; } -buildUnnamed185() { +buildUnnamed200() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed185(core.List<api.AccountPermissionGroup> o) { +checkUnnamed200(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 = buildUnnamed185(); + o.accountPermissionGroups = buildUnnamed200(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed185(o.accountPermissionGroups); + checkUnnamed200(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed186() { +buildUnnamed201() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed186(core.List<api.AccountPermission> o) { +checkUnnamed201(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 = buildUnnamed186(); + o.accountPermissions = buildUnnamed201(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed186(o.accountPermissions); + checkUnnamed201(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed187() { +buildUnnamed202() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed187(core.List<api.AccountUserProfile> o) { +checkUnnamed202(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 = buildUnnamed187(); + o.accountUserProfiles = buildUnnamed202(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed187(o.accountUserProfiles); + checkUnnamed202(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed188() { +buildUnnamed203() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed188(core.List<api.Account> o) { +checkUnnamed203(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 = buildUnnamed188(); + o.accounts = buildUnnamed203(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed188(o.accounts); + checkUnnamed203(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed189() { +buildUnnamed204() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed189(core.List<api.DimensionValue> o) { +checkUnnamed204(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed190() { +buildUnnamed205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed190(core.List<core.String> 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')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed189(); + o.filters = buildUnnamed204(); o.kind = "foo"; - o.metricNames = buildUnnamed190(); + o.metricNames = buildUnnamed205(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed189(o.filters); + checkUnnamed204(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed190(o.metricNames); + checkUnnamed205(o.metricNames); } buildCounterActivities--; } -buildUnnamed191() { +buildUnnamed206() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed191(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed206(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed192() { +buildUnnamed207() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed192(core.List<api.EventTagOverride> o) { +checkUnnamed207(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed193() { +buildUnnamed208() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed193(core.List<api.PlacementAssignment> o) { +checkUnnamed208(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 = buildUnnamed191(); + 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 = buildUnnamed192(); + o.eventTagOverrides = buildUnnamed207(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -534,7 +534,7 @@ o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed193(); + o.placementAssignments = buildUnnamed208(); 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); - checkUnnamed191(o.creativeGroupAssignments); + 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"))); - checkUnnamed192(o.eventTagOverrides); + checkUnnamed207(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')); - checkUnnamed193(o.placementAssignments); + checkUnnamed208(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -625,14 +625,14 @@ buildCounterAdSlot--; } -buildUnnamed194() { +buildUnnamed209() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed194(core.List<api.Ad> o) { +checkUnnamed209(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 = buildUnnamed194(); + o.ads = buildUnnamed209(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +654,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed194(o.ads); + checkUnnamed209(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +733,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed195() { +buildUnnamed210() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed195(core.List<api.AdvertiserGroup> o) { +checkUnnamed210(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 = buildUnnamed195(); + o.advertiserGroups = buildUnnamed210(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +762,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed195(o.advertiserGroups); + checkUnnamed210(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed196() { +buildUnnamed211() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed196(core.List<api.Advertiser> o) { +checkUnnamed211(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 = buildUnnamed196(); + o.advertisers = buildUnnamed211(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +798,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed196(o.advertisers); + checkUnnamed211(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +828,14 @@ buildCounterAudienceSegment--; } -buildUnnamed197() { +buildUnnamed212() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed197(core.List<api.AudienceSegment> o) { +checkUnnamed212(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 = buildUnnamed197(); + o.audienceSegments = buildUnnamed212(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +857,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed197(o.audienceSegments); + checkUnnamed212(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +893,14 @@ buildCounterBrowser--; } -buildUnnamed198() { +buildUnnamed213() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed198(core.List<api.Browser> o) { +checkUnnamed213(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 = buildUnnamed198(); + o.browsers = buildUnnamed213(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +921,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed198(o.browsers); + checkUnnamed213(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed199() { +buildUnnamed214() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed199(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed214(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed200() { +buildUnnamed215() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed200(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed215(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed201() { +buildUnnamed216() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed201(core.List<core.String> 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')); } -buildUnnamed202() { +buildUnnamed217() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed202(core.List<api.EventTagOverride> o) { +checkUnnamed217(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed203() { +buildUnnamed218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed203(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')); @@ -998,22 +998,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed199(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed214(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed200(); + o.audienceSegmentGroups = buildUnnamed215(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed201(); + o.creativeGroupIds = buildUnnamed216(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed202(); + o.eventTagOverrides = buildUnnamed217(); 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 = buildUnnamed203(); + o.traffickerEmails = buildUnnamed218(); } buildCounterCampaign--; return o; @@ -1034,22 +1034,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed199(o.additionalCreativeOptimizationConfigurations); + 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); - checkUnnamed200(o.audienceSegmentGroups); + 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); - checkUnnamed201(o.creativeGroupIds); + checkUnnamed216(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed202(o.eventTagOverrides); + checkUnnamed217(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')); - checkUnnamed203(o.traffickerEmails); + checkUnnamed218(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1086,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed204() { +buildUnnamed219() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed204(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed219(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 = buildUnnamed204(); + o.campaignCreativeAssociations = buildUnnamed219(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1115,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed204(o.campaignCreativeAssociations); + checkUnnamed219(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed205() { +buildUnnamed220() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed205(core.List<api.Campaign> o) { +checkUnnamed220(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 = buildUnnamed205(); + o.campaigns = buildUnnamed220(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1151,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed205(o.campaigns); + checkUnnamed220(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1203,14 @@ buildCounterChangeLog--; } -buildUnnamed206() { +buildUnnamed221() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed206(core.List<api.ChangeLog> o) { +checkUnnamed221(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 = buildUnnamed206(); + o.changeLogs = buildUnnamed221(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1232,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed206(o.changeLogs); + checkUnnamed221(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed207() { +buildUnnamed222() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed207(core.List<api.City> o) { +checkUnnamed222(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 = buildUnnamed207(); + o.cities = buildUnnamed222(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1267,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed207(o.cities); + checkUnnamed222(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1450,14 +1450,14 @@ buildCounterConnectionType--; } -buildUnnamed208() { +buildUnnamed223() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed208(core.List<api.ConnectionType> o) { +checkUnnamed223(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 = buildUnnamed208(); + o.connectionTypes = buildUnnamed223(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1478,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed208(o.connectionTypes); + checkUnnamed223(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed209() { +buildUnnamed224() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed209(core.List<api.ContentCategory> o) { +checkUnnamed224(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 = buildUnnamed209(); + o.contentCategories = buildUnnamed224(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1513,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed209(o.contentCategories); + checkUnnamed224(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1545,14 @@ buildCounterContentCategory--; } -buildUnnamed210() { +buildUnnamed225() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed210(core.List<api.Country> o) { +checkUnnamed225(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1563,7 +1563,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed210(); + o.countries = buildUnnamed225(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1573,7 +1573,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed210(o.countries); + checkUnnamed225(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1606,157 +1606,157 @@ buildCounterCountry--; } -buildUnnamed211() { +buildUnnamed226() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed211(core.List<core.String> 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')); } -buildUnnamed212() { +buildUnnamed227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed212(core.List<core.String> 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')); } -buildUnnamed213() { +buildUnnamed228() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed213(core.List<api.ClickTag> o) { +checkUnnamed228(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed214() { +buildUnnamed229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed214(core.List<core.String> 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')); } -buildUnnamed215() { +buildUnnamed230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed215(core.List<core.String> 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')); } -buildUnnamed216() { +buildUnnamed231() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed216(core.List<api.CreativeCustomEvent> o) { +checkUnnamed231(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed217() { +buildUnnamed232() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed217(core.List<api.CreativeAsset> o) { +checkUnnamed232(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed218() { +buildUnnamed233() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed218(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed233(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed219() { +buildUnnamed234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed219(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')); } -buildUnnamed220() { +buildUnnamed235() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed220(core.List<api.CreativeCustomEvent> o) { +checkUnnamed235(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed221() { +buildUnnamed236() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed221(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed236(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed222() { +buildUnnamed237() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed222(core.List<api.CreativeCustomEvent> o) { +checkUnnamed237(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1770,7 +1770,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed211(); + o.adTagKeys = buildUnnamed226(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1780,19 +1780,19 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed212(); + o.backupImageFeatures = buildUnnamed227(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed213(); + o.clickTags = buildUnnamed228(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed214(); - o.compatibility = buildUnnamed215(); + o.companionCreatives = buildUnnamed229(); + o.compatibility = buildUnnamed230(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed216(); - o.creativeAssets = buildUnnamed217(); - o.creativeFieldAssignments = buildUnnamed218(); - o.customKeyValues = buildUnnamed219(); - o.exitCustomEvents = buildUnnamed220(); + o.counterCustomEvents = buildUnnamed231(); + o.creativeAssets = buildUnnamed232(); + o.creativeFieldAssignments = buildUnnamed233(); + o.customKeyValues = buildUnnamed234(); + o.exitCustomEvents = buildUnnamed235(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -1818,8 +1818,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed221(); - o.timerCustomEvents = buildUnnamed222(); + o.thirdPartyUrls = buildUnnamed236(); + o.timerCustomEvents = buildUnnamed237(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -1836,7 +1836,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed211(o.adTagKeys); + checkUnnamed226(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -1846,19 +1846,19 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed212(o.backupImageFeatures); + checkUnnamed227(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed213(o.clickTags); + checkUnnamed228(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed214(o.companionCreatives); - checkUnnamed215(o.compatibility); + checkUnnamed229(o.companionCreatives); + checkUnnamed230(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed216(o.counterCustomEvents); - checkUnnamed217(o.creativeAssets); - checkUnnamed218(o.creativeFieldAssignments); - checkUnnamed219(o.customKeyValues); - checkUnnamed220(o.exitCustomEvents); + 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); @@ -1884,8 +1884,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed221(o.thirdPartyUrls); - checkUnnamed222(o.timerCustomEvents); + 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)); @@ -1895,14 +1895,14 @@ buildCounterCreative--; } -buildUnnamed223() { +buildUnnamed238() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed223(core.List<core.String> 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')); @@ -1923,7 +1923,7 @@ o.childAssetType = "foo"; o.collapsedSize = buildSize(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed223(); + o.detectedFeatures = buildUnnamed238(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -1973,7 +1973,7 @@ unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed223(o.detectedFeatures); + checkUnnamed238(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2030,40 +2030,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed224() { +buildUnnamed239() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed224(core.List<api.ClickTag> o) { +checkUnnamed239(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed225() { +buildUnnamed240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed225(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')); } -buildUnnamed226() { +buildUnnamed241() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed226(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')); @@ -2075,10 +2075,10 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed224(); - o.detectedFeatures = buildUnnamed225(); + o.clickTags = buildUnnamed239(); + o.detectedFeatures = buildUnnamed240(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed226(); + o.warnedValidationRules = buildUnnamed241(); } buildCounterCreativeAssetMetadata--; return o; @@ -2088,48 +2088,48 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed224(o.clickTags); - checkUnnamed225(o.detectedFeatures); + checkUnnamed239(o.clickTags); + checkUnnamed240(o.detectedFeatures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed226(o.warnedValidationRules); + checkUnnamed241(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed227() { +buildUnnamed242() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed227(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed242(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed228() { +buildUnnamed243() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed228(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed243(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed229() { +buildUnnamed244() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed229(core.List<api.RichMediaExitOverride> o) { +checkUnnamed244(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2143,12 +2143,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed227(); - o.creativeGroupAssignments = buildUnnamed228(); + o.companionCreativeOverrides = buildUnnamed242(); + o.creativeGroupAssignments = buildUnnamed243(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed229(); + o.richMediaExitOverrides = buildUnnamed244(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2164,12 +2164,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed227(o.companionCreativeOverrides); - checkUnnamed228(o.creativeGroupAssignments); + 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"))); - checkUnnamed229(o.richMediaExitOverrides); + 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"))); @@ -2290,14 +2290,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed230() { +buildUnnamed245() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed230(core.List<api.CreativeFieldValue> o) { +checkUnnamed245(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2308,7 +2308,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed230(); + o.creativeFieldValues = buildUnnamed245(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2319,21 +2319,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed230(o.creativeFieldValues); + checkUnnamed245(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed231() { +buildUnnamed246() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed231(core.List<api.CreativeField> o) { +checkUnnamed246(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2344,7 +2344,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed231(); + o.creativeFields = buildUnnamed246(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2355,7 +2355,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed231(o.creativeFields); + checkUnnamed246(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2416,14 +2416,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed232() { +buildUnnamed247() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed232(core.List<api.CreativeGroup> o) { +checkUnnamed247(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2434,7 +2434,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed232(); + o.creativeGroups = buildUnnamed247(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2445,21 +2445,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed232(o.creativeGroups); + checkUnnamed247(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed233() { +buildUnnamed248() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed233(core.List<api.OptimizationActivity> o) { +checkUnnamed248(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2472,7 +2472,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed233(); + o.optimizationActivitys = buildUnnamed248(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2484,20 +2484,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed233(o.optimizationActivitys); + checkUnnamed248(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed234() { +buildUnnamed249() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed234(core.List<api.CreativeAssignment> o) { +checkUnnamed249(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2508,7 +2508,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed234(); + o.creativeAssignments = buildUnnamed249(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2520,7 +2520,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed234(o.creativeAssignments); + checkUnnamed249(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2549,14 +2549,14 @@ buildCounterCreativeSettings--; } -buildUnnamed235() { +buildUnnamed250() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed235(core.List<api.Creative> o) { +checkUnnamed250(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2567,7 +2567,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed235(); + o.creatives = buildUnnamed250(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2578,60 +2578,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed235(o.creatives); + checkUnnamed250(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed236() { +buildUnnamed251() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed236(core.List<api.Dimension> o) { +checkUnnamed251(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed237() { +buildUnnamed252() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed237(core.List<api.Dimension> o) { +checkUnnamed252(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed238() { +buildUnnamed253() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed238(core.List<api.Metric> o) { +checkUnnamed253(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed239() { +buildUnnamed254() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed239(core.List<api.Metric> o) { +checkUnnamed254(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2642,11 +2642,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed236(); - o.dimensionFilters = buildUnnamed237(); + o.breakdown = buildUnnamed251(); + o.dimensionFilters = buildUnnamed252(); o.kind = "foo"; - o.metrics = buildUnnamed238(); - o.overlapMetrics = buildUnnamed239(); + o.metrics = buildUnnamed253(); + o.overlapMetrics = buildUnnamed254(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2655,23 +2655,23 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed236(o.breakdown); - checkUnnamed237(o.dimensionFilters); + checkUnnamed251(o.breakdown); + checkUnnamed252(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed238(o.metrics); - checkUnnamed239(o.overlapMetrics); + checkUnnamed253(o.metrics); + checkUnnamed254(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } -buildUnnamed240() { +buildUnnamed255() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed240(core.List<api.DimensionValue> o) { +checkUnnamed255(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2682,7 +2682,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed240(); + o.filteredEventIds = buildUnnamed255(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2692,7 +2692,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed240(o.filteredEventIds); + checkUnnamed255(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2723,27 +2723,27 @@ buildCounterDateRange--; } -buildUnnamed241() { +buildUnnamed256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed241(core.List<core.String> 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')); } -buildUnnamed242() { +buildUnnamed257() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed242(core.List<core.int> 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)); @@ -2754,8 +2754,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed241(); - o.hoursOfDay = buildUnnamed242(); + o.daysOfWeek = buildUnnamed256(); + o.hoursOfDay = buildUnnamed257(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2765,8 +2765,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed241(o.daysOfWeek); - checkUnnamed242(o.hoursOfDay); + checkUnnamed256(o.daysOfWeek); + checkUnnamed257(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -2918,14 +2918,14 @@ buildCounterDimensionValue--; } -buildUnnamed243() { +buildUnnamed258() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed243(core.List<api.DimensionValue> o) { +checkUnnamed258(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2937,7 +2937,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed243(); + o.items = buildUnnamed258(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2949,21 +2949,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed243(o.items); + checkUnnamed258(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed244() { +buildUnnamed259() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed244(core.List<api.DimensionFilter> o) { +checkUnnamed259(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -2976,7 +2976,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed244(); + o.filters = buildUnnamed259(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -2989,47 +2989,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"))); - checkUnnamed244(o.filters); + 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--; } -buildUnnamed245() { +buildUnnamed260() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed245(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed260(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed246() { +buildUnnamed261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed246(core.List<core.String> 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')); } -buildUnnamed247() { +buildUnnamed262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed247(core.List<core.String> 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')); @@ -3041,14 +3041,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed245(); + o.contactAssignments = buildUnnamed260(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed246(); - o.interstitialTagFormats = buildUnnamed247(); + o.inpageTagFormats = buildUnnamed261(); + o.interstitialTagFormats = buildUnnamed262(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3063,14 +3063,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed245(o.contactAssignments); + 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); - checkUnnamed246(o.inpageTagFormats); - checkUnnamed247(o.interstitialTagFormats); + 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')); @@ -3138,14 +3138,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed248() { +buildUnnamed263() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed248(core.List<api.DirectorySiteContact> o) { +checkUnnamed263(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3156,7 +3156,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed248(); + o.directorySiteContacts = buildUnnamed263(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3167,7 +3167,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed248(o.directorySiteContacts); + checkUnnamed263(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3205,14 +3205,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed249() { +buildUnnamed264() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed249(core.List<api.DirectorySite> o) { +checkUnnamed264(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3223,7 +3223,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed249(); + o.directorySites = buildUnnamed264(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3234,21 +3234,21 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed249(o.directorySites); + checkUnnamed264(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDirectorySitesListResponse--; } -buildUnnamed250() { +buildUnnamed265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed250(core.List<core.String> 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')); @@ -3270,7 +3270,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed250(); + o.siteIds = buildUnnamed265(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3296,7 +3296,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed250(o.siteIds); + checkUnnamed265(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3328,14 +3328,14 @@ buildCounterEventTagOverride--; } -buildUnnamed251() { +buildUnnamed266() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed251(core.List<api.EventTag> o) { +checkUnnamed266(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3346,7 +3346,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed251(); + o.eventTags = buildUnnamed266(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3356,7 +3356,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed251(o.eventTags); + checkUnnamed266(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3420,14 +3420,14 @@ buildCounterFile--; } -buildUnnamed252() { +buildUnnamed267() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed252(core.List<api.File> o) { +checkUnnamed267(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3439,7 +3439,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed252(); + o.items = buildUnnamed267(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3451,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed252(o.items); + checkUnnamed267(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3504,14 +3504,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed253() { +buildUnnamed268() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed253(core.List<api.FloodlightActivity> o) { +checkUnnamed268(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3522,7 +3522,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed253(); + o.floodlightActivities = buildUnnamed268(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3533,47 +3533,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed253(o.floodlightActivities); + checkUnnamed268(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed254() { +buildUnnamed269() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed254(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed269(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed255() { +buildUnnamed270() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed255(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed270(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed256() { +buildUnnamed271() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed256(core.List<core.String> 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')); @@ -3589,7 +3589,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed254(); + o.defaultTags = buildUnnamed269(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3604,14 +3604,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed255(); + o.publisherTags = buildUnnamed270(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed256(); + o.userDefinedVariableTypes = buildUnnamed271(); } buildCounterFloodlightActivity--; return o; @@ -3625,7 +3625,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed254(o.defaultTags); + checkUnnamed269(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -3640,14 +3640,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed255(o.publisherTags); + 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')); - checkUnnamed256(o.userDefinedVariableTypes); + checkUnnamed271(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -3716,14 +3716,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed257() { +buildUnnamed272() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed257(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed272(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -3734,7 +3734,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed257(); + o.floodlightActivityGroups = buildUnnamed272(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3745,7 +3745,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed257(o.floodlightActivityGroups); + checkUnnamed272(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3781,40 +3781,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed258() { +buildUnnamed273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed258(core.List<core.String> 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')); } -buildUnnamed259() { +buildUnnamed274() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed259(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed274(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed260() { +buildUnnamed275() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed260(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed275(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -3838,11 +3838,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed258(); + o.standardVariableTypes = buildUnnamed273(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed259(); - o.userDefinedVariableConfigurations = buildUnnamed260(); + o.thirdPartyAuthenticationTokens = buildUnnamed274(); + o.userDefinedVariableConfigurations = buildUnnamed275(); } buildCounterFloodlightConfiguration--; return o; @@ -3864,23 +3864,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed258(o.standardVariableTypes); + checkUnnamed273(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed259(o.thirdPartyAuthenticationTokens); - checkUnnamed260(o.userDefinedVariableConfigurations); + checkUnnamed274(o.thirdPartyAuthenticationTokens); + checkUnnamed275(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed261() { +buildUnnamed276() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed261(core.List<api.FloodlightConfiguration> o) { +checkUnnamed276(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -3891,7 +3891,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed261(); + o.floodlightConfigurations = buildUnnamed276(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -3901,46 +3901,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed261(o.floodlightConfigurations); + checkUnnamed276(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed262() { +buildUnnamed277() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed262(core.List<api.Dimension> o) { +checkUnnamed277(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed263() { +buildUnnamed278() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed263(core.List<api.Dimension> o) { +checkUnnamed278(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed264() { +buildUnnamed279() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed264(core.List<api.Metric> o) { +checkUnnamed279(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3951,10 +3951,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed262(); - o.dimensions = buildUnnamed263(); + o.dimensionFilters = buildUnnamed277(); + o.dimensions = buildUnnamed278(); o.kind = "foo"; - o.metrics = buildUnnamed264(); + o.metrics = buildUnnamed279(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -3963,10 +3963,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed262(o.dimensionFilters); - checkUnnamed263(o.dimensions); + checkUnnamed277(o.dimensionFilters); + checkUnnamed278(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed264(o.metrics); + checkUnnamed279(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4019,66 +4019,66 @@ buildCounterFsCommand--; } -buildUnnamed265() { +buildUnnamed280() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed265(core.List<api.City> o) { +checkUnnamed280(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed266() { +buildUnnamed281() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed266(core.List<api.Country> o) { +checkUnnamed281(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed267() { +buildUnnamed282() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed267(core.List<api.Metro> o) { +checkUnnamed282(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed268() { +buildUnnamed283() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed268(core.List<api.PostalCode> o) { +checkUnnamed283(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed269() { +buildUnnamed284() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed269(core.List<api.Region> o) { +checkUnnamed284(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4089,12 +4089,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed265(); - o.countries = buildUnnamed266(); + o.cities = buildUnnamed280(); + o.countries = buildUnnamed281(); o.excludeCountries = true; - o.metros = buildUnnamed267(); - o.postalCodes = buildUnnamed268(); - o.regions = buildUnnamed269(); + o.metros = buildUnnamed282(); + o.postalCodes = buildUnnamed283(); + o.regions = buildUnnamed284(); } buildCounterGeoTargeting--; return o; @@ -4103,24 +4103,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed265(o.cities); - checkUnnamed266(o.countries); + checkUnnamed280(o.cities); + checkUnnamed281(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed267(o.metros); - checkUnnamed268(o.postalCodes); - checkUnnamed269(o.regions); + checkUnnamed282(o.metros); + checkUnnamed283(o.postalCodes); + checkUnnamed284(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed270() { +buildUnnamed285() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed270(core.List<api.AdSlot> o) { +checkUnnamed285(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4132,7 +4132,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed270(); + o.adSlots = buildUnnamed285(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4160,7 +4160,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed270(o.adSlots); + checkUnnamed285(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4183,14 +4183,14 @@ buildCounterInventoryItem--; } -buildUnnamed271() { +buildUnnamed286() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed271(core.List<api.InventoryItem> o) { +checkUnnamed286(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4201,7 +4201,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed271(); + o.inventoryItems = buildUnnamed286(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4212,7 +4212,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed271(o.inventoryItems); + checkUnnamed286(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4265,14 +4265,14 @@ buildCounterLandingPage--; } -buildUnnamed272() { +buildUnnamed287() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed272(core.List<api.LandingPage> o) { +checkUnnamed287(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4284,7 +4284,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed272(); + o.landingPages = buildUnnamed287(); } buildCounterLandingPagesListResponse--; return o; @@ -4294,7 +4294,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed272(o.landingPages); + checkUnnamed287(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4318,14 +4318,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed273() { +buildUnnamed288() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed273(core.List<api.ListPopulationTerm> o) { +checkUnnamed288(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4336,7 +4336,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed273(); + o.terms = buildUnnamed288(); } buildCounterListPopulationClause--; return o; @@ -4345,19 +4345,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed273(o.terms); + checkUnnamed288(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed274() { +buildUnnamed289() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed274(core.List<api.ListPopulationClause> o) { +checkUnnamed289(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4370,7 +4370,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed274(); + o.listPopulationClauses = buildUnnamed289(); } buildCounterListPopulationRule--; return o; @@ -4381,7 +4381,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed274(o.listPopulationClauses); + checkUnnamed289(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4511,14 +4511,14 @@ buildCounterMetro--; } -buildUnnamed275() { +buildUnnamed290() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed275(core.List<api.Metro> o) { +checkUnnamed290(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4530,7 +4530,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed275(); + o.metros = buildUnnamed290(); } buildCounterMetrosListResponse--; return o; @@ -4540,7 +4540,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed275(o.metros); + checkUnnamed290(o.metros); } buildCounterMetrosListResponse--; } @@ -4572,14 +4572,14 @@ buildCounterMobileCarrier--; } -buildUnnamed276() { +buildUnnamed291() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed276(core.List<api.MobileCarrier> o) { +checkUnnamed291(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -4591,7 +4591,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed276(); + o.mobileCarriers = buildUnnamed291(); } buildCounterMobileCarriersListResponse--; return o; @@ -4601,19 +4601,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed276(o.mobileCarriers); + checkUnnamed291(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed277() { +buildUnnamed292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed277(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')); @@ -4625,7 +4625,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed277(); + o.objectIds = buildUnnamed292(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4636,7 +4636,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed277(o.objectIds); + checkUnnamed292(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -4740,14 +4740,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed278() { +buildUnnamed293() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed278(core.List<api.OperatingSystemVersion> o) { +checkUnnamed293(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -4759,7 +4759,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed278(); + o.operatingSystemVersions = buildUnnamed293(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -4769,19 +4769,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed278(o.operatingSystemVersions); + checkUnnamed293(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed279() { +buildUnnamed294() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed279(core.List<api.OperatingSystem> o) { +checkUnnamed294(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -4793,7 +4793,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed279(); + o.operatingSystems = buildUnnamed294(); } buildCounterOperatingSystemsListResponse--; return o; @@ -4803,7 +4803,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed279(o.operatingSystems); + checkUnnamed294(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -4831,53 +4831,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed280() { +buildUnnamed295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed280(core.List<core.String> 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')); } -buildUnnamed281() { +buildUnnamed296() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed281(core.List<api.OrderContact> o) { +checkUnnamed296(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed282() { +buildUnnamed297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed282(core.List<core.String> 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')); } -buildUnnamed283() { +buildUnnamed298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed283(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')); @@ -4890,11 +4890,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed280(); + o.approverUserProfileIds = buildUnnamed295(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed281(); + o.contacts = buildUnnamed296(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -4904,8 +4904,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed282(); - o.siteNames = buildUnnamed283(); + o.siteId = buildUnnamed297(); + o.siteNames = buildUnnamed298(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -4918,11 +4918,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed280(o.approverUserProfileIds); + checkUnnamed295(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed281(o.contacts); + checkUnnamed296(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -4932,8 +4932,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed282(o.siteId); - checkUnnamed283(o.siteNames); + checkUnnamed297(o.siteId); + checkUnnamed298(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -4967,27 +4967,27 @@ buildCounterOrderContact--; } -buildUnnamed284() { +buildUnnamed299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed284(core.List<core.String> 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')); } -buildUnnamed285() { +buildUnnamed300() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed285(core.List<core.String> 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')); @@ -5001,13 +5001,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed284(); + 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 = buildUnnamed285(); + o.lastSentRecipients = buildUnnamed300(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5026,13 +5026,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed284(o.approvedByUserProfileIds); + 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')); - checkUnnamed285(o.lastSentRecipients); + 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')); @@ -5044,14 +5044,14 @@ buildCounterOrderDocument--; } -buildUnnamed286() { +buildUnnamed301() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed286(core.List<api.OrderDocument> o) { +checkUnnamed301(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5064,7 +5064,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed286(); + o.orderDocuments = buildUnnamed301(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5075,19 +5075,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed286(o.orderDocuments); + checkUnnamed301(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed287() { +buildUnnamed302() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed287(core.List<api.Order> o) { +checkUnnamed302(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5100,7 +5100,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed287(); + o.orders = buildUnnamed302(); } buildCounterOrdersListResponse--; return o; @@ -5111,58 +5111,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed287(o.orders); + checkUnnamed302(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed288() { +buildUnnamed303() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed288(core.List<api.Dimension> o) { +checkUnnamed303(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed289() { +buildUnnamed304() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed289(core.List<api.Dimension> o) { +checkUnnamed304(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed290() { +buildUnnamed305() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed290(core.List<api.Metric> o) { +checkUnnamed305(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed291() { +buildUnnamed306() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed291(core.List<api.Dimension> o) { +checkUnnamed306(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5173,11 +5173,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed288(); - o.customFloodlightVariables = buildUnnamed289(); + o.conversionDimensions = buildUnnamed303(); + o.customFloodlightVariables = buildUnnamed304(); o.kind = "foo"; - o.metrics = buildUnnamed290(); - o.perInteractionDimensions = buildUnnamed291(); + o.metrics = buildUnnamed305(); + o.perInteractionDimensions = buildUnnamed306(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5186,23 +5186,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed288(o.conversionDimensions); - checkUnnamed289(o.customFloodlightVariables); + checkUnnamed303(o.conversionDimensions); + checkUnnamed304(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed290(o.metrics); - checkUnnamed291(o.perInteractionDimensions); + checkUnnamed305(o.metrics); + checkUnnamed306(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed292() { +buildUnnamed307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed292(core.List<core.String> 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')); @@ -5247,7 +5247,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed292(); + o.tagFormats = buildUnnamed307(); o.tagSetting = buildTagSetting(); } buildCounterPlacement--; @@ -5291,7 +5291,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed292(o.tagFormats); + checkUnnamed307(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5322,14 +5322,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed293() { +buildUnnamed308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed293(core.List<core.String> 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')); @@ -5346,7 +5346,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed293(); + o.childPlacementIds = buildUnnamed308(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5380,7 +5380,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed293(o.childPlacementIds); + checkUnnamed308(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5404,14 +5404,14 @@ buildCounterPlacementGroup--; } -buildUnnamed294() { +buildUnnamed309() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed294(core.List<api.PlacementGroup> o) { +checkUnnamed309(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5424,7 +5424,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed294(); + o.placementGroups = buildUnnamed309(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5435,19 +5435,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed294(o.placementGroups); + checkUnnamed309(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed295() { +buildUnnamed310() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed295(core.List<api.PlacementStrategy> o) { +checkUnnamed310(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5460,7 +5460,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed295(); + o.placementStrategies = buildUnnamed310(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5471,7 +5471,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed295(o.placementStrategies); + checkUnnamed310(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5501,14 +5501,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed296() { +buildUnnamed311() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed296(core.List<api.TagData> o) { +checkUnnamed311(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5520,7 +5520,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed296(); + o.tagDatas = buildUnnamed311(); } buildCounterPlacementTag--; return o; @@ -5530,19 +5530,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed296(o.tagDatas); + checkUnnamed311(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed297() { +buildUnnamed312() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed297(core.List<api.PlacementTag> o) { +checkUnnamed312(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -5554,7 +5554,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed297(); + o.placementTags = buildUnnamed312(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5564,19 +5564,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed297(o.placementTags); + checkUnnamed312(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed298() { +buildUnnamed313() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed298(core.List<api.Placement> o) { +checkUnnamed313(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -5589,7 +5589,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed298(); + o.placements = buildUnnamed313(); } buildCounterPlacementsListResponse--; return o; @@ -5600,7 +5600,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed298(o.placements); + checkUnnamed313(o.placements); } buildCounterPlacementsListResponse--; } @@ -5628,14 +5628,14 @@ buildCounterPlatformType--; } -buildUnnamed299() { +buildUnnamed314() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed299(core.List<api.PlatformType> o) { +checkUnnamed314(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -5647,7 +5647,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed299(); + o.platformTypes = buildUnnamed314(); } buildCounterPlatformTypesListResponse--; return o; @@ -5657,7 +5657,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed299(o.platformTypes); + checkUnnamed314(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -5724,14 +5724,14 @@ buildCounterPostalCode--; } -buildUnnamed300() { +buildUnnamed315() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed300(core.List<api.PostalCode> o) { +checkUnnamed315(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -5743,7 +5743,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed300(); + o.postalCodes = buildUnnamed315(); } buildCounterPostalCodesListResponse--; return o; @@ -5753,19 +5753,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed300(o.postalCodes); + checkUnnamed315(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed301() { +buildUnnamed316() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed301(core.List<api.Flight> o) { +checkUnnamed316(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -5778,7 +5778,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed301(); + o.flights = buildUnnamed316(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5792,7 +5792,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"))); - checkUnnamed301(o.flights); + 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"))); @@ -5800,14 +5800,14 @@ buildCounterPricing--; } -buildUnnamed302() { +buildUnnamed317() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed302(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed317(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -5823,7 +5823,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed302(); + 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"); @@ -5840,7 +5840,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')); - checkUnnamed302(o.pricingPeriods); + 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"))); @@ -5934,14 +5934,14 @@ buildCounterProject--; } -buildUnnamed303() { +buildUnnamed318() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed303(core.List<api.Project> o) { +checkUnnamed318(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -5954,7 +5954,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed303(); + o.projects = buildUnnamed318(); } buildCounterProjectsListResponse--; return o; @@ -5965,71 +5965,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed303(o.projects); + checkUnnamed318(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed304() { +buildUnnamed319() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed304(core.List<api.Dimension> o) { +checkUnnamed319(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed305() { +buildUnnamed320() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed305(core.List<api.Dimension> o) { +checkUnnamed320(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed306() { +buildUnnamed321() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed306(core.List<api.Metric> o) { +checkUnnamed321(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed307() { +buildUnnamed322() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed307(core.List<api.Metric> o) { +checkUnnamed322(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed308() { +buildUnnamed323() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed308(core.List<api.Metric> o) { +checkUnnamed323(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6040,12 +6040,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed304(); - o.dimensions = buildUnnamed305(); + o.dimensionFilters = buildUnnamed319(); + o.dimensions = buildUnnamed320(); o.kind = "foo"; - o.metrics = buildUnnamed306(); - o.pivotedActivityMetrics = buildUnnamed307(); - o.reachByFrequencyMetrics = buildUnnamed308(); + o.metrics = buildUnnamed321(); + o.pivotedActivityMetrics = buildUnnamed322(); + o.reachByFrequencyMetrics = buildUnnamed323(); } buildCounterReachReportCompatibleFields--; return o; @@ -6054,12 +6054,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed304(o.dimensionFilters); - checkUnnamed305(o.dimensions); + checkUnnamed319(o.dimensionFilters); + checkUnnamed320(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed306(o.metrics); - checkUnnamed307(o.pivotedActivityMetrics); - checkUnnamed308(o.reachByFrequencyMetrics); + checkUnnamed321(o.metrics); + checkUnnamed322(o.pivotedActivityMetrics); + checkUnnamed323(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6116,14 +6116,14 @@ buildCounterRegion--; } -buildUnnamed309() { +buildUnnamed324() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed309(core.List<api.Region> o) { +checkUnnamed324(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6135,7 +6135,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed309(); + o.regions = buildUnnamed324(); } buildCounterRegionsListResponse--; return o; @@ -6145,7 +6145,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed309(o.regions); + checkUnnamed324(o.regions); } buildCounterRegionsListResponse--; } @@ -6193,27 +6193,27 @@ buildCounterRemarketingList--; } -buildUnnamed310() { +buildUnnamed325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed310(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')); } -buildUnnamed311() { +buildUnnamed326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed311(core.List<core.String> 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')); @@ -6226,8 +6226,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed310(); - o.sharedAdvertiserIds = buildUnnamed311(); + o.sharedAccountIds = buildUnnamed325(); + o.sharedAdvertiserIds = buildUnnamed326(); } buildCounterRemarketingListShare--; return o; @@ -6238,20 +6238,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed310(o.sharedAccountIds); - checkUnnamed311(o.sharedAdvertiserIds); + checkUnnamed325(o.sharedAccountIds); + checkUnnamed326(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed312() { +buildUnnamed327() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed312(core.List<api.RemarketingList> o) { +checkUnnamed327(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6264,7 +6264,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed312(); + o.remarketingLists = buildUnnamed327(); } buildCounterRemarketingListsListResponse--; return o; @@ -6275,45 +6275,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed312(o.remarketingLists); + checkUnnamed327(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed313() { +buildUnnamed328() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed313(core.List<api.DimensionValue> o) { +checkUnnamed328(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed314() { +buildUnnamed329() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed314(core.List<api.SortedDimension> o) { +checkUnnamed329(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed315() { +buildUnnamed330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed315(core.List<core.String> 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')); @@ -6327,9 +6327,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed313(); - o.dimensions = buildUnnamed314(); - o.metricNames = buildUnnamed315(); + o.dimensionFilters = buildUnnamed328(); + o.dimensions = buildUnnamed329(); + o.metricNames = buildUnnamed330(); } buildCounterReportCriteria--; return o; @@ -6341,60 +6341,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed313(o.dimensionFilters); - checkUnnamed314(o.dimensions); - checkUnnamed315(o.metricNames); + checkUnnamed328(o.dimensionFilters); + checkUnnamed329(o.dimensions); + checkUnnamed330(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed316() { +buildUnnamed331() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed316(core.List<api.SortedDimension> o) { +checkUnnamed331(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed317() { +buildUnnamed332() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed317(core.List<api.DimensionValue> o) { +checkUnnamed332(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed318() { +buildUnnamed333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed318(core.List<core.String> 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')); } -buildUnnamed319() { +buildUnnamed334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed319(core.List<core.String> 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')); @@ -6405,12 +6405,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed316(); + o.breakdown = buildUnnamed331(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed317(); - o.metricNames = buildUnnamed318(); - o.overlapMetricNames = buildUnnamed319(); + o.dimensionFilters = buildUnnamed332(); + o.metricNames = buildUnnamed333(); + o.overlapMetricNames = buildUnnamed334(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6420,25 +6420,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed316(o.breakdown); + checkUnnamed331(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed317(o.dimensionFilters); - checkUnnamed318(o.metricNames); - checkUnnamed319(o.overlapMetricNames); + checkUnnamed332(o.dimensionFilters); + checkUnnamed333(o.metricNames); + checkUnnamed334(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed320() { +buildUnnamed335() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed320(core.List<api.Recipient> o) { +checkUnnamed335(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6452,7 +6452,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed320(); + o.recipients = buildUnnamed335(); } buildCounterReportDelivery--; return o; @@ -6464,58 +6464,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed320(o.recipients); + checkUnnamed335(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed321() { +buildUnnamed336() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed321(core.List<api.DimensionValue> o) { +checkUnnamed336(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed322() { +buildUnnamed337() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed322(core.List<api.DimensionValue> o) { +checkUnnamed337(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed323() { +buildUnnamed338() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed323(core.List<api.SortedDimension> o) { +checkUnnamed338(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed324() { +buildUnnamed339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed324(core.List<core.String> 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')); @@ -6549,12 +6549,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed321(); + o.customRichMediaEvents = buildUnnamed336(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed322(); - o.dimensions = buildUnnamed323(); + o.dimensionFilters = buildUnnamed337(); + o.dimensions = buildUnnamed338(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed324(); + o.metricNames = buildUnnamed339(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6564,90 +6564,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed321(o.customRichMediaEvents); + checkUnnamed336(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed322(o.dimensionFilters); - checkUnnamed323(o.dimensions); + checkUnnamed337(o.dimensionFilters); + checkUnnamed338(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed324(o.metricNames); + checkUnnamed339(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed325() { +buildUnnamed340() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed325(core.List<api.DimensionValue> o) { +checkUnnamed340(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed326() { +buildUnnamed341() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed326(core.List<api.SortedDimension> o) { +checkUnnamed341(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed327() { +buildUnnamed342() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed327(core.List<api.SortedDimension> o) { +checkUnnamed342(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed328() { +buildUnnamed343() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed328(core.List<api.DimensionValue> o) { +checkUnnamed343(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed329() { +buildUnnamed344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed329(core.List<core.String> 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')); } -buildUnnamed330() { +buildUnnamed345() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed330(core.List<api.SortedDimension> o) { +checkUnnamed345(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -6693,14 +6693,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed325(); - o.conversionDimensions = buildUnnamed326(); - o.customFloodlightVariables = buildUnnamed327(); - o.customRichMediaEvents = buildUnnamed328(); + o.activityFilters = buildUnnamed340(); + o.conversionDimensions = buildUnnamed341(); + o.customFloodlightVariables = buildUnnamed342(); + o.customRichMediaEvents = buildUnnamed343(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed329(); - o.perInteractionDimensions = buildUnnamed330(); + o.metricNames = buildUnnamed344(); + o.perInteractionDimensions = buildUnnamed345(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -6710,66 +6710,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed325(o.activityFilters); - checkUnnamed326(o.conversionDimensions); - checkUnnamed327(o.customFloodlightVariables); - checkUnnamed328(o.customRichMediaEvents); + checkUnnamed340(o.activityFilters); + checkUnnamed341(o.conversionDimensions); + checkUnnamed342(o.customFloodlightVariables); + checkUnnamed343(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed329(o.metricNames); - checkUnnamed330(o.perInteractionDimensions); + checkUnnamed344(o.metricNames); + checkUnnamed345(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed331() { +buildUnnamed346() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed331(core.List<api.DimensionValue> o) { +checkUnnamed346(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed332() { +buildUnnamed347() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed332(core.List<api.SortedDimension> o) { +checkUnnamed347(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed333() { +buildUnnamed348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed333(core.List<core.String> 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')); } -buildUnnamed334() { +buildUnnamed349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed334(core.List<core.String> 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')); @@ -6783,11 +6783,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed331(); - o.dimensions = buildUnnamed332(); + o.dimensionFilters = buildUnnamed346(); + o.dimensions = buildUnnamed347(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed333(); - o.reachByFrequencyMetricNames = buildUnnamed334(); + o.metricNames = buildUnnamed348(); + o.reachByFrequencyMetricNames = buildUnnamed349(); } buildCounterReportReachCriteria--; return o; @@ -6799,23 +6799,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed331(o.dimensionFilters); - checkUnnamed332(o.dimensions); + checkUnnamed346(o.dimensionFilters); + checkUnnamed347(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed333(o.metricNames); - checkUnnamed334(o.reachByFrequencyMetricNames); + checkUnnamed348(o.metricNames); + checkUnnamed349(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed335() { +buildUnnamed350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed335(core.List<core.String> 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')); @@ -6830,7 +6830,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed335(); + o.repeatsOnWeekDays = buildUnnamed350(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -6845,7 +6845,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')); - checkUnnamed335(o.repeatsOnWeekDays); + checkUnnamed350(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -6905,53 +6905,53 @@ buildCounterReport--; } -buildUnnamed336() { +buildUnnamed351() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed336(core.List<api.Dimension> o) { +checkUnnamed351(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed337() { +buildUnnamed352() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed337(core.List<api.Dimension> o) { +checkUnnamed352(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed338() { +buildUnnamed353() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed338(core.List<api.Metric> o) { +checkUnnamed353(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed339() { +buildUnnamed354() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed339(core.List<api.Metric> o) { +checkUnnamed354(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6962,11 +6962,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed336(); - o.dimensions = buildUnnamed337(); + o.dimensionFilters = buildUnnamed351(); + o.dimensions = buildUnnamed352(); o.kind = "foo"; - o.metrics = buildUnnamed338(); - o.pivotedActivityMetrics = buildUnnamed339(); + o.metrics = buildUnnamed353(); + o.pivotedActivityMetrics = buildUnnamed354(); } buildCounterReportCompatibleFields--; return o; @@ -6975,23 +6975,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed336(o.dimensionFilters); - checkUnnamed337(o.dimensions); + checkUnnamed351(o.dimensionFilters); + checkUnnamed352(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed338(o.metrics); - checkUnnamed339(o.pivotedActivityMetrics); + checkUnnamed353(o.metrics); + checkUnnamed354(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed340() { +buildUnnamed355() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed340(core.List<api.Report> o) { +checkUnnamed355(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7003,7 +7003,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed340(); + o.items = buildUnnamed355(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7015,7 +7015,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed340(o.items); + checkUnnamed355(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7068,14 +7068,14 @@ buildCounterRichMediaExitOverride--; } -buildUnnamed341() { +buildUnnamed356() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed341(core.List<api.SiteContact> o) { +checkUnnamed356(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7095,7 +7095,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed341(); + o.siteContacts = buildUnnamed356(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7115,7 +7115,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed341(o.siteContacts); + checkUnnamed356(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7186,14 +7186,14 @@ buildCounterSiteSettings--; } -buildUnnamed342() { +buildUnnamed357() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed342(core.List<api.Site> o) { +checkUnnamed357(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7206,7 +7206,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed342(); + o.sites = buildUnnamed357(); } buildCounterSitesListResponse--; return o; @@ -7217,7 +7217,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed342(o.sites); + checkUnnamed357(o.sites); } buildCounterSitesListResponse--; } @@ -7249,14 +7249,14 @@ buildCounterSize--; } -buildUnnamed343() { +buildUnnamed358() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed343(core.List<api.Size> o) { +checkUnnamed358(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7268,7 +7268,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed343(); + o.sizes = buildUnnamed358(); } buildCounterSizesListResponse--; return o; @@ -7278,7 +7278,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed343(o.sizes); + checkUnnamed358(o.sizes); } buildCounterSizesListResponse--; } @@ -7306,14 +7306,14 @@ buildCounterSortedDimension--; } -buildUnnamed344() { +buildUnnamed359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed344(core.List<core.String> 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')); @@ -7325,7 +7325,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed344(); + o.availablePermissionIds = buildUnnamed359(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7338,7 +7338,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed344(o.availablePermissionIds); + checkUnnamed359(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7346,14 +7346,14 @@ buildCounterSubaccount--; } -buildUnnamed345() { +buildUnnamed360() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed345(core.List<api.Subaccount> o) { +checkUnnamed360(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7366,7 +7366,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed345(); + o.subaccounts = buildUnnamed360(); } buildCounterSubaccountsListResponse--; return o; @@ -7377,7 +7377,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed345(o.subaccounts); + checkUnnamed360(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7517,14 +7517,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed346() { +buildUnnamed361() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed346(core.List<api.TargetableRemarketingList> o) { +checkUnnamed361(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -7537,7 +7537,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed346(); + o.targetableRemarketingLists = buildUnnamed361(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7548,84 +7548,84 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed346(o.targetableRemarketingLists); + checkUnnamed361(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed347() { +buildUnnamed362() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed347(core.List<api.Browser> o) { +checkUnnamed362(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed348() { +buildUnnamed363() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed348(core.List<api.ConnectionType> o) { +checkUnnamed363(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed349() { +buildUnnamed364() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed349(core.List<api.MobileCarrier> o) { +checkUnnamed364(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed350() { +buildUnnamed365() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed350(core.List<api.OperatingSystemVersion> o) { +checkUnnamed365(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed351() { +buildUnnamed366() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed351(core.List<api.OperatingSystem> o) { +checkUnnamed366(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed352() { +buildUnnamed367() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed352(core.List<api.PlatformType> o) { +checkUnnamed367(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -7636,12 +7636,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed347(); - o.connectionTypes = buildUnnamed348(); - o.mobileCarriers = buildUnnamed349(); - o.operatingSystemVersions = buildUnnamed350(); - o.operatingSystems = buildUnnamed351(); - o.platformTypes = buildUnnamed352(); + o.browsers = buildUnnamed362(); + o.connectionTypes = buildUnnamed363(); + o.mobileCarriers = buildUnnamed364(); + o.operatingSystemVersions = buildUnnamed365(); + o.operatingSystems = buildUnnamed366(); + o.platformTypes = buildUnnamed367(); } buildCounterTechnologyTargeting--; return o; @@ -7650,12 +7650,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed347(o.browsers); - checkUnnamed348(o.connectionTypes); - checkUnnamed349(o.mobileCarriers); - checkUnnamed350(o.operatingSystemVersions); - checkUnnamed351(o.operatingSystems); - checkUnnamed352(o.platformTypes); + checkUnnamed362(o.browsers); + checkUnnamed363(o.connectionTypes); + checkUnnamed364(o.mobileCarriers); + checkUnnamed365(o.operatingSystemVersions); + checkUnnamed366(o.operatingSystems); + checkUnnamed367(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -7758,14 +7758,14 @@ buildCounterUserProfile--; } -buildUnnamed353() { +buildUnnamed368() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed353(core.List<api.UserProfile> o) { +checkUnnamed368(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -7777,7 +7777,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed353(); + o.items = buildUnnamed368(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -7788,20 +7788,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed353(o.items); + checkUnnamed368(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed354() { +buildUnnamed369() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed354(core.List<api.UserRolePermission> o) { +checkUnnamed369(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7818,7 +7818,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed354(); + o.permissions = buildUnnamed369(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -7834,7 +7834,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed354(o.permissions); + checkUnnamed369(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -7890,14 +7890,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed355() { +buildUnnamed370() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed355(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed370(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -7909,7 +7909,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed355(); + o.userRolePermissionGroups = buildUnnamed370(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -7919,19 +7919,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed355(o.userRolePermissionGroups); + checkUnnamed370(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed356() { +buildUnnamed371() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed356(core.List<api.UserRolePermission> o) { +checkUnnamed371(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7943,7 +7943,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed356(); + o.userRolePermissions = buildUnnamed371(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -7953,19 +7953,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed356(o.userRolePermissions); + checkUnnamed371(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed357() { +buildUnnamed372() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed357(core.List<api.UserRole> o) { +checkUnnamed372(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -7978,7 +7978,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed357(); + o.userRoles = buildUnnamed372(); } buildCounterUserRolesListResponse--; return o; @@ -7989,206 +7989,11 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed357(o.userRoles); + checkUnnamed372(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed358() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed358(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -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')); -} - -buildUnnamed360() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed360(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed361() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed361(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed362() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed363() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed364() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed364(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed365() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed365(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -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')); -} - -buildUnnamed367() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed367(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed368() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed368(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed369() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed369(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed370() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed370(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed371() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed371(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed372() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed372(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed373() { var o = new core.List<core.String>(); o.add("foo"); @@ -9112,6 +8917,201 @@ 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", () { @@ -11261,7 +11261,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed358(); + var arg_ids = buildUnnamed373(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11509,7 +11509,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed359(); + var arg_ids = buildUnnamed374(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11812,27 +11812,27 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed360(); - var arg_campaignIds = buildUnnamed361(); + var arg_audienceSegmentIds = buildUnnamed375(); + var arg_campaignIds = buildUnnamed376(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed362(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed363(); + var arg_creativeIds = buildUnnamed377(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed378(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed364(); - var arg_landingPageIds = buildUnnamed365(); + var arg_ids = buildUnnamed379(); + var arg_landingPageIds = buildUnnamed380(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed366(); - var arg_remarketingListIds = buildUnnamed367(); + var arg_placementIds = buildUnnamed381(); + var arg_remarketingListIds = buildUnnamed382(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed368(); + var arg_sizeIds = buildUnnamed383(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed369(); + var arg_type = buildUnnamed384(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -12199,7 +12199,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed370(); + var arg_ids = buildUnnamed385(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12498,9 +12498,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed371(); - var arg_floodlightConfigurationIds = buildUnnamed372(); - var arg_ids = buildUnnamed373(); + var arg_advertiserGroupIds = buildUnnamed386(); + var arg_floodlightConfigurationIds = buildUnnamed387(); + var arg_ids = buildUnnamed388(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -13006,12 +13006,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed374(); - var arg_advertiserIds = buildUnnamed375(); + var arg_advertiserGroupIds = buildUnnamed389(); + var arg_advertiserIds = buildUnnamed390(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed376(); - var arg_ids = buildUnnamed377(); + var arg_excludedIds = buildUnnamed391(); + var arg_ids = buildUnnamed392(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13263,15 +13263,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed378(); + var arg_ids = buildUnnamed393(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed379(); + var arg_objectIds = buildUnnamed394(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed380(); + var arg_userProfileIds = buildUnnamed395(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13339,10 +13339,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed381(); - var arg_dartIds = buildUnnamed382(); + var arg_countryDartIds = buildUnnamed396(); + var arg_dartIds = buildUnnamed397(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed383(); + var arg_regionDartIds = buildUnnamed398(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13687,7 +13687,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed384(); + var arg_ids = buildUnnamed399(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14251,7 +14251,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed385(); + var arg_ids = buildUnnamed400(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14628,8 +14628,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed386(); - var arg_ids = buildUnnamed387(); + var arg_advertiserIds = buildUnnamed401(); + var arg_ids = buildUnnamed402(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14929,9 +14929,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed388(); + var arg_advertiserIds = buildUnnamed403(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed389(); + var arg_ids = buildUnnamed404(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15236,18 +15236,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed390(); - var arg_creativeFieldIds = buildUnnamed391(); - var arg_ids = buildUnnamed392(); + var arg_companionCreativeIds = buildUnnamed405(); + var arg_creativeFieldIds = buildUnnamed406(); + var arg_ids = buildUnnamed407(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed393(); + var arg_renderingIds = buildUnnamed408(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed394(); + var arg_sizeIds = buildUnnamed409(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed395(); + var arg_types = buildUnnamed410(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -15559,8 +15559,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed396(); - var arg_ids = buildUnnamed397(); + var arg_directorySiteIds = buildUnnamed411(); + var arg_ids = buildUnnamed412(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15750,7 +15750,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed398(); + var arg_ids = buildUnnamed413(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -16001,8 +16001,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed399(); - var arg_ids = buildUnnamed400(); + var arg_eventTagTypes = buildUnnamed414(); + var arg_ids = buildUnnamed415(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -16540,12 +16540,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed401(); + var arg_floodlightActivityGroupIds = buildUnnamed416(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed402(); + var arg_ids = buildUnnamed417(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16854,7 +16854,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed403(); + var arg_ids = buildUnnamed418(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -17100,7 +17100,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed404(); + var arg_ids = buildUnnamed419(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17341,12 +17341,12 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed405(); + var arg_ids = buildUnnamed420(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed406(); + var arg_orderId = buildUnnamed421(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed407(); + var arg_siteId = buildUnnamed422(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_type = "foo"; @@ -18279,12 +18279,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed408(); + var arg_ids = buildUnnamed423(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed409(); + var arg_orderId = buildUnnamed424(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed410(); + var arg_siteId = buildUnnamed425(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18426,11 +18426,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed411(); + var arg_ids = buildUnnamed426(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed412(); + var arg_siteId = buildUnnamed427(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18618,12 +18618,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed413(); + var arg_advertiserIds = buildUnnamed428(); var arg_archived = true; - var arg_campaignIds = buildUnnamed414(); - var arg_contentCategoryIds = buildUnnamed415(); - var arg_directorySiteIds = buildUnnamed416(); - var arg_ids = buildUnnamed417(); + 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"; @@ -18631,10 +18631,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed418(); - var arg_pricingTypes = buildUnnamed419(); + var arg_placementStrategyIds = buildUnnamed433(); + var arg_pricingTypes = buildUnnamed434(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed420(); + var arg_siteIds = buildUnnamed435(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18998,7 +18998,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed421(); + var arg_ids = buildUnnamed436(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19184,8 +19184,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed422(); - var arg_tagFormats = buildUnnamed423(); + var arg_placementIds = buildUnnamed437(); + var arg_tagFormats = buildUnnamed438(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -19356,14 +19356,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed424(); + var arg_advertiserIds = buildUnnamed439(); var arg_archived = true; - var arg_campaignIds = buildUnnamed425(); - var arg_compatibilities = buildUnnamed426(); - var arg_contentCategoryIds = buildUnnamed427(); - var arg_directorySiteIds = buildUnnamed428(); - var arg_groupIds = buildUnnamed429(); - var arg_ids = buildUnnamed430(); + 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"; @@ -19371,11 +19371,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed431(); - var arg_pricingTypes = buildUnnamed432(); + var arg_placementStrategyIds = buildUnnamed446(); + var arg_pricingTypes = buildUnnamed447(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed433(); - var arg_sizeIds = buildUnnamed434(); + var arg_siteIds = buildUnnamed448(); + var arg_sizeIds = buildUnnamed449(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19858,8 +19858,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed435(); - var arg_ids = buildUnnamed436(); + var arg_advertiserIds = buildUnnamed450(); + var arg_ids = buildUnnamed451(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21207,9 +21207,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed437(); - var arg_directorySiteIds = buildUnnamed438(); - var arg_ids = buildUnnamed439(); + var arg_campaignIds = buildUnnamed452(); + var arg_directorySiteIds = buildUnnamed453(); + var arg_ids = buildUnnamed454(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21521,7 +21521,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed440(); + var arg_ids = buildUnnamed455(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -21698,7 +21698,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed441(); + var arg_ids = buildUnnamed456(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22280,7 +22280,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed442(); + var arg_ids = buildUnnamed457(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -22509,7 +22509,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed443(); + var arg_ids = buildUnnamed458(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_5_test.dart b/generated/googleapis/test/dfareporting/v2_5_test.dart index 82acc74..750efef 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); } -buildUnnamed1533() { +buildUnnamed1543() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1533(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')); } -buildUnnamed1534() { +buildUnnamed1544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1534(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')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed1533(); + o.accountPermissionIds = buildUnnamed1543(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed1534(); + o.availablePermissionIds = buildUnnamed1544(); o.comscoreVceEnabled = true; o.countryId = "foo"; o.currencyId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1533(o.accountPermissionIds); + checkUnnamed1543(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); - checkUnnamed1534(o.availablePermissionIds); + checkUnnamed1544(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--; } -buildUnnamed1535() { +buildUnnamed1545() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1535(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')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed1535(); + o.accountProfiles = buildUnnamed1545(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed1535(o.accountProfiles); + checkUnnamed1545(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--; } -buildUnnamed1536() { +buildUnnamed1546() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed1536(core.List<api.AccountPermissionGroup> o) { +checkUnnamed1546(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 = buildUnnamed1536(); + o.accountPermissionGroups = buildUnnamed1546(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed1536(o.accountPermissionGroups); + checkUnnamed1546(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed1537() { +buildUnnamed1547() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed1537(core.List<api.AccountPermission> o) { +checkUnnamed1547(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 = buildUnnamed1537(); + o.accountPermissions = buildUnnamed1547(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed1537(o.accountPermissions); + checkUnnamed1547(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed1538() { +buildUnnamed1548() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed1538(core.List<api.AccountUserProfile> o) { +checkUnnamed1548(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 = buildUnnamed1538(); + o.accountUserProfiles = buildUnnamed1548(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed1538(o.accountUserProfiles); + checkUnnamed1548(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed1539() { +buildUnnamed1549() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1539(core.List<api.Account> o) { +checkUnnamed1549(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 = buildUnnamed1539(); + o.accounts = buildUnnamed1549(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed1539(o.accounts); + checkUnnamed1549(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed1540() { +buildUnnamed1550() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1540(core.List<api.DimensionValue> o) { +checkUnnamed1550(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1541() { +buildUnnamed1551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1541(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')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed1540(); + o.filters = buildUnnamed1550(); o.kind = "foo"; - o.metricNames = buildUnnamed1541(); + o.metricNames = buildUnnamed1551(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed1540(o.filters); + checkUnnamed1550(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1541(o.metricNames); + checkUnnamed1551(o.metricNames); } buildCounterActivities--; } -buildUnnamed1542() { +buildUnnamed1552() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1542(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1552(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1543() { +buildUnnamed1553() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1543(core.List<api.EventTagOverride> o) { +checkUnnamed1553(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1544() { +buildUnnamed1554() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed1544(core.List<api.PlacementAssignment> o) { +checkUnnamed1554(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 = buildUnnamed1542(); + o.creativeGroupAssignments = buildUnnamed1552(); 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 = buildUnnamed1543(); + o.eventTagOverrides = buildUnnamed1553(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -534,7 +534,7 @@ o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed1544(); + o.placementAssignments = buildUnnamed1554(); 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); - checkUnnamed1542(o.creativeGroupAssignments); + checkUnnamed1552(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"))); - checkUnnamed1543(o.eventTagOverrides); + checkUnnamed1553(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')); - checkUnnamed1544(o.placementAssignments); + checkUnnamed1554(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -625,14 +625,14 @@ buildCounterAdSlot--; } -buildUnnamed1545() { +buildUnnamed1555() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed1545(core.List<api.Ad> o) { +checkUnnamed1555(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 = buildUnnamed1545(); + o.ads = buildUnnamed1555(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +654,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed1545(o.ads); + checkUnnamed1555(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +733,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed1546() { +buildUnnamed1556() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed1546(core.List<api.AdvertiserGroup> o) { +checkUnnamed1556(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 = buildUnnamed1546(); + o.advertiserGroups = buildUnnamed1556(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +762,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed1546(o.advertiserGroups); + checkUnnamed1556(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed1547() { +buildUnnamed1557() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed1547(core.List<api.Advertiser> o) { +checkUnnamed1557(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 = buildUnnamed1547(); + o.advertisers = buildUnnamed1557(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +798,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed1547(o.advertisers); + checkUnnamed1557(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +828,14 @@ buildCounterAudienceSegment--; } -buildUnnamed1548() { +buildUnnamed1558() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed1548(core.List<api.AudienceSegment> o) { +checkUnnamed1558(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 = buildUnnamed1548(); + o.audienceSegments = buildUnnamed1558(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +857,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed1548(o.audienceSegments); + checkUnnamed1558(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +893,14 @@ buildCounterBrowser--; } -buildUnnamed1549() { +buildUnnamed1559() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1549(core.List<api.Browser> o) { +checkUnnamed1559(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 = buildUnnamed1549(); + o.browsers = buildUnnamed1559(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +921,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed1549(o.browsers); + checkUnnamed1559(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed1550() { +buildUnnamed1560() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed1550(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed1560(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed1551() { +buildUnnamed1561() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed1551(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed1561(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed1552() { +buildUnnamed1562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1552(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')); } -buildUnnamed1553() { +buildUnnamed1563() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1553(core.List<api.EventTagOverride> o) { +checkUnnamed1563(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1554() { +buildUnnamed1564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1554(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')); @@ -998,22 +998,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed1550(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed1560(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed1551(); + o.audienceSegmentGroups = buildUnnamed1561(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed1552(); + o.creativeGroupIds = buildUnnamed1562(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed1553(); + o.eventTagOverrides = buildUnnamed1563(); 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 = buildUnnamed1554(); + o.traffickerEmails = buildUnnamed1564(); } buildCounterCampaign--; return o; @@ -1034,22 +1034,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1550(o.additionalCreativeOptimizationConfigurations); + checkUnnamed1560(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); - checkUnnamed1551(o.audienceSegmentGroups); + checkUnnamed1561(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); - checkUnnamed1552(o.creativeGroupIds); + checkUnnamed1562(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1553(o.eventTagOverrides); + checkUnnamed1563(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')); - checkUnnamed1554(o.traffickerEmails); + checkUnnamed1564(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1086,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed1555() { +buildUnnamed1565() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed1555(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed1565(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 = buildUnnamed1555(); + o.campaignCreativeAssociations = buildUnnamed1565(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1115,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed1555(o.campaignCreativeAssociations); + checkUnnamed1565(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed1556() { +buildUnnamed1566() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed1556(core.List<api.Campaign> o) { +checkUnnamed1566(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 = buildUnnamed1556(); + o.campaigns = buildUnnamed1566(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1151,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed1556(o.campaigns); + checkUnnamed1566(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1203,14 @@ buildCounterChangeLog--; } -buildUnnamed1557() { +buildUnnamed1567() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed1557(core.List<api.ChangeLog> o) { +checkUnnamed1567(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 = buildUnnamed1557(); + o.changeLogs = buildUnnamed1567(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1232,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed1557(o.changeLogs); + checkUnnamed1567(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed1558() { +buildUnnamed1568() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1558(core.List<api.City> o) { +checkUnnamed1568(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 = buildUnnamed1558(); + o.cities = buildUnnamed1568(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1267,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed1558(o.cities); + checkUnnamed1568(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1450,14 +1450,14 @@ buildCounterConnectionType--; } -buildUnnamed1559() { +buildUnnamed1569() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1559(core.List<api.ConnectionType> o) { +checkUnnamed1569(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 = buildUnnamed1559(); + o.connectionTypes = buildUnnamed1569(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1478,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed1559(o.connectionTypes); + checkUnnamed1569(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed1560() { +buildUnnamed1570() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed1560(core.List<api.ContentCategory> o) { +checkUnnamed1570(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 = buildUnnamed1560(); + o.contentCategories = buildUnnamed1570(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1513,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed1560(o.contentCategories); + checkUnnamed1570(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1545,14 @@ buildCounterContentCategory--; } -buildUnnamed1561() { +buildUnnamed1571() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed1561(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed1571(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 = buildUnnamed1561(); + o.customVariables = buildUnnamed1571(); o.encryptedUserId = "foo"; o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; @@ -1584,7 +1584,7 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed1561(o.customVariables); + checkUnnamed1571(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--; } -buildUnnamed1562() { +buildUnnamed1572() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed1562(core.List<api.ConversionError> o) { +checkUnnamed1572(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 = buildUnnamed1562(); + o.errors = buildUnnamed1572(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1652,20 +1652,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed1562(o.errors); + checkUnnamed1572(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed1563() { +buildUnnamed1573() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1563(core.List<api.Conversion> o) { +checkUnnamed1573(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 = buildUnnamed1563(); + o.conversions = buildUnnamed1573(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1687,21 +1687,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed1563(o.conversions); + checkUnnamed1573(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed1564() { +buildUnnamed1574() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed1564(core.List<api.ConversionStatus> o) { +checkUnnamed1574(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 = buildUnnamed1564(); + o.status = buildUnnamed1574(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1725,19 +1725,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1564(o.status); + checkUnnamed1574(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed1565() { +buildUnnamed1575() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1565(core.List<api.Country> o) { +checkUnnamed1575(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 = buildUnnamed1565(); + o.countries = buildUnnamed1575(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1758,7 +1758,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed1565(o.countries); + checkUnnamed1575(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1791,157 +1791,157 @@ buildCounterCountry--; } -buildUnnamed1566() { +buildUnnamed1576() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1566(core.List<core.String> o) { +checkUnnamed1576(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1567() { +buildUnnamed1577() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1567(core.List<core.String> o) { +checkUnnamed1577(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1568() { +buildUnnamed1578() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1568(core.List<api.ClickTag> o) { +checkUnnamed1578(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1569() { +buildUnnamed1579() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1569(core.List<core.String> o) { +checkUnnamed1579(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1570() { +buildUnnamed1580() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1570(core.List<core.String> o) { +checkUnnamed1580(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1571() { +buildUnnamed1581() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1571(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1581(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1572() { +buildUnnamed1582() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed1572(core.List<api.CreativeAsset> o) { +checkUnnamed1582(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed1573() { +buildUnnamed1583() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed1573(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed1583(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed1574() { +buildUnnamed1584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1574(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')); } -buildUnnamed1575() { +buildUnnamed1585() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1575(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1585(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1576() { +buildUnnamed1586() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed1576(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed1586(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed1577() { +buildUnnamed1587() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1577(core.List<api.CreativeCustomEvent> o) { +checkUnnamed1587(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 = buildUnnamed1566(); + o.adTagKeys = buildUnnamed1576(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1965,19 +1965,19 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed1567(); + o.backupImageFeatures = buildUnnamed1577(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed1568(); + o.clickTags = buildUnnamed1578(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed1569(); - o.compatibility = buildUnnamed1570(); + o.companionCreatives = buildUnnamed1579(); + o.compatibility = buildUnnamed1580(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed1571(); - o.creativeAssets = buildUnnamed1572(); - o.creativeFieldAssignments = buildUnnamed1573(); - o.customKeyValues = buildUnnamed1574(); - o.exitCustomEvents = buildUnnamed1575(); + o.counterCustomEvents = buildUnnamed1581(); + o.creativeAssets = buildUnnamed1582(); + o.creativeFieldAssignments = buildUnnamed1583(); + o.customKeyValues = buildUnnamed1584(); + o.exitCustomEvents = buildUnnamed1585(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2003,8 +2003,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed1576(); - o.timerCustomEvents = buildUnnamed1577(); + o.thirdPartyUrls = buildUnnamed1586(); + o.timerCustomEvents = buildUnnamed1587(); 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')); - checkUnnamed1566(o.adTagKeys); + checkUnnamed1576(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')); - checkUnnamed1567(o.backupImageFeatures); + checkUnnamed1577(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed1568(o.clickTags); + checkUnnamed1578(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed1569(o.companionCreatives); - checkUnnamed1570(o.compatibility); + checkUnnamed1579(o.companionCreatives); + checkUnnamed1580(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed1571(o.counterCustomEvents); - checkUnnamed1572(o.creativeAssets); - checkUnnamed1573(o.creativeFieldAssignments); - checkUnnamed1574(o.customKeyValues); - checkUnnamed1575(o.exitCustomEvents); + checkUnnamed1581(o.counterCustomEvents); + checkUnnamed1582(o.creativeAssets); + checkUnnamed1583(o.creativeFieldAssignments); + checkUnnamed1584(o.customKeyValues); + checkUnnamed1585(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')); - checkUnnamed1576(o.thirdPartyUrls); - checkUnnamed1577(o.timerCustomEvents); + checkUnnamed1586(o.thirdPartyUrls); + checkUnnamed1587(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--; } -buildUnnamed1578() { +buildUnnamed1588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1578(core.List<core.String> o) { +checkUnnamed1588(core.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 = buildUnnamed1578(); + o.detectedFeatures = buildUnnamed1588(); 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)); - checkUnnamed1578(o.detectedFeatures); + checkUnnamed1588(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--; } -buildUnnamed1579() { +buildUnnamed1589() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1579(core.List<api.ClickTag> o) { +checkUnnamed1589(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1580() { +buildUnnamed1590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1580(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')); } -buildUnnamed1581() { +buildUnnamed1591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1581(core.List<core.String> o) { +checkUnnamed1591(core.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 = buildUnnamed1579(); - o.detectedFeatures = buildUnnamed1580(); + o.clickTags = buildUnnamed1589(); + o.detectedFeatures = buildUnnamed1590(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed1581(); + o.warnedValidationRules = buildUnnamed1591(); } buildCounterCreativeAssetMetadata--; return o; @@ -2273,48 +2273,48 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed1579(o.clickTags); - checkUnnamed1580(o.detectedFeatures); + checkUnnamed1589(o.clickTags); + checkUnnamed1590(o.detectedFeatures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1581(o.warnedValidationRules); + checkUnnamed1591(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed1582() { +buildUnnamed1592() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed1582(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed1592(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed1583() { +buildUnnamed1593() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1583(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed1593(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1584() { +buildUnnamed1594() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed1584(core.List<api.RichMediaExitOverride> o) { +checkUnnamed1594(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 = buildUnnamed1582(); - o.creativeGroupAssignments = buildUnnamed1583(); + o.companionCreativeOverrides = buildUnnamed1592(); + o.creativeGroupAssignments = buildUnnamed1593(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed1584(); + o.richMediaExitOverrides = buildUnnamed1594(); 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); - checkUnnamed1582(o.companionCreativeOverrides); - checkUnnamed1583(o.creativeGroupAssignments); + checkUnnamed1592(o.companionCreativeOverrides); + checkUnnamed1593(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"))); - checkUnnamed1584(o.richMediaExitOverrides); + checkUnnamed1594(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--; } -buildUnnamed1585() { +buildUnnamed1595() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed1585(core.List<api.CreativeFieldValue> o) { +checkUnnamed1595(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 = buildUnnamed1585(); + o.creativeFieldValues = buildUnnamed1595(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2504,21 +2504,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed1585(o.creativeFieldValues); + checkUnnamed1595(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed1586() { +buildUnnamed1596() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed1586(core.List<api.CreativeField> o) { +checkUnnamed1596(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 = buildUnnamed1586(); + o.creativeFields = buildUnnamed1596(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2540,7 +2540,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed1586(o.creativeFields); + checkUnnamed1596(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2601,14 +2601,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed1587() { +buildUnnamed1597() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed1587(core.List<api.CreativeGroup> o) { +checkUnnamed1597(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 = buildUnnamed1587(); + o.creativeGroups = buildUnnamed1597(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2630,21 +2630,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed1587(o.creativeGroups); + checkUnnamed1597(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed1588() { +buildUnnamed1598() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed1588(core.List<api.OptimizationActivity> o) { +checkUnnamed1598(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 = buildUnnamed1588(); + o.optimizationActivitys = buildUnnamed1598(); 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')); - checkUnnamed1588(o.optimizationActivitys); + checkUnnamed1598(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed1589() { +buildUnnamed1599() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed1589(core.List<api.CreativeAssignment> o) { +checkUnnamed1599(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 = buildUnnamed1589(); + o.creativeAssignments = buildUnnamed1599(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2705,7 +2705,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed1589(o.creativeAssignments); + checkUnnamed1599(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--; } -buildUnnamed1590() { +buildUnnamed1600() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1590(core.List<api.Creative> o) { +checkUnnamed1600(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 = buildUnnamed1590(); + o.creatives = buildUnnamed1600(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2763,60 +2763,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed1590(o.creatives); + checkUnnamed1600(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed1591() { +buildUnnamed1601() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1591(core.List<api.Dimension> o) { +checkUnnamed1601(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1592() { +buildUnnamed1602() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1592(core.List<api.Dimension> o) { +checkUnnamed1602(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1593() { +buildUnnamed1603() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1593(core.List<api.Metric> o) { +checkUnnamed1603(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1594() { +buildUnnamed1604() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1594(core.List<api.Metric> o) { +checkUnnamed1604(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 = buildUnnamed1591(); - o.dimensionFilters = buildUnnamed1592(); + o.breakdown = buildUnnamed1601(); + o.dimensionFilters = buildUnnamed1602(); o.kind = "foo"; - o.metrics = buildUnnamed1593(); - o.overlapMetrics = buildUnnamed1594(); + o.metrics = buildUnnamed1603(); + o.overlapMetrics = buildUnnamed1604(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2840,11 +2840,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed1591(o.breakdown); - checkUnnamed1592(o.dimensionFilters); + checkUnnamed1601(o.breakdown); + checkUnnamed1602(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1593(o.metrics); - checkUnnamed1594(o.overlapMetrics); + checkUnnamed1603(o.metrics); + checkUnnamed1604(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2872,14 +2872,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed1595() { +buildUnnamed1605() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1595(core.List<api.DimensionValue> o) { +checkUnnamed1605(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 = buildUnnamed1595(); + o.filteredEventIds = buildUnnamed1605(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2900,7 +2900,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed1595(o.filteredEventIds); + checkUnnamed1605(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2931,27 +2931,27 @@ buildCounterDateRange--; } -buildUnnamed1596() { +buildUnnamed1606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1596(core.List<core.String> o) { +checkUnnamed1606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1597() { +buildUnnamed1607() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1597(core.List<core.int> o) { +checkUnnamed1607(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 = buildUnnamed1596(); - o.hoursOfDay = buildUnnamed1597(); + o.daysOfWeek = buildUnnamed1606(); + o.hoursOfDay = buildUnnamed1607(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2973,8 +2973,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed1596(o.daysOfWeek); - checkUnnamed1597(o.hoursOfDay); + checkUnnamed1606(o.daysOfWeek); + checkUnnamed1607(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3126,14 +3126,14 @@ buildCounterDimensionValue--; } -buildUnnamed1598() { +buildUnnamed1608() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1598(core.List<api.DimensionValue> o) { +checkUnnamed1608(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 = buildUnnamed1598(); + o.items = buildUnnamed1608(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3157,21 +3157,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1598(o.items); + checkUnnamed1608(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed1599() { +buildUnnamed1609() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed1599(core.List<api.DimensionFilter> o) { +checkUnnamed1609(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 = buildUnnamed1599(); + o.filters = buildUnnamed1609(); 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"))); - checkUnnamed1599(o.filters); + checkUnnamed1609(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed1600() { +buildUnnamed1610() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed1600(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed1610(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed1601() { +buildUnnamed1611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1601(core.List<core.String> o) { +checkUnnamed1611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1602() { +buildUnnamed1612() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1602(core.List<core.String> o) { +checkUnnamed1612(core.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 = buildUnnamed1600(); + o.contactAssignments = buildUnnamed1610(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed1601(); - o.interstitialTagFormats = buildUnnamed1602(); + o.inpageTagFormats = buildUnnamed1611(); + o.interstitialTagFormats = buildUnnamed1612(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3271,14 +3271,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed1600(o.contactAssignments); + checkUnnamed1610(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); - checkUnnamed1601(o.inpageTagFormats); - checkUnnamed1602(o.interstitialTagFormats); + checkUnnamed1611(o.inpageTagFormats); + checkUnnamed1612(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--; } -buildUnnamed1603() { +buildUnnamed1613() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed1603(core.List<api.DirectorySiteContact> o) { +checkUnnamed1613(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 = buildUnnamed1603(); + o.directorySiteContacts = buildUnnamed1613(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3375,7 +3375,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed1603(o.directorySiteContacts); + checkUnnamed1613(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3413,14 +3413,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed1604() { +buildUnnamed1614() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed1604(core.List<api.DirectorySite> o) { +checkUnnamed1614(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 = buildUnnamed1604(); + o.directorySites = buildUnnamed1614(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3442,7 +3442,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed1604(o.directorySites); + checkUnnamed1614(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3474,14 +3474,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed1605() { +buildUnnamed1615() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed1605(core.List<api.DynamicTargetingKey> o) { +checkUnnamed1615(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 = buildUnnamed1605(); + o.dynamicTargetingKeys = buildUnnamed1615(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3502,7 +3502,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed1605(o.dynamicTargetingKeys); + checkUnnamed1615(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3533,14 +3533,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed1606() { +buildUnnamed1616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1606(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')); @@ -3562,7 +3562,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed1606(); + o.siteIds = buildUnnamed1616(); 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')); - checkUnnamed1606(o.siteIds); + checkUnnamed1616(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--; } -buildUnnamed1607() { +buildUnnamed1617() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed1607(core.List<api.EventTag> o) { +checkUnnamed1617(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 = buildUnnamed1607(); + o.eventTags = buildUnnamed1617(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3648,7 +3648,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed1607(o.eventTags); + checkUnnamed1617(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3712,14 +3712,14 @@ buildCounterFile--; } -buildUnnamed1608() { +buildUnnamed1618() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1608(core.List<api.File> o) { +checkUnnamed1618(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 = buildUnnamed1608(); + o.items = buildUnnamed1618(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3743,7 +3743,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1608(o.items); + checkUnnamed1618(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3796,14 +3796,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed1609() { +buildUnnamed1619() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed1609(core.List<api.FloodlightActivity> o) { +checkUnnamed1619(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 = buildUnnamed1609(); + o.floodlightActivities = buildUnnamed1619(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3825,47 +3825,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed1609(o.floodlightActivities); + checkUnnamed1619(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed1610() { +buildUnnamed1620() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed1610(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed1620(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed1611() { +buildUnnamed1621() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed1611(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed1621(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed1612() { +buildUnnamed1622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1612(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')); @@ -3881,7 +3881,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed1610(); + o.defaultTags = buildUnnamed1620(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3896,14 +3896,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed1611(); + o.publisherTags = buildUnnamed1621(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed1612(); + o.userDefinedVariableTypes = buildUnnamed1622(); } buildCounterFloodlightActivity--; return o; @@ -3917,7 +3917,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed1610(o.defaultTags); + checkUnnamed1620(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')); - checkUnnamed1611(o.publisherTags); + checkUnnamed1621(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')); - checkUnnamed1612(o.userDefinedVariableTypes); + checkUnnamed1622(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4008,14 +4008,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed1613() { +buildUnnamed1623() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed1613(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed1623(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 = buildUnnamed1613(); + o.floodlightActivityGroups = buildUnnamed1623(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4037,7 +4037,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed1613(o.floodlightActivityGroups); + checkUnnamed1623(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4073,40 +4073,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed1614() { +buildUnnamed1624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1614(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')); } -buildUnnamed1615() { +buildUnnamed1625() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed1615(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed1625(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed1616() { +buildUnnamed1626() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed1616(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed1626(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 = buildUnnamed1614(); + o.standardVariableTypes = buildUnnamed1624(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed1615(); - o.userDefinedVariableConfigurations = buildUnnamed1616(); + o.thirdPartyAuthenticationTokens = buildUnnamed1625(); + o.userDefinedVariableConfigurations = buildUnnamed1626(); } buildCounterFloodlightConfiguration--; return o; @@ -4156,23 +4156,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed1614(o.standardVariableTypes); + checkUnnamed1624(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed1615(o.thirdPartyAuthenticationTokens); - checkUnnamed1616(o.userDefinedVariableConfigurations); + checkUnnamed1625(o.thirdPartyAuthenticationTokens); + checkUnnamed1626(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed1617() { +buildUnnamed1627() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed1617(core.List<api.FloodlightConfiguration> o) { +checkUnnamed1627(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 = buildUnnamed1617(); + o.floodlightConfigurations = buildUnnamed1627(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4193,46 +4193,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed1617(o.floodlightConfigurations); + checkUnnamed1627(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed1618() { +buildUnnamed1628() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1618(core.List<api.Dimension> o) { +checkUnnamed1628(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1619() { +buildUnnamed1629() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1619(core.List<api.Dimension> o) { +checkUnnamed1629(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1620() { +buildUnnamed1630() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1620(core.List<api.Metric> o) { +checkUnnamed1630(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 = buildUnnamed1618(); - o.dimensions = buildUnnamed1619(); + o.dimensionFilters = buildUnnamed1628(); + o.dimensions = buildUnnamed1629(); o.kind = "foo"; - o.metrics = buildUnnamed1620(); + o.metrics = buildUnnamed1630(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4255,10 +4255,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed1618(o.dimensionFilters); - checkUnnamed1619(o.dimensions); + checkUnnamed1628(o.dimensionFilters); + checkUnnamed1629(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1620(o.metrics); + checkUnnamed1630(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4311,66 +4311,66 @@ buildCounterFsCommand--; } -buildUnnamed1621() { +buildUnnamed1631() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1621(core.List<api.City> o) { +checkUnnamed1631(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed1622() { +buildUnnamed1632() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1622(core.List<api.Country> o) { +checkUnnamed1632(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed1623() { +buildUnnamed1633() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1623(core.List<api.Metro> o) { +checkUnnamed1633(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed1624() { +buildUnnamed1634() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1624(core.List<api.PostalCode> o) { +checkUnnamed1634(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed1625() { +buildUnnamed1635() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1625(core.List<api.Region> o) { +checkUnnamed1635(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 = buildUnnamed1621(); - o.countries = buildUnnamed1622(); + o.cities = buildUnnamed1631(); + o.countries = buildUnnamed1632(); o.excludeCountries = true; - o.metros = buildUnnamed1623(); - o.postalCodes = buildUnnamed1624(); - o.regions = buildUnnamed1625(); + o.metros = buildUnnamed1633(); + o.postalCodes = buildUnnamed1634(); + o.regions = buildUnnamed1635(); } buildCounterGeoTargeting--; return o; @@ -4395,24 +4395,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed1621(o.cities); - checkUnnamed1622(o.countries); + checkUnnamed1631(o.cities); + checkUnnamed1632(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed1623(o.metros); - checkUnnamed1624(o.postalCodes); - checkUnnamed1625(o.regions); + checkUnnamed1633(o.metros); + checkUnnamed1634(o.postalCodes); + checkUnnamed1635(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed1626() { +buildUnnamed1636() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed1626(core.List<api.AdSlot> o) { +checkUnnamed1636(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 = buildUnnamed1626(); + o.adSlots = buildUnnamed1636(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4452,7 +4452,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1626(o.adSlots); + checkUnnamed1636(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--; } -buildUnnamed1627() { +buildUnnamed1637() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed1627(core.List<api.InventoryItem> o) { +checkUnnamed1637(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 = buildUnnamed1627(); + o.inventoryItems = buildUnnamed1637(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4504,7 +4504,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed1627(o.inventoryItems); + checkUnnamed1637(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4557,14 +4557,14 @@ buildCounterLandingPage--; } -buildUnnamed1628() { +buildUnnamed1638() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed1628(core.List<api.LandingPage> o) { +checkUnnamed1638(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 = buildUnnamed1628(); + o.landingPages = buildUnnamed1638(); } buildCounterLandingPagesListResponse--; return o; @@ -4586,7 +4586,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1628(o.landingPages); + checkUnnamed1638(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4610,14 +4610,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed1629() { +buildUnnamed1639() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed1629(core.List<api.ListPopulationTerm> o) { +checkUnnamed1639(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 = buildUnnamed1629(); + o.terms = buildUnnamed1639(); } buildCounterListPopulationClause--; return o; @@ -4637,19 +4637,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed1629(o.terms); + checkUnnamed1639(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed1630() { +buildUnnamed1640() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed1630(core.List<api.ListPopulationClause> o) { +checkUnnamed1640(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 = buildUnnamed1630(); + o.listPopulationClauses = buildUnnamed1640(); } buildCounterListPopulationRule--; return o; @@ -4673,7 +4673,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed1630(o.listPopulationClauses); + checkUnnamed1640(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4803,14 +4803,14 @@ buildCounterMetro--; } -buildUnnamed1631() { +buildUnnamed1641() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1631(core.List<api.Metro> o) { +checkUnnamed1641(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 = buildUnnamed1631(); + o.metros = buildUnnamed1641(); } buildCounterMetrosListResponse--; return o; @@ -4832,7 +4832,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1631(o.metros); + checkUnnamed1641(o.metros); } buildCounterMetrosListResponse--; } @@ -4864,14 +4864,14 @@ buildCounterMobileCarrier--; } -buildUnnamed1632() { +buildUnnamed1642() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1632(core.List<api.MobileCarrier> o) { +checkUnnamed1642(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 = buildUnnamed1632(); + o.mobileCarriers = buildUnnamed1642(); } buildCounterMobileCarriersListResponse--; return o; @@ -4893,19 +4893,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1632(o.mobileCarriers); + checkUnnamed1642(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed1633() { +buildUnnamed1643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1633(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')); @@ -4917,7 +4917,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed1633(); + o.objectIds = buildUnnamed1643(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4928,7 +4928,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1633(o.objectIds); + checkUnnamed1643(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5032,14 +5032,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed1634() { +buildUnnamed1644() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1634(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1644(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 = buildUnnamed1634(); + o.operatingSystemVersions = buildUnnamed1644(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5061,19 +5061,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1634(o.operatingSystemVersions); + checkUnnamed1644(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed1635() { +buildUnnamed1645() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1635(core.List<api.OperatingSystem> o) { +checkUnnamed1645(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 = buildUnnamed1635(); + o.operatingSystems = buildUnnamed1645(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5095,7 +5095,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1635(o.operatingSystems); + checkUnnamed1645(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5123,53 +5123,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed1636() { +buildUnnamed1646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1636(core.List<core.String> o) { +checkUnnamed1646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1637() { +buildUnnamed1647() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed1637(core.List<api.OrderContact> o) { +checkUnnamed1647(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed1638() { +buildUnnamed1648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1638(core.List<core.String> o) { +checkUnnamed1648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1639() { +buildUnnamed1649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1639(core.List<core.String> o) { +checkUnnamed1649(core.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 = buildUnnamed1636(); + o.approverUserProfileIds = buildUnnamed1646(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed1637(); + o.contacts = buildUnnamed1647(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5196,8 +5196,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed1638(); - o.siteNames = buildUnnamed1639(); + o.siteId = buildUnnamed1648(); + o.siteNames = buildUnnamed1649(); 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')); - checkUnnamed1636(o.approverUserProfileIds); + checkUnnamed1646(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed1637(o.contacts); + checkUnnamed1647(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')); - checkUnnamed1638(o.siteId); - checkUnnamed1639(o.siteNames); + checkUnnamed1648(o.siteId); + checkUnnamed1649(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5259,27 +5259,27 @@ buildCounterOrderContact--; } -buildUnnamed1640() { +buildUnnamed1650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1640(core.List<core.String> o) { +checkUnnamed1650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1641() { +buildUnnamed1651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1641(core.List<core.String> o) { +checkUnnamed1651(core.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 = buildUnnamed1640(); + o.approvedByUserProfileIds = buildUnnamed1650(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed1641(); + o.lastSentRecipients = buildUnnamed1651(); 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')); - checkUnnamed1640(o.approvedByUserProfileIds); + checkUnnamed1650(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')); - checkUnnamed1641(o.lastSentRecipients); + checkUnnamed1651(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--; } -buildUnnamed1642() { +buildUnnamed1652() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed1642(core.List<api.OrderDocument> o) { +checkUnnamed1652(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 = buildUnnamed1642(); + o.orderDocuments = buildUnnamed1652(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5367,19 +5367,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1642(o.orderDocuments); + checkUnnamed1652(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed1643() { +buildUnnamed1653() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1643(core.List<api.Order> o) { +checkUnnamed1653(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 = buildUnnamed1643(); + o.orders = buildUnnamed1653(); } buildCounterOrdersListResponse--; return o; @@ -5403,58 +5403,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1643(o.orders); + checkUnnamed1653(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed1644() { +buildUnnamed1654() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1644(core.List<api.Dimension> o) { +checkUnnamed1654(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1645() { +buildUnnamed1655() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1645(core.List<api.Dimension> o) { +checkUnnamed1655(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1646() { +buildUnnamed1656() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1646(core.List<api.Metric> o) { +checkUnnamed1656(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1647() { +buildUnnamed1657() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1647(core.List<api.Dimension> o) { +checkUnnamed1657(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 = buildUnnamed1644(); - o.customFloodlightVariables = buildUnnamed1645(); + o.conversionDimensions = buildUnnamed1654(); + o.customFloodlightVariables = buildUnnamed1655(); o.kind = "foo"; - o.metrics = buildUnnamed1646(); - o.perInteractionDimensions = buildUnnamed1647(); + o.metrics = buildUnnamed1656(); + o.perInteractionDimensions = buildUnnamed1657(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5478,23 +5478,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed1644(o.conversionDimensions); - checkUnnamed1645(o.customFloodlightVariables); + checkUnnamed1654(o.conversionDimensions); + checkUnnamed1655(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1646(o.metrics); - checkUnnamed1647(o.perInteractionDimensions); + checkUnnamed1656(o.metrics); + checkUnnamed1657(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed1648() { +buildUnnamed1658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1648(core.List<core.String> o) { +checkUnnamed1658(core.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 = buildUnnamed1648(); + o.tagFormats = buildUnnamed1658(); 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')); - checkUnnamed1648(o.tagFormats); + checkUnnamed1658(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5614,14 +5614,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed1649() { +buildUnnamed1659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1649(core.List<core.String> o) { +checkUnnamed1659(core.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 = buildUnnamed1649(); + o.childPlacementIds = buildUnnamed1659(); 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); - checkUnnamed1649(o.childPlacementIds); + checkUnnamed1659(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5696,14 +5696,14 @@ buildCounterPlacementGroup--; } -buildUnnamed1650() { +buildUnnamed1660() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed1650(core.List<api.PlacementGroup> o) { +checkUnnamed1660(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 = buildUnnamed1650(); + o.placementGroups = buildUnnamed1660(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5727,19 +5727,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1650(o.placementGroups); + checkUnnamed1660(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed1651() { +buildUnnamed1661() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed1651(core.List<api.PlacementStrategy> o) { +checkUnnamed1661(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 = buildUnnamed1651(); + o.placementStrategies = buildUnnamed1661(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5763,7 +5763,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1651(o.placementStrategies); + checkUnnamed1661(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5793,14 +5793,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed1652() { +buildUnnamed1662() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed1652(core.List<api.TagData> o) { +checkUnnamed1662(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 = buildUnnamed1652(); + o.tagDatas = buildUnnamed1662(); } buildCounterPlacementTag--; return o; @@ -5822,19 +5822,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed1652(o.tagDatas); + checkUnnamed1662(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed1653() { +buildUnnamed1663() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed1653(core.List<api.PlacementTag> o) { +checkUnnamed1663(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 = buildUnnamed1653(); + o.placementTags = buildUnnamed1663(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5856,19 +5856,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1653(o.placementTags); + checkUnnamed1663(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed1654() { +buildUnnamed1664() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed1654(core.List<api.Placement> o) { +checkUnnamed1664(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 = buildUnnamed1654(); + o.placements = buildUnnamed1664(); } buildCounterPlacementsListResponse--; return o; @@ -5892,7 +5892,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1654(o.placements); + checkUnnamed1664(o.placements); } buildCounterPlacementsListResponse--; } @@ -5920,14 +5920,14 @@ buildCounterPlatformType--; } -buildUnnamed1655() { +buildUnnamed1665() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed1655(core.List<api.PlatformType> o) { +checkUnnamed1665(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 = buildUnnamed1655(); + o.platformTypes = buildUnnamed1665(); } buildCounterPlatformTypesListResponse--; return o; @@ -5949,7 +5949,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1655(o.platformTypes); + checkUnnamed1665(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6016,14 +6016,14 @@ buildCounterPostalCode--; } -buildUnnamed1656() { +buildUnnamed1666() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1656(core.List<api.PostalCode> o) { +checkUnnamed1666(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 = buildUnnamed1656(); + o.postalCodes = buildUnnamed1666(); } buildCounterPostalCodesListResponse--; return o; @@ -6045,19 +6045,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1656(o.postalCodes); + checkUnnamed1666(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed1657() { +buildUnnamed1667() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed1657(core.List<api.Flight> o) { +checkUnnamed1667(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 = buildUnnamed1657(); + o.flights = buildUnnamed1667(); 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"))); - checkUnnamed1657(o.flights); + checkUnnamed1667(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--; } -buildUnnamed1658() { +buildUnnamed1668() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed1658(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed1668(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 = buildUnnamed1658(); + o.pricingPeriods = buildUnnamed1668(); 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')); - checkUnnamed1658(o.pricingPeriods); + checkUnnamed1668(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--; } -buildUnnamed1659() { +buildUnnamed1669() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed1659(core.List<api.Project> o) { +checkUnnamed1669(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 = buildUnnamed1659(); + o.projects = buildUnnamed1669(); } buildCounterProjectsListResponse--; return o; @@ -6257,71 +6257,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1659(o.projects); + checkUnnamed1669(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed1660() { +buildUnnamed1670() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1660(core.List<api.Dimension> o) { +checkUnnamed1670(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1661() { +buildUnnamed1671() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1661(core.List<api.Dimension> o) { +checkUnnamed1671(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1662() { +buildUnnamed1672() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1662(core.List<api.Metric> o) { +checkUnnamed1672(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1663() { +buildUnnamed1673() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1663(core.List<api.Metric> o) { +checkUnnamed1673(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1664() { +buildUnnamed1674() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1664(core.List<api.Metric> o) { +checkUnnamed1674(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 = buildUnnamed1660(); - o.dimensions = buildUnnamed1661(); + o.dimensionFilters = buildUnnamed1670(); + o.dimensions = buildUnnamed1671(); o.kind = "foo"; - o.metrics = buildUnnamed1662(); - o.pivotedActivityMetrics = buildUnnamed1663(); - o.reachByFrequencyMetrics = buildUnnamed1664(); + o.metrics = buildUnnamed1672(); + o.pivotedActivityMetrics = buildUnnamed1673(); + o.reachByFrequencyMetrics = buildUnnamed1674(); } buildCounterReachReportCompatibleFields--; return o; @@ -6346,12 +6346,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed1660(o.dimensionFilters); - checkUnnamed1661(o.dimensions); + checkUnnamed1670(o.dimensionFilters); + checkUnnamed1671(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1662(o.metrics); - checkUnnamed1663(o.pivotedActivityMetrics); - checkUnnamed1664(o.reachByFrequencyMetrics); + checkUnnamed1672(o.metrics); + checkUnnamed1673(o.pivotedActivityMetrics); + checkUnnamed1674(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6408,14 +6408,14 @@ buildCounterRegion--; } -buildUnnamed1665() { +buildUnnamed1675() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1665(core.List<api.Region> o) { +checkUnnamed1675(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 = buildUnnamed1665(); + o.regions = buildUnnamed1675(); } buildCounterRegionsListResponse--; return o; @@ -6437,7 +6437,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1665(o.regions); + checkUnnamed1675(o.regions); } buildCounterRegionsListResponse--; } @@ -6485,27 +6485,27 @@ buildCounterRemarketingList--; } -buildUnnamed1666() { +buildUnnamed1676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1666(core.List<core.String> o) { +checkUnnamed1676(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1667() { +buildUnnamed1677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1667(core.List<core.String> o) { +checkUnnamed1677(core.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 = buildUnnamed1666(); - o.sharedAdvertiserIds = buildUnnamed1667(); + o.sharedAccountIds = buildUnnamed1676(); + o.sharedAdvertiserIds = buildUnnamed1677(); } buildCounterRemarketingListShare--; return o; @@ -6530,20 +6530,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed1666(o.sharedAccountIds); - checkUnnamed1667(o.sharedAdvertiserIds); + checkUnnamed1676(o.sharedAccountIds); + checkUnnamed1677(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed1668() { +buildUnnamed1678() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed1668(core.List<api.RemarketingList> o) { +checkUnnamed1678(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 = buildUnnamed1668(); + o.remarketingLists = buildUnnamed1678(); } buildCounterRemarketingListsListResponse--; return o; @@ -6567,45 +6567,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1668(o.remarketingLists); + checkUnnamed1678(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed1669() { +buildUnnamed1679() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1669(core.List<api.DimensionValue> o) { +checkUnnamed1679(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1670() { +buildUnnamed1680() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1670(core.List<api.SortedDimension> o) { +checkUnnamed1680(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1671() { +buildUnnamed1681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1671(core.List<core.String> o) { +checkUnnamed1681(core.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 = buildUnnamed1669(); - o.dimensions = buildUnnamed1670(); - o.metricNames = buildUnnamed1671(); + o.dimensionFilters = buildUnnamed1679(); + o.dimensions = buildUnnamed1680(); + o.metricNames = buildUnnamed1681(); } buildCounterReportCriteria--; return o; @@ -6633,60 +6633,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1669(o.dimensionFilters); - checkUnnamed1670(o.dimensions); - checkUnnamed1671(o.metricNames); + checkUnnamed1679(o.dimensionFilters); + checkUnnamed1680(o.dimensions); + checkUnnamed1681(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed1672() { +buildUnnamed1682() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1672(core.List<api.SortedDimension> o) { +checkUnnamed1682(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1673() { +buildUnnamed1683() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1673(core.List<api.DimensionValue> o) { +checkUnnamed1683(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1674() { +buildUnnamed1684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1674(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')); } -buildUnnamed1675() { +buildUnnamed1685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1675(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')); @@ -6697,12 +6697,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed1672(); + o.breakdown = buildUnnamed1682(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed1673(); - o.metricNames = buildUnnamed1674(); - o.overlapMetricNames = buildUnnamed1675(); + o.dimensionFilters = buildUnnamed1683(); + o.metricNames = buildUnnamed1684(); + o.overlapMetricNames = buildUnnamed1685(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6712,25 +6712,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed1672(o.breakdown); + checkUnnamed1682(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed1673(o.dimensionFilters); - checkUnnamed1674(o.metricNames); - checkUnnamed1675(o.overlapMetricNames); + checkUnnamed1683(o.dimensionFilters); + checkUnnamed1684(o.metricNames); + checkUnnamed1685(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed1676() { +buildUnnamed1686() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed1676(core.List<api.Recipient> o) { +checkUnnamed1686(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 = buildUnnamed1676(); + o.recipients = buildUnnamed1686(); } 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')); - checkUnnamed1676(o.recipients); + checkUnnamed1686(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed1677() { +buildUnnamed1687() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1677(core.List<api.DimensionValue> o) { +checkUnnamed1687(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1678() { +buildUnnamed1688() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1678(core.List<api.DimensionValue> o) { +checkUnnamed1688(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1679() { +buildUnnamed1689() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1679(core.List<api.SortedDimension> o) { +checkUnnamed1689(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1680() { +buildUnnamed1690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1680(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')); @@ -6841,12 +6841,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed1677(); + o.customRichMediaEvents = buildUnnamed1687(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed1678(); - o.dimensions = buildUnnamed1679(); + o.dimensionFilters = buildUnnamed1688(); + o.dimensions = buildUnnamed1689(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed1680(); + o.metricNames = buildUnnamed1690(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6856,90 +6856,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed1677(o.customRichMediaEvents); + checkUnnamed1687(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1678(o.dimensionFilters); - checkUnnamed1679(o.dimensions); + checkUnnamed1688(o.dimensionFilters); + checkUnnamed1689(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed1680(o.metricNames); + checkUnnamed1690(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed1681() { +buildUnnamed1691() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1681(core.List<api.DimensionValue> o) { +checkUnnamed1691(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1682() { +buildUnnamed1692() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1682(core.List<api.SortedDimension> o) { +checkUnnamed1692(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1683() { +buildUnnamed1693() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1683(core.List<api.SortedDimension> o) { +checkUnnamed1693(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1684() { +buildUnnamed1694() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1684(core.List<api.DimensionValue> o) { +checkUnnamed1694(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1685() { +buildUnnamed1695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1685(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')); } -buildUnnamed1686() { +buildUnnamed1696() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1686(core.List<api.SortedDimension> o) { +checkUnnamed1696(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 = buildUnnamed1681(); - o.conversionDimensions = buildUnnamed1682(); - o.customFloodlightVariables = buildUnnamed1683(); - o.customRichMediaEvents = buildUnnamed1684(); + o.activityFilters = buildUnnamed1691(); + o.conversionDimensions = buildUnnamed1692(); + o.customFloodlightVariables = buildUnnamed1693(); + o.customRichMediaEvents = buildUnnamed1694(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed1685(); - o.perInteractionDimensions = buildUnnamed1686(); + o.metricNames = buildUnnamed1695(); + o.perInteractionDimensions = buildUnnamed1696(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7002,66 +7002,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed1681(o.activityFilters); - checkUnnamed1682(o.conversionDimensions); - checkUnnamed1683(o.customFloodlightVariables); - checkUnnamed1684(o.customRichMediaEvents); + checkUnnamed1691(o.activityFilters); + checkUnnamed1692(o.conversionDimensions); + checkUnnamed1693(o.customFloodlightVariables); + checkUnnamed1694(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed1685(o.metricNames); - checkUnnamed1686(o.perInteractionDimensions); + checkUnnamed1695(o.metricNames); + checkUnnamed1696(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed1687() { +buildUnnamed1697() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1687(core.List<api.DimensionValue> o) { +checkUnnamed1697(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1688() { +buildUnnamed1698() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed1688(core.List<api.SortedDimension> o) { +checkUnnamed1698(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed1689() { +buildUnnamed1699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1689(core.List<core.String> o) { +checkUnnamed1699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1690() { +buildUnnamed1700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1690(core.List<core.String> o) { +checkUnnamed1700(core.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 = buildUnnamed1687(); - o.dimensions = buildUnnamed1688(); + o.dimensionFilters = buildUnnamed1697(); + o.dimensions = buildUnnamed1698(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed1689(); - o.reachByFrequencyMetricNames = buildUnnamed1690(); + o.metricNames = buildUnnamed1699(); + o.reachByFrequencyMetricNames = buildUnnamed1700(); } buildCounterReportReachCriteria--; return o; @@ -7091,23 +7091,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed1687(o.dimensionFilters); - checkUnnamed1688(o.dimensions); + checkUnnamed1697(o.dimensionFilters); + checkUnnamed1698(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed1689(o.metricNames); - checkUnnamed1690(o.reachByFrequencyMetricNames); + checkUnnamed1699(o.metricNames); + checkUnnamed1700(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed1691() { +buildUnnamed1701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1691(core.List<core.String> o) { +checkUnnamed1701(core.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 = buildUnnamed1691(); + o.repeatsOnWeekDays = buildUnnamed1701(); 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')); - checkUnnamed1691(o.repeatsOnWeekDays); + checkUnnamed1701(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--; } -buildUnnamed1692() { +buildUnnamed1702() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1692(core.List<api.Dimension> o) { +checkUnnamed1702(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1693() { +buildUnnamed1703() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1693(core.List<api.Dimension> o) { +checkUnnamed1703(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1694() { +buildUnnamed1704() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1694(core.List<api.Metric> o) { +checkUnnamed1704(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1695() { +buildUnnamed1705() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1695(core.List<api.Metric> o) { +checkUnnamed1705(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 = buildUnnamed1692(); - o.dimensions = buildUnnamed1693(); + o.dimensionFilters = buildUnnamed1702(); + o.dimensions = buildUnnamed1703(); o.kind = "foo"; - o.metrics = buildUnnamed1694(); - o.pivotedActivityMetrics = buildUnnamed1695(); + o.metrics = buildUnnamed1704(); + o.pivotedActivityMetrics = buildUnnamed1705(); } buildCounterReportCompatibleFields--; return o; @@ -7267,23 +7267,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed1692(o.dimensionFilters); - checkUnnamed1693(o.dimensions); + checkUnnamed1702(o.dimensionFilters); + checkUnnamed1703(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1694(o.metrics); - checkUnnamed1695(o.pivotedActivityMetrics); + checkUnnamed1704(o.metrics); + checkUnnamed1705(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed1696() { +buildUnnamed1706() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1696(core.List<api.Report> o) { +checkUnnamed1706(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 = buildUnnamed1696(); + o.items = buildUnnamed1706(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7307,7 +7307,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1696(o.items); + checkUnnamed1706(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7360,14 +7360,14 @@ buildCounterRichMediaExitOverride--; } -buildUnnamed1697() { +buildUnnamed1707() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed1697(core.List<api.SiteContact> o) { +checkUnnamed1707(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 = buildUnnamed1697(); + o.siteContacts = buildUnnamed1707(); 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')); - checkUnnamed1697(o.siteContacts); + checkUnnamed1707(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7478,14 +7478,14 @@ buildCounterSiteSettings--; } -buildUnnamed1698() { +buildUnnamed1708() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed1698(core.List<api.Site> o) { +checkUnnamed1708(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 = buildUnnamed1698(); + o.sites = buildUnnamed1708(); } buildCounterSitesListResponse--; return o; @@ -7509,7 +7509,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1698(o.sites); + checkUnnamed1708(o.sites); } buildCounterSitesListResponse--; } @@ -7541,14 +7541,14 @@ buildCounterSize--; } -buildUnnamed1699() { +buildUnnamed1709() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed1699(core.List<api.Size> o) { +checkUnnamed1709(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 = buildUnnamed1699(); + o.sizes = buildUnnamed1709(); } buildCounterSizesListResponse--; return o; @@ -7570,7 +7570,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1699(o.sizes); + checkUnnamed1709(o.sizes); } buildCounterSizesListResponse--; } @@ -7598,14 +7598,14 @@ buildCounterSortedDimension--; } -buildUnnamed1700() { +buildUnnamed1710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1700(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')); @@ -7617,7 +7617,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed1700(); + o.availablePermissionIds = buildUnnamed1710(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7630,7 +7630,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1700(o.availablePermissionIds); + checkUnnamed1710(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--; } -buildUnnamed1701() { +buildUnnamed1711() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed1701(core.List<api.Subaccount> o) { +checkUnnamed1711(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 = buildUnnamed1701(); + o.subaccounts = buildUnnamed1711(); } buildCounterSubaccountsListResponse--; return o; @@ -7669,7 +7669,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1701(o.subaccounts); + checkUnnamed1711(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7809,14 +7809,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed1702() { +buildUnnamed1712() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed1702(core.List<api.TargetableRemarketingList> o) { +checkUnnamed1712(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 = buildUnnamed1702(); + o.targetableRemarketingLists = buildUnnamed1712(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7840,84 +7840,84 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1702(o.targetableRemarketingLists); + checkUnnamed1712(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed1703() { +buildUnnamed1713() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1703(core.List<api.Browser> o) { +checkUnnamed1713(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed1704() { +buildUnnamed1714() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1704(core.List<api.ConnectionType> o) { +checkUnnamed1714(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed1705() { +buildUnnamed1715() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1705(core.List<api.MobileCarrier> o) { +checkUnnamed1715(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed1706() { +buildUnnamed1716() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1706(core.List<api.OperatingSystemVersion> o) { +checkUnnamed1716(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed1707() { +buildUnnamed1717() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1707(core.List<api.OperatingSystem> o) { +checkUnnamed1717(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed1708() { +buildUnnamed1718() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed1708(core.List<api.PlatformType> o) { +checkUnnamed1718(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 = buildUnnamed1703(); - o.connectionTypes = buildUnnamed1704(); - o.mobileCarriers = buildUnnamed1705(); - o.operatingSystemVersions = buildUnnamed1706(); - o.operatingSystems = buildUnnamed1707(); - o.platformTypes = buildUnnamed1708(); + o.browsers = buildUnnamed1713(); + o.connectionTypes = buildUnnamed1714(); + o.mobileCarriers = buildUnnamed1715(); + o.operatingSystemVersions = buildUnnamed1716(); + o.operatingSystems = buildUnnamed1717(); + o.platformTypes = buildUnnamed1718(); } buildCounterTechnologyTargeting--; return o; @@ -7942,12 +7942,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed1703(o.browsers); - checkUnnamed1704(o.connectionTypes); - checkUnnamed1705(o.mobileCarriers); - checkUnnamed1706(o.operatingSystemVersions); - checkUnnamed1707(o.operatingSystems); - checkUnnamed1708(o.platformTypes); + checkUnnamed1713(o.browsers); + checkUnnamed1714(o.connectionTypes); + checkUnnamed1715(o.mobileCarriers); + checkUnnamed1716(o.operatingSystemVersions); + checkUnnamed1717(o.operatingSystems); + checkUnnamed1718(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8050,14 +8050,14 @@ buildCounterUserProfile--; } -buildUnnamed1709() { +buildUnnamed1719() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed1709(core.List<api.UserProfile> o) { +checkUnnamed1719(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 = buildUnnamed1709(); + o.items = buildUnnamed1719(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8080,20 +8080,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1709(o.items); + checkUnnamed1719(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed1710() { +buildUnnamed1720() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed1710(core.List<api.UserRolePermission> o) { +checkUnnamed1720(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 = buildUnnamed1710(); + o.permissions = buildUnnamed1720(); 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')); - checkUnnamed1710(o.permissions); + checkUnnamed1720(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8182,14 +8182,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed1711() { +buildUnnamed1721() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed1711(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed1721(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 = buildUnnamed1711(); + o.userRolePermissionGroups = buildUnnamed1721(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8211,19 +8211,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1711(o.userRolePermissionGroups); + checkUnnamed1721(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed1712() { +buildUnnamed1722() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed1712(core.List<api.UserRolePermission> o) { +checkUnnamed1722(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 = buildUnnamed1712(); + o.userRolePermissions = buildUnnamed1722(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8245,19 +8245,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1712(o.userRolePermissions); + checkUnnamed1722(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed1713() { +buildUnnamed1723() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed1713(core.List<api.UserRole> o) { +checkUnnamed1723(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 = buildUnnamed1713(); + o.userRoles = buildUnnamed1723(); } buildCounterUserRolesListResponse--; return o; @@ -8281,141 +8281,11 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1713(o.userRoles); + checkUnnamed1723(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed1714() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1714(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1715() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1716() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1716(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1717() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1717(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1718() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1719() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1720() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1721() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1722() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1722(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1723() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1723(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed1724() { var o = new core.List<core.String>(); o.add("foo"); @@ -9417,6 +9287,136 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed1801() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1802() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1803() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1804() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1805() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1806() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1807() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1808() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1809() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1809(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1810(core.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", () { @@ -11647,7 +11647,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed1714(); + var arg_ids = buildUnnamed1724(); 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 = buildUnnamed1715(); + var arg_ids = buildUnnamed1725(); 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 = buildUnnamed1716(); - var arg_campaignIds = buildUnnamed1717(); + var arg_audienceSegmentIds = buildUnnamed1726(); + var arg_campaignIds = buildUnnamed1727(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed1718(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed1719(); + var arg_creativeIds = buildUnnamed1728(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed1729(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed1720(); - var arg_landingPageIds = buildUnnamed1721(); + var arg_ids = buildUnnamed1730(); + var arg_landingPageIds = buildUnnamed1731(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed1722(); - var arg_remarketingListIds = buildUnnamed1723(); + var arg_placementIds = buildUnnamed1732(); + var arg_remarketingListIds = buildUnnamed1733(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed1724(); + var arg_sizeIds = buildUnnamed1734(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed1725(); + var arg_type = buildUnnamed1735(); 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 = buildUnnamed1726(); + var arg_ids = buildUnnamed1736(); 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 = buildUnnamed1727(); - var arg_floodlightConfigurationIds = buildUnnamed1728(); - var arg_ids = buildUnnamed1729(); + var arg_advertiserGroupIds = buildUnnamed1737(); + var arg_floodlightConfigurationIds = buildUnnamed1738(); + var arg_ids = buildUnnamed1739(); 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 = buildUnnamed1730(); - var arg_advertiserIds = buildUnnamed1731(); + var arg_advertiserGroupIds = buildUnnamed1740(); + var arg_advertiserIds = buildUnnamed1741(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed1732(); - var arg_ids = buildUnnamed1733(); + var arg_excludedIds = buildUnnamed1742(); + var arg_ids = buildUnnamed1743(); 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 = buildUnnamed1734(); + var arg_ids = buildUnnamed1744(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed1735(); + var arg_objectIds = buildUnnamed1745(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed1736(); + var arg_userProfileIds = buildUnnamed1746(); 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 = buildUnnamed1737(); - var arg_dartIds = buildUnnamed1738(); + var arg_countryDartIds = buildUnnamed1747(); + var arg_dartIds = buildUnnamed1748(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed1739(); + var arg_regionDartIds = buildUnnamed1749(); 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 = buildUnnamed1740(); + var arg_ids = buildUnnamed1750(); 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 = buildUnnamed1741(); + var arg_ids = buildUnnamed1751(); 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 = buildUnnamed1742(); - var arg_ids = buildUnnamed1743(); + var arg_advertiserIds = buildUnnamed1752(); + var arg_ids = buildUnnamed1753(); 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 = buildUnnamed1744(); + var arg_advertiserIds = buildUnnamed1754(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed1745(); + var arg_ids = buildUnnamed1755(); 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 = buildUnnamed1746(); - var arg_creativeFieldIds = buildUnnamed1747(); - var arg_ids = buildUnnamed1748(); + var arg_companionCreativeIds = buildUnnamed1756(); + var arg_creativeFieldIds = buildUnnamed1757(); + var arg_ids = buildUnnamed1758(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed1749(); + var arg_renderingIds = buildUnnamed1759(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed1750(); + var arg_sizeIds = buildUnnamed1760(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed1751(); + var arg_types = buildUnnamed1761(); 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 = buildUnnamed1752(); - var arg_ids = buildUnnamed1753(); + var arg_directorySiteIds = buildUnnamed1762(); + var arg_ids = buildUnnamed1763(); 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 = buildUnnamed1754(); + var arg_ids = buildUnnamed1764(); 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 = buildUnnamed1755(); + var arg_names = buildUnnamed1765(); 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 = buildUnnamed1756(); - var arg_ids = buildUnnamed1757(); + var arg_eventTagTypes = buildUnnamed1766(); + var arg_ids = buildUnnamed1767(); 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 = buildUnnamed1758(); + var arg_floodlightActivityGroupIds = buildUnnamed1768(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed1759(); + var arg_ids = buildUnnamed1769(); 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 = buildUnnamed1760(); + var arg_ids = buildUnnamed1770(); 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 = buildUnnamed1761(); + var arg_ids = buildUnnamed1771(); 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 = buildUnnamed1762(); + var arg_ids = buildUnnamed1772(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed1763(); + var arg_orderId = buildUnnamed1773(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed1764(); + var arg_siteId = buildUnnamed1774(); 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 = buildUnnamed1765(); + var arg_ids = buildUnnamed1775(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed1766(); + var arg_orderId = buildUnnamed1776(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed1767(); + var arg_siteId = buildUnnamed1777(); 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 = buildUnnamed1768(); + var arg_ids = buildUnnamed1778(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed1769(); + var arg_siteId = buildUnnamed1779(); 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 = buildUnnamed1770(); + var arg_advertiserIds = buildUnnamed1780(); var arg_archived = true; - var arg_campaignIds = buildUnnamed1771(); - var arg_contentCategoryIds = buildUnnamed1772(); - var arg_directorySiteIds = buildUnnamed1773(); - var arg_ids = buildUnnamed1774(); + var arg_campaignIds = buildUnnamed1781(); + var arg_contentCategoryIds = buildUnnamed1782(); + var arg_directorySiteIds = buildUnnamed1783(); + var arg_ids = buildUnnamed1784(); 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 = buildUnnamed1775(); - var arg_pricingTypes = buildUnnamed1776(); + var arg_placementStrategyIds = buildUnnamed1785(); + var arg_pricingTypes = buildUnnamed1786(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed1777(); + var arg_siteIds = buildUnnamed1787(); 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 = buildUnnamed1778(); + var arg_ids = buildUnnamed1788(); 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 = buildUnnamed1779(); - var arg_tagFormats = buildUnnamed1780(); + var arg_placementIds = buildUnnamed1789(); + var arg_tagFormats = buildUnnamed1790(); 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 = buildUnnamed1781(); + var arg_advertiserIds = buildUnnamed1791(); var arg_archived = true; - var arg_campaignIds = buildUnnamed1782(); - var arg_compatibilities = buildUnnamed1783(); - var arg_contentCategoryIds = buildUnnamed1784(); - var arg_directorySiteIds = buildUnnamed1785(); - var arg_groupIds = buildUnnamed1786(); - var arg_ids = buildUnnamed1787(); + 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_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 = buildUnnamed1788(); - var arg_pricingTypes = buildUnnamed1789(); + var arg_placementStrategyIds = buildUnnamed1798(); + var arg_pricingTypes = buildUnnamed1799(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed1790(); - var arg_sizeIds = buildUnnamed1791(); + var arg_siteIds = buildUnnamed1800(); + var arg_sizeIds = buildUnnamed1801(); 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 = buildUnnamed1792(); - var arg_ids = buildUnnamed1793(); + var arg_advertiserIds = buildUnnamed1802(); + var arg_ids = buildUnnamed1803(); 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 = buildUnnamed1794(); - var arg_directorySiteIds = buildUnnamed1795(); - var arg_ids = buildUnnamed1796(); + var arg_campaignIds = buildUnnamed1804(); + var arg_directorySiteIds = buildUnnamed1805(); + var arg_ids = buildUnnamed1806(); 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 = buildUnnamed1797(); + var arg_ids = buildUnnamed1807(); 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 = buildUnnamed1798(); + var arg_ids = buildUnnamed1808(); 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 = buildUnnamed1799(); + var arg_ids = buildUnnamed1809(); 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 = buildUnnamed1800(); + var arg_ids = buildUnnamed1810(); 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 875aaec..6127055 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); } -buildUnnamed2643() { +buildUnnamed2717() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2643(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')); } -buildUnnamed2644() { +buildUnnamed2718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2644(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')); @@ -82,12 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed2643(); + o.accountPermissionIds = buildUnnamed2717(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed2644(); + o.availablePermissionIds = buildUnnamed2718(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed2643(o.accountPermissionIds); + checkUnnamed2717(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); - checkUnnamed2644(o.availablePermissionIds); + checkUnnamed2718(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--; } -buildUnnamed2645() { +buildUnnamed2719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2645(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')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed2645(); + o.accountProfiles = buildUnnamed2719(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed2645(o.accountProfiles); + checkUnnamed2719(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--; } -buildUnnamed2646() { +buildUnnamed2720() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed2646(core.List<api.AccountPermissionGroup> o) { +checkUnnamed2720(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 = buildUnnamed2646(); + o.accountPermissionGroups = buildUnnamed2720(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed2646(o.accountPermissionGroups); + checkUnnamed2720(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed2647() { +buildUnnamed2721() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed2647(core.List<api.AccountPermission> o) { +checkUnnamed2721(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 = buildUnnamed2647(); + o.accountPermissions = buildUnnamed2721(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed2647(o.accountPermissions); + checkUnnamed2721(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed2648() { +buildUnnamed2722() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed2648(core.List<api.AccountUserProfile> o) { +checkUnnamed2722(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 = buildUnnamed2648(); + o.accountUserProfiles = buildUnnamed2722(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed2648(o.accountUserProfiles); + checkUnnamed2722(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed2649() { +buildUnnamed2723() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2649(core.List<api.Account> o) { +checkUnnamed2723(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 = buildUnnamed2649(); + o.accounts = buildUnnamed2723(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed2649(o.accounts); + checkUnnamed2723(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed2650() { +buildUnnamed2724() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2650(core.List<api.DimensionValue> o) { +checkUnnamed2724(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2651() { +buildUnnamed2725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2651(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')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed2650(); + o.filters = buildUnnamed2724(); o.kind = "foo"; - o.metricNames = buildUnnamed2651(); + o.metricNames = buildUnnamed2725(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed2650(o.filters); + checkUnnamed2724(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2651(o.metricNames); + checkUnnamed2725(o.metricNames); } buildCounterActivities--; } -buildUnnamed2652() { +buildUnnamed2726() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2652(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2726(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2653() { +buildUnnamed2727() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2653(core.List<api.EventTagOverride> o) { +checkUnnamed2727(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2654() { +buildUnnamed2728() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed2654(core.List<api.PlacementAssignment> o) { +checkUnnamed2728(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 = buildUnnamed2652(); + o.creativeGroupAssignments = buildUnnamed2726(); 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 = buildUnnamed2653(); + o.eventTagOverrides = buildUnnamed2727(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -535,7 +535,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed2654(); + o.placementAssignments = buildUnnamed2728(); 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); - checkUnnamed2652(o.creativeGroupAssignments); + checkUnnamed2726(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"))); - checkUnnamed2653(o.eventTagOverrides); + checkUnnamed2727(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')); - checkUnnamed2654(o.placementAssignments); + checkUnnamed2728(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -629,14 +629,14 @@ buildCounterAdSlot--; } -buildUnnamed2655() { +buildUnnamed2729() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed2655(core.List<api.Ad> o) { +checkUnnamed2729(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 = buildUnnamed2655(); + o.ads = buildUnnamed2729(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -658,7 +658,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed2655(o.ads); + checkUnnamed2729(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -737,14 +737,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed2656() { +buildUnnamed2730() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed2656(core.List<api.AdvertiserGroup> o) { +checkUnnamed2730(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 = buildUnnamed2656(); + o.advertiserGroups = buildUnnamed2730(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -766,21 +766,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed2656(o.advertiserGroups); + checkUnnamed2730(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed2657() { +buildUnnamed2731() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed2657(core.List<api.Advertiser> o) { +checkUnnamed2731(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 = buildUnnamed2657(); + o.advertisers = buildUnnamed2731(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -802,7 +802,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed2657(o.advertisers); + checkUnnamed2731(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -832,14 +832,14 @@ buildCounterAudienceSegment--; } -buildUnnamed2658() { +buildUnnamed2732() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed2658(core.List<api.AudienceSegment> o) { +checkUnnamed2732(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 = buildUnnamed2658(); + o.audienceSegments = buildUnnamed2732(); o.id = "foo"; o.name = "foo"; } @@ -861,7 +861,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed2658(o.audienceSegments); + checkUnnamed2732(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -897,14 +897,14 @@ buildCounterBrowser--; } -buildUnnamed2659() { +buildUnnamed2733() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2659(core.List<api.Browser> o) { +checkUnnamed2733(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 = buildUnnamed2659(); + o.browsers = buildUnnamed2733(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -925,72 +925,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed2659(o.browsers); + checkUnnamed2733(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed2660() { +buildUnnamed2734() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed2660(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed2734(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed2661() { +buildUnnamed2735() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed2661(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed2735(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed2662() { +buildUnnamed2736() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2662(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')); } -buildUnnamed2663() { +buildUnnamed2737() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed2663(core.List<api.EventTagOverride> o) { +checkUnnamed2737(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed2664() { +buildUnnamed2738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2664(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')); @@ -1002,21 +1002,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed2660(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed2734(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed2661(); + o.audienceSegmentGroups = buildUnnamed2735(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed2662(); + o.creativeGroupIds = buildUnnamed2736(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed2663(); + o.eventTagOverrides = buildUnnamed2737(); 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 = buildUnnamed2664(); + o.traffickerEmails = buildUnnamed2738(); } buildCounterCampaign--; return o; @@ -1037,21 +1037,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2660(o.additionalCreativeOptimizationConfigurations); + checkUnnamed2734(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); - checkUnnamed2661(o.audienceSegmentGroups); + checkUnnamed2735(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed2662(o.creativeGroupIds); + checkUnnamed2736(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed2663(o.eventTagOverrides); + checkUnnamed2737(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')); - checkUnnamed2664(o.traffickerEmails); + checkUnnamed2738(o.traffickerEmails); } buildCounterCampaign--; } @@ -1088,14 +1088,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed2665() { +buildUnnamed2739() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed2665(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed2739(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 = buildUnnamed2665(); + o.campaignCreativeAssociations = buildUnnamed2739(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1117,21 +1117,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed2665(o.campaignCreativeAssociations); + checkUnnamed2739(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed2666() { +buildUnnamed2740() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed2666(core.List<api.Campaign> o) { +checkUnnamed2740(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 = buildUnnamed2666(); + o.campaigns = buildUnnamed2740(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1153,7 +1153,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed2666(o.campaigns); + checkUnnamed2740(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1205,14 +1205,14 @@ buildCounterChangeLog--; } -buildUnnamed2667() { +buildUnnamed2741() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed2667(core.List<api.ChangeLog> o) { +checkUnnamed2741(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 = buildUnnamed2667(); + o.changeLogs = buildUnnamed2741(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1234,21 +1234,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed2667(o.changeLogs); + checkUnnamed2741(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed2668() { +buildUnnamed2742() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2668(core.List<api.City> o) { +checkUnnamed2742(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 = buildUnnamed2668(); + o.cities = buildUnnamed2742(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1269,7 +1269,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed2668(o.cities); + checkUnnamed2742(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1452,14 +1452,14 @@ buildCounterConnectionType--; } -buildUnnamed2669() { +buildUnnamed2743() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2669(core.List<api.ConnectionType> o) { +checkUnnamed2743(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 = buildUnnamed2669(); + o.connectionTypes = buildUnnamed2743(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1480,20 +1480,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed2669(o.connectionTypes); + checkUnnamed2743(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed2670() { +buildUnnamed2744() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed2670(core.List<api.ContentCategory> o) { +checkUnnamed2744(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 = buildUnnamed2670(); + o.contentCategories = buildUnnamed2744(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1515,7 +1515,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed2670(o.contentCategories); + checkUnnamed2744(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1547,27 +1547,27 @@ buildCounterContentCategory--; } -buildUnnamed2671() { +buildUnnamed2745() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed2671(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed2745(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed2672() { +buildUnnamed2746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2672(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')); @@ -1579,9 +1579,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed2671(); + o.customVariables = buildUnnamed2745(); o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed2672(); + o.encryptedUserIdCandidates = buildUnnamed2746(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.kind = "foo"; @@ -1600,9 +1600,9 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed2671(o.customVariables); + checkUnnamed2745(o.customVariables); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed2672(o.encryptedUserIdCandidates); + checkUnnamed2746(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--; } -buildUnnamed2673() { +buildUnnamed2747() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed2673(core.List<api.ConversionError> o) { +checkUnnamed2747(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 = buildUnnamed2673(); + o.errors = buildUnnamed2747(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1669,20 +1669,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed2673(o.errors); + checkUnnamed2747(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed2674() { +buildUnnamed2748() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed2674(core.List<api.Conversion> o) { +checkUnnamed2748(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 = buildUnnamed2674(); + o.conversions = buildUnnamed2748(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1704,21 +1704,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed2674(o.conversions); + checkUnnamed2748(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed2675() { +buildUnnamed2749() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed2675(core.List<api.ConversionStatus> o) { +checkUnnamed2749(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 = buildUnnamed2675(); + o.status = buildUnnamed2749(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1742,19 +1742,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2675(o.status); + checkUnnamed2749(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed2676() { +buildUnnamed2750() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2676(core.List<api.Country> o) { +checkUnnamed2750(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 = buildUnnamed2676(); + o.countries = buildUnnamed2750(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1775,7 +1775,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed2676(o.countries); + checkUnnamed2750(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1808,157 +1808,157 @@ buildCounterCountry--; } -buildUnnamed2677() { +buildUnnamed2751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2677(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')); } -buildUnnamed2678() { +buildUnnamed2752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2678(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')); } -buildUnnamed2679() { +buildUnnamed2753() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2679(core.List<api.ClickTag> o) { +checkUnnamed2753(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2680() { +buildUnnamed2754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2680(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')); } -buildUnnamed2681() { +buildUnnamed2755() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2681(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')); } -buildUnnamed2682() { +buildUnnamed2756() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2682(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2756(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2683() { +buildUnnamed2757() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed2683(core.List<api.CreativeAsset> o) { +checkUnnamed2757(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed2684() { +buildUnnamed2758() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed2684(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed2758(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed2685() { +buildUnnamed2759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2685(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')); } -buildUnnamed2686() { +buildUnnamed2760() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2686(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2760(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed2687() { +buildUnnamed2761() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed2687(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed2761(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed2688() { +buildUnnamed2762() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed2688(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2762(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 = buildUnnamed2677(); + o.adTagKeys = buildUnnamed2751(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1982,21 +1982,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed2678(); + o.backupImageFeatures = buildUnnamed2752(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed2679(); + o.clickTags = buildUnnamed2753(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed2680(); - o.compatibility = buildUnnamed2681(); + o.companionCreatives = buildUnnamed2754(); + o.compatibility = buildUnnamed2755(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed2682(); + o.counterCustomEvents = buildUnnamed2756(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed2683(); - o.creativeFieldAssignments = buildUnnamed2684(); - o.customKeyValues = buildUnnamed2685(); + o.creativeAssets = buildUnnamed2757(); + o.creativeFieldAssignments = buildUnnamed2758(); + o.customKeyValues = buildUnnamed2759(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed2686(); + o.exitCustomEvents = buildUnnamed2760(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2022,8 +2022,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed2687(); - o.timerCustomEvents = buildUnnamed2688(); + o.thirdPartyUrls = buildUnnamed2761(); + o.timerCustomEvents = buildUnnamed2762(); 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')); - checkUnnamed2677(o.adTagKeys); + checkUnnamed2751(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')); - checkUnnamed2678(o.backupImageFeatures); + checkUnnamed2752(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed2679(o.clickTags); + checkUnnamed2753(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed2680(o.companionCreatives); - checkUnnamed2681(o.compatibility); + checkUnnamed2754(o.companionCreatives); + checkUnnamed2755(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed2682(o.counterCustomEvents); + checkUnnamed2756(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed2683(o.creativeAssets); - checkUnnamed2684(o.creativeFieldAssignments); - checkUnnamed2685(o.customKeyValues); + checkUnnamed2757(o.creativeAssets); + checkUnnamed2758(o.creativeFieldAssignments); + checkUnnamed2759(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed2686(o.exitCustomEvents); + checkUnnamed2760(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')); - checkUnnamed2687(o.thirdPartyUrls); - checkUnnamed2688(o.timerCustomEvents); + checkUnnamed2761(o.thirdPartyUrls); + checkUnnamed2762(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--; } -buildUnnamed2689() { +buildUnnamed2763() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2689(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')); } -buildUnnamed2690() { +buildUnnamed2764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2690(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')); @@ -2141,9 +2141,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed2689(); + o.companionCreativeIds = buildUnnamed2763(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed2690(); + o.detectedFeatures = buildUnnamed2764(); 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); - checkUnnamed2689(o.companionCreativeIds); + checkUnnamed2763(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed2690(o.detectedFeatures); + checkUnnamed2764(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--; } -buildUnnamed2691() { +buildUnnamed2765() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed2691(core.List<api.ClickTag> o) { +checkUnnamed2765(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed2692() { +buildUnnamed2766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2692(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')); } -buildUnnamed2693() { +buildUnnamed2767() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2693(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')); @@ -2298,12 +2298,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed2691(); - o.detectedFeatures = buildUnnamed2692(); + o.clickTags = buildUnnamed2765(); + o.detectedFeatures = buildUnnamed2766(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed2693(); + o.warnedValidationRules = buildUnnamed2767(); } buildCounterCreativeAssetMetadata--; return o; @@ -2313,24 +2313,24 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed2691(o.clickTags); - checkUnnamed2692(o.detectedFeatures); + checkUnnamed2765(o.clickTags); + checkUnnamed2766(o.detectedFeatures); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2693(o.warnedValidationRules); + checkUnnamed2767(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed2694() { +buildUnnamed2768() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed2694(core.List<api.Rule> o) { +checkUnnamed2768(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 = buildUnnamed2694(); + o.rules = buildUnnamed2768(); } buildCounterCreativeAssetSelection--; return o; @@ -2352,45 +2352,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed2694(o.rules); + checkUnnamed2768(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed2695() { +buildUnnamed2769() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed2695(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed2769(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed2696() { +buildUnnamed2770() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed2696(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2770(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed2697() { +buildUnnamed2771() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed2697(core.List<api.RichMediaExitOverride> o) { +checkUnnamed2771(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 = buildUnnamed2695(); - o.creativeGroupAssignments = buildUnnamed2696(); + o.companionCreativeOverrides = buildUnnamed2769(); + o.creativeGroupAssignments = buildUnnamed2770(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed2697(); + o.richMediaExitOverrides = buildUnnamed2771(); 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); - checkUnnamed2695(o.companionCreativeOverrides); - checkUnnamed2696(o.creativeGroupAssignments); + checkUnnamed2769(o.companionCreativeOverrides); + checkUnnamed2770(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"))); - checkUnnamed2697(o.richMediaExitOverrides); + checkUnnamed2771(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--; } -buildUnnamed2698() { +buildUnnamed2772() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed2698(core.List<api.CreativeFieldValue> o) { +checkUnnamed2772(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 = buildUnnamed2698(); + o.creativeFieldValues = buildUnnamed2772(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2580,21 +2580,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed2698(o.creativeFieldValues); + checkUnnamed2772(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed2699() { +buildUnnamed2773() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed2699(core.List<api.CreativeField> o) { +checkUnnamed2773(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 = buildUnnamed2699(); + o.creativeFields = buildUnnamed2773(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2616,7 +2616,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed2699(o.creativeFields); + checkUnnamed2773(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2677,14 +2677,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed2700() { +buildUnnamed2774() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed2700(core.List<api.CreativeGroup> o) { +checkUnnamed2774(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 = buildUnnamed2700(); + o.creativeGroups = buildUnnamed2774(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2706,21 +2706,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed2700(o.creativeGroups); + checkUnnamed2774(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed2701() { +buildUnnamed2775() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed2701(core.List<api.OptimizationActivity> o) { +checkUnnamed2775(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 = buildUnnamed2701(); + o.optimizationActivitys = buildUnnamed2775(); 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')); - checkUnnamed2701(o.optimizationActivitys); + checkUnnamed2775(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed2702() { +buildUnnamed2776() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed2702(core.List<api.CreativeAssignment> o) { +checkUnnamed2776(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 = buildUnnamed2702(); + o.creativeAssignments = buildUnnamed2776(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2781,7 +2781,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed2702(o.creativeAssignments); + checkUnnamed2776(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--; } -buildUnnamed2703() { +buildUnnamed2777() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed2703(core.List<api.Creative> o) { +checkUnnamed2777(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 = buildUnnamed2703(); + o.creatives = buildUnnamed2777(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2839,60 +2839,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed2703(o.creatives); + checkUnnamed2777(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed2704() { +buildUnnamed2778() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2704(core.List<api.Dimension> o) { +checkUnnamed2778(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2705() { +buildUnnamed2779() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2705(core.List<api.Dimension> o) { +checkUnnamed2779(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2706() { +buildUnnamed2780() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2706(core.List<api.Metric> o) { +checkUnnamed2780(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2707() { +buildUnnamed2781() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2707(core.List<api.Metric> o) { +checkUnnamed2781(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 = buildUnnamed2704(); - o.dimensionFilters = buildUnnamed2705(); + o.breakdown = buildUnnamed2778(); + o.dimensionFilters = buildUnnamed2779(); o.kind = "foo"; - o.metrics = buildUnnamed2706(); - o.overlapMetrics = buildUnnamed2707(); + o.metrics = buildUnnamed2780(); + o.overlapMetrics = buildUnnamed2781(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2916,11 +2916,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed2704(o.breakdown); - checkUnnamed2705(o.dimensionFilters); + checkUnnamed2778(o.breakdown); + checkUnnamed2779(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2706(o.metrics); - checkUnnamed2707(o.overlapMetrics); + checkUnnamed2780(o.metrics); + checkUnnamed2781(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2948,14 +2948,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed2708() { +buildUnnamed2782() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2708(core.List<api.DimensionValue> o) { +checkUnnamed2782(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 = buildUnnamed2708(); + o.filteredEventIds = buildUnnamed2782(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2976,7 +2976,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed2708(o.filteredEventIds); + checkUnnamed2782(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3007,27 +3007,27 @@ buildCounterDateRange--; } -buildUnnamed2709() { +buildUnnamed2783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2709(core.List<core.String> o) { +checkUnnamed2783(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2710() { +buildUnnamed2784() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2710(core.List<core.int> o) { +checkUnnamed2784(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 = buildUnnamed2709(); - o.hoursOfDay = buildUnnamed2710(); + o.daysOfWeek = buildUnnamed2783(); + o.hoursOfDay = buildUnnamed2784(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3049,8 +3049,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed2709(o.daysOfWeek); - checkUnnamed2710(o.hoursOfDay); + checkUnnamed2783(o.daysOfWeek); + checkUnnamed2784(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3202,14 +3202,14 @@ buildCounterDimensionValue--; } -buildUnnamed2711() { +buildUnnamed2785() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2711(core.List<api.DimensionValue> o) { +checkUnnamed2785(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 = buildUnnamed2711(); + o.items = buildUnnamed2785(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3233,21 +3233,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2711(o.items); + checkUnnamed2785(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed2712() { +buildUnnamed2786() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed2712(core.List<api.DimensionFilter> o) { +checkUnnamed2786(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 = buildUnnamed2712(); + o.filters = buildUnnamed2786(); 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"))); - checkUnnamed2712(o.filters); + checkUnnamed2786(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed2713() { +buildUnnamed2787() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed2713(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed2787(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed2714() { +buildUnnamed2788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2714(core.List<core.String> o) { +checkUnnamed2788(core.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() { +buildUnnamed2789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2715(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')); @@ -3325,14 +3325,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed2713(); + o.contactAssignments = buildUnnamed2787(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed2714(); - o.interstitialTagFormats = buildUnnamed2715(); + o.inpageTagFormats = buildUnnamed2788(); + o.interstitialTagFormats = buildUnnamed2789(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3347,14 +3347,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed2713(o.contactAssignments); + checkUnnamed2787(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); - checkUnnamed2714(o.inpageTagFormats); - checkUnnamed2715(o.interstitialTagFormats); + checkUnnamed2788(o.inpageTagFormats); + checkUnnamed2789(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--; } -buildUnnamed2716() { +buildUnnamed2790() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed2716(core.List<api.DirectorySiteContact> o) { +checkUnnamed2790(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 = buildUnnamed2716(); + o.directorySiteContacts = buildUnnamed2790(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3451,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed2716(o.directorySiteContacts); + checkUnnamed2790(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3489,14 +3489,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed2717() { +buildUnnamed2791() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed2717(core.List<api.DirectorySite> o) { +checkUnnamed2791(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 = buildUnnamed2717(); + o.directorySites = buildUnnamed2791(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3518,7 +3518,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed2717(o.directorySites); + checkUnnamed2791(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3550,14 +3550,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed2718() { +buildUnnamed2792() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed2718(core.List<api.DynamicTargetingKey> o) { +checkUnnamed2792(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 = buildUnnamed2718(); + o.dynamicTargetingKeys = buildUnnamed2792(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3578,7 +3578,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed2718(o.dynamicTargetingKeys); + checkUnnamed2792(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3609,14 +3609,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed2719() { +buildUnnamed2793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2719(core.List<core.String> o) { +checkUnnamed2793(core.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 = buildUnnamed2719(); + o.siteIds = buildUnnamed2793(); 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')); - checkUnnamed2719(o.siteIds); + checkUnnamed2793(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--; } -buildUnnamed2720() { +buildUnnamed2794() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed2720(core.List<api.EventTag> o) { +checkUnnamed2794(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 = buildUnnamed2720(); + o.eventTags = buildUnnamed2794(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3724,7 +3724,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed2720(o.eventTags); + checkUnnamed2794(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3788,14 +3788,14 @@ buildCounterFile--; } -buildUnnamed2721() { +buildUnnamed2795() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed2721(core.List<api.File> o) { +checkUnnamed2795(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 = buildUnnamed2721(); + o.items = buildUnnamed2795(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3819,7 +3819,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2721(o.items); + checkUnnamed2795(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3872,14 +3872,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed2722() { +buildUnnamed2796() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed2722(core.List<api.FloodlightActivity> o) { +checkUnnamed2796(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 = buildUnnamed2722(); + o.floodlightActivities = buildUnnamed2796(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3901,47 +3901,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed2722(o.floodlightActivities); + checkUnnamed2796(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed2723() { +buildUnnamed2797() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed2723(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed2797(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed2724() { +buildUnnamed2798() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed2724(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed2798(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed2725() { +buildUnnamed2799() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2725(core.List<core.String> o) { +checkUnnamed2799(core.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 = buildUnnamed2723(); + o.defaultTags = buildUnnamed2797(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3972,14 +3972,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed2724(); + o.publisherTags = buildUnnamed2798(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed2725(); + o.userDefinedVariableTypes = buildUnnamed2799(); } buildCounterFloodlightActivity--; return o; @@ -3993,7 +3993,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed2723(o.defaultTags); + checkUnnamed2797(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')); - checkUnnamed2724(o.publisherTags); + checkUnnamed2798(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')); - checkUnnamed2725(o.userDefinedVariableTypes); + checkUnnamed2799(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4084,14 +4084,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed2726() { +buildUnnamed2800() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed2726(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed2800(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 = buildUnnamed2726(); + o.floodlightActivityGroups = buildUnnamed2800(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4113,7 +4113,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed2726(o.floodlightActivityGroups); + checkUnnamed2800(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4149,40 +4149,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed2727() { +buildUnnamed2801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2727(core.List<core.String> o) { +checkUnnamed2801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2728() { +buildUnnamed2802() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed2728(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed2802(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed2729() { +buildUnnamed2803() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed2729(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed2803(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 = buildUnnamed2727(); + o.standardVariableTypes = buildUnnamed2801(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed2728(); - o.userDefinedVariableConfigurations = buildUnnamed2729(); + o.thirdPartyAuthenticationTokens = buildUnnamed2802(); + o.userDefinedVariableConfigurations = buildUnnamed2803(); } buildCounterFloodlightConfiguration--; return o; @@ -4232,23 +4232,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed2727(o.standardVariableTypes); + checkUnnamed2801(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed2728(o.thirdPartyAuthenticationTokens); - checkUnnamed2729(o.userDefinedVariableConfigurations); + checkUnnamed2802(o.thirdPartyAuthenticationTokens); + checkUnnamed2803(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed2730() { +buildUnnamed2804() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed2730(core.List<api.FloodlightConfiguration> o) { +checkUnnamed2804(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 = buildUnnamed2730(); + o.floodlightConfigurations = buildUnnamed2804(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4269,46 +4269,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed2730(o.floodlightConfigurations); + checkUnnamed2804(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed2731() { +buildUnnamed2805() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2731(core.List<api.Dimension> o) { +checkUnnamed2805(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2732() { +buildUnnamed2806() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2732(core.List<api.Dimension> o) { +checkUnnamed2806(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2733() { +buildUnnamed2807() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2733(core.List<api.Metric> o) { +checkUnnamed2807(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 = buildUnnamed2731(); - o.dimensions = buildUnnamed2732(); + o.dimensionFilters = buildUnnamed2805(); + o.dimensions = buildUnnamed2806(); o.kind = "foo"; - o.metrics = buildUnnamed2733(); + o.metrics = buildUnnamed2807(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4331,10 +4331,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed2731(o.dimensionFilters); - checkUnnamed2732(o.dimensions); + checkUnnamed2805(o.dimensionFilters); + checkUnnamed2806(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2733(o.metrics); + checkUnnamed2807(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4387,66 +4387,66 @@ buildCounterFsCommand--; } -buildUnnamed2734() { +buildUnnamed2808() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed2734(core.List<api.City> o) { +checkUnnamed2808(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed2735() { +buildUnnamed2809() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed2735(core.List<api.Country> o) { +checkUnnamed2809(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed2736() { +buildUnnamed2810() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2736(core.List<api.Metro> o) { +checkUnnamed2810(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed2737() { +buildUnnamed2811() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2737(core.List<api.PostalCode> o) { +checkUnnamed2811(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed2738() { +buildUnnamed2812() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2738(core.List<api.Region> o) { +checkUnnamed2812(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 = buildUnnamed2734(); - o.countries = buildUnnamed2735(); + o.cities = buildUnnamed2808(); + o.countries = buildUnnamed2809(); o.excludeCountries = true; - o.metros = buildUnnamed2736(); - o.postalCodes = buildUnnamed2737(); - o.regions = buildUnnamed2738(); + o.metros = buildUnnamed2810(); + o.postalCodes = buildUnnamed2811(); + o.regions = buildUnnamed2812(); } buildCounterGeoTargeting--; return o; @@ -4471,24 +4471,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed2734(o.cities); - checkUnnamed2735(o.countries); + checkUnnamed2808(o.cities); + checkUnnamed2809(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed2736(o.metros); - checkUnnamed2737(o.postalCodes); - checkUnnamed2738(o.regions); + checkUnnamed2810(o.metros); + checkUnnamed2811(o.postalCodes); + checkUnnamed2812(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed2739() { +buildUnnamed2813() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed2739(core.List<api.AdSlot> o) { +checkUnnamed2813(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 = buildUnnamed2739(); + o.adSlots = buildUnnamed2813(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4528,7 +4528,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2739(o.adSlots); + checkUnnamed2813(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--; } -buildUnnamed2740() { +buildUnnamed2814() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed2740(core.List<api.InventoryItem> o) { +checkUnnamed2814(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 = buildUnnamed2740(); + o.inventoryItems = buildUnnamed2814(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4580,7 +4580,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed2740(o.inventoryItems); + checkUnnamed2814(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4633,14 +4633,14 @@ buildCounterLandingPage--; } -buildUnnamed2741() { +buildUnnamed2815() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed2741(core.List<api.LandingPage> o) { +checkUnnamed2815(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 = buildUnnamed2741(); + o.landingPages = buildUnnamed2815(); } buildCounterLandingPagesListResponse--; return o; @@ -4662,7 +4662,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2741(o.landingPages); + checkUnnamed2815(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4692,14 +4692,14 @@ buildCounterLanguage--; } -buildUnnamed2742() { +buildUnnamed2816() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2742(core.List<api.Language> o) { +checkUnnamed2816(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 = buildUnnamed2742(); + o.languages = buildUnnamed2816(); } buildCounterLanguageTargeting--; return o; @@ -4719,19 +4719,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed2742(o.languages); + checkUnnamed2816(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed2743() { +buildUnnamed2817() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed2743(core.List<api.Language> o) { +checkUnnamed2817(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 = buildUnnamed2743(); + o.languages = buildUnnamed2817(); } buildCounterLanguagesListResponse--; return o; @@ -4753,7 +4753,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2743(o.languages); + checkUnnamed2817(o.languages); } buildCounterLanguagesListResponse--; } @@ -4777,14 +4777,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed2744() { +buildUnnamed2818() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed2744(core.List<api.ListPopulationTerm> o) { +checkUnnamed2818(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 = buildUnnamed2744(); + o.terms = buildUnnamed2818(); } buildCounterListPopulationClause--; return o; @@ -4804,19 +4804,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed2744(o.terms); + checkUnnamed2818(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed2745() { +buildUnnamed2819() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed2745(core.List<api.ListPopulationClause> o) { +checkUnnamed2819(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 = buildUnnamed2745(); + o.listPopulationClauses = buildUnnamed2819(); } buildCounterListPopulationRule--; return o; @@ -4840,7 +4840,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed2745(o.listPopulationClauses); + checkUnnamed2819(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4970,14 +4970,14 @@ buildCounterMetro--; } -buildUnnamed2746() { +buildUnnamed2820() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed2746(core.List<api.Metro> o) { +checkUnnamed2820(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 = buildUnnamed2746(); + o.metros = buildUnnamed2820(); } buildCounterMetrosListResponse--; return o; @@ -4999,7 +4999,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2746(o.metros); + checkUnnamed2820(o.metros); } buildCounterMetrosListResponse--; } @@ -5031,14 +5031,14 @@ buildCounterMobileCarrier--; } -buildUnnamed2747() { +buildUnnamed2821() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2747(core.List<api.MobileCarrier> o) { +checkUnnamed2821(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 = buildUnnamed2747(); + o.mobileCarriers = buildUnnamed2821(); } buildCounterMobileCarriersListResponse--; return o; @@ -5060,19 +5060,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2747(o.mobileCarriers); + checkUnnamed2821(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed2748() { +buildUnnamed2822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2748(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')); @@ -5084,7 +5084,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed2748(); + o.objectIds = buildUnnamed2822(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5095,7 +5095,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2748(o.objectIds); + checkUnnamed2822(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5199,14 +5199,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed2749() { +buildUnnamed2823() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2749(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2823(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 = buildUnnamed2749(); + o.operatingSystemVersions = buildUnnamed2823(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5228,19 +5228,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2749(o.operatingSystemVersions); + checkUnnamed2823(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed2750() { +buildUnnamed2824() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2750(core.List<api.OperatingSystem> o) { +checkUnnamed2824(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 = buildUnnamed2750(); + o.operatingSystems = buildUnnamed2824(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5262,7 +5262,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2750(o.operatingSystems); + checkUnnamed2824(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5290,53 +5290,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed2751() { +buildUnnamed2825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2751(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')); } -buildUnnamed2752() { +buildUnnamed2826() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed2752(core.List<api.OrderContact> o) { +checkUnnamed2826(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed2753() { +buildUnnamed2827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2753(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')); } -buildUnnamed2754() { +buildUnnamed2828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2754(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')); @@ -5349,11 +5349,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed2751(); + o.approverUserProfileIds = buildUnnamed2825(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed2752(); + o.contacts = buildUnnamed2826(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5363,8 +5363,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed2753(); - o.siteNames = buildUnnamed2754(); + o.siteId = buildUnnamed2827(); + o.siteNames = buildUnnamed2828(); 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')); - checkUnnamed2751(o.approverUserProfileIds); + checkUnnamed2825(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed2752(o.contacts); + checkUnnamed2826(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')); - checkUnnamed2753(o.siteId); - checkUnnamed2754(o.siteNames); + checkUnnamed2827(o.siteId); + checkUnnamed2828(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5426,27 +5426,27 @@ buildCounterOrderContact--; } -buildUnnamed2755() { +buildUnnamed2829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2755(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')); } -buildUnnamed2756() { +buildUnnamed2830() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2756(core.List<core.String> o) { +checkUnnamed2830(core.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 = buildUnnamed2755(); + o.approvedByUserProfileIds = buildUnnamed2829(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed2756(); + o.lastSentRecipients = buildUnnamed2830(); 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')); - checkUnnamed2755(o.approvedByUserProfileIds); + checkUnnamed2829(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')); - checkUnnamed2756(o.lastSentRecipients); + checkUnnamed2830(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--; } -buildUnnamed2757() { +buildUnnamed2831() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed2757(core.List<api.OrderDocument> o) { +checkUnnamed2831(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 = buildUnnamed2757(); + o.orderDocuments = buildUnnamed2831(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5534,19 +5534,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2757(o.orderDocuments); + checkUnnamed2831(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed2758() { +buildUnnamed2832() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed2758(core.List<api.Order> o) { +checkUnnamed2832(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 = buildUnnamed2758(); + o.orders = buildUnnamed2832(); } buildCounterOrdersListResponse--; return o; @@ -5570,58 +5570,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2758(o.orders); + checkUnnamed2832(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed2759() { +buildUnnamed2833() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2759(core.List<api.Dimension> o) { +checkUnnamed2833(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2760() { +buildUnnamed2834() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2760(core.List<api.Dimension> o) { +checkUnnamed2834(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2761() { +buildUnnamed2835() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2761(core.List<api.Metric> o) { +checkUnnamed2835(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2762() { +buildUnnamed2836() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2762(core.List<api.Dimension> o) { +checkUnnamed2836(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 = buildUnnamed2759(); - o.customFloodlightVariables = buildUnnamed2760(); + o.conversionDimensions = buildUnnamed2833(); + o.customFloodlightVariables = buildUnnamed2834(); o.kind = "foo"; - o.metrics = buildUnnamed2761(); - o.perInteractionDimensions = buildUnnamed2762(); + o.metrics = buildUnnamed2835(); + o.perInteractionDimensions = buildUnnamed2836(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5645,23 +5645,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed2759(o.conversionDimensions); - checkUnnamed2760(o.customFloodlightVariables); + checkUnnamed2833(o.conversionDimensions); + checkUnnamed2834(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2761(o.metrics); - checkUnnamed2762(o.perInteractionDimensions); + checkUnnamed2835(o.metrics); + checkUnnamed2836(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed2763() { +buildUnnamed2837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2763(core.List<core.String> o) { +checkUnnamed2837(core.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 = buildUnnamed2763(); + o.tagFormats = buildUnnamed2837(); 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')); - checkUnnamed2763(o.tagFormats); + checkUnnamed2837(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5781,14 +5781,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed2764() { +buildUnnamed2838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2764(core.List<core.String> o) { +checkUnnamed2838(core.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 = buildUnnamed2764(); + o.childPlacementIds = buildUnnamed2838(); 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); - checkUnnamed2764(o.childPlacementIds); + checkUnnamed2838(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5863,14 +5863,14 @@ buildCounterPlacementGroup--; } -buildUnnamed2765() { +buildUnnamed2839() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed2765(core.List<api.PlacementGroup> o) { +checkUnnamed2839(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 = buildUnnamed2765(); + o.placementGroups = buildUnnamed2839(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5894,19 +5894,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2765(o.placementGroups); + checkUnnamed2839(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed2766() { +buildUnnamed2840() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed2766(core.List<api.PlacementStrategy> o) { +checkUnnamed2840(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 = buildUnnamed2766(); + o.placementStrategies = buildUnnamed2840(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5930,7 +5930,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2766(o.placementStrategies); + checkUnnamed2840(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5960,14 +5960,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed2767() { +buildUnnamed2841() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed2767(core.List<api.TagData> o) { +checkUnnamed2841(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 = buildUnnamed2767(); + o.tagDatas = buildUnnamed2841(); } buildCounterPlacementTag--; return o; @@ -5989,19 +5989,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed2767(o.tagDatas); + checkUnnamed2841(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed2768() { +buildUnnamed2842() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed2768(core.List<api.PlacementTag> o) { +checkUnnamed2842(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 = buildUnnamed2768(); + o.placementTags = buildUnnamed2842(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6023,19 +6023,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2768(o.placementTags); + checkUnnamed2842(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed2769() { +buildUnnamed2843() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed2769(core.List<api.Placement> o) { +checkUnnamed2843(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 = buildUnnamed2769(); + o.placements = buildUnnamed2843(); } buildCounterPlacementsListResponse--; return o; @@ -6059,7 +6059,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2769(o.placements); + checkUnnamed2843(o.placements); } buildCounterPlacementsListResponse--; } @@ -6087,14 +6087,14 @@ buildCounterPlatformType--; } -buildUnnamed2770() { +buildUnnamed2844() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2770(core.List<api.PlatformType> o) { +checkUnnamed2844(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 = buildUnnamed2770(); + o.platformTypes = buildUnnamed2844(); } buildCounterPlatformTypesListResponse--; return o; @@ -6116,7 +6116,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2770(o.platformTypes); + checkUnnamed2844(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6183,14 +6183,14 @@ buildCounterPostalCode--; } -buildUnnamed2771() { +buildUnnamed2845() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2771(core.List<api.PostalCode> o) { +checkUnnamed2845(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 = buildUnnamed2771(); + o.postalCodes = buildUnnamed2845(); } buildCounterPostalCodesListResponse--; return o; @@ -6212,19 +6212,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2771(o.postalCodes); + checkUnnamed2845(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed2772() { +buildUnnamed2846() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed2772(core.List<api.Flight> o) { +checkUnnamed2846(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 = buildUnnamed2772(); + o.flights = buildUnnamed2846(); 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"))); - checkUnnamed2772(o.flights); + checkUnnamed2846(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--; } -buildUnnamed2773() { +buildUnnamed2847() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed2773(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed2847(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 = buildUnnamed2773(); + o.pricingPeriods = buildUnnamed2847(); 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')); - checkUnnamed2773(o.pricingPeriods); + checkUnnamed2847(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--; } -buildUnnamed2774() { +buildUnnamed2848() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2774(core.List<api.Project> o) { +checkUnnamed2848(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 = buildUnnamed2774(); + o.projects = buildUnnamed2848(); } buildCounterProjectsListResponse--; return o; @@ -6426,71 +6426,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2774(o.projects); + checkUnnamed2848(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed2775() { +buildUnnamed2849() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2775(core.List<api.Dimension> o) { +checkUnnamed2849(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2776() { +buildUnnamed2850() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2776(core.List<api.Dimension> o) { +checkUnnamed2850(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2777() { +buildUnnamed2851() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2777(core.List<api.Metric> o) { +checkUnnamed2851(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2778() { +buildUnnamed2852() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2778(core.List<api.Metric> o) { +checkUnnamed2852(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2779() { +buildUnnamed2853() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2779(core.List<api.Metric> o) { +checkUnnamed2853(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 = buildUnnamed2775(); - o.dimensions = buildUnnamed2776(); + o.dimensionFilters = buildUnnamed2849(); + o.dimensions = buildUnnamed2850(); o.kind = "foo"; - o.metrics = buildUnnamed2777(); - o.pivotedActivityMetrics = buildUnnamed2778(); - o.reachByFrequencyMetrics = buildUnnamed2779(); + o.metrics = buildUnnamed2851(); + o.pivotedActivityMetrics = buildUnnamed2852(); + o.reachByFrequencyMetrics = buildUnnamed2853(); } buildCounterReachReportCompatibleFields--; return o; @@ -6515,12 +6515,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed2775(o.dimensionFilters); - checkUnnamed2776(o.dimensions); + checkUnnamed2849(o.dimensionFilters); + checkUnnamed2850(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2777(o.metrics); - checkUnnamed2778(o.pivotedActivityMetrics); - checkUnnamed2779(o.reachByFrequencyMetrics); + checkUnnamed2851(o.metrics); + checkUnnamed2852(o.pivotedActivityMetrics); + checkUnnamed2853(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6577,14 +6577,14 @@ buildCounterRegion--; } -buildUnnamed2780() { +buildUnnamed2854() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2780(core.List<api.Region> o) { +checkUnnamed2854(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 = buildUnnamed2780(); + o.regions = buildUnnamed2854(); } buildCounterRegionsListResponse--; return o; @@ -6606,7 +6606,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2780(o.regions); + checkUnnamed2854(o.regions); } buildCounterRegionsListResponse--; } @@ -6654,27 +6654,27 @@ buildCounterRemarketingList--; } -buildUnnamed2781() { +buildUnnamed2855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2781(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')); } -buildUnnamed2782() { +buildUnnamed2856() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2782(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')); @@ -6687,8 +6687,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed2781(); - o.sharedAdvertiserIds = buildUnnamed2782(); + o.sharedAccountIds = buildUnnamed2855(); + o.sharedAdvertiserIds = buildUnnamed2856(); } buildCounterRemarketingListShare--; return o; @@ -6699,20 +6699,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed2781(o.sharedAccountIds); - checkUnnamed2782(o.sharedAdvertiserIds); + checkUnnamed2855(o.sharedAccountIds); + checkUnnamed2856(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed2783() { +buildUnnamed2857() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed2783(core.List<api.RemarketingList> o) { +checkUnnamed2857(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 = buildUnnamed2783(); + o.remarketingLists = buildUnnamed2857(); } buildCounterRemarketingListsListResponse--; return o; @@ -6736,45 +6736,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2783(o.remarketingLists); + checkUnnamed2857(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed2784() { +buildUnnamed2858() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2784(core.List<api.DimensionValue> o) { +checkUnnamed2858(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2785() { +buildUnnamed2859() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2785(core.List<api.SortedDimension> o) { +checkUnnamed2859(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2786() { +buildUnnamed2860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2786(core.List<core.String> o) { +checkUnnamed2860(core.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 = buildUnnamed2784(); - o.dimensions = buildUnnamed2785(); - o.metricNames = buildUnnamed2786(); + o.dimensionFilters = buildUnnamed2858(); + o.dimensions = buildUnnamed2859(); + o.metricNames = buildUnnamed2860(); } buildCounterReportCriteria--; return o; @@ -6802,60 +6802,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2784(o.dimensionFilters); - checkUnnamed2785(o.dimensions); - checkUnnamed2786(o.metricNames); + checkUnnamed2858(o.dimensionFilters); + checkUnnamed2859(o.dimensions); + checkUnnamed2860(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed2787() { +buildUnnamed2861() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2787(core.List<api.SortedDimension> o) { +checkUnnamed2861(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2788() { +buildUnnamed2862() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2788(core.List<api.DimensionValue> o) { +checkUnnamed2862(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2789() { +buildUnnamed2863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2789(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')); } -buildUnnamed2790() { +buildUnnamed2864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2790(core.List<core.String> o) { +checkUnnamed2864(core.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 = buildUnnamed2787(); + o.breakdown = buildUnnamed2861(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed2788(); - o.metricNames = buildUnnamed2789(); - o.overlapMetricNames = buildUnnamed2790(); + o.dimensionFilters = buildUnnamed2862(); + o.metricNames = buildUnnamed2863(); + o.overlapMetricNames = buildUnnamed2864(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6881,25 +6881,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed2787(o.breakdown); + checkUnnamed2861(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed2788(o.dimensionFilters); - checkUnnamed2789(o.metricNames); - checkUnnamed2790(o.overlapMetricNames); + checkUnnamed2862(o.dimensionFilters); + checkUnnamed2863(o.metricNames); + checkUnnamed2864(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed2791() { +buildUnnamed2865() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed2791(core.List<api.Recipient> o) { +checkUnnamed2865(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 = buildUnnamed2791(); + o.recipients = buildUnnamed2865(); } 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')); - checkUnnamed2791(o.recipients); + checkUnnamed2865(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed2792() { +buildUnnamed2866() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2792(core.List<api.DimensionValue> o) { +checkUnnamed2866(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2793() { +buildUnnamed2867() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2793(core.List<api.DimensionValue> o) { +checkUnnamed2867(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2794() { +buildUnnamed2868() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2794(core.List<api.SortedDimension> o) { +checkUnnamed2868(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2795() { +buildUnnamed2869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2795(core.List<core.String> o) { +checkUnnamed2869(core.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 = buildUnnamed2792(); + o.customRichMediaEvents = buildUnnamed2866(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2793(); - o.dimensions = buildUnnamed2794(); + o.dimensionFilters = buildUnnamed2867(); + o.dimensions = buildUnnamed2868(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2795(); + o.metricNames = buildUnnamed2869(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7025,90 +7025,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed2792(o.customRichMediaEvents); + checkUnnamed2866(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2793(o.dimensionFilters); - checkUnnamed2794(o.dimensions); + checkUnnamed2867(o.dimensionFilters); + checkUnnamed2868(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2795(o.metricNames); + checkUnnamed2869(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed2796() { +buildUnnamed2870() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2796(core.List<api.DimensionValue> o) { +checkUnnamed2870(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2797() { +buildUnnamed2871() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2797(core.List<api.SortedDimension> o) { +checkUnnamed2871(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2798() { +buildUnnamed2872() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2798(core.List<api.SortedDimension> o) { +checkUnnamed2872(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2799() { +buildUnnamed2873() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2799(core.List<api.DimensionValue> o) { +checkUnnamed2873(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2800() { +buildUnnamed2874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2800(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')); } -buildUnnamed2801() { +buildUnnamed2875() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2801(core.List<api.SortedDimension> o) { +checkUnnamed2875(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 = buildUnnamed2796(); - o.conversionDimensions = buildUnnamed2797(); - o.customFloodlightVariables = buildUnnamed2798(); - o.customRichMediaEvents = buildUnnamed2799(); + o.activityFilters = buildUnnamed2870(); + o.conversionDimensions = buildUnnamed2871(); + o.customFloodlightVariables = buildUnnamed2872(); + o.customRichMediaEvents = buildUnnamed2873(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2800(); - o.perInteractionDimensions = buildUnnamed2801(); + o.metricNames = buildUnnamed2874(); + o.perInteractionDimensions = buildUnnamed2875(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7171,66 +7171,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed2796(o.activityFilters); - checkUnnamed2797(o.conversionDimensions); - checkUnnamed2798(o.customFloodlightVariables); - checkUnnamed2799(o.customRichMediaEvents); + checkUnnamed2870(o.activityFilters); + checkUnnamed2871(o.conversionDimensions); + checkUnnamed2872(o.customFloodlightVariables); + checkUnnamed2873(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2800(o.metricNames); - checkUnnamed2801(o.perInteractionDimensions); + checkUnnamed2874(o.metricNames); + checkUnnamed2875(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed2802() { +buildUnnamed2876() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2802(core.List<api.DimensionValue> o) { +checkUnnamed2876(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2803() { +buildUnnamed2877() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2803(core.List<api.SortedDimension> o) { +checkUnnamed2877(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2804() { +buildUnnamed2878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2804(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')); } -buildUnnamed2805() { +buildUnnamed2879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2805(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')); @@ -7244,11 +7244,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2802(); - o.dimensions = buildUnnamed2803(); + o.dimensionFilters = buildUnnamed2876(); + o.dimensions = buildUnnamed2877(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed2804(); - o.reachByFrequencyMetricNames = buildUnnamed2805(); + o.metricNames = buildUnnamed2878(); + o.reachByFrequencyMetricNames = buildUnnamed2879(); } buildCounterReportReachCriteria--; return o; @@ -7260,23 +7260,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2802(o.dimensionFilters); - checkUnnamed2803(o.dimensions); + checkUnnamed2876(o.dimensionFilters); + checkUnnamed2877(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed2804(o.metricNames); - checkUnnamed2805(o.reachByFrequencyMetricNames); + checkUnnamed2878(o.metricNames); + checkUnnamed2879(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed2806() { +buildUnnamed2880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2806(core.List<core.String> o) { +checkUnnamed2880(core.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 = buildUnnamed2806(); + o.repeatsOnWeekDays = buildUnnamed2880(); 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')); - checkUnnamed2806(o.repeatsOnWeekDays); + checkUnnamed2880(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--; } -buildUnnamed2807() { +buildUnnamed2881() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2807(core.List<api.Dimension> o) { +checkUnnamed2881(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2808() { +buildUnnamed2882() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2808(core.List<api.Dimension> o) { +checkUnnamed2882(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2809() { +buildUnnamed2883() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2809(core.List<api.Metric> o) { +checkUnnamed2883(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2810() { +buildUnnamed2884() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2810(core.List<api.Metric> o) { +checkUnnamed2884(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 = buildUnnamed2807(); - o.dimensions = buildUnnamed2808(); + o.dimensionFilters = buildUnnamed2881(); + o.dimensions = buildUnnamed2882(); o.kind = "foo"; - o.metrics = buildUnnamed2809(); - o.pivotedActivityMetrics = buildUnnamed2810(); + o.metrics = buildUnnamed2883(); + o.pivotedActivityMetrics = buildUnnamed2884(); } buildCounterReportCompatibleFields--; return o; @@ -7436,23 +7436,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed2807(o.dimensionFilters); - checkUnnamed2808(o.dimensions); + checkUnnamed2881(o.dimensionFilters); + checkUnnamed2882(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2809(o.metrics); - checkUnnamed2810(o.pivotedActivityMetrics); + checkUnnamed2883(o.metrics); + checkUnnamed2884(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed2811() { +buildUnnamed2885() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2811(core.List<api.Report> o) { +checkUnnamed2885(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 = buildUnnamed2811(); + o.items = buildUnnamed2885(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7476,7 +7476,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2811(o.items); + checkUnnamed2885(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7552,14 +7552,14 @@ buildCounterRule--; } -buildUnnamed2812() { +buildUnnamed2886() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed2812(core.List<api.SiteContact> o) { +checkUnnamed2886(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 = buildUnnamed2812(); + o.siteContacts = buildUnnamed2886(); 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')); - checkUnnamed2812(o.siteContacts); + checkUnnamed2886(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7670,14 +7670,14 @@ buildCounterSiteSettings--; } -buildUnnamed2813() { +buildUnnamed2887() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed2813(core.List<api.Site> o) { +checkUnnamed2887(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 = buildUnnamed2813(); + o.sites = buildUnnamed2887(); } buildCounterSitesListResponse--; return o; @@ -7701,7 +7701,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2813(o.sites); + checkUnnamed2887(o.sites); } buildCounterSitesListResponse--; } @@ -7733,14 +7733,14 @@ buildCounterSize--; } -buildUnnamed2814() { +buildUnnamed2888() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2814(core.List<api.Size> o) { +checkUnnamed2888(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 = buildUnnamed2814(); + o.sizes = buildUnnamed2888(); } buildCounterSizesListResponse--; return o; @@ -7762,7 +7762,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2814(o.sizes); + checkUnnamed2888(o.sizes); } buildCounterSizesListResponse--; } @@ -7790,14 +7790,14 @@ buildCounterSortedDimension--; } -buildUnnamed2815() { +buildUnnamed2889() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2815(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')); @@ -7809,7 +7809,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed2815(); + o.availablePermissionIds = buildUnnamed2889(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7822,7 +7822,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2815(o.availablePermissionIds); + checkUnnamed2889(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--; } -buildUnnamed2816() { +buildUnnamed2890() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed2816(core.List<api.Subaccount> o) { +checkUnnamed2890(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 = buildUnnamed2816(); + o.subaccounts = buildUnnamed2890(); } buildCounterSubaccountsListResponse--; return o; @@ -7861,7 +7861,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2816(o.subaccounts); + checkUnnamed2890(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8001,14 +8001,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed2817() { +buildUnnamed2891() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed2817(core.List<api.TargetableRemarketingList> o) { +checkUnnamed2891(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 = buildUnnamed2817(); + o.targetableRemarketingLists = buildUnnamed2891(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8032,7 +8032,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2817(o.targetableRemarketingLists); + checkUnnamed2891(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8080,14 +8080,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed2818() { +buildUnnamed2892() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed2818(core.List<api.TargetingTemplate> o) { +checkUnnamed2892(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 = buildUnnamed2818(); + o.targetingTemplates = buildUnnamed2892(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8111,84 +8111,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2818(o.targetingTemplates); + checkUnnamed2892(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed2819() { +buildUnnamed2893() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2819(core.List<api.Browser> o) { +checkUnnamed2893(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed2820() { +buildUnnamed2894() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2820(core.List<api.ConnectionType> o) { +checkUnnamed2894(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed2821() { +buildUnnamed2895() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2821(core.List<api.MobileCarrier> o) { +checkUnnamed2895(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed2822() { +buildUnnamed2896() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2822(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2896(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed2823() { +buildUnnamed2897() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2823(core.List<api.OperatingSystem> o) { +checkUnnamed2897(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed2824() { +buildUnnamed2898() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2824(core.List<api.PlatformType> o) { +checkUnnamed2898(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 = buildUnnamed2819(); - o.connectionTypes = buildUnnamed2820(); - o.mobileCarriers = buildUnnamed2821(); - o.operatingSystemVersions = buildUnnamed2822(); - o.operatingSystems = buildUnnamed2823(); - o.platformTypes = buildUnnamed2824(); + o.browsers = buildUnnamed2893(); + o.connectionTypes = buildUnnamed2894(); + o.mobileCarriers = buildUnnamed2895(); + o.operatingSystemVersions = buildUnnamed2896(); + o.operatingSystems = buildUnnamed2897(); + o.platformTypes = buildUnnamed2898(); } buildCounterTechnologyTargeting--; return o; @@ -8213,12 +8213,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed2819(o.browsers); - checkUnnamed2820(o.connectionTypes); - checkUnnamed2821(o.mobileCarriers); - checkUnnamed2822(o.operatingSystemVersions); - checkUnnamed2823(o.operatingSystems); - checkUnnamed2824(o.platformTypes); + checkUnnamed2893(o.browsers); + checkUnnamed2894(o.connectionTypes); + checkUnnamed2895(o.mobileCarriers); + checkUnnamed2896(o.operatingSystemVersions); + checkUnnamed2897(o.operatingSystems); + checkUnnamed2898(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8321,14 +8321,14 @@ buildCounterUserProfile--; } -buildUnnamed2825() { +buildUnnamed2899() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed2825(core.List<api.UserProfile> o) { +checkUnnamed2899(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 = buildUnnamed2825(); + o.items = buildUnnamed2899(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8351,20 +8351,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2825(o.items); + checkUnnamed2899(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed2826() { +buildUnnamed2900() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2826(core.List<api.UserRolePermission> o) { +checkUnnamed2900(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 = buildUnnamed2826(); + o.permissions = buildUnnamed2900(); 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')); - checkUnnamed2826(o.permissions); + checkUnnamed2900(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8453,14 +8453,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed2827() { +buildUnnamed2901() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed2827(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed2901(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 = buildUnnamed2827(); + o.userRolePermissionGroups = buildUnnamed2901(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8482,19 +8482,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2827(o.userRolePermissionGroups); + checkUnnamed2901(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed2828() { +buildUnnamed2902() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2828(core.List<api.UserRolePermission> o) { +checkUnnamed2902(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 = buildUnnamed2828(); + o.userRolePermissions = buildUnnamed2902(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8516,19 +8516,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2828(o.userRolePermissions); + checkUnnamed2902(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed2829() { +buildUnnamed2903() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed2829(core.List<api.UserRole> o) { +checkUnnamed2903(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 = buildUnnamed2829(); + o.userRoles = buildUnnamed2903(); } buildCounterUserRolesListResponse--; return o; @@ -8552,973 +8552,11 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2829(o.userRoles); + checkUnnamed2903(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed2830() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2830(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2831() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2832() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2833() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2833(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2834() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2834(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2835() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2835(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2836() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2836(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2837() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2837(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2838() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2838(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2839() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2839(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2840() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2840(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2841() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2841(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2842() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2842(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2843() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2843(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2844() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2844(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2845() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2845(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2846() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2846(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2847() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2847(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2848() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2848(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2849() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2849(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2850() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2850(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2851() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2851(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2852() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2852(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2853() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2853(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2854() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2854(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2855() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2856() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2857() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2858() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2859() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2860() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2860(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2861() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2862() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2862(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2863() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2864() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2864(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2865() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2866() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2866(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2867() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2868() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2869() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2869(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2870() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2871() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2872() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2872(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2873() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2874() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2875() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2875(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2876() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2877() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2877(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2878() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2879() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2880() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2880(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2881() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2881(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2882() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2882(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2883() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2883(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2884() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2885() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2885(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2886() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2887() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2888() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2888(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2889() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2890() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2890(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2891() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2892() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2892(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2893() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2893(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2894() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2895() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2895(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2896() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed2897() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2897(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2898() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2898(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2899() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2899(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2900() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2900(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2901() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2901(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2902() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2902(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2903() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2903(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed2904() { var o = new core.List<core.String>(); o.add("foo"); @@ -9701,6 +8739,968 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed2918() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2919() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2920() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2921() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2922() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2923() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2924() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2925() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2926() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2927() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2928() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2928(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2929(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2930(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2931(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2932(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2933(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2934(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2935(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2937() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2937(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2938(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2939(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2940(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2941(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2943() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2943(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2944(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2945(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2947() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2947(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2948(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2949(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2950(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2951(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2952(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2953(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2954(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2955(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2956(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2958() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2958(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2959(core.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() { + 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')); +} + +buildUnnamed2961() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2961(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2962(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2963(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2964(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2965(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2966(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2967(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2968(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2969(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2971() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2971(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2972(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2973(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2974(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2975(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2976(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2977(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2978(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2979(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2980(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2981(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2983() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2984() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2984(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2985(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2986(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2988() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2989() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2990() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2991() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2991(core.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", () { @@ -11994,7 +11994,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2830(); + var arg_ids = buildUnnamed2904(); 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 = buildUnnamed2831(); + var arg_ids = buildUnnamed2905(); 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 = buildUnnamed2832(); - var arg_campaignIds = buildUnnamed2833(); + var arg_audienceSegmentIds = buildUnnamed2906(); + var arg_campaignIds = buildUnnamed2907(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed2834(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed2835(); + var arg_creativeIds = buildUnnamed2908(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed2909(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed2836(); - var arg_landingPageIds = buildUnnamed2837(); + var arg_ids = buildUnnamed2910(); + var arg_landingPageIds = buildUnnamed2911(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed2838(); - var arg_remarketingListIds = buildUnnamed2839(); + var arg_placementIds = buildUnnamed2912(); + var arg_remarketingListIds = buildUnnamed2913(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2840(); + var arg_sizeIds = buildUnnamed2914(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed2841(); + var arg_type = buildUnnamed2915(); 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 = buildUnnamed2842(); + var arg_ids = buildUnnamed2916(); 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 = buildUnnamed2843(); - var arg_floodlightConfigurationIds = buildUnnamed2844(); - var arg_ids = buildUnnamed2845(); + var arg_advertiserGroupIds = buildUnnamed2917(); + var arg_floodlightConfigurationIds = buildUnnamed2918(); + var arg_ids = buildUnnamed2919(); 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 = buildUnnamed2846(); - var arg_advertiserIds = buildUnnamed2847(); + var arg_advertiserGroupIds = buildUnnamed2920(); + var arg_advertiserIds = buildUnnamed2921(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed2848(); - var arg_ids = buildUnnamed2849(); + var arg_excludedIds = buildUnnamed2922(); + var arg_ids = buildUnnamed2923(); 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 = buildUnnamed2850(); + var arg_ids = buildUnnamed2924(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed2851(); + var arg_objectIds = buildUnnamed2925(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed2852(); + var arg_userProfileIds = buildUnnamed2926(); 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 = buildUnnamed2853(); - var arg_dartIds = buildUnnamed2854(); + var arg_countryDartIds = buildUnnamed2927(); + var arg_dartIds = buildUnnamed2928(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed2855(); + var arg_regionDartIds = buildUnnamed2929(); 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 = buildUnnamed2856(); + var arg_ids = buildUnnamed2930(); 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 = buildUnnamed2857(); + var arg_ids = buildUnnamed2931(); 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 = buildUnnamed2858(); - var arg_ids = buildUnnamed2859(); + var arg_advertiserIds = buildUnnamed2932(); + var arg_ids = buildUnnamed2933(); 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 = buildUnnamed2860(); + var arg_advertiserIds = buildUnnamed2934(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed2861(); + var arg_ids = buildUnnamed2935(); 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 = buildUnnamed2862(); - var arg_creativeFieldIds = buildUnnamed2863(); - var arg_ids = buildUnnamed2864(); + var arg_companionCreativeIds = buildUnnamed2936(); + var arg_creativeFieldIds = buildUnnamed2937(); + var arg_ids = buildUnnamed2938(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed2865(); + var arg_renderingIds = buildUnnamed2939(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2866(); + var arg_sizeIds = buildUnnamed2940(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed2867(); + var arg_types = buildUnnamed2941(); 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 = buildUnnamed2868(); - var arg_ids = buildUnnamed2869(); + var arg_directorySiteIds = buildUnnamed2942(); + var arg_ids = buildUnnamed2943(); 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 = buildUnnamed2870(); + var arg_ids = buildUnnamed2944(); 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 = buildUnnamed2871(); + var arg_names = buildUnnamed2945(); 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 = buildUnnamed2872(); - var arg_ids = buildUnnamed2873(); + var arg_eventTagTypes = buildUnnamed2946(); + var arg_ids = buildUnnamed2947(); 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 = buildUnnamed2874(); + var arg_floodlightActivityGroupIds = buildUnnamed2948(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2875(); + var arg_ids = buildUnnamed2949(); 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 = buildUnnamed2876(); + var arg_ids = buildUnnamed2950(); 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 = buildUnnamed2877(); + var arg_ids = buildUnnamed2951(); 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 = buildUnnamed2878(); + var arg_ids = buildUnnamed2952(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed2879(); + var arg_orderId = buildUnnamed2953(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed2880(); + var arg_siteId = buildUnnamed2954(); 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 = buildUnnamed2881(); + var arg_ids = buildUnnamed2955(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed2882(); + var arg_orderId = buildUnnamed2956(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2883(); + var arg_siteId = buildUnnamed2957(); 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 = buildUnnamed2884(); + var arg_ids = buildUnnamed2958(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2885(); + var arg_siteId = buildUnnamed2959(); 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 = buildUnnamed2886(); + var arg_advertiserIds = buildUnnamed2960(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2887(); - var arg_contentCategoryIds = buildUnnamed2888(); - var arg_directorySiteIds = buildUnnamed2889(); - var arg_ids = buildUnnamed2890(); + var arg_campaignIds = buildUnnamed2961(); + var arg_contentCategoryIds = buildUnnamed2962(); + var arg_directorySiteIds = buildUnnamed2963(); + var arg_ids = buildUnnamed2964(); 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 = buildUnnamed2891(); - var arg_pricingTypes = buildUnnamed2892(); + var arg_placementStrategyIds = buildUnnamed2965(); + var arg_pricingTypes = buildUnnamed2966(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2893(); + var arg_siteIds = buildUnnamed2967(); 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 = buildUnnamed2894(); + var arg_ids = buildUnnamed2968(); 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 = buildUnnamed2895(); - var arg_tagFormats = buildUnnamed2896(); + var arg_placementIds = buildUnnamed2969(); + var arg_tagFormats = buildUnnamed2970(); 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 = buildUnnamed2897(); + var arg_advertiserIds = buildUnnamed2971(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2898(); - var arg_compatibilities = buildUnnamed2899(); - var arg_contentCategoryIds = buildUnnamed2900(); - var arg_directorySiteIds = buildUnnamed2901(); - var arg_groupIds = buildUnnamed2902(); - var arg_ids = buildUnnamed2903(); + 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_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 = buildUnnamed2904(); - var arg_pricingTypes = buildUnnamed2905(); + var arg_placementStrategyIds = buildUnnamed2978(); + var arg_pricingTypes = buildUnnamed2979(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2906(); - var arg_sizeIds = buildUnnamed2907(); + var arg_siteIds = buildUnnamed2980(); + var arg_sizeIds = buildUnnamed2981(); 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 = buildUnnamed2908(); - var arg_ids = buildUnnamed2909(); + var arg_advertiserIds = buildUnnamed2982(); + var arg_ids = buildUnnamed2983(); 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 = buildUnnamed2910(); - var arg_directorySiteIds = buildUnnamed2911(); - var arg_ids = buildUnnamed2912(); + var arg_campaignIds = buildUnnamed2984(); + var arg_directorySiteIds = buildUnnamed2985(); + var arg_ids = buildUnnamed2986(); 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 = buildUnnamed2913(); + var arg_ids = buildUnnamed2987(); 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 = buildUnnamed2914(); + var arg_ids = buildUnnamed2988(); 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 = buildUnnamed2915(); + var arg_ids = buildUnnamed2989(); 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 = buildUnnamed2916(); + var arg_ids = buildUnnamed2990(); 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 = buildUnnamed2917(); + var arg_ids = buildUnnamed2991(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis/test/dfareporting/v2_3_test.dart b/generated/googleapis/test/dfareporting/v2_7_test.dart similarity index 88% rename from generated/googleapis/test/dfareporting/v2_3_test.dart rename to generated/googleapis/test/dfareporting/v2_7_test.dart index b85147a..06f9cd9 100644 --- a/generated/googleapis/test/dfareporting/v2_3_test.dart +++ b/generated/googleapis/test/dfareporting/v2_7_test.dart
@@ -1,4 +1,4 @@ -library googleapis.dfareporting.v2_3.test; +library googleapis.dfareporting.v2_7.test; import "dart:core" as core; import "dart:collection" as collection; @@ -9,7 +9,7 @@ import 'package:http/testing.dart' as http_testing; import 'package:unittest/unittest.dart' as unittest; -import 'package:googleapis/dfareporting/v2_3.dart' as api; +import 'package:googleapis/dfareporting/v2_7.dart' as api; class HttpServerMock extends http.BaseClient { core.Function _callback; @@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1889() { +buildUnnamed2397() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1889(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')); } -buildUnnamed1890() { +buildUnnamed2398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1890(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')); @@ -82,13 +82,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed1889(); + o.accountPermissionIds = buildUnnamed2397(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed1890(); - o.comscoreVceEnabled = true; + o.availablePermissionIds = buildUnnamed2398(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -100,6 +99,7 @@ o.name = "foo"; o.nielsenOcrEnabled = true; o.reportsConfiguration = buildReportsConfiguration(); + o.shareReportsWithTwitter = true; o.teaserSizeLimit = "foo"; } buildCounterAccount--; @@ -109,13 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1889(o.accountPermissionIds); + checkUnnamed2397(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); - checkUnnamed1890(o.availablePermissionIds); - unittest.expect(o.comscoreVceEnabled, unittest.isTrue); + checkUnnamed2398(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -127,6 +126,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nielsenOcrEnabled, unittest.isTrue); checkReportsConfiguration(o.reportsConfiguration); + unittest.expect(o.shareReportsWithTwitter, unittest.isTrue); unittest.expect(o.teaserSizeLimit, unittest.equals('foo')); } buildCounterAccount--; @@ -159,14 +159,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed1891() { +buildUnnamed2399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1891(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')); @@ -177,7 +177,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed1891(); + o.accountProfiles = buildUnnamed2399(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed1891(o.accountProfiles); + checkUnnamed2399(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--; } -buildUnnamed1892() { +buildUnnamed2400() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed1892(core.List<api.AccountPermissionGroup> o) { +checkUnnamed2400(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 = buildUnnamed1892(); + o.accountPermissionGroups = buildUnnamed2400(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed1892(o.accountPermissionGroups); + checkUnnamed2400(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed1893() { +buildUnnamed2401() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed1893(core.List<api.AccountPermission> o) { +checkUnnamed2401(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 = buildUnnamed1893(); + o.accountPermissions = buildUnnamed2401(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed1893(o.accountPermissions); + checkUnnamed2401(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed1894() { +buildUnnamed2402() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed1894(core.List<api.AccountUserProfile> o) { +checkUnnamed2402(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 = buildUnnamed1894(); + o.accountUserProfiles = buildUnnamed2402(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed1894(o.accountUserProfiles); + checkUnnamed2402(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed1895() { +buildUnnamed2403() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1895(core.List<api.Account> o) { +checkUnnamed2403(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 = buildUnnamed1895(); + o.accounts = buildUnnamed2403(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed1895(o.accounts); + checkUnnamed2403(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed1896() { +buildUnnamed2404() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1896(core.List<api.DimensionValue> o) { +checkUnnamed2404(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed1897() { +buildUnnamed2405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1897(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')); @@ -444,9 +444,9 @@ var o = new api.Activities(); buildCounterActivities++; if (buildCounterActivities < 3) { - o.filters = buildUnnamed1896(); + o.filters = buildUnnamed2404(); o.kind = "foo"; - o.metricNames = buildUnnamed1897(); + o.metricNames = buildUnnamed2405(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed1896(o.filters); + checkUnnamed2404(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1897(o.metricNames); + checkUnnamed2405(o.metricNames); } buildCounterActivities--; } -buildUnnamed1898() { +buildUnnamed2406() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1898(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2406(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1899() { +buildUnnamed2407() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1899(core.List<api.EventTagOverride> o) { +checkUnnamed2407(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1900() { +buildUnnamed2408() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed1900(core.List<api.PlacementAssignment> o) { +checkUnnamed2408(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,28 +519,30 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed1898(); + o.creativeGroupAssignments = buildUnnamed2406(); 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 = buildUnnamed1899(); + o.eventTagOverrides = buildUnnamed2407(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); o.kind = "foo"; + o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed1900(); + o.placementAssignments = buildUnnamed2408(); 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.targetingTemplateId = "foo"; o.technologyTargeting = buildTechnologyTargeting(); o.type = "foo"; } @@ -564,28 +566,30 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed1898(o.creativeGroupAssignments); + checkUnnamed2406(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"))); - checkUnnamed1899(o.eventTagOverrides); + checkUnnamed2407(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')); + checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1900(o.placementAssignments); + checkUnnamed2408(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')); + unittest.expect(o.targetingTemplateId, unittest.equals('foo')); checkTechnologyTargeting(o.technologyTargeting); unittest.expect(o.type, unittest.equals('foo')); } @@ -625,14 +629,14 @@ buildCounterAdSlot--; } -buildUnnamed1901() { +buildUnnamed2409() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed1901(core.List<api.Ad> o) { +checkUnnamed2409(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -643,7 +647,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed1901(); + o.ads = buildUnnamed2409(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +658,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed1901(o.ads); + checkUnnamed2409(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +737,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed1902() { +buildUnnamed2410() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed1902(core.List<api.AdvertiserGroup> o) { +checkUnnamed2410(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -751,7 +755,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed1902(); + o.advertiserGroups = buildUnnamed2410(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +766,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed1902(o.advertiserGroups); + checkUnnamed2410(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed1903() { +buildUnnamed2411() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed1903(core.List<api.Advertiser> o) { +checkUnnamed2411(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -787,7 +791,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed1903(); + o.advertisers = buildUnnamed2411(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +802,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed1903(o.advertisers); + checkUnnamed2411(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +832,14 @@ buildCounterAudienceSegment--; } -buildUnnamed1904() { +buildUnnamed2412() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed1904(core.List<api.AudienceSegment> o) { +checkUnnamed2412(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -846,7 +850,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed1904(); + o.audienceSegments = buildUnnamed2412(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +861,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed1904(o.audienceSegments); + checkUnnamed2412(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +897,14 @@ buildCounterBrowser--; } -buildUnnamed1905() { +buildUnnamed2413() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed1905(core.List<api.Browser> o) { +checkUnnamed2413(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -911,7 +915,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed1905(); + o.browsers = buildUnnamed2413(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +925,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed1905(o.browsers); + checkUnnamed2413(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed1906() { +buildUnnamed2414() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed1906(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed2414(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed1907() { +buildUnnamed2415() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed1907(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed2415(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed1908() { +buildUnnamed2416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1908(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')); } -buildUnnamed1909() { +buildUnnamed2417() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed1909(core.List<api.EventTagOverride> o) { +checkUnnamed2417(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed1910() { +buildUnnamed2418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1910(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')); @@ -998,22 +1002,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { o.accountId = "foo"; - o.additionalCreativeOptimizationConfigurations = buildUnnamed1906(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed2414(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed1907(); + o.audienceSegmentGroups = buildUnnamed2415(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; - o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed1908(); + o.creativeGroupIds = buildUnnamed2416(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed1909(); + o.eventTagOverrides = buildUnnamed2417(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1024,7 +1027,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed1910(); + o.traffickerEmails = buildUnnamed2418(); } buildCounterCampaign--; return o; @@ -1034,22 +1037,21 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1906(o.additionalCreativeOptimizationConfigurations); + checkUnnamed2414(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); - checkUnnamed1907(o.audienceSegmentGroups); + checkUnnamed2415(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); - checkUnnamed1908(o.creativeGroupIds); + checkUnnamed2416(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1909(o.eventTagOverrides); + checkUnnamed2417(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1060,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')); - checkUnnamed1910(o.traffickerEmails); + checkUnnamed2418(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1088,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed1911() { +buildUnnamed2419() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed1911(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed2419(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1104,7 +1106,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed1911(); + o.campaignCreativeAssociations = buildUnnamed2419(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1117,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed1911(o.campaignCreativeAssociations); + checkUnnamed2419(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed1912() { +buildUnnamed2420() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed1912(core.List<api.Campaign> o) { +checkUnnamed2420(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1140,7 +1142,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed1912(); + o.campaigns = buildUnnamed2420(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1153,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed1912(o.campaigns); + checkUnnamed2420(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1205,14 @@ buildCounterChangeLog--; } -buildUnnamed1913() { +buildUnnamed2421() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed1913(core.List<api.ChangeLog> o) { +checkUnnamed2421(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1221,7 +1223,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed1913(); + o.changeLogs = buildUnnamed2421(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1234,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed1913(o.changeLogs); + checkUnnamed2421(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed1914() { +buildUnnamed2422() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1914(core.List<api.City> o) { +checkUnnamed2422(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1257,7 +1259,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed1914(); + o.cities = buildUnnamed2422(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1269,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed1914(o.cities); + checkUnnamed2422(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1398,6 +1400,44 @@ buildCounterCompanionClickThroughOverride--; } +buildUnnamed2423() { + var o = new core.List<api.Size>(); + o.add(buildSize()); + o.add(buildSize()); + return o; +} + +checkUnnamed2423(core.List<api.Size> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSize(o[0]); + checkSize(o[1]); +} + +core.int buildCounterCompanionSetting = 0; +buildCompanionSetting() { + var o = new api.CompanionSetting(); + buildCounterCompanionSetting++; + if (buildCounterCompanionSetting < 3) { + o.companionsDisabled = true; + o.enabledSizes = buildUnnamed2423(); + o.imageOnly = true; + o.kind = "foo"; + } + buildCounterCompanionSetting--; + return o; +} + +checkCompanionSetting(api.CompanionSetting o) { + buildCounterCompanionSetting++; + if (buildCounterCompanionSetting < 3) { + unittest.expect(o.companionsDisabled, unittest.isTrue); + checkUnnamed2423(o.enabledSizes); + unittest.expect(o.imageOnly, unittest.isTrue); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterCompanionSetting--; +} + core.int buildCounterCompatibleFields = 0; buildCompatibleFields() { var o = new api.CompatibleFields(); @@ -1450,14 +1490,14 @@ buildCounterConnectionType--; } -buildUnnamed1915() { +buildUnnamed2424() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed1915(core.List<api.ConnectionType> o) { +checkUnnamed2424(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1468,7 +1508,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed1915(); + o.connectionTypes = buildUnnamed2424(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1518,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed1915(o.connectionTypes); + checkUnnamed2424(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed1916() { +buildUnnamed2425() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed1916(core.List<api.ContentCategory> o) { +checkUnnamed2425(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1502,7 +1542,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed1916(); + o.contentCategories = buildUnnamed2425(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1553,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed1916(o.contentCategories); + checkUnnamed2425(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1585,214 @@ buildCounterContentCategory--; } -buildUnnamed1917() { +buildUnnamed2426() { + var o = new core.List<api.CustomFloodlightVariable>(); + o.add(buildCustomFloodlightVariable()); + o.add(buildCustomFloodlightVariable()); + return o; +} + +checkUnnamed2426(core.List<api.CustomFloodlightVariable> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomFloodlightVariable(o[0]); + checkCustomFloodlightVariable(o[1]); +} + +buildUnnamed2427() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterConversion = 0; +buildConversion() { + var o = new api.Conversion(); + buildCounterConversion++; + if (buildCounterConversion < 3) { + o.childDirectedTreatment = true; + o.customVariables = buildUnnamed2426(); + o.encryptedUserId = "foo"; + o.encryptedUserIdCandidates = buildUnnamed2427(); + o.floodlightActivityId = "foo"; + o.floodlightConfigurationId = "foo"; + o.kind = "foo"; + o.limitAdTracking = true; + o.mobileDeviceId = "foo"; + o.ordinal = "foo"; + o.quantity = "foo"; + o.timestampMicros = "foo"; + o.value = 42.0; + } + buildCounterConversion--; + return o; +} + +checkConversion(api.Conversion o) { + buildCounterConversion++; + if (buildCounterConversion < 3) { + unittest.expect(o.childDirectedTreatment, unittest.isTrue); + checkUnnamed2426(o.customVariables); + unittest.expect(o.encryptedUserId, unittest.equals('foo')); + checkUnnamed2427(o.encryptedUserIdCandidates); + unittest.expect(o.floodlightActivityId, unittest.equals('foo')); + unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.limitAdTracking, unittest.isTrue); + unittest.expect(o.mobileDeviceId, unittest.equals('foo')); + unittest.expect(o.ordinal, unittest.equals('foo')); + unittest.expect(o.quantity, unittest.equals('foo')); + unittest.expect(o.timestampMicros, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals(42.0)); + } + buildCounterConversion--; +} + +core.int buildCounterConversionError = 0; +buildConversionError() { + var o = new api.ConversionError(); + buildCounterConversionError++; + if (buildCounterConversionError < 3) { + o.code = "foo"; + o.kind = "foo"; + o.message = "foo"; + } + buildCounterConversionError--; + return o; +} + +checkConversionError(api.ConversionError o) { + buildCounterConversionError++; + if (buildCounterConversionError < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterConversionError--; +} + +buildUnnamed2428() { + var o = new core.List<api.ConversionError>(); + o.add(buildConversionError()); + o.add(buildConversionError()); + return o; +} + +checkUnnamed2428(core.List<api.ConversionError> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConversionError(o[0]); + checkConversionError(o[1]); +} + +core.int buildCounterConversionStatus = 0; +buildConversionStatus() { + var o = new api.ConversionStatus(); + buildCounterConversionStatus++; + if (buildCounterConversionStatus < 3) { + o.conversion = buildConversion(); + o.errors = buildUnnamed2428(); + o.kind = "foo"; + } + buildCounterConversionStatus--; + return o; +} + +checkConversionStatus(api.ConversionStatus o) { + buildCounterConversionStatus++; + if (buildCounterConversionStatus < 3) { + checkConversion(o.conversion); + checkUnnamed2428(o.errors); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterConversionStatus--; +} + +buildUnnamed2429() { + var o = new core.List<api.Conversion>(); + o.add(buildConversion()); + o.add(buildConversion()); + return o; +} + +checkUnnamed2429(core.List<api.Conversion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConversion(o[0]); + checkConversion(o[1]); +} + +core.int buildCounterConversionsBatchInsertRequest = 0; +buildConversionsBatchInsertRequest() { + var o = new api.ConversionsBatchInsertRequest(); + buildCounterConversionsBatchInsertRequest++; + if (buildCounterConversionsBatchInsertRequest < 3) { + o.conversions = buildUnnamed2429(); + o.encryptionInfo = buildEncryptionInfo(); + o.kind = "foo"; + } + buildCounterConversionsBatchInsertRequest--; + return o; +} + +checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { + buildCounterConversionsBatchInsertRequest++; + if (buildCounterConversionsBatchInsertRequest < 3) { + checkUnnamed2429(o.conversions); + checkEncryptionInfo(o.encryptionInfo); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterConversionsBatchInsertRequest--; +} + +buildUnnamed2430() { + var o = new core.List<api.ConversionStatus>(); + o.add(buildConversionStatus()); + o.add(buildConversionStatus()); + return o; +} + +checkUnnamed2430(core.List<api.ConversionStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConversionStatus(o[0]); + checkConversionStatus(o[1]); +} + +core.int buildCounterConversionsBatchInsertResponse = 0; +buildConversionsBatchInsertResponse() { + var o = new api.ConversionsBatchInsertResponse(); + buildCounterConversionsBatchInsertResponse++; + if (buildCounterConversionsBatchInsertResponse < 3) { + o.hasFailures = true; + o.kind = "foo"; + o.status = buildUnnamed2430(); + } + buildCounterConversionsBatchInsertResponse--; + return o; +} + +checkConversionsBatchInsertResponse(api.ConversionsBatchInsertResponse o) { + buildCounterConversionsBatchInsertResponse++; + if (buildCounterConversionsBatchInsertResponse < 3) { + unittest.expect(o.hasFailures, unittest.isTrue); + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2430(o.status); + } + buildCounterConversionsBatchInsertResponse--; +} + +buildUnnamed2431() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1917(core.List<api.Country> o) { +checkUnnamed2431(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1563,7 +1803,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed1917(); + o.countries = buildUnnamed2431(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1573,7 +1813,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed1917(o.countries); + checkUnnamed2431(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1606,157 +1846,157 @@ buildCounterCountry--; } -buildUnnamed1918() { +buildUnnamed2432() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1918(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')); } -buildUnnamed1919() { +buildUnnamed2433() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1919(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')); } -buildUnnamed1920() { +buildUnnamed2434() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1920(core.List<api.ClickTag> o) { +checkUnnamed2434(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1921() { +buildUnnamed2435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1921(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')); } -buildUnnamed1922() { +buildUnnamed2436() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1922(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')); } -buildUnnamed1923() { +buildUnnamed2437() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1923(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2437(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1924() { +buildUnnamed2438() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed1924(core.List<api.CreativeAsset> o) { +checkUnnamed2438(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed1925() { +buildUnnamed2439() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed1925(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed2439(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed1926() { +buildUnnamed2440() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1926(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')); } -buildUnnamed1927() { +buildUnnamed2441() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1927(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2441(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed1928() { +buildUnnamed2442() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed1928(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed2442(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed1929() { +buildUnnamed2443() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed1929(core.List<api.CreativeCustomEvent> o) { +checkUnnamed2443(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -1770,7 +2010,7 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed1918(); + o.adTagKeys = buildUnnamed2432(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1780,19 +2020,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed1919(); + o.backupImageFeatures = buildUnnamed2433(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed1920(); + o.clickTags = buildUnnamed2434(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed1921(); - o.compatibility = buildUnnamed1922(); + o.companionCreatives = buildUnnamed2435(); + o.compatibility = buildUnnamed2436(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed1923(); - o.creativeAssets = buildUnnamed1924(); - o.creativeFieldAssignments = buildUnnamed1925(); - o.customKeyValues = buildUnnamed1926(); - o.exitCustomEvents = buildUnnamed1927(); + o.counterCustomEvents = buildUnnamed2437(); + o.creativeAssetSelection = buildCreativeAssetSelection(); + o.creativeAssets = buildUnnamed2438(); + o.creativeFieldAssignments = buildUnnamed2439(); + o.customKeyValues = buildUnnamed2440(); + o.dynamicAssetSelection = true; + o.exitCustomEvents = buildUnnamed2441(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -1803,12 +2045,14 @@ o.latestTraffickedCreativeId = "foo"; o.name = "foo"; o.overrideCss = "foo"; + o.progressOffset = buildVideoOffset(); o.redirectUrl = "foo"; o.renderingId = "foo"; o.renderingIdDimensionValue = buildDimensionValue(); o.requiredFlashPluginVersion = "foo"; o.requiredFlashVersion = 42; o.size = buildSize(); + o.skipOffset = buildVideoOffset(); o.skippable = true; o.sslCompliant = true; o.sslOverride = true; @@ -1818,8 +2062,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed1928(); - o.timerCustomEvents = buildUnnamed1929(); + o.thirdPartyUrls = buildUnnamed2442(); + o.timerCustomEvents = buildUnnamed2443(); o.totalFileSize = "foo"; o.type = "foo"; o.version = 42; @@ -1836,7 +2080,7 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed1918(o.adTagKeys); + checkUnnamed2432(o.adTagKeys); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -1846,19 +2090,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); unittest.expect(o.backupImageClickThroughUrl, unittest.equals('foo')); - checkUnnamed1919(o.backupImageFeatures); + checkUnnamed2433(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed1920(o.clickTags); + checkUnnamed2434(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed1921(o.companionCreatives); - checkUnnamed1922(o.compatibility); + checkUnnamed2435(o.companionCreatives); + checkUnnamed2436(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed1923(o.counterCustomEvents); - checkUnnamed1924(o.creativeAssets); - checkUnnamed1925(o.creativeFieldAssignments); - checkUnnamed1926(o.customKeyValues); - checkUnnamed1927(o.exitCustomEvents); + checkUnnamed2437(o.counterCustomEvents); + checkCreativeAssetSelection(o.creativeAssetSelection); + checkUnnamed2438(o.creativeAssets); + checkUnnamed2439(o.creativeFieldAssignments); + checkUnnamed2440(o.customKeyValues); + unittest.expect(o.dynamicAssetSelection, unittest.isTrue); + checkUnnamed2441(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -1869,12 +2115,14 @@ unittest.expect(o.latestTraffickedCreativeId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.overrideCss, unittest.equals('foo')); + checkVideoOffset(o.progressOffset); 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); + checkVideoOffset(o.skipOffset); unittest.expect(o.skippable, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslOverride, unittest.isTrue); @@ -1884,8 +2132,8 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect(o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed1928(o.thirdPartyUrls); - checkUnnamed1929(o.timerCustomEvents); + checkUnnamed2442(o.thirdPartyUrls); + checkUnnamed2443(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -1895,14 +2143,27 @@ buildCounterCreative--; } -buildUnnamed1930() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1930(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')); +} + +buildUnnamed2445() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); @@ -1922,8 +2183,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); + o.companionCreativeIds = buildUnnamed2444(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed1930(); + o.detectedFeatures = buildUnnamed2445(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -1934,6 +2196,7 @@ o.hideSelectionBoxes = true; o.horizontallyLocked = true; o.id = "foo"; + o.idDimensionValue = buildDimensionValue(); o.mimeType = "foo"; o.offset = buildOffsetPosition(); o.originalBackup = true; @@ -1972,8 +2235,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); + checkUnnamed2444(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed1930(o.detectedFeatures); + checkUnnamed2445(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -1984,6 +2248,7 @@ unittest.expect(o.hideSelectionBoxes, unittest.isTrue); unittest.expect(o.horizontallyLocked, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); + checkDimensionValue(o.idDimensionValue); unittest.expect(o.mimeType, unittest.equals('foo')); checkOffsetPosition(o.offset); unittest.expect(o.originalBackup, unittest.isTrue); @@ -2030,40 +2295,40 @@ buildCounterCreativeAssetId--; } -buildUnnamed1931() { +buildUnnamed2446() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed1931(core.List<api.ClickTag> o) { +checkUnnamed2446(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed1932() { +buildUnnamed2447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1932(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')); } -buildUnnamed1933() { +buildUnnamed2448() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1933(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')); @@ -2075,10 +2340,12 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed1931(); - o.detectedFeatures = buildUnnamed1932(); + o.clickTags = buildUnnamed2446(); + o.detectedFeatures = buildUnnamed2447(); + o.id = "foo"; + o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed1933(); + o.warnedValidationRules = buildUnnamed2448(); } buildCounterCreativeAssetMetadata--; return o; @@ -2088,48 +2355,84 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed1931(o.clickTags); - checkUnnamed1932(o.detectedFeatures); + checkUnnamed2446(o.clickTags); + checkUnnamed2447(o.detectedFeatures); + unittest.expect(o.id, unittest.equals('foo')); + checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1933(o.warnedValidationRules); + checkUnnamed2448(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed1934() { +buildUnnamed2449() { + var o = new core.List<api.Rule>(); + o.add(buildRule()); + o.add(buildRule()); + return o; +} + +checkUnnamed2449(core.List<api.Rule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRule(o[0]); + checkRule(o[1]); +} + +core.int buildCounterCreativeAssetSelection = 0; +buildCreativeAssetSelection() { + var o = new api.CreativeAssetSelection(); + buildCounterCreativeAssetSelection++; + if (buildCounterCreativeAssetSelection < 3) { + o.defaultAssetId = "foo"; + o.rules = buildUnnamed2449(); + } + buildCounterCreativeAssetSelection--; + return o; +} + +checkCreativeAssetSelection(api.CreativeAssetSelection o) { + buildCounterCreativeAssetSelection++; + if (buildCounterCreativeAssetSelection < 3) { + unittest.expect(o.defaultAssetId, unittest.equals('foo')); + checkUnnamed2449(o.rules); + } + buildCounterCreativeAssetSelection--; +} + +buildUnnamed2450() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed1934(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed2450(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed1935() { +buildUnnamed2451() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed1935(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed2451(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed1936() { +buildUnnamed2452() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed1936(core.List<api.RichMediaExitOverride> o) { +checkUnnamed2452(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2143,12 +2446,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed1934(); - o.creativeGroupAssignments = buildUnnamed1935(); + o.companionCreativeOverrides = buildUnnamed2450(); + o.creativeGroupAssignments = buildUnnamed2451(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed1936(); + o.richMediaExitOverrides = buildUnnamed2452(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2164,12 +2467,12 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed1934(o.companionCreativeOverrides); - checkUnnamed1935(o.creativeGroupAssignments); + checkUnnamed2450(o.companionCreativeOverrides); + checkUnnamed2451(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"))); - checkUnnamed1936(o.richMediaExitOverrides); + checkUnnamed2452(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"))); @@ -2290,14 +2593,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed1937() { +buildUnnamed2453() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed1937(core.List<api.CreativeFieldValue> o) { +checkUnnamed2453(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2308,7 +2611,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed1937(); + o.creativeFieldValues = buildUnnamed2453(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2319,21 +2622,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed1937(o.creativeFieldValues); + checkUnnamed2453(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed1938() { +buildUnnamed2454() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed1938(core.List<api.CreativeField> o) { +checkUnnamed2454(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2344,7 +2647,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed1938(); + o.creativeFields = buildUnnamed2454(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2355,7 +2658,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed1938(o.creativeFields); + checkUnnamed2454(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2416,14 +2719,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed1939() { +buildUnnamed2455() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed1939(core.List<api.CreativeGroup> o) { +checkUnnamed2455(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -2434,7 +2737,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed1939(); + o.creativeGroups = buildUnnamed2455(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2445,21 +2748,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed1939(o.creativeGroups); + checkUnnamed2455(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed1940() { +buildUnnamed2456() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed1940(core.List<api.OptimizationActivity> o) { +checkUnnamed2456(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -2472,7 +2775,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed1940(); + o.optimizationActivitys = buildUnnamed2456(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -2484,20 +2787,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1940(o.optimizationActivitys); + checkUnnamed2456(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed1941() { +buildUnnamed2457() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed1941(core.List<api.CreativeAssignment> o) { +checkUnnamed2457(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -2508,7 +2811,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed1941(); + o.creativeAssignments = buildUnnamed2457(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2520,7 +2823,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed1941(o.creativeAssignments); + checkUnnamed2457(o.creativeAssignments); unittest.expect(o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.weightCalculationStrategy, unittest.equals('foo')); @@ -2549,14 +2852,14 @@ buildCounterCreativeSettings--; } -buildUnnamed1942() { +buildUnnamed2458() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed1942(core.List<api.Creative> o) { +checkUnnamed2458(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -2567,7 +2870,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed1942(); + o.creatives = buildUnnamed2458(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2578,60 +2881,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed1942(o.creatives); + checkUnnamed2458(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed1943() { +buildUnnamed2459() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1943(core.List<api.Dimension> o) { +checkUnnamed2459(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1944() { +buildUnnamed2460() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1944(core.List<api.Dimension> o) { +checkUnnamed2460(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1945() { +buildUnnamed2461() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1945(core.List<api.Metric> o) { +checkUnnamed2461(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1946() { +buildUnnamed2462() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1946(core.List<api.Metric> o) { +checkUnnamed2462(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -2642,11 +2945,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed1943(); - o.dimensionFilters = buildUnnamed1944(); + o.breakdown = buildUnnamed2459(); + o.dimensionFilters = buildUnnamed2460(); o.kind = "foo"; - o.metrics = buildUnnamed1945(); - o.overlapMetrics = buildUnnamed1946(); + o.metrics = buildUnnamed2461(); + o.overlapMetrics = buildUnnamed2462(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2655,23 +2958,46 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed1943(o.breakdown); - checkUnnamed1944(o.dimensionFilters); + checkUnnamed2459(o.breakdown); + checkUnnamed2460(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1945(o.metrics); - checkUnnamed1946(o.overlapMetrics); + checkUnnamed2461(o.metrics); + checkUnnamed2462(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } -buildUnnamed1947() { +core.int buildCounterCustomFloodlightVariable = 0; +buildCustomFloodlightVariable() { + var o = new api.CustomFloodlightVariable(); + buildCounterCustomFloodlightVariable++; + if (buildCounterCustomFloodlightVariable < 3) { + o.kind = "foo"; + o.type = "foo"; + o.value = "foo"; + } + buildCounterCustomFloodlightVariable--; + return o; +} + +checkCustomFloodlightVariable(api.CustomFloodlightVariable o) { + buildCounterCustomFloodlightVariable++; + if (buildCounterCustomFloodlightVariable < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterCustomFloodlightVariable--; +} + +buildUnnamed2463() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1947(core.List<api.DimensionValue> o) { +checkUnnamed2463(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2682,7 +3008,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed1947(); + o.filteredEventIds = buildUnnamed2463(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2692,7 +3018,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed1947(o.filteredEventIds); + checkUnnamed2463(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2723,27 +3049,27 @@ buildCounterDateRange--; } -buildUnnamed1948() { +buildUnnamed2464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1948(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')); } -buildUnnamed1949() { +buildUnnamed2465() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1949(core.List<core.int> o) { +checkUnnamed2465(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)); @@ -2754,8 +3080,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed1948(); - o.hoursOfDay = buildUnnamed1949(); + o.daysOfWeek = buildUnnamed2464(); + o.hoursOfDay = buildUnnamed2465(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2765,8 +3091,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed1948(o.daysOfWeek); - checkUnnamed1949(o.hoursOfDay); + checkUnnamed2464(o.daysOfWeek); + checkUnnamed2465(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -2918,14 +3244,14 @@ buildCounterDimensionValue--; } -buildUnnamed1950() { +buildUnnamed2466() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed1950(core.List<api.DimensionValue> o) { +checkUnnamed2466(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -2937,7 +3263,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed1950(); + o.items = buildUnnamed2466(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2949,21 +3275,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1950(o.items); + checkUnnamed2466(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed1951() { +buildUnnamed2467() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed1951(core.List<api.DimensionFilter> o) { +checkUnnamed2467(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -2976,7 +3302,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed1951(); + o.filters = buildUnnamed2467(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -2989,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"))); - checkUnnamed1951(o.filters); + checkUnnamed2467(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed1952() { +buildUnnamed2468() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed1952(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed2468(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed1953() { +buildUnnamed2469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1953(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')); } -buildUnnamed1954() { +buildUnnamed2470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1954(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')); @@ -3041,14 +3367,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { o.active = true; - o.contactAssignments = buildUnnamed1952(); + o.contactAssignments = buildUnnamed2468(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed1953(); - o.interstitialTagFormats = buildUnnamed1954(); + o.inpageTagFormats = buildUnnamed2469(); + o.interstitialTagFormats = buildUnnamed2470(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3063,14 +3389,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed1952(o.contactAssignments); + checkUnnamed2468(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); - checkUnnamed1953(o.inpageTagFormats); - checkUnnamed1954(o.interstitialTagFormats); + checkUnnamed2469(o.inpageTagFormats); + checkUnnamed2470(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); @@ -3138,14 +3464,14 @@ buildCounterDirectorySiteContactAssignment--; } -buildUnnamed1955() { +buildUnnamed2471() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed1955(core.List<api.DirectorySiteContact> o) { +checkUnnamed2471(core.List<api.DirectorySiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContact(o[0]); checkDirectorySiteContact(o[1]); @@ -3156,7 +3482,7 @@ var o = new api.DirectorySiteContactsListResponse(); buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - o.directorySiteContacts = buildUnnamed1955(); + o.directorySiteContacts = buildUnnamed2471(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3167,7 +3493,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed1955(o.directorySiteContacts); + checkUnnamed2471(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3205,14 +3531,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed1956() { +buildUnnamed2472() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed1956(core.List<api.DirectorySite> o) { +checkUnnamed2472(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -3223,7 +3549,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed1956(); + o.directorySites = buildUnnamed2472(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3234,21 +3560,105 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed1956(o.directorySites); + checkUnnamed2472(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDirectorySitesListResponse--; } -buildUnnamed1957() { +core.int buildCounterDynamicTargetingKey = 0; +buildDynamicTargetingKey() { + var o = new api.DynamicTargetingKey(); + buildCounterDynamicTargetingKey++; + if (buildCounterDynamicTargetingKey < 3) { + o.kind = "foo"; + o.name = "foo"; + o.objectId = "foo"; + o.objectType = "foo"; + } + buildCounterDynamicTargetingKey--; + return o; +} + +checkDynamicTargetingKey(api.DynamicTargetingKey o) { + buildCounterDynamicTargetingKey++; + if (buildCounterDynamicTargetingKey < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.objectId, unittest.equals('foo')); + unittest.expect(o.objectType, unittest.equals('foo')); + } + buildCounterDynamicTargetingKey--; +} + +buildUnnamed2473() { + var o = new core.List<api.DynamicTargetingKey>(); + o.add(buildDynamicTargetingKey()); + o.add(buildDynamicTargetingKey()); + return o; +} + +checkUnnamed2473(core.List<api.DynamicTargetingKey> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDynamicTargetingKey(o[0]); + checkDynamicTargetingKey(o[1]); +} + +core.int buildCounterDynamicTargetingKeysListResponse = 0; +buildDynamicTargetingKeysListResponse() { + var o = new api.DynamicTargetingKeysListResponse(); + buildCounterDynamicTargetingKeysListResponse++; + if (buildCounterDynamicTargetingKeysListResponse < 3) { + o.dynamicTargetingKeys = buildUnnamed2473(); + o.kind = "foo"; + } + buildCounterDynamicTargetingKeysListResponse--; + return o; +} + +checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { + buildCounterDynamicTargetingKeysListResponse++; + if (buildCounterDynamicTargetingKeysListResponse < 3) { + checkUnnamed2473(o.dynamicTargetingKeys); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterDynamicTargetingKeysListResponse--; +} + +core.int buildCounterEncryptionInfo = 0; +buildEncryptionInfo() { + var o = new api.EncryptionInfo(); + buildCounterEncryptionInfo++; + if (buildCounterEncryptionInfo < 3) { + o.encryptionEntityId = "foo"; + o.encryptionEntityType = "foo"; + o.encryptionSource = "foo"; + o.kind = "foo"; + } + buildCounterEncryptionInfo--; + return o; +} + +checkEncryptionInfo(api.EncryptionInfo o) { + buildCounterEncryptionInfo++; + if (buildCounterEncryptionInfo < 3) { + unittest.expect(o.encryptionEntityId, unittest.equals('foo')); + unittest.expect(o.encryptionEntityType, unittest.equals('foo')); + unittest.expect(o.encryptionSource, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterEncryptionInfo--; +} + +buildUnnamed2474() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1957(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')); @@ -3270,7 +3680,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed1957(); + o.siteIds = buildUnnamed2474(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -3296,7 +3706,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed1957(o.siteIds); + checkUnnamed2474(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -3328,14 +3738,14 @@ buildCounterEventTagOverride--; } -buildUnnamed1958() { +buildUnnamed2475() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed1958(core.List<api.EventTag> o) { +checkUnnamed2475(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -3346,7 +3756,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed1958(); + o.eventTags = buildUnnamed2475(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3356,7 +3766,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed1958(o.eventTags); + checkUnnamed2475(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3420,14 +3830,14 @@ buildCounterFile--; } -buildUnnamed1959() { +buildUnnamed2476() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1959(core.List<api.File> o) { +checkUnnamed2476(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -3439,7 +3849,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed1959(); + o.items = buildUnnamed2476(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3451,7 +3861,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1959(o.items); + checkUnnamed2476(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3504,14 +3914,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed1960() { +buildUnnamed2477() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed1960(core.List<api.FloodlightActivity> o) { +checkUnnamed2477(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -3522,7 +3932,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed1960(); + o.floodlightActivities = buildUnnamed2477(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3533,47 +3943,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed1960(o.floodlightActivities); + checkUnnamed2477(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed1961() { +buildUnnamed2478() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed1961(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed2478(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed1962() { +buildUnnamed2479() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed1962(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed2479(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed1963() { +buildUnnamed2480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1963(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')); @@ -3589,7 +3999,7 @@ o.advertiserIdDimensionValue = buildDimensionValue(); o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed1961(); + o.defaultTags = buildUnnamed2478(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3604,14 +4014,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed1962(); + o.publisherTags = buildUnnamed2479(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed1963(); + o.userDefinedVariableTypes = buildUnnamed2480(); } buildCounterFloodlightActivity--; return o; @@ -3625,7 +4035,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed1961(o.defaultTags); + checkUnnamed2478(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -3640,14 +4050,14 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1962(o.publisherTags); + checkUnnamed2479(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')); - checkUnnamed1963(o.userDefinedVariableTypes); + checkUnnamed2480(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -3716,14 +4126,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed1964() { +buildUnnamed2481() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed1964(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed2481(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -3734,7 +4144,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed1964(); + o.floodlightActivityGroups = buildUnnamed2481(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3745,7 +4155,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed1964(o.floodlightActivityGroups); + checkUnnamed2481(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3781,40 +4191,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed1965() { +buildUnnamed2482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1965(core.List<core.String> o) { +checkUnnamed2482(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1966() { +buildUnnamed2483() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed1966(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed2483(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed1967() { +buildUnnamed2484() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed1967(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed2484(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -3838,11 +4248,11 @@ o.lookbackConfiguration = buildLookbackConfiguration(); o.naturalSearchConversionAttributionOption = "foo"; o.omnitureSettings = buildOmnitureSettings(); - o.standardVariableTypes = buildUnnamed1965(); + o.standardVariableTypes = buildUnnamed2482(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed1966(); - o.userDefinedVariableConfigurations = buildUnnamed1967(); + o.thirdPartyAuthenticationTokens = buildUnnamed2483(); + o.userDefinedVariableConfigurations = buildUnnamed2484(); } buildCounterFloodlightConfiguration--; return o; @@ -3864,23 +4274,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed1965(o.standardVariableTypes); + checkUnnamed2482(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed1966(o.thirdPartyAuthenticationTokens); - checkUnnamed1967(o.userDefinedVariableConfigurations); + checkUnnamed2483(o.thirdPartyAuthenticationTokens); + checkUnnamed2484(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed1968() { +buildUnnamed2485() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed1968(core.List<api.FloodlightConfiguration> o) { +checkUnnamed2485(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -3891,7 +4301,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed1968(); + o.floodlightConfigurations = buildUnnamed2485(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -3901,46 +4311,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed1968(o.floodlightConfigurations); + checkUnnamed2485(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed1969() { +buildUnnamed2486() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1969(core.List<api.Dimension> o) { +checkUnnamed2486(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1970() { +buildUnnamed2487() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1970(core.List<api.Dimension> o) { +checkUnnamed2487(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1971() { +buildUnnamed2488() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1971(core.List<api.Metric> o) { +checkUnnamed2488(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3951,10 +4361,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed1969(); - o.dimensions = buildUnnamed1970(); + o.dimensionFilters = buildUnnamed2486(); + o.dimensions = buildUnnamed2487(); o.kind = "foo"; - o.metrics = buildUnnamed1971(); + o.metrics = buildUnnamed2488(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -3963,10 +4373,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed1969(o.dimensionFilters); - checkUnnamed1970(o.dimensions); + checkUnnamed2486(o.dimensionFilters); + checkUnnamed2487(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1971(o.metrics); + checkUnnamed2488(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4019,66 +4429,66 @@ buildCounterFsCommand--; } -buildUnnamed1972() { +buildUnnamed2489() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed1972(core.List<api.City> o) { +checkUnnamed2489(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed1973() { +buildUnnamed2490() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed1973(core.List<api.Country> o) { +checkUnnamed2490(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed1974() { +buildUnnamed2491() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1974(core.List<api.Metro> o) { +checkUnnamed2491(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed1975() { +buildUnnamed2492() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed1975(core.List<api.PostalCode> o) { +checkUnnamed2492(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed1976() { +buildUnnamed2493() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1976(core.List<api.Region> o) { +checkUnnamed2493(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -4089,12 +4499,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed1972(); - o.countries = buildUnnamed1973(); + o.cities = buildUnnamed2489(); + o.countries = buildUnnamed2490(); o.excludeCountries = true; - o.metros = buildUnnamed1974(); - o.postalCodes = buildUnnamed1975(); - o.regions = buildUnnamed1976(); + o.metros = buildUnnamed2491(); + o.postalCodes = buildUnnamed2492(); + o.regions = buildUnnamed2493(); } buildCounterGeoTargeting--; return o; @@ -4103,24 +4513,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed1972(o.cities); - checkUnnamed1973(o.countries); + checkUnnamed2489(o.cities); + checkUnnamed2490(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed1974(o.metros); - checkUnnamed1975(o.postalCodes); - checkUnnamed1976(o.regions); + checkUnnamed2491(o.metros); + checkUnnamed2492(o.postalCodes); + checkUnnamed2493(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed1977() { +buildUnnamed2494() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed1977(core.List<api.AdSlot> o) { +checkUnnamed2494(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -4132,7 +4542,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed1977(); + o.adSlots = buildUnnamed2494(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4150,6 +4560,7 @@ o.rfpId = "foo"; o.siteId = "foo"; o.subaccountId = "foo"; + o.type = "foo"; } buildCounterInventoryItem--; return o; @@ -4159,7 +4570,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1977(o.adSlots); + checkUnnamed2494(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -4177,18 +4588,19 @@ 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--; } -buildUnnamed1978() { +buildUnnamed2495() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed1978(core.List<api.InventoryItem> o) { +checkUnnamed2495(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -4199,7 +4611,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed1978(); + o.inventoryItems = buildUnnamed2495(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4210,7 +4622,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed1978(o.inventoryItems); + checkUnnamed2495(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4263,14 +4675,14 @@ buildCounterLandingPage--; } -buildUnnamed1979() { +buildUnnamed2496() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed1979(core.List<api.LandingPage> o) { +checkUnnamed2496(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -4282,7 +4694,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed1979(); + o.landingPages = buildUnnamed2496(); } buildCounterLandingPagesListResponse--; return o; @@ -4292,11 +4704,102 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1979(o.landingPages); + checkUnnamed2496(o.landingPages); } buildCounterLandingPagesListResponse--; } +core.int buildCounterLanguage = 0; +buildLanguage() { + var o = new api.Language(); + buildCounterLanguage++; + if (buildCounterLanguage < 3) { + o.id = "foo"; + o.kind = "foo"; + o.languageCode = "foo"; + o.name = "foo"; + } + buildCounterLanguage--; + return o; +} + +checkLanguage(api.Language o) { + buildCounterLanguage++; + if (buildCounterLanguage < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterLanguage--; +} + +buildUnnamed2497() { + var o = new core.List<api.Language>(); + o.add(buildLanguage()); + o.add(buildLanguage()); + return o; +} + +checkUnnamed2497(core.List<api.Language> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLanguage(o[0]); + checkLanguage(o[1]); +} + +core.int buildCounterLanguageTargeting = 0; +buildLanguageTargeting() { + var o = new api.LanguageTargeting(); + buildCounterLanguageTargeting++; + if (buildCounterLanguageTargeting < 3) { + o.languages = buildUnnamed2497(); + } + buildCounterLanguageTargeting--; + return o; +} + +checkLanguageTargeting(api.LanguageTargeting o) { + buildCounterLanguageTargeting++; + if (buildCounterLanguageTargeting < 3) { + checkUnnamed2497(o.languages); + } + buildCounterLanguageTargeting--; +} + +buildUnnamed2498() { + var o = new core.List<api.Language>(); + o.add(buildLanguage()); + o.add(buildLanguage()); + return o; +} + +checkUnnamed2498(core.List<api.Language> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLanguage(o[0]); + checkLanguage(o[1]); +} + +core.int buildCounterLanguagesListResponse = 0; +buildLanguagesListResponse() { + var o = new api.LanguagesListResponse(); + buildCounterLanguagesListResponse++; + if (buildCounterLanguagesListResponse < 3) { + o.kind = "foo"; + o.languages = buildUnnamed2498(); + } + buildCounterLanguagesListResponse--; + return o; +} + +checkLanguagesListResponse(api.LanguagesListResponse o) { + buildCounterLanguagesListResponse++; + if (buildCounterLanguagesListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2498(o.languages); + } + buildCounterLanguagesListResponse--; +} + core.int buildCounterLastModifiedInfo = 0; buildLastModifiedInfo() { var o = new api.LastModifiedInfo(); @@ -4316,14 +4819,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed1980() { +buildUnnamed2499() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed1980(core.List<api.ListPopulationTerm> o) { +checkUnnamed2499(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -4334,7 +4837,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed1980(); + o.terms = buildUnnamed2499(); } buildCounterListPopulationClause--; return o; @@ -4343,19 +4846,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed1980(o.terms); + checkUnnamed2499(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed1981() { +buildUnnamed2500() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed1981(core.List<api.ListPopulationClause> o) { +checkUnnamed2500(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -4368,7 +4871,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed1981(); + o.listPopulationClauses = buildUnnamed2500(); } buildCounterListPopulationRule--; return o; @@ -4379,7 +4882,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed1981(o.listPopulationClauses); + checkUnnamed2500(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4509,14 +5012,14 @@ buildCounterMetro--; } -buildUnnamed1982() { +buildUnnamed2501() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed1982(core.List<api.Metro> o) { +checkUnnamed2501(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -4528,7 +5031,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed1982(); + o.metros = buildUnnamed2501(); } buildCounterMetrosListResponse--; return o; @@ -4538,7 +5041,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1982(o.metros); + checkUnnamed2501(o.metros); } buildCounterMetrosListResponse--; } @@ -4570,14 +5073,14 @@ buildCounterMobileCarrier--; } -buildUnnamed1983() { +buildUnnamed2502() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed1983(core.List<api.MobileCarrier> o) { +checkUnnamed2502(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -4589,7 +5092,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed1983(); + o.mobileCarriers = buildUnnamed2502(); } buildCounterMobileCarriersListResponse--; return o; @@ -4599,19 +5102,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1983(o.mobileCarriers); + checkUnnamed2502(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed1984() { +buildUnnamed2503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1984(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')); @@ -4623,7 +5126,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed1984(); + o.objectIds = buildUnnamed2503(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4634,7 +5137,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1984(o.objectIds); + checkUnnamed2503(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -4738,14 +5241,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed1985() { +buildUnnamed2504() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed1985(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2504(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -4757,7 +5260,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed1985(); + o.operatingSystemVersions = buildUnnamed2504(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -4767,19 +5270,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1985(o.operatingSystemVersions); + checkUnnamed2504(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed1986() { +buildUnnamed2505() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed1986(core.List<api.OperatingSystem> o) { +checkUnnamed2505(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -4791,7 +5294,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed1986(); + o.operatingSystems = buildUnnamed2505(); } buildCounterOperatingSystemsListResponse--; return o; @@ -4801,7 +5304,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1986(o.operatingSystems); + checkUnnamed2505(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -4829,53 +5332,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed1987() { +buildUnnamed2506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1987(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')); } -buildUnnamed1988() { +buildUnnamed2507() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed1988(core.List<api.OrderContact> o) { +checkUnnamed2507(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed1989() { +buildUnnamed2508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1989(core.List<core.String> o) { +checkUnnamed2508(core.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() { +buildUnnamed2509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1990(core.List<core.String> o) { +checkUnnamed2509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4888,11 +5391,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed1987(); + o.approverUserProfileIds = buildUnnamed2506(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed1988(); + o.contacts = buildUnnamed2507(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -4902,8 +5405,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed1989(); - o.siteNames = buildUnnamed1990(); + o.siteId = buildUnnamed2508(); + o.siteNames = buildUnnamed2509(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -4916,11 +5419,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed1987(o.approverUserProfileIds); + checkUnnamed2506(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed1988(o.contacts); + checkUnnamed2507(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -4930,8 +5433,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed1989(o.siteId); - checkUnnamed1990(o.siteNames); + checkUnnamed2508(o.siteId); + checkUnnamed2509(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -4965,27 +5468,27 @@ buildCounterOrderContact--; } -buildUnnamed1991() { +buildUnnamed2510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1991(core.List<core.String> o) { +checkUnnamed2510(core.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() { +buildUnnamed2511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1992(core.List<core.String> o) { +checkUnnamed2511(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4999,13 +5502,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed1991(); + o.approvedByUserProfileIds = buildUnnamed2510(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed1992(); + o.lastSentRecipients = buildUnnamed2511(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -5024,13 +5527,13 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed1991(o.approvedByUserProfileIds); + checkUnnamed2510(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')); - checkUnnamed1992(o.lastSentRecipients); + checkUnnamed2511(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')); @@ -5042,14 +5545,14 @@ buildCounterOrderDocument--; } -buildUnnamed1993() { +buildUnnamed2512() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed1993(core.List<api.OrderDocument> o) { +checkUnnamed2512(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -5062,7 +5565,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed1993(); + o.orderDocuments = buildUnnamed2512(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5073,19 +5576,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1993(o.orderDocuments); + checkUnnamed2512(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed1994() { +buildUnnamed2513() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1994(core.List<api.Order> o) { +checkUnnamed2513(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5098,7 +5601,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed1994(); + o.orders = buildUnnamed2513(); } buildCounterOrdersListResponse--; return o; @@ -5109,58 +5612,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1994(o.orders); + checkUnnamed2513(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed1995() { +buildUnnamed2514() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1995(core.List<api.Dimension> o) { +checkUnnamed2514(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1996() { +buildUnnamed2515() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1996(core.List<api.Dimension> o) { +checkUnnamed2515(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed1997() { +buildUnnamed2516() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed1997(core.List<api.Metric> o) { +checkUnnamed2516(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed1998() { +buildUnnamed2517() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed1998(core.List<api.Dimension> o) { +checkUnnamed2517(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -5171,11 +5674,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed1995(); - o.customFloodlightVariables = buildUnnamed1996(); + o.conversionDimensions = buildUnnamed2514(); + o.customFloodlightVariables = buildUnnamed2515(); o.kind = "foo"; - o.metrics = buildUnnamed1997(); - o.perInteractionDimensions = buildUnnamed1998(); + o.metrics = buildUnnamed2516(); + o.perInteractionDimensions = buildUnnamed2517(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5184,23 +5687,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed1995(o.conversionDimensions); - checkUnnamed1996(o.customFloodlightVariables); + checkUnnamed2514(o.conversionDimensions); + checkUnnamed2515(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1997(o.metrics); - checkUnnamed1998(o.perInteractionDimensions); + checkUnnamed2516(o.metrics); + checkUnnamed2517(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed1999() { +buildUnnamed2518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1999(core.List<core.String> o) { +checkUnnamed2518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5245,8 +5748,11 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed1999(); + o.tagFormats = buildUnnamed2518(); o.tagSetting = buildTagSetting(); + o.videoActiveViewOptOut = true; + o.videoSettings = buildVideoSettings(); + o.vpaidAdapterChoice = "foo"; } buildCounterPlacement--; return o; @@ -5289,8 +5795,11 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed1999(o.tagFormats); + checkUnnamed2518(o.tagFormats); checkTagSetting(o.tagSetting); + unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); + checkVideoSettings(o.videoSettings); + unittest.expect(o.vpaidAdapterChoice, unittest.equals('foo')); } buildCounterPlacement--; } @@ -5320,14 +5829,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed2000() { +buildUnnamed2519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2000(core.List<core.String> o) { +checkUnnamed2519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5344,7 +5853,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed2000(); + o.childPlacementIds = buildUnnamed2519(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -5378,7 +5887,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed2000(o.childPlacementIds); + checkUnnamed2519(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5402,14 +5911,14 @@ buildCounterPlacementGroup--; } -buildUnnamed2001() { +buildUnnamed2520() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed2001(core.List<api.PlacementGroup> o) { +checkUnnamed2520(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -5422,7 +5931,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed2001(); + o.placementGroups = buildUnnamed2520(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5433,19 +5942,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2001(o.placementGroups); + checkUnnamed2520(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed2002() { +buildUnnamed2521() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed2002(core.List<api.PlacementStrategy> o) { +checkUnnamed2521(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -5458,7 +5967,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed2002(); + o.placementStrategies = buildUnnamed2521(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5469,7 +5978,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2002(o.placementStrategies); + checkUnnamed2521(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5499,14 +6008,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed2003() { +buildUnnamed2522() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed2003(core.List<api.TagData> o) { +checkUnnamed2522(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -5518,7 +6027,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed2003(); + o.tagDatas = buildUnnamed2522(); } buildCounterPlacementTag--; return o; @@ -5528,19 +6037,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed2003(o.tagDatas); + checkUnnamed2522(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed2004() { +buildUnnamed2523() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed2004(core.List<api.PlacementTag> o) { +checkUnnamed2523(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -5552,7 +6061,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed2004(); + o.placementTags = buildUnnamed2523(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5562,19 +6071,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2004(o.placementTags); + checkUnnamed2523(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed2005() { +buildUnnamed2524() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed2005(core.List<api.Placement> o) { +checkUnnamed2524(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -5587,7 +6096,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed2005(); + o.placements = buildUnnamed2524(); } buildCounterPlacementsListResponse--; return o; @@ -5598,7 +6107,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2005(o.placements); + checkUnnamed2524(o.placements); } buildCounterPlacementsListResponse--; } @@ -5626,14 +6135,14 @@ buildCounterPlatformType--; } -buildUnnamed2006() { +buildUnnamed2525() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2006(core.List<api.PlatformType> o) { +checkUnnamed2525(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -5645,7 +6154,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed2006(); + o.platformTypes = buildUnnamed2525(); } buildCounterPlatformTypesListResponse--; return o; @@ -5655,7 +6164,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2006(o.platformTypes); + checkUnnamed2525(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -5722,14 +6231,14 @@ buildCounterPostalCode--; } -buildUnnamed2007() { +buildUnnamed2526() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed2007(core.List<api.PostalCode> o) { +checkUnnamed2526(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -5741,7 +6250,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed2007(); + o.postalCodes = buildUnnamed2526(); } buildCounterPostalCodesListResponse--; return o; @@ -5751,19 +6260,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2007(o.postalCodes); + checkUnnamed2526(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed2008() { +buildUnnamed2527() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed2008(core.List<api.Flight> o) { +checkUnnamed2527(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -5776,7 +6285,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed2008(); + o.flights = buildUnnamed2527(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5790,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"))); - checkUnnamed2008(o.flights); + checkUnnamed2527(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"))); @@ -5798,14 +6307,14 @@ buildCounterPricing--; } -buildUnnamed2009() { +buildUnnamed2528() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed2009(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed2528(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -5821,7 +6330,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed2009(); + o.pricingPeriods = buildUnnamed2528(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -5838,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')); - checkUnnamed2009(o.pricingPeriods); + checkUnnamed2528(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"))); @@ -5897,6 +6406,7 @@ o.targetConversions = "foo"; o.targetCpaNanos = "foo"; o.targetCpcNanos = "foo"; + o.targetCpmActiveViewNanos = "foo"; o.targetCpmNanos = "foo"; o.targetImpressions = "foo"; } @@ -5926,20 +6436,21 @@ unittest.expect(o.targetConversions, unittest.equals('foo')); unittest.expect(o.targetCpaNanos, unittest.equals('foo')); unittest.expect(o.targetCpcNanos, unittest.equals('foo')); + unittest.expect(o.targetCpmActiveViewNanos, unittest.equals('foo')); unittest.expect(o.targetCpmNanos, unittest.equals('foo')); unittest.expect(o.targetImpressions, unittest.equals('foo')); } buildCounterProject--; } -buildUnnamed2010() { +buildUnnamed2529() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2010(core.List<api.Project> o) { +checkUnnamed2529(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -5952,7 +6463,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed2010(); + o.projects = buildUnnamed2529(); } buildCounterProjectsListResponse--; return o; @@ -5963,71 +6474,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2010(o.projects); + checkUnnamed2529(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed2011() { +buildUnnamed2530() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2011(core.List<api.Dimension> o) { +checkUnnamed2530(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2012() { +buildUnnamed2531() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2012(core.List<api.Dimension> o) { +checkUnnamed2531(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2013() { +buildUnnamed2532() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2013(core.List<api.Metric> o) { +checkUnnamed2532(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2014() { +buildUnnamed2533() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2014(core.List<api.Metric> o) { +checkUnnamed2533(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2015() { +buildUnnamed2534() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2015(core.List<api.Metric> o) { +checkUnnamed2534(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6038,12 +6549,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2011(); - o.dimensions = buildUnnamed2012(); + o.dimensionFilters = buildUnnamed2530(); + o.dimensions = buildUnnamed2531(); o.kind = "foo"; - o.metrics = buildUnnamed2013(); - o.pivotedActivityMetrics = buildUnnamed2014(); - o.reachByFrequencyMetrics = buildUnnamed2015(); + o.metrics = buildUnnamed2532(); + o.pivotedActivityMetrics = buildUnnamed2533(); + o.reachByFrequencyMetrics = buildUnnamed2534(); } buildCounterReachReportCompatibleFields--; return o; @@ -6052,12 +6563,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed2011(o.dimensionFilters); - checkUnnamed2012(o.dimensions); + checkUnnamed2530(o.dimensionFilters); + checkUnnamed2531(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2013(o.metrics); - checkUnnamed2014(o.pivotedActivityMetrics); - checkUnnamed2015(o.reachByFrequencyMetrics); + checkUnnamed2532(o.metrics); + checkUnnamed2533(o.pivotedActivityMetrics); + checkUnnamed2534(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6114,14 +6625,14 @@ buildCounterRegion--; } -buildUnnamed2016() { +buildUnnamed2535() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed2016(core.List<api.Region> o) { +checkUnnamed2535(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -6133,7 +6644,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed2016(); + o.regions = buildUnnamed2535(); } buildCounterRegionsListResponse--; return o; @@ -6143,7 +6654,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2016(o.regions); + checkUnnamed2535(o.regions); } buildCounterRegionsListResponse--; } @@ -6191,27 +6702,27 @@ buildCounterRemarketingList--; } -buildUnnamed2017() { +buildUnnamed2536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2017(core.List<core.String> o) { +checkUnnamed2536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2018() { +buildUnnamed2537() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2018(core.List<core.String> o) { +checkUnnamed2537(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6224,8 +6735,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed2017(); - o.sharedAdvertiserIds = buildUnnamed2018(); + o.sharedAccountIds = buildUnnamed2536(); + o.sharedAdvertiserIds = buildUnnamed2537(); } buildCounterRemarketingListShare--; return o; @@ -6236,20 +6747,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed2017(o.sharedAccountIds); - checkUnnamed2018(o.sharedAdvertiserIds); + checkUnnamed2536(o.sharedAccountIds); + checkUnnamed2537(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed2019() { +buildUnnamed2538() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed2019(core.List<api.RemarketingList> o) { +checkUnnamed2538(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -6262,7 +6773,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed2019(); + o.remarketingLists = buildUnnamed2538(); } buildCounterRemarketingListsListResponse--; return o; @@ -6273,45 +6784,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2019(o.remarketingLists); + checkUnnamed2538(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed2020() { +buildUnnamed2539() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2020(core.List<api.DimensionValue> o) { +checkUnnamed2539(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2021() { +buildUnnamed2540() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2021(core.List<api.SortedDimension> o) { +checkUnnamed2540(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2022() { +buildUnnamed2541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2022(core.List<core.String> o) { +checkUnnamed2541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6325,9 +6836,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2020(); - o.dimensions = buildUnnamed2021(); - o.metricNames = buildUnnamed2022(); + o.dimensionFilters = buildUnnamed2539(); + o.dimensions = buildUnnamed2540(); + o.metricNames = buildUnnamed2541(); } buildCounterReportCriteria--; return o; @@ -6339,60 +6850,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2020(o.dimensionFilters); - checkUnnamed2021(o.dimensions); - checkUnnamed2022(o.metricNames); + checkUnnamed2539(o.dimensionFilters); + checkUnnamed2540(o.dimensions); + checkUnnamed2541(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed2023() { +buildUnnamed2542() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2023(core.List<api.SortedDimension> o) { +checkUnnamed2542(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2024() { +buildUnnamed2543() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2024(core.List<api.DimensionValue> o) { +checkUnnamed2543(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2025() { +buildUnnamed2544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2025(core.List<core.String> o) { +checkUnnamed2544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2026() { +buildUnnamed2545() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2026(core.List<core.String> o) { +checkUnnamed2545(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6403,12 +6914,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed2023(); + o.breakdown = buildUnnamed2542(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed2024(); - o.metricNames = buildUnnamed2025(); - o.overlapMetricNames = buildUnnamed2026(); + o.dimensionFilters = buildUnnamed2543(); + o.metricNames = buildUnnamed2544(); + o.overlapMetricNames = buildUnnamed2545(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6418,25 +6929,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed2023(o.breakdown); + checkUnnamed2542(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed2024(o.dimensionFilters); - checkUnnamed2025(o.metricNames); - checkUnnamed2026(o.overlapMetricNames); + checkUnnamed2543(o.dimensionFilters); + checkUnnamed2544(o.metricNames); + checkUnnamed2545(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed2027() { +buildUnnamed2546() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed2027(core.List<api.Recipient> o) { +checkUnnamed2546(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -6450,7 +6961,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed2027(); + o.recipients = buildUnnamed2546(); } buildCounterReportDelivery--; return o; @@ -6462,58 +6973,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed2027(o.recipients); + checkUnnamed2546(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed2028() { +buildUnnamed2547() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2028(core.List<api.DimensionValue> o) { +checkUnnamed2547(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2029() { +buildUnnamed2548() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2029(core.List<api.DimensionValue> o) { +checkUnnamed2548(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2030() { +buildUnnamed2549() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2030(core.List<api.SortedDimension> o) { +checkUnnamed2549(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2031() { +buildUnnamed2550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2031(core.List<core.String> o) { +checkUnnamed2550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6547,12 +7058,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed2028(); + o.customRichMediaEvents = buildUnnamed2547(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2029(); - o.dimensions = buildUnnamed2030(); + o.dimensionFilters = buildUnnamed2548(); + o.dimensions = buildUnnamed2549(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2031(); + o.metricNames = buildUnnamed2550(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6562,90 +7073,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed2028(o.customRichMediaEvents); + checkUnnamed2547(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2029(o.dimensionFilters); - checkUnnamed2030(o.dimensions); + checkUnnamed2548(o.dimensionFilters); + checkUnnamed2549(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2031(o.metricNames); + checkUnnamed2550(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed2032() { +buildUnnamed2551() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2032(core.List<api.DimensionValue> o) { +checkUnnamed2551(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2033() { +buildUnnamed2552() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2033(core.List<api.SortedDimension> o) { +checkUnnamed2552(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2034() { +buildUnnamed2553() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2034(core.List<api.SortedDimension> o) { +checkUnnamed2553(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2035() { +buildUnnamed2554() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2035(core.List<api.DimensionValue> o) { +checkUnnamed2554(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2036() { +buildUnnamed2555() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2036(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')); } -buildUnnamed2037() { +buildUnnamed2556() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2037(core.List<api.SortedDimension> o) { +checkUnnamed2556(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -6691,14 +7202,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed2032(); - o.conversionDimensions = buildUnnamed2033(); - o.customFloodlightVariables = buildUnnamed2034(); - o.customRichMediaEvents = buildUnnamed2035(); + o.activityFilters = buildUnnamed2551(); + o.conversionDimensions = buildUnnamed2552(); + o.customFloodlightVariables = buildUnnamed2553(); + o.customRichMediaEvents = buildUnnamed2554(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed2036(); - o.perInteractionDimensions = buildUnnamed2037(); + o.metricNames = buildUnnamed2555(); + o.perInteractionDimensions = buildUnnamed2556(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -6708,66 +7219,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed2032(o.activityFilters); - checkUnnamed2033(o.conversionDimensions); - checkUnnamed2034(o.customFloodlightVariables); - checkUnnamed2035(o.customRichMediaEvents); + checkUnnamed2551(o.activityFilters); + checkUnnamed2552(o.conversionDimensions); + checkUnnamed2553(o.customFloodlightVariables); + checkUnnamed2554(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed2036(o.metricNames); - checkUnnamed2037(o.perInteractionDimensions); + checkUnnamed2555(o.metricNames); + checkUnnamed2556(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed2038() { +buildUnnamed2557() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed2038(core.List<api.DimensionValue> o) { +checkUnnamed2557(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed2039() { +buildUnnamed2558() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed2039(core.List<api.SortedDimension> o) { +checkUnnamed2558(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed2040() { +buildUnnamed2559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2040(core.List<core.String> o) { +checkUnnamed2559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2041() { +buildUnnamed2560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2041(core.List<core.String> o) { +checkUnnamed2560(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6781,11 +7292,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed2038(); - o.dimensions = buildUnnamed2039(); + o.dimensionFilters = buildUnnamed2557(); + o.dimensions = buildUnnamed2558(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed2040(); - o.reachByFrequencyMetricNames = buildUnnamed2041(); + o.metricNames = buildUnnamed2559(); + o.reachByFrequencyMetricNames = buildUnnamed2560(); } buildCounterReportReachCriteria--; return o; @@ -6797,23 +7308,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed2038(o.dimensionFilters); - checkUnnamed2039(o.dimensions); + checkUnnamed2557(o.dimensionFilters); + checkUnnamed2558(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed2040(o.metricNames); - checkUnnamed2041(o.reachByFrequencyMetricNames); + checkUnnamed2559(o.metricNames); + checkUnnamed2560(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed2042() { +buildUnnamed2561() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2042(core.List<core.String> o) { +checkUnnamed2561(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6828,7 +7339,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed2042(); + o.repeatsOnWeekDays = buildUnnamed2561(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -6843,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')); - checkUnnamed2042(o.repeatsOnWeekDays); + checkUnnamed2561(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } @@ -6903,53 +7414,53 @@ buildCounterReport--; } -buildUnnamed2043() { +buildUnnamed2562() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2043(core.List<api.Dimension> o) { +checkUnnamed2562(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2044() { +buildUnnamed2563() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2044(core.List<api.Dimension> o) { +checkUnnamed2563(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2045() { +buildUnnamed2564() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2045(core.List<api.Metric> o) { +checkUnnamed2564(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2046() { +buildUnnamed2565() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2046(core.List<api.Metric> o) { +checkUnnamed2565(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -6960,11 +7471,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed2043(); - o.dimensions = buildUnnamed2044(); + o.dimensionFilters = buildUnnamed2562(); + o.dimensions = buildUnnamed2563(); o.kind = "foo"; - o.metrics = buildUnnamed2045(); - o.pivotedActivityMetrics = buildUnnamed2046(); + o.metrics = buildUnnamed2564(); + o.pivotedActivityMetrics = buildUnnamed2565(); } buildCounterReportCompatibleFields--; return o; @@ -6973,23 +7484,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed2043(o.dimensionFilters); - checkUnnamed2044(o.dimensions); + checkUnnamed2562(o.dimensionFilters); + checkUnnamed2563(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2045(o.metrics); - checkUnnamed2046(o.pivotedActivityMetrics); + checkUnnamed2564(o.metrics); + checkUnnamed2565(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed2047() { +buildUnnamed2566() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2047(core.List<api.Report> o) { +checkUnnamed2566(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -7001,7 +7512,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed2047(); + o.items = buildUnnamed2566(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7013,7 +7524,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2047(o.items); + checkUnnamed2566(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7048,9 +7559,9 @@ var o = new api.RichMediaExitOverride(); buildCounterRichMediaExitOverride++; if (buildCounterRichMediaExitOverride < 3) { - o.customExitUrl = "foo"; + o.clickThroughUrl = buildClickThroughUrl(); + o.enabled = true; o.exitId = "foo"; - o.useCustomExitUrl = true; } buildCounterRichMediaExitOverride--; return o; @@ -7059,21 +7570,44 @@ checkRichMediaExitOverride(api.RichMediaExitOverride o) { buildCounterRichMediaExitOverride++; if (buildCounterRichMediaExitOverride < 3) { - unittest.expect(o.customExitUrl, unittest.equals('foo')); + checkClickThroughUrl(o.clickThroughUrl); + unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.exitId, unittest.equals('foo')); - unittest.expect(o.useCustomExitUrl, unittest.isTrue); } buildCounterRichMediaExitOverride--; } -buildUnnamed2048() { +core.int buildCounterRule = 0; +buildRule() { + var o = new api.Rule(); + buildCounterRule++; + if (buildCounterRule < 3) { + o.assetId = "foo"; + o.name = "foo"; + o.targetingTemplateId = "foo"; + } + buildCounterRule--; + return o; +} + +checkRule(api.Rule o) { + buildCounterRule++; + if (buildCounterRule < 3) { + unittest.expect(o.assetId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.targetingTemplateId, unittest.equals('foo')); + } + buildCounterRule--; +} + +buildUnnamed2567() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed2048(core.List<api.SiteContact> o) { +checkUnnamed2567(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -7093,7 +7627,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed2048(); + o.siteContacts = buildUnnamed2567(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; } @@ -7113,7 +7647,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2048(o.siteContacts); + checkUnnamed2567(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7164,7 +7698,8 @@ o.disableNewCookie = true; o.lookbackConfiguration = buildLookbackConfiguration(); o.tagSetting = buildTagSetting(); - o.videoActiveViewOptOut = true; + o.videoActiveViewOptOutTemplate = true; + o.vpaidAdapterChoiceTemplate = "foo"; } buildCounterSiteSettings--; return o; @@ -7179,19 +7714,20 @@ unittest.expect(o.disableNewCookie, unittest.isTrue); checkLookbackConfiguration(o.lookbackConfiguration); checkTagSetting(o.tagSetting); - unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); + unittest.expect(o.videoActiveViewOptOutTemplate, unittest.isTrue); + unittest.expect(o.vpaidAdapterChoiceTemplate, unittest.equals('foo')); } buildCounterSiteSettings--; } -buildUnnamed2049() { +buildUnnamed2568() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed2049(core.List<api.Site> o) { +checkUnnamed2568(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -7204,7 +7740,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed2049(); + o.sites = buildUnnamed2568(); } buildCounterSitesListResponse--; return o; @@ -7215,7 +7751,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2049(o.sites); + checkUnnamed2568(o.sites); } buildCounterSitesListResponse--; } @@ -7247,14 +7783,14 @@ buildCounterSize--; } -buildUnnamed2050() { +buildUnnamed2569() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed2050(core.List<api.Size> o) { +checkUnnamed2569(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -7266,7 +7802,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed2050(); + o.sizes = buildUnnamed2569(); } buildCounterSizesListResponse--; return o; @@ -7276,11 +7812,36 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2050(o.sizes); + checkUnnamed2569(o.sizes); } buildCounterSizesListResponse--; } +core.int buildCounterSkippableSetting = 0; +buildSkippableSetting() { + var o = new api.SkippableSetting(); + buildCounterSkippableSetting++; + if (buildCounterSkippableSetting < 3) { + o.kind = "foo"; + o.progressOffset = buildVideoOffset(); + o.skipOffset = buildVideoOffset(); + o.skippable = true; + } + buildCounterSkippableSetting--; + return o; +} + +checkSkippableSetting(api.SkippableSetting o) { + buildCounterSkippableSetting++; + if (buildCounterSkippableSetting < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkVideoOffset(o.progressOffset); + checkVideoOffset(o.skipOffset); + unittest.expect(o.skippable, unittest.isTrue); + } + buildCounterSkippableSetting--; +} + core.int buildCounterSortedDimension = 0; buildSortedDimension() { var o = new api.SortedDimension(); @@ -7304,14 +7865,14 @@ buildCounterSortedDimension--; } -buildUnnamed2051() { +buildUnnamed2570() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2051(core.List<core.String> o) { +checkUnnamed2570(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7323,7 +7884,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed2051(); + o.availablePermissionIds = buildUnnamed2570(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7336,7 +7897,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed2051(o.availablePermissionIds); + checkUnnamed2570(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -7344,14 +7905,14 @@ buildCounterSubaccount--; } -buildUnnamed2052() { +buildUnnamed2571() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed2052(core.List<api.Subaccount> o) { +checkUnnamed2571(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -7364,7 +7925,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed2052(); + o.subaccounts = buildUnnamed2571(); } buildCounterSubaccountsListResponse--; return o; @@ -7375,7 +7936,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2052(o.subaccounts); + checkUnnamed2571(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7515,14 +8076,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed2053() { +buildUnnamed2572() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed2053(core.List<api.TargetableRemarketingList> o) { +checkUnnamed2572(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -7535,7 +8096,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed2053(); + o.targetableRemarketingLists = buildUnnamed2572(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7546,84 +8107,163 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2053(o.targetableRemarketingLists); + checkUnnamed2572(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed2054() { +core.int buildCounterTargetingTemplate = 0; +buildTargetingTemplate() { + var o = new api.TargetingTemplate(); + buildCounterTargetingTemplate++; + if (buildCounterTargetingTemplate < 3) { + o.accountId = "foo"; + o.advertiserId = "foo"; + o.advertiserIdDimensionValue = buildDimensionValue(); + o.dayPartTargeting = buildDayPartTargeting(); + o.geoTargeting = buildGeoTargeting(); + o.id = "foo"; + o.keyValueTargetingExpression = buildKeyValueTargetingExpression(); + o.kind = "foo"; + o.languageTargeting = buildLanguageTargeting(); + o.listTargetingExpression = buildListTargetingExpression(); + o.name = "foo"; + o.subaccountId = "foo"; + o.technologyTargeting = buildTechnologyTargeting(); + } + buildCounterTargetingTemplate--; + return o; +} + +checkTargetingTemplate(api.TargetingTemplate o) { + buildCounterTargetingTemplate++; + if (buildCounterTargetingTemplate < 3) { + unittest.expect(o.accountId, unittest.equals('foo')); + unittest.expect(o.advertiserId, unittest.equals('foo')); + checkDimensionValue(o.advertiserIdDimensionValue); + checkDayPartTargeting(o.dayPartTargeting); + checkGeoTargeting(o.geoTargeting); + unittest.expect(o.id, unittest.equals('foo')); + checkKeyValueTargetingExpression(o.keyValueTargetingExpression); + unittest.expect(o.kind, unittest.equals('foo')); + checkLanguageTargeting(o.languageTargeting); + checkListTargetingExpression(o.listTargetingExpression); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.subaccountId, unittest.equals('foo')); + checkTechnologyTargeting(o.technologyTargeting); + } + buildCounterTargetingTemplate--; +} + +buildUnnamed2573() { + var o = new core.List<api.TargetingTemplate>(); + o.add(buildTargetingTemplate()); + o.add(buildTargetingTemplate()); + return o; +} + +checkUnnamed2573(core.List<api.TargetingTemplate> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetingTemplate(o[0]); + checkTargetingTemplate(o[1]); +} + +core.int buildCounterTargetingTemplatesListResponse = 0; +buildTargetingTemplatesListResponse() { + var o = new api.TargetingTemplatesListResponse(); + buildCounterTargetingTemplatesListResponse++; + if (buildCounterTargetingTemplatesListResponse < 3) { + o.kind = "foo"; + o.nextPageToken = "foo"; + o.targetingTemplates = buildUnnamed2573(); + } + buildCounterTargetingTemplatesListResponse--; + return o; +} + +checkTargetingTemplatesListResponse(api.TargetingTemplatesListResponse o) { + buildCounterTargetingTemplatesListResponse++; + if (buildCounterTargetingTemplatesListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2573(o.targetingTemplates); + } + buildCounterTargetingTemplatesListResponse--; +} + +buildUnnamed2574() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed2054(core.List<api.Browser> o) { +checkUnnamed2574(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed2055() { +buildUnnamed2575() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed2055(core.List<api.ConnectionType> o) { +checkUnnamed2575(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed2056() { +buildUnnamed2576() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed2056(core.List<api.MobileCarrier> o) { +checkUnnamed2576(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed2057() { +buildUnnamed2577() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed2057(core.List<api.OperatingSystemVersion> o) { +checkUnnamed2577(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed2058() { +buildUnnamed2578() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed2058(core.List<api.OperatingSystem> o) { +checkUnnamed2578(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed2059() { +buildUnnamed2579() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed2059(core.List<api.PlatformType> o) { +checkUnnamed2579(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -7634,12 +8274,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed2054(); - o.connectionTypes = buildUnnamed2055(); - o.mobileCarriers = buildUnnamed2056(); - o.operatingSystemVersions = buildUnnamed2057(); - o.operatingSystems = buildUnnamed2058(); - o.platformTypes = buildUnnamed2059(); + o.browsers = buildUnnamed2574(); + o.connectionTypes = buildUnnamed2575(); + o.mobileCarriers = buildUnnamed2576(); + o.operatingSystemVersions = buildUnnamed2577(); + o.operatingSystems = buildUnnamed2578(); + o.platformTypes = buildUnnamed2579(); } buildCounterTechnologyTargeting--; return o; @@ -7648,12 +8288,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed2054(o.browsers); - checkUnnamed2055(o.connectionTypes); - checkUnnamed2056(o.mobileCarriers); - checkUnnamed2057(o.operatingSystemVersions); - checkUnnamed2058(o.operatingSystems); - checkUnnamed2059(o.platformTypes); + checkUnnamed2574(o.browsers); + checkUnnamed2575(o.connectionTypes); + checkUnnamed2576(o.mobileCarriers); + checkUnnamed2577(o.operatingSystemVersions); + checkUnnamed2578(o.operatingSystems); + checkUnnamed2579(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -7700,6 +8340,40 @@ buildCounterThirdPartyTrackingUrl--; } +buildUnnamed2580() { + var o = new core.List<core.int>(); + o.add(42); + o.add(42); + return o; +} + +checkUnnamed2580(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 buildCounterTranscodeSetting = 0; +buildTranscodeSetting() { + var o = new api.TranscodeSetting(); + buildCounterTranscodeSetting++; + if (buildCounterTranscodeSetting < 3) { + o.enabledVideoFormats = buildUnnamed2580(); + o.kind = "foo"; + } + buildCounterTranscodeSetting--; + return o; +} + +checkTranscodeSetting(api.TranscodeSetting o) { + buildCounterTranscodeSetting++; + if (buildCounterTranscodeSetting < 3) { + checkUnnamed2580(o.enabledVideoFormats); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterTranscodeSetting--; +} + core.int buildCounterUserDefinedVariableConfiguration = 0; buildUserDefinedVariableConfiguration() { var o = new api.UserDefinedVariableConfiguration(); @@ -7756,14 +8430,14 @@ buildCounterUserProfile--; } -buildUnnamed2060() { +buildUnnamed2581() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed2060(core.List<api.UserProfile> o) { +checkUnnamed2581(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -7775,7 +8449,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed2060(); + o.items = buildUnnamed2581(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -7786,20 +8460,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2060(o.items); + checkUnnamed2581(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed2061() { +buildUnnamed2582() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2061(core.List<api.UserRolePermission> o) { +checkUnnamed2582(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7816,7 +8490,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed2061(); + o.permissions = buildUnnamed2582(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -7832,7 +8506,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed2061(o.permissions); + checkUnnamed2582(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -7888,14 +8562,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed2062() { +buildUnnamed2583() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed2062(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed2583(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -7907,7 +8581,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed2062(); + o.userRolePermissionGroups = buildUnnamed2583(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -7917,19 +8591,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2062(o.userRolePermissionGroups); + checkUnnamed2583(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed2063() { +buildUnnamed2584() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed2063(core.List<api.UserRolePermission> o) { +checkUnnamed2584(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -7941,7 +8615,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed2063(); + o.userRolePermissions = buildUnnamed2584(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -7951,19 +8625,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2063(o.userRolePermissions); + checkUnnamed2584(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed2064() { +buildUnnamed2585() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed2064(core.List<api.UserRole> o) { +checkUnnamed2585(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -7976,7 +8650,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed2064(); + o.userRoles = buildUnnamed2585(); } buildCounterUserRolesListResponse--; return o; @@ -7987,1124 +8661,1257 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2064(o.userRoles); + checkUnnamed2585(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed2065() { +core.int buildCounterVideoFormat = 0; +buildVideoFormat() { + var o = new api.VideoFormat(); + buildCounterVideoFormat++; + if (buildCounterVideoFormat < 3) { + o.fileType = "foo"; + o.id = 42; + o.kind = "foo"; + o.resolution = buildSize(); + o.targetBitRate = 42; + } + buildCounterVideoFormat--; + return o; +} + +checkVideoFormat(api.VideoFormat o) { + buildCounterVideoFormat++; + if (buildCounterVideoFormat < 3) { + unittest.expect(o.fileType, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals(42)); + unittest.expect(o.kind, unittest.equals('foo')); + checkSize(o.resolution); + unittest.expect(o.targetBitRate, unittest.equals(42)); + } + buildCounterVideoFormat--; +} + +buildUnnamed2586() { + var o = new core.List<api.VideoFormat>(); + o.add(buildVideoFormat()); + o.add(buildVideoFormat()); + return o; +} + +checkUnnamed2586(core.List<api.VideoFormat> o) { + unittest.expect(o, unittest.hasLength(2)); + checkVideoFormat(o[0]); + checkVideoFormat(o[1]); +} + +core.int buildCounterVideoFormatsListResponse = 0; +buildVideoFormatsListResponse() { + var o = new api.VideoFormatsListResponse(); + buildCounterVideoFormatsListResponse++; + if (buildCounterVideoFormatsListResponse < 3) { + o.kind = "foo"; + o.videoFormats = buildUnnamed2586(); + } + buildCounterVideoFormatsListResponse--; + return o; +} + +checkVideoFormatsListResponse(api.VideoFormatsListResponse o) { + buildCounterVideoFormatsListResponse++; + if (buildCounterVideoFormatsListResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2586(o.videoFormats); + } + buildCounterVideoFormatsListResponse--; +} + +core.int buildCounterVideoOffset = 0; +buildVideoOffset() { + var o = new api.VideoOffset(); + buildCounterVideoOffset++; + if (buildCounterVideoOffset < 3) { + o.offsetPercentage = 42; + o.offsetSeconds = 42; + } + buildCounterVideoOffset--; + return o; +} + +checkVideoOffset(api.VideoOffset o) { + buildCounterVideoOffset++; + if (buildCounterVideoOffset < 3) { + unittest.expect(o.offsetPercentage, unittest.equals(42)); + unittest.expect(o.offsetSeconds, unittest.equals(42)); + } + buildCounterVideoOffset--; +} + +core.int buildCounterVideoSettings = 0; +buildVideoSettings() { + var o = new api.VideoSettings(); + buildCounterVideoSettings++; + if (buildCounterVideoSettings < 3) { + o.companionSettings = buildCompanionSetting(); + o.kind = "foo"; + o.skippableSettings = buildSkippableSetting(); + o.transcodeSettings = buildTranscodeSetting(); + } + buildCounterVideoSettings--; + return o; +} + +checkVideoSettings(api.VideoSettings o) { + buildCounterVideoSettings++; + if (buildCounterVideoSettings < 3) { + checkCompanionSetting(o.companionSettings); + unittest.expect(o.kind, unittest.equals('foo')); + checkSkippableSetting(o.skippableSettings); + checkTranscodeSetting(o.transcodeSettings); + } + buildCounterVideoSettings--; +} + +buildUnnamed2587() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2065(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')); } -buildUnnamed2066() { +buildUnnamed2588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2066(core.List<core.String> o) { +checkUnnamed2588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2067() { +buildUnnamed2589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2067(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')); } -buildUnnamed2068() { +buildUnnamed2590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2068(core.List<core.String> o) { +checkUnnamed2590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2069() { +buildUnnamed2591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2069(core.List<core.String> o) { +checkUnnamed2591(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2070() { +buildUnnamed2592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2070(core.List<core.String> o) { +checkUnnamed2592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2071() { +buildUnnamed2593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2071(core.List<core.String> o) { +checkUnnamed2593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2072() { +buildUnnamed2594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2072(core.List<core.String> o) { +checkUnnamed2594(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2073() { +buildUnnamed2595() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2073(core.List<core.String> o) { +checkUnnamed2595(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2074() { +buildUnnamed2596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2074(core.List<core.String> o) { +checkUnnamed2596(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2075() { +buildUnnamed2597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2075(core.List<core.String> o) { +checkUnnamed2597(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2076() { +buildUnnamed2598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2076(core.List<core.String> o) { +checkUnnamed2598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2077() { +buildUnnamed2599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2077(core.List<core.String> o) { +checkUnnamed2599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2078() { +buildUnnamed2600() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2078(core.List<core.String> o) { +checkUnnamed2600(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2079() { +buildUnnamed2601() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2079(core.List<core.String> o) { +checkUnnamed2601(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2080() { +buildUnnamed2602() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2080(core.List<core.String> o) { +checkUnnamed2602(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2081() { +buildUnnamed2603() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2081(core.List<core.String> o) { +checkUnnamed2603(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2082() { +buildUnnamed2604() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2082(core.List<core.String> o) { +checkUnnamed2604(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2083() { +buildUnnamed2605() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2083(core.List<core.String> o) { +checkUnnamed2605(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2084() { +buildUnnamed2606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2084(core.List<core.String> o) { +checkUnnamed2606(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2085() { +buildUnnamed2607() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2085(core.List<core.String> o) { +checkUnnamed2607(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2086() { +buildUnnamed2608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2086(core.List<core.String> o) { +checkUnnamed2608(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2087() { +buildUnnamed2609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2087(core.List<core.String> o) { +checkUnnamed2609(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2088() { +buildUnnamed2610() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2088(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')); } -buildUnnamed2089() { +buildUnnamed2611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2089(core.List<core.String> o) { +checkUnnamed2611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2090() { +buildUnnamed2612() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2090(core.List<core.String> o) { +checkUnnamed2612(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2091() { +buildUnnamed2613() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2091(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')); +} + +buildUnnamed2614() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2614(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); } -buildUnnamed2092() { +buildUnnamed2616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2092(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')); } -buildUnnamed2093() { +buildUnnamed2617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2093(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')); } -buildUnnamed2094() { +buildUnnamed2618() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2094(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')); } -buildUnnamed2095() { +buildUnnamed2619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2095(core.List<core.String> o) { +checkUnnamed2619(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2096() { +buildUnnamed2620() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2096(core.List<core.String> o) { +checkUnnamed2620(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2097() { +buildUnnamed2621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2097(core.List<core.String> o) { +checkUnnamed2621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2098() { +buildUnnamed2622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2098(core.List<core.String> o) { +checkUnnamed2622(core.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() { +buildUnnamed2623() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2099(core.List<core.String> o) { +checkUnnamed2623(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2100() { +buildUnnamed2624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2100(core.List<core.String> o) { +checkUnnamed2624(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2101() { +buildUnnamed2625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2101(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')); } -buildUnnamed2102() { +buildUnnamed2626() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2102(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')); } -buildUnnamed2103() { +buildUnnamed2627() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2103(core.List<core.String> o) { +checkUnnamed2627(core.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() { +buildUnnamed2628() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2104(core.List<core.String> o) { +checkUnnamed2628(core.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() { +buildUnnamed2629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2105(core.List<core.String> o) { +checkUnnamed2629(core.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() { +buildUnnamed2630() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2106(core.List<core.String> o) { +checkUnnamed2630(core.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() { +buildUnnamed2631() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2107(core.List<core.String> o) { +checkUnnamed2631(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2108() { +buildUnnamed2632() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2108(core.List<core.String> o) { +checkUnnamed2632(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2109() { +buildUnnamed2633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2109(core.List<core.String> o) { +checkUnnamed2633(core.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() { +buildUnnamed2634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2110(core.List<core.String> o) { +checkUnnamed2634(core.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() { +buildUnnamed2635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2111(core.List<core.String> o) { +checkUnnamed2635(core.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() { +buildUnnamed2636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2112(core.List<core.String> o) { +checkUnnamed2636(core.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() { +buildUnnamed2637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2113(core.List<core.String> o) { +checkUnnamed2637(core.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() { +buildUnnamed2638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2114(core.List<core.String> o) { +checkUnnamed2638(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2115() { +buildUnnamed2639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2115(core.List<core.String> o) { +checkUnnamed2639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2116() { +buildUnnamed2640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2116(core.List<core.String> o) { +checkUnnamed2640(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2117() { +buildUnnamed2641() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2117(core.List<core.String> o) { +checkUnnamed2641(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2118() { +buildUnnamed2642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2118(core.List<core.String> o) { +checkUnnamed2642(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2119() { +buildUnnamed2643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2119(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')); } -buildUnnamed2120() { +buildUnnamed2644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2120(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')); } -buildUnnamed2121() { +buildUnnamed2645() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2121(core.List<core.String> o) { +checkUnnamed2645(core.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() { +buildUnnamed2646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2122(core.List<core.String> o) { +checkUnnamed2646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2123() { +buildUnnamed2647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2123(core.List<core.String> o) { +checkUnnamed2647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2124() { +buildUnnamed2648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2124(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')); } -buildUnnamed2125() { +buildUnnamed2649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2125(core.List<core.String> o) { +checkUnnamed2649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2126() { +buildUnnamed2650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2126(core.List<core.String> o) { +checkUnnamed2650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2127() { +buildUnnamed2651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2127(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')); } -buildUnnamed2128() { +buildUnnamed2652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2128(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')); } -buildUnnamed2129() { +buildUnnamed2653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2129(core.List<core.String> o) { +checkUnnamed2653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2130() { +buildUnnamed2654() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2130(core.List<core.String> o) { +checkUnnamed2654(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2131() { +buildUnnamed2655() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2131(core.List<core.String> o) { +checkUnnamed2655(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2132() { +buildUnnamed2656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2132(core.List<core.String> o) { +checkUnnamed2656(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2133() { +buildUnnamed2657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2133(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')); } -buildUnnamed2134() { +buildUnnamed2658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2134(core.List<core.String> o) { +checkUnnamed2658(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2135() { +buildUnnamed2659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2135(core.List<core.String> o) { +checkUnnamed2659(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2136() { +buildUnnamed2660() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2136(core.List<core.String> o) { +checkUnnamed2660(core.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() { +buildUnnamed2661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2137(core.List<core.String> o) { +checkUnnamed2661(core.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() { +buildUnnamed2662() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2138(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')); } -buildUnnamed2139() { +buildUnnamed2663() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2139(core.List<core.String> o) { +checkUnnamed2663(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2140() { +buildUnnamed2664() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2140(core.List<core.String> o) { +checkUnnamed2664(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2141() { +buildUnnamed2665() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2141(core.List<core.String> o) { +checkUnnamed2665(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2142() { +buildUnnamed2666() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2142(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')); } -buildUnnamed2143() { +buildUnnamed2667() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2143(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')); } -buildUnnamed2144() { +buildUnnamed2668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2144(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')); } -buildUnnamed2145() { +buildUnnamed2669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2145(core.List<core.String> o) { +checkUnnamed2669(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2146() { +buildUnnamed2670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2146(core.List<core.String> o) { +checkUnnamed2670(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2147() { +buildUnnamed2671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2147(core.List<core.String> o) { +checkUnnamed2671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2148() { +buildUnnamed2672() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2148(core.List<core.String> o) { +checkUnnamed2672(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2149() { +buildUnnamed2673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2149(core.List<core.String> o) { +checkUnnamed2673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2150() { +buildUnnamed2674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2150(core.List<core.String> o) { +checkUnnamed2674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9409,6 +10216,15 @@ }); + unittest.group("obj-schema-CompanionSetting", () { + unittest.test("to-json--from-json", () { + var o = buildCompanionSetting(); + var od = new api.CompanionSetting.fromJson(o.toJson()); + checkCompanionSetting(od); + }); + }); + + unittest.group("obj-schema-CompatibleFields", () { unittest.test("to-json--from-json", () { var o = buildCompatibleFields(); @@ -9454,6 +10270,51 @@ }); + unittest.group("obj-schema-Conversion", () { + unittest.test("to-json--from-json", () { + var o = buildConversion(); + var od = new api.Conversion.fromJson(o.toJson()); + checkConversion(od); + }); + }); + + + unittest.group("obj-schema-ConversionError", () { + unittest.test("to-json--from-json", () { + var o = buildConversionError(); + var od = new api.ConversionError.fromJson(o.toJson()); + checkConversionError(od); + }); + }); + + + unittest.group("obj-schema-ConversionStatus", () { + unittest.test("to-json--from-json", () { + var o = buildConversionStatus(); + var od = new api.ConversionStatus.fromJson(o.toJson()); + checkConversionStatus(od); + }); + }); + + + unittest.group("obj-schema-ConversionsBatchInsertRequest", () { + unittest.test("to-json--from-json", () { + var o = buildConversionsBatchInsertRequest(); + var od = new api.ConversionsBatchInsertRequest.fromJson(o.toJson()); + checkConversionsBatchInsertRequest(od); + }); + }); + + + unittest.group("obj-schema-ConversionsBatchInsertResponse", () { + unittest.test("to-json--from-json", () { + var o = buildConversionsBatchInsertResponse(); + var od = new api.ConversionsBatchInsertResponse.fromJson(o.toJson()); + checkConversionsBatchInsertResponse(od); + }); + }); + + unittest.group("obj-schema-CountriesListResponse", () { unittest.test("to-json--from-json", () { var o = buildCountriesListResponse(); @@ -9508,6 +10369,15 @@ }); + unittest.group("obj-schema-CreativeAssetSelection", () { + unittest.test("to-json--from-json", () { + var o = buildCreativeAssetSelection(); + var od = new api.CreativeAssetSelection.fromJson(o.toJson()); + checkCreativeAssetSelection(od); + }); + }); + + unittest.group("obj-schema-CreativeAssignment", () { unittest.test("to-json--from-json", () { var o = buildCreativeAssignment(); @@ -9643,6 +10513,15 @@ }); + unittest.group("obj-schema-CustomFloodlightVariable", () { + unittest.test("to-json--from-json", () { + var o = buildCustomFloodlightVariable(); + var od = new api.CustomFloodlightVariable.fromJson(o.toJson()); + checkCustomFloodlightVariable(od); + }); + }); + + unittest.group("obj-schema-CustomRichMediaEvents", () { unittest.test("to-json--from-json", () { var o = buildCustomRichMediaEvents(); @@ -9796,6 +10675,33 @@ }); + unittest.group("obj-schema-DynamicTargetingKey", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicTargetingKey(); + var od = new api.DynamicTargetingKey.fromJson(o.toJson()); + checkDynamicTargetingKey(od); + }); + }); + + + unittest.group("obj-schema-DynamicTargetingKeysListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicTargetingKeysListResponse(); + var od = new api.DynamicTargetingKeysListResponse.fromJson(o.toJson()); + checkDynamicTargetingKeysListResponse(od); + }); + }); + + + unittest.group("obj-schema-EncryptionInfo", () { + unittest.test("to-json--from-json", () { + var o = buildEncryptionInfo(); + var od = new api.EncryptionInfo.fromJson(o.toJson()); + checkEncryptionInfo(od); + }); + }); + + unittest.group("obj-schema-EventTag", () { unittest.test("to-json--from-json", () { var o = buildEventTag(); @@ -10021,6 +10927,33 @@ }); + unittest.group("obj-schema-Language", () { + unittest.test("to-json--from-json", () { + var o = buildLanguage(); + var od = new api.Language.fromJson(o.toJson()); + checkLanguage(od); + }); + }); + + + unittest.group("obj-schema-LanguageTargeting", () { + unittest.test("to-json--from-json", () { + var o = buildLanguageTargeting(); + var od = new api.LanguageTargeting.fromJson(o.toJson()); + checkLanguageTargeting(od); + }); + }); + + + unittest.group("obj-schema-LanguagesListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildLanguagesListResponse(); + var od = new api.LanguagesListResponse.fromJson(o.toJson()); + checkLanguagesListResponse(od); + }); + }); + + unittest.group("obj-schema-LastModifiedInfo", () { unittest.test("to-json--from-json", () { var o = buildLastModifiedInfo(); @@ -10606,6 +11539,15 @@ }); + unittest.group("obj-schema-Rule", () { + unittest.test("to-json--from-json", () { + var o = buildRule(); + var od = new api.Rule.fromJson(o.toJson()); + checkRule(od); + }); + }); + + unittest.group("obj-schema-Site", () { unittest.test("to-json--from-json", () { var o = buildSite(); @@ -10660,6 +11602,15 @@ }); + unittest.group("obj-schema-SkippableSetting", () { + unittest.test("to-json--from-json", () { + var o = buildSkippableSetting(); + var od = new api.SkippableSetting.fromJson(o.toJson()); + checkSkippableSetting(od); + }); + }); + + unittest.group("obj-schema-SortedDimension", () { unittest.test("to-json--from-json", () { var o = buildSortedDimension(); @@ -10741,6 +11692,24 @@ }); + unittest.group("obj-schema-TargetingTemplate", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingTemplate(); + var od = new api.TargetingTemplate.fromJson(o.toJson()); + checkTargetingTemplate(od); + }); + }); + + + unittest.group("obj-schema-TargetingTemplatesListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingTemplatesListResponse(); + var od = new api.TargetingTemplatesListResponse.fromJson(o.toJson()); + checkTargetingTemplatesListResponse(od); + }); + }); + + unittest.group("obj-schema-TechnologyTargeting", () { unittest.test("to-json--from-json", () { var o = buildTechnologyTargeting(); @@ -10768,6 +11737,15 @@ }); + unittest.group("obj-schema-TranscodeSetting", () { + unittest.test("to-json--from-json", () { + var o = buildTranscodeSetting(); + var od = new api.TranscodeSetting.fromJson(o.toJson()); + checkTranscodeSetting(od); + }); + }); + + unittest.group("obj-schema-UserDefinedVariableConfiguration", () { unittest.test("to-json--from-json", () { var o = buildUserDefinedVariableConfiguration(); @@ -10849,6 +11827,42 @@ }); + unittest.group("obj-schema-VideoFormat", () { + unittest.test("to-json--from-json", () { + var o = buildVideoFormat(); + var od = new api.VideoFormat.fromJson(o.toJson()); + checkVideoFormat(od); + }); + }); + + + unittest.group("obj-schema-VideoFormatsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildVideoFormatsListResponse(); + var od = new api.VideoFormatsListResponse.fromJson(o.toJson()); + checkVideoFormatsListResponse(od); + }); + }); + + + unittest.group("obj-schema-VideoOffset", () { + unittest.test("to-json--from-json", () { + var o = buildVideoOffset(); + var od = new api.VideoOffset.fromJson(o.toJson()); + checkVideoOffset(od); + }); + }); + + + unittest.group("obj-schema-VideoSettings", () { + unittest.test("to-json--from-json", () { + var o = buildVideoSettings(); + var od = new api.VideoSettings.fromJson(o.toJson()); + checkVideoSettings(od); + }); + }); + + unittest.group("resource-AccountActiveAdSummariesResourceApi", () { unittest.test("method--get", () { @@ -10863,7 +11877,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -10924,7 +11938,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -10980,7 +11994,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11038,7 +12052,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11094,7 +12108,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11152,7 +12166,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11212,7 +12226,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11259,7 +12273,7 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2065(); + var arg_ids = buildUnnamed2587(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11274,7 +12288,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11341,7 +12355,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11399,7 +12413,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11457,7 +12471,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11507,7 +12521,7 @@ api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; var arg_active = true; - var arg_ids = buildUnnamed2066(); + var arg_ids = buildUnnamed2588(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -11520,7 +12534,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11585,7 +12599,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11643,7 +12657,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11701,7 +12715,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11761,7 +12775,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11810,27 +12824,26 @@ var arg_active = true; var arg_advertiserId = "foo"; var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed2067(); - var arg_campaignIds = buildUnnamed2068(); + var arg_audienceSegmentIds = buildUnnamed2589(); + var arg_campaignIds = buildUnnamed2590(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed2069(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed2070(); - var arg_creativeType = "foo"; + var arg_creativeIds = buildUnnamed2591(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed2592(); var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed2071(); - var arg_landingPageIds = buildUnnamed2072(); + var arg_ids = buildUnnamed2593(); + var arg_landingPageIds = buildUnnamed2594(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed2073(); - var arg_remarketingListIds = buildUnnamed2074(); + var arg_placementIds = buildUnnamed2595(); + var arg_remarketingListIds = buildUnnamed2596(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2075(); + var arg_sizeIds = buildUnnamed2597(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed2076(); + var arg_type = buildUnnamed2598(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -11838,7 +12851,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11874,7 +12887,6 @@ 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)); @@ -11898,7 +12910,7 @@ 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) { + 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, 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); }))); }); @@ -11920,7 +12932,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -11978,7 +12990,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12036,7 +13048,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12091,7 +13103,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12151,7 +13163,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12197,7 +13209,7 @@ var mock = new HttpServerMock(); api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2077(); + var arg_ids = buildUnnamed2599(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -12210,7 +13222,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12274,7 +13286,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12332,7 +13344,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12390,7 +13402,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12450,7 +13462,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12496,9 +13508,9 @@ var mock = new HttpServerMock(); api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2078(); - var arg_floodlightConfigurationIds = buildUnnamed2079(); - var arg_ids = buildUnnamed2080(); + var arg_advertiserGroupIds = buildUnnamed2600(); + var arg_floodlightConfigurationIds = buildUnnamed2601(); + var arg_ids = buildUnnamed2602(); var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_maxResults = 42; var arg_onlyParent = true; @@ -12515,7 +13527,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12585,7 +13597,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12643,7 +13655,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12700,7 +13712,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12762,7 +13774,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12826,7 +13838,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12894,7 +13906,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -12956,7 +13968,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13004,12 +14016,12 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed2081(); - var arg_advertiserIds = buildUnnamed2082(); + var arg_advertiserGroupIds = buildUnnamed2603(); + var arg_advertiserIds = buildUnnamed2604(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed2083(); - var arg_ids = buildUnnamed2084(); + var arg_excludedIds = buildUnnamed2605(); + var arg_ids = buildUnnamed2606(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; @@ -13024,7 +14036,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13095,7 +14107,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13153,7 +14165,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13211,7 +14223,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13261,15 +14273,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed2085(); + var arg_ids = buildUnnamed2607(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed2086(); + var arg_objectIds = buildUnnamed2608(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed2087(); + var arg_userProfileIds = buildUnnamed2609(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13277,7 +14289,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13337,10 +14349,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed2088(); - var arg_dartIds = buildUnnamed2089(); + var arg_countryDartIds = buildUnnamed2610(); + var arg_dartIds = buildUnnamed2611(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed2090(); + var arg_regionDartIds = buildUnnamed2612(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -13348,7 +14360,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13410,7 +14422,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13466,7 +14478,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13524,7 +14536,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13579,7 +14591,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13639,7 +14651,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13685,7 +14697,7 @@ var mock = new HttpServerMock(); api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2091(); + var arg_ids = buildUnnamed2613(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -13698,7 +14710,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13762,7 +14774,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13820,7 +14832,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13864,6 +14876,67 @@ }); + unittest.group("resource-ConversionsResourceApi", () { + unittest.test("method--batchinsert", () { + + var mock = new HttpServerMock(); + api.ConversionsResourceApi res = new api.DfareportingApi(mock).conversions; + var arg_request = buildConversionsBatchInsertRequest(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ConversionsBatchInsertRequest.fromJson(json); + checkConversionsBatchInsertRequest(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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/conversions/batchinsert", 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("/conversions/batchinsert")); + 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(buildConversionsBatchInsertResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.batchinsert(arg_request, arg_profileId).then(unittest.expectAsync(((api.ConversionsBatchInsertResponse response) { + checkConversionsBatchInsertResponse(response); + }))); + }); + + }); + + unittest.group("resource-CountriesResourceApi", () { unittest.test("method--get", () { @@ -13878,7 +14951,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13934,7 +15007,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -13998,7 +15071,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14064,7 +15137,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14127,7 +15200,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14195,7 +15268,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14249,7 +15322,7 @@ api.CreativeFieldValuesResourceApi res = new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed2092(); + var arg_ids = buildUnnamed2614(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14262,7 +15335,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14334,7 +15407,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14400,7 +15473,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14465,7 +15538,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14520,7 +15593,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14580,7 +15653,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14626,8 +15699,8 @@ var mock = new HttpServerMock(); api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2093(); - var arg_ids = buildUnnamed2094(); + var arg_advertiserIds = buildUnnamed2615(); + var arg_ids = buildUnnamed2616(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14640,7 +15713,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14705,7 +15778,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14763,7 +15836,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14821,7 +15894,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14881,7 +15954,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -14927,9 +16000,9 @@ var mock = new HttpServerMock(); api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2095(); + var arg_advertiserIds = buildUnnamed2617(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed2096(); + var arg_ids = buildUnnamed2618(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -14942,7 +16015,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15008,7 +16081,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15066,7 +16139,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15124,7 +16197,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15184,7 +16257,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15234,18 +16307,18 @@ var arg_advertiserId = "foo"; var arg_archived = true; var arg_campaignId = "foo"; - var arg_companionCreativeIds = buildUnnamed2097(); - var arg_creativeFieldIds = buildUnnamed2098(); - var arg_ids = buildUnnamed2099(); + var arg_companionCreativeIds = buildUnnamed2619(); + var arg_creativeFieldIds = buildUnnamed2620(); + var arg_ids = buildUnnamed2621(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed2100(); + var arg_renderingIds = buildUnnamed2622(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed2101(); + var arg_sizeIds = buildUnnamed2623(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed2102(); + var arg_types = buildUnnamed2624(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -15253,7 +16326,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15327,7 +16400,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15385,7 +16458,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15448,7 +16521,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15508,7 +16581,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15557,8 +16630,8 @@ var mock = new HttpServerMock(); api.DirectorySiteContactsResourceApi res = new api.DfareportingApi(mock).directorySiteContacts; var arg_profileId = "foo"; - var arg_directorySiteIds = buildUnnamed2103(); - var arg_ids = buildUnnamed2104(); + var arg_directorySiteIds = buildUnnamed2625(); + var arg_ids = buildUnnamed2626(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -15571,7 +16644,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15636,7 +16709,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15696,7 +16769,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15748,7 +16821,7 @@ var arg_active = true; var arg_countryId = "foo"; var arg_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed2105(); + var arg_ids = buildUnnamed2627(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_parentId = "foo"; @@ -15762,7 +16835,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15819,6 +16892,187 @@ }); + unittest.group("resource-DynamicTargetingKeysResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; + var arg_profileId = "foo"; + var arg_objectId = "foo"; + var arg_name = "foo"; + var arg_objectType = "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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/dynamicTargetingKeys/", 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("/dynamicTargetingKeys/")); + pathOffset += 22; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_objectId")); + + 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["name"].first, unittest.equals(arg_name)); + unittest.expect(queryMap["objectType"].first, unittest.equals(arg_objectType)); + + + 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_objectId, arg_name, arg_objectType).then(unittest.expectAsync((_) {})); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; + var arg_request = buildDynamicTargetingKey(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.DynamicTargetingKey.fromJson(json); + checkDynamicTargetingKey(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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/dynamicTargetingKeys", 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("/dynamicTargetingKeys")); + 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(buildDynamicTargetingKey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.DynamicTargetingKey response) { + checkDynamicTargetingKey(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; + var arg_profileId = "foo"; + var arg_advertiserId = "foo"; + var arg_names = buildUnnamed2628(); + var arg_objectId = "foo"; + var arg_objectType = "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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/dynamicTargetingKeys", 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("/dynamicTargetingKeys")); + 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["names"], unittest.equals(arg_names)); + unittest.expect(queryMap["objectId"].first, unittest.equals(arg_objectId)); + unittest.expect(queryMap["objectType"].first, unittest.equals(arg_objectType)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildDynamicTargetingKeysListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId, advertiserId: arg_advertiserId, names: arg_names, objectId: arg_objectId, objectType: arg_objectType).then(unittest.expectAsync(((api.DynamicTargetingKeysListResponse response) { + checkDynamicTargetingKeysListResponse(response); + }))); + }); + + }); + + unittest.group("resource-EventTagsResourceApi", () { unittest.test("method--delete", () { @@ -15833,7 +17087,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15888,7 +17142,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15948,7 +17202,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -15999,8 +17253,8 @@ var arg_campaignId = "foo"; var arg_definitionsOnly = true; var arg_enabled = true; - var arg_eventTagTypes = buildUnnamed2106(); - var arg_ids = buildUnnamed2107(); + var arg_eventTagTypes = buildUnnamed2629(); + var arg_ids = buildUnnamed2630(); var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; @@ -16011,7 +17265,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16079,7 +17333,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16137,7 +17391,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16197,7 +17451,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("reports/")); pathOffset += 8; @@ -16258,7 +17512,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16321,7 +17575,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16376,7 +17630,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16431,7 +17685,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16491,7 +17745,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16538,12 +17792,12 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed2108(); + var arg_floodlightActivityGroupIds = buildUnnamed2631(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2109(); + var arg_ids = buildUnnamed2632(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16557,7 +17811,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16628,7 +17882,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16686,7 +17940,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16744,7 +17998,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16804,7 +18058,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16852,7 +18106,7 @@ var arg_profileId = "foo"; var arg_advertiserId = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed2110(); + var arg_ids = buildUnnamed2633(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -16866,7 +18120,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16933,7 +18187,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -16991,7 +18245,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17049,7 +18303,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17098,7 +18352,7 @@ var mock = new HttpServerMock(); api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2111(); + var arg_ids = buildUnnamed2634(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -17106,7 +18360,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17165,7 +18419,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17223,7 +18477,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17282,7 +18536,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17339,14 +18593,15 @@ api.InventoryItemsResourceApi res = new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2112(); + var arg_ids = buildUnnamed2635(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed2113(); + var arg_orderId = buildUnnamed2636(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed2114(); + var arg_siteId = buildUnnamed2637(); 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; @@ -17354,7 +18609,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17397,6 +18652,7 @@ 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 = { @@ -17405,7 +18661,7 @@ 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).then(unittest.expectAsync(((api.InventoryItemsListResponse response) { + 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); }))); }); @@ -17428,7 +18684,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17491,7 +18747,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17559,7 +18815,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17620,7 +18876,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17686,7 +18942,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17752,7 +19008,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17803,6 +19059,63 @@ }); + unittest.group("resource-LanguagesResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.LanguagesResourceApi res = new api.DfareportingApi(mock).languages; + 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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/languages", 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("/languages")); + 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(buildLanguagesListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId).then(unittest.expectAsync(((api.LanguagesListResponse response) { + checkLanguagesListResponse(response); + }))); + }); + + }); + + unittest.group("resource-MetrosResourceApi", () { unittest.test("method--list", () { @@ -17816,7 +19129,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17874,7 +19187,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17930,7 +19243,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -17988,7 +19301,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18044,7 +19357,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18102,7 +19415,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18158,7 +19471,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18217,7 +19530,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18275,12 +19588,12 @@ var arg_profileId = "foo"; var arg_projectId = "foo"; var arg_approved = true; - var arg_ids = buildUnnamed2115(); + var arg_ids = buildUnnamed2638(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed2116(); + var arg_orderId = buildUnnamed2639(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2117(); + var arg_siteId = buildUnnamed2640(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18290,7 +19603,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18365,7 +19678,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18422,11 +19735,11 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed2118(); + var arg_ids = buildUnnamed2641(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed2119(); + var arg_siteId = buildUnnamed2642(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18436,7 +19749,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18508,7 +19821,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18568,7 +19881,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18614,12 +19927,12 @@ var mock = new HttpServerMock(); api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2120(); + var arg_advertiserIds = buildUnnamed2643(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2121(); - var arg_contentCategoryIds = buildUnnamed2122(); - var arg_directorySiteIds = buildUnnamed2123(); - var arg_ids = buildUnnamed2124(); + var arg_campaignIds = buildUnnamed2644(); + var arg_contentCategoryIds = buildUnnamed2645(); + var arg_directorySiteIds = buildUnnamed2646(); + var arg_ids = buildUnnamed2647(); var arg_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -18627,10 +19940,10 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_placementGroupType = "foo"; - var arg_placementStrategyIds = buildUnnamed2125(); - var arg_pricingTypes = buildUnnamed2126(); + var arg_placementStrategyIds = buildUnnamed2648(); + var arg_pricingTypes = buildUnnamed2649(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2127(); + var arg_siteIds = buildUnnamed2650(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -18640,7 +19953,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18717,7 +20030,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18775,7 +20088,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18833,7 +20146,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18888,7 +20201,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18948,7 +20261,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -18994,7 +20307,7 @@ var mock = new HttpServerMock(); api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2128(); + var arg_ids = buildUnnamed2651(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19007,7 +20320,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19071,7 +20384,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19129,7 +20442,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19180,8 +20493,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed2129(); - var arg_tagFormats = buildUnnamed2130(); + var arg_placementIds = buildUnnamed2652(); + var arg_tagFormats = buildUnnamed2653(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -19189,7 +20502,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19246,7 +20559,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19306,7 +20619,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19352,14 +20665,14 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2131(); + var arg_advertiserIds = buildUnnamed2654(); var arg_archived = true; - var arg_campaignIds = buildUnnamed2132(); - var arg_compatibilities = buildUnnamed2133(); - var arg_contentCategoryIds = buildUnnamed2134(); - var arg_directorySiteIds = buildUnnamed2135(); - var arg_groupIds = buildUnnamed2136(); - var arg_ids = buildUnnamed2137(); + 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_maxEndDate = "foo"; var arg_maxResults = 42; var arg_maxStartDate = "foo"; @@ -19367,11 +20680,11 @@ var arg_minStartDate = "foo"; var arg_pageToken = "foo"; var arg_paymentSource = "foo"; - var arg_placementStrategyIds = buildUnnamed2138(); - var arg_pricingTypes = buildUnnamed2139(); + var arg_placementStrategyIds = buildUnnamed2661(); + var arg_pricingTypes = buildUnnamed2662(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed2140(); - var arg_sizeIds = buildUnnamed2141(); + var arg_siteIds = buildUnnamed2663(); + var arg_sizeIds = buildUnnamed2664(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -19381,7 +20694,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19461,7 +20774,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19519,7 +20832,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19577,7 +20890,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19633,7 +20946,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19691,7 +21004,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19747,7 +21060,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19805,7 +21118,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19854,8 +21167,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed2142(); - var arg_ids = buildUnnamed2143(); + var arg_advertiserIds = buildUnnamed2665(); + var arg_ids = buildUnnamed2666(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -19868,7 +21181,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19932,7 +21245,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -19990,7 +21303,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20051,7 +21364,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20109,7 +21422,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20167,7 +21480,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20227,7 +21540,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20288,7 +21601,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20354,7 +21667,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20412,7 +21725,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20470,7 +21783,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20525,7 +21838,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20585,7 +21898,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20643,7 +21956,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20706,7 +22019,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20764,7 +22077,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20830,7 +22143,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20894,7 +22207,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -20955,7 +22268,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21023,7 +22336,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21092,7 +22405,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21152,7 +22465,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21203,9 +22516,9 @@ var arg_acceptsPublisherPaidPlacements = true; var arg_adWordsSite = true; var arg_approved = true; - var arg_campaignIds = buildUnnamed2144(); - var arg_directorySiteIds = buildUnnamed2145(); - var arg_ids = buildUnnamed2146(); + var arg_campaignIds = buildUnnamed2667(); + var arg_directorySiteIds = buildUnnamed2668(); + var arg_ids = buildUnnamed2669(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21220,7 +22533,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21293,7 +22606,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21351,7 +22664,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21409,7 +22722,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21469,7 +22782,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21517,7 +22830,7 @@ var arg_profileId = "foo"; var arg_height = 42; var arg_iabStandard = true; - var arg_ids = buildUnnamed2147(); + var arg_ids = buildUnnamed2670(); var arg_width = 42; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -21526,7 +22839,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21588,7 +22901,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21648,7 +22961,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21694,7 +23007,7 @@ var mock = new HttpServerMock(); api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2148(); + var arg_ids = buildUnnamed2671(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -21707,7 +23020,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21771,7 +23084,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21829,7 +23142,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21887,7 +23200,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -21950,7 +23263,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22001,6 +23314,307 @@ }); + unittest.group("resource-TargetingTemplatesResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + 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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates/", 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("/targetingTemplates/")); + 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(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_request = buildTargetingTemplate(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetingTemplate.fromJson(json); + checkTargetingTemplate(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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", 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("/targetingTemplates")); + 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(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request, arg_profileId).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_profileId = "foo"; + var arg_advertiserId = "foo"; + var arg_ids = buildUnnamed2672(); + 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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", 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("/targetingTemplates")); + 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])); + } + } + unittest.expect(queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + 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(buildTargetingTemplatesListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId, advertiserId: arg_advertiserId, ids: arg_ids, maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder).then(unittest.expectAsync(((api.TargetingTemplatesListResponse response) { + checkTargetingTemplatesListResponse(response); + }))); + }); + + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_request = buildTargetingTemplate(); + var arg_profileId = "foo"; + var arg_id = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetingTemplate.fromJson(json); + checkTargetingTemplate(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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", 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("/targetingTemplates")); + 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])); + } + } + unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.patch(arg_request, arg_profileId, arg_id).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.TargetingTemplatesResourceApi res = new api.DfareportingApi(mock).targetingTemplates; + var arg_request = buildTargetingTemplate(); + var arg_profileId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TargetingTemplate.fromJson(json); + checkTargetingTemplate(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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/targetingTemplates", 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("/targetingTemplates")); + 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(buildTargetingTemplate()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_profileId).then(unittest.expectAsync(((api.TargetingTemplate response) { + checkTargetingTemplate(response); + }))); + }); + + }); + + unittest.group("resource-UserProfilesResourceApi", () { unittest.test("method--get", () { @@ -22014,7 +23628,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22062,7 +23676,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("userprofiles")); pathOffset += 12; @@ -22113,7 +23727,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22169,7 +23783,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22227,7 +23841,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22276,7 +23890,7 @@ var mock = new HttpServerMock(); api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed2149(); + var arg_ids = buildUnnamed2673(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -22284,7 +23898,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22343,7 +23957,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22398,7 +24012,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22458,7 +24072,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22505,7 +24119,7 @@ api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed2150(); + var arg_ids = buildUnnamed2674(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; @@ -22519,7 +24133,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22585,7 +24199,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22643,7 +24257,7 @@ var subPart; unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.3/")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("dfareporting/v2.7/")); pathOffset += 18; unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); pathOffset += 13; @@ -22687,5 +24301,119 @@ }); + unittest.group("resource-VideoFormatsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.VideoFormatsResourceApi res = new api.DfareportingApi(mock).videoFormats; + var arg_profileId = "foo"; + var arg_id = 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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/videoFormats/", 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("/videoFormats/")); + 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(buildVideoFormat()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_profileId, arg_id).then(unittest.expectAsync(((api.VideoFormat response) { + checkVideoFormat(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.VideoFormatsResourceApi res = new api.DfareportingApi(mock).videoFormats; + 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.7/")); + pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.equals("userprofiles/")); + pathOffset += 13; + index = path.indexOf("/videoFormats", 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("/videoFormats")); + 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(buildVideoFormatsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_profileId).then(unittest.expectAsync(((api.VideoFormatsListResponse response) { + checkVideoFormatsListResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index 6a1789b..619555e 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed478() { +buildUnnamed493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed478(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')); @@ -97,7 +97,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed478(); + o.labels = buildUnnamed493(); 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')); - checkUnnamed478(o.labels); + checkUnnamed493(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--; } -buildUnnamed479() { +buildUnnamed494() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed479(core.List<api.DirectoryListItems> o) { +checkUnnamed494(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 = buildUnnamed479(); + o.items = buildUnnamed494(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -156,20 +156,20 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed479(o.items); + checkUnnamed494(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed480() { +buildUnnamed495() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed480(core.List<core.String> o) { +checkUnnamed495(core.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 = buildUnnamed480(); + o.required = buildUnnamed495(); } buildCounterJsonSchemaAnnotations--; return o; @@ -189,45 +189,45 @@ checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed480(o.required); + checkUnnamed495(o.required); } buildCounterJsonSchemaAnnotations--; } -buildUnnamed481() { +buildUnnamed496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed481(core.List<core.String> o) { +checkUnnamed496(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed482() { +buildUnnamed497() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed482(core.List<core.String> o) { +checkUnnamed497(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed483() { +buildUnnamed498() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed483(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed498(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -254,14 +254,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed484() { +buildUnnamed499() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed484(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed499(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 = buildUnnamed484(); + o.map = buildUnnamed499(); } buildCounterJsonSchemaVariant--; return o; @@ -283,7 +283,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed484(o.map); + checkUnnamed499(o.map); } buildCounterJsonSchemaVariant--; } @@ -298,8 +298,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed481(); - o.enumDescriptions = buildUnnamed482(); + o.enum_ = buildUnnamed496(); + o.enumDescriptions = buildUnnamed497(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -307,7 +307,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed483(); + o.properties = buildUnnamed498(); 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')); - checkUnnamed481(o.enum_); - checkUnnamed482(o.enumDescriptions); + checkUnnamed496(o.enum_); + checkUnnamed497(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')); - checkUnnamed483(o.properties); + checkUnnamed498(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--; } -buildUnnamed485() { +buildUnnamed500() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed485(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { +checkUnnamed500(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 = buildUnnamed485(); + o.scopes = buildUnnamed500(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -391,7 +391,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed485(o.scopes); + checkUnnamed500(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -415,14 +415,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed486() { +buildUnnamed501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed486(core.List<core.String> o) { +checkUnnamed501(core.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--; } -buildUnnamed487() { +buildUnnamed502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed487(core.List<core.String> o) { +checkUnnamed502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed488() { +buildUnnamed503() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed488(core.Map<core.String, api.RestMethod> o) { +checkUnnamed503(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed489() { +buildUnnamed504() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed489(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed504(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); } -buildUnnamed490() { +buildUnnamed505() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed490(core.Map<core.String, api.RestResource> o) { +checkUnnamed505(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); } -buildUnnamed491() { +buildUnnamed506() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed491(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed506(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 = buildUnnamed486(); + o.features = buildUnnamed501(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed487(); - o.methods = buildUnnamed488(); + o.labels = buildUnnamed502(); + o.methods = buildUnnamed503(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed489(); + o.parameters = buildUnnamed504(); o.protocol = "foo"; - o.resources = buildUnnamed490(); + o.resources = buildUnnamed505(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed491(); + o.schemas = buildUnnamed506(); 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); - checkUnnamed486(o.features); + checkUnnamed501(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed487(o.labels); - checkUnnamed488(o.methods); + checkUnnamed502(o.labels); + checkUnnamed503(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')); - checkUnnamed489(o.parameters); + checkUnnamed504(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed490(o.resources); + checkUnnamed505(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed491(o.schemas); + checkUnnamed506(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--; } -buildUnnamed492() { +buildUnnamed507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed492(core.List<core.String> o) { +checkUnnamed507(core.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 = buildUnnamed492(); + o.accept = buildUnnamed507(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -683,34 +683,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed492(o.accept); + checkUnnamed507(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed493() { +buildUnnamed508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed493(core.List<core.String> o) { +checkUnnamed508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed494() { +buildUnnamed509() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed494(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed509(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -756,14 +756,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed495() { +buildUnnamed510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed495(core.List<core.String> o) { +checkUnnamed510(core.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 = buildUnnamed493(); - o.parameters = buildUnnamed494(); + o.parameterOrder = buildUnnamed508(); + o.parameters = buildUnnamed509(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed495(); + o.scopes = buildUnnamed510(); 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); - checkUnnamed493(o.parameterOrder); - checkUnnamed494(o.parameters); + checkUnnamed508(o.parameterOrder); + checkUnnamed509(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed495(o.scopes); + checkUnnamed510(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--; } -buildUnnamed496() { +buildUnnamed511() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed496(core.Map<core.String, api.RestMethod> o) { +checkUnnamed511(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed497() { +buildUnnamed512() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed497(core.Map<core.String, api.RestResource> o) { +checkUnnamed512(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 = buildUnnamed496(); - o.resources = buildUnnamed497(); + o.methods = buildUnnamed511(); + o.resources = buildUnnamed512(); } buildCounterRestResource--; return o; @@ -857,8 +857,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed496(o.methods); - checkUnnamed497(o.resources); + checkUnnamed511(o.methods); + checkUnnamed512(o.resources); } buildCounterRestResource--; }
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index 60c9f59..f4badd7 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); } -buildUnnamed903() { +buildUnnamed928() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed903(core.List<api.ResourceRecordSet> o) { +checkUnnamed928(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed904() { +buildUnnamed929() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed904(core.List<api.ResourceRecordSet> o) { +checkUnnamed929(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 = buildUnnamed903(); - o.deletions = buildUnnamed904(); + o.additions = buildUnnamed928(); + o.deletions = buildUnnamed929(); o.id = "foo"; o.kind = "foo"; o.startTime = "foo"; @@ -96,8 +96,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed903(o.additions); - checkUnnamed904(o.deletions); + checkUnnamed928(o.additions); + checkUnnamed929(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--; } -buildUnnamed905() { +buildUnnamed930() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed905(core.List<api.Change> o) { +checkUnnamed930(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 = buildUnnamed905(); + o.changes = buildUnnamed930(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -135,21 +135,21 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed905(o.changes); + checkUnnamed930(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangesListResponse--; } -buildUnnamed906() { +buildUnnamed931() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed906(core.List<core.String> o) { +checkUnnamed931(core.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 = buildUnnamed906(); + o.nameServers = buildUnnamed931(); } 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')); - checkUnnamed906(o.nameServers); + checkUnnamed931(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed907() { +buildUnnamed932() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed907(core.List<api.ManagedZone> o) { +checkUnnamed932(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 = buildUnnamed907(); + o.managedZones = buildUnnamed932(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -218,7 +218,7 @@ buildCounterManagedZonesListResponse++; if (buildCounterManagedZonesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed907(o.managedZones); + checkUnnamed932(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -280,14 +280,14 @@ buildCounterQuota--; } -buildUnnamed908() { +buildUnnamed933() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed908(core.List<core.String> o) { +checkUnnamed933(core.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 = buildUnnamed908(); + o.rrdatas = buildUnnamed933(); 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')); - checkUnnamed908(o.rrdatas); + checkUnnamed933(o.rrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed909() { +buildUnnamed934() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed909(core.List<api.ResourceRecordSet> o) { +checkUnnamed934(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 = buildUnnamed909(); + o.rrsets = buildUnnamed934(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -351,7 +351,7 @@ if (buildCounterResourceRecordSetsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed909(o.rrsets); + checkUnnamed934(o.rrsets); } buildCounterResourceRecordSetsListResponse--; }
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_test.dart index b150c71..6a1e0a0 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); } -buildUnnamed1329() { +buildUnnamed1350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1329(core.List<core.String> o) { +checkUnnamed1350(core.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 = buildUnnamed1329(); + o.filterIds = buildUnnamed1350(); o.filterType = "foo"; o.format = "foo"; } @@ -82,7 +82,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed1329(o.filterIds); + checkUnnamed1350(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -108,6 +108,82 @@ buildCounterDownloadLineItemsResponse--; } +buildUnnamed1351() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1351(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1352(core.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 buildCounterDownloadRequest = 0; +buildDownloadRequest() { + var o = new api.DownloadRequest(); + buildCounterDownloadRequest++; + if (buildCounterDownloadRequest < 3) { + o.fileTypes = buildUnnamed1351(); + o.filterIds = buildUnnamed1352(); + o.filterType = "foo"; + o.version = "foo"; + } + buildCounterDownloadRequest--; + return o; +} + +checkDownloadRequest(api.DownloadRequest o) { + buildCounterDownloadRequest++; + if (buildCounterDownloadRequest < 3) { + checkUnnamed1351(o.fileTypes); + checkUnnamed1352(o.filterIds); + unittest.expect(o.filterType, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterDownloadRequest--; +} + +core.int buildCounterDownloadResponse = 0; +buildDownloadResponse() { + var o = new api.DownloadResponse(); + buildCounterDownloadResponse++; + if (buildCounterDownloadResponse < 3) { + o.adGroups = "foo"; + o.ads = "foo"; + o.insertionOrders = "foo"; + o.lineItems = "foo"; + } + buildCounterDownloadResponse--; + return o; +} + +checkDownloadResponse(api.DownloadResponse o) { + buildCounterDownloadResponse++; + if (buildCounterDownloadResponse < 3) { + unittest.expect(o.adGroups, unittest.equals('foo')); + unittest.expect(o.ads, unittest.equals('foo')); + unittest.expect(o.insertionOrders, unittest.equals('foo')); + unittest.expect(o.lineItems, unittest.equals('foo')); + } + buildCounterDownloadResponse--; +} + core.int buildCounterFilterPair = 0; buildFilterPair() { var o = new api.FilterPair(); @@ -129,14 +205,14 @@ buildCounterFilterPair--; } -buildUnnamed1330() { +buildUnnamed1353() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed1330(core.List<api.Query> o) { +checkUnnamed1353(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -148,7 +224,7 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; - o.queries = buildUnnamed1330(); + o.queries = buildUnnamed1353(); } buildCounterListQueriesResponse--; return o; @@ -158,19 +234,19 @@ buildCounterListQueriesResponse++; if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1330(o.queries); + checkUnnamed1353(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed1331() { +buildUnnamed1354() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1331(core.List<api.Report> o) { +checkUnnamed1354(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -182,7 +258,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.kind = "foo"; - o.reports = buildUnnamed1331(); + o.reports = buildUnnamed1354(); } buildCounterListReportsResponse--; return o; @@ -192,112 +268,45 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1331(o.reports); + checkUnnamed1354(o.reports); } buildCounterListReportsResponse--; } -core.int buildCounterNote = 0; -buildNote() { - var o = new api.Note(); - buildCounterNote++; - if (buildCounterNote < 3) { - o.id = "foo"; - o.message = "foo"; - o.source = "foo"; - o.timestamp = "foo"; - o.username = "foo"; - } - buildCounterNote--; - return o; -} - -checkNote(api.Note o) { - buildCounterNote++; - if (buildCounterNote < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.message, unittest.equals('foo')); - unittest.expect(o.source, unittest.equals('foo')); - unittest.expect(o.timestamp, unittest.equals('foo')); - unittest.expect(o.username, unittest.equals('foo')); - } - buildCounterNote--; -} - -buildUnnamed1332() { - var o = new core.List<api.Note>(); - o.add(buildNote()); - o.add(buildNote()); - return o; -} - -checkUnnamed1332(core.List<api.Note> o) { - unittest.expect(o, unittest.hasLength(2)); - checkNote(o[0]); - checkNote(o[1]); -} - -core.int buildCounterNotifyProposalChangeRequest = 0; -buildNotifyProposalChangeRequest() { - var o = new api.NotifyProposalChangeRequest(); - buildCounterNotifyProposalChangeRequest++; - if (buildCounterNotifyProposalChangeRequest < 3) { - o.action = "foo"; - o.href = "foo"; - o.id = "foo"; - o.notes = buildUnnamed1332(); - o.token = "foo"; - } - buildCounterNotifyProposalChangeRequest--; - return o; -} - -checkNotifyProposalChangeRequest(api.NotifyProposalChangeRequest o) { - buildCounterNotifyProposalChangeRequest++; - if (buildCounterNotifyProposalChangeRequest < 3) { - unittest.expect(o.action, unittest.equals('foo')); - unittest.expect(o.href, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1332(o.notes); - unittest.expect(o.token, unittest.equals('foo')); - } - buildCounterNotifyProposalChangeRequest--; -} - -buildUnnamed1333() { +buildUnnamed1355() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed1333(core.List<api.FilterPair> o) { +checkUnnamed1355(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed1334() { +buildUnnamed1356() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1334(core.List<core.String> o) { +checkUnnamed1356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1335() { +buildUnnamed1357() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1335(core.List<core.String> o) { +checkUnnamed1357(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -308,10 +317,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed1333(); - o.groupBys = buildUnnamed1334(); + o.filters = buildUnnamed1355(); + o.groupBys = buildUnnamed1356(); o.includeInviteData = true; - o.metrics = buildUnnamed1335(); + o.metrics = buildUnnamed1357(); o.type = "foo"; } buildCounterParameters--; @@ -321,10 +330,10 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed1333(o.filters); - checkUnnamed1334(o.groupBys); + checkUnnamed1355(o.filters); + checkUnnamed1356(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed1335(o.metrics); + checkUnnamed1357(o.metrics); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; @@ -363,14 +372,14 @@ buildCounterQuery--; } -buildUnnamed1336() { +buildUnnamed1358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1336(core.List<core.String> o) { +checkUnnamed1358(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -390,7 +399,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed1336(); + o.shareEmailAddress = buildUnnamed1358(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -409,7 +418,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed1336(o.shareEmailAddress); + checkUnnamed1358(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -553,14 +562,14 @@ buildCounterReportStatus--; } -buildUnnamed1337() { +buildUnnamed1359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1337(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')); @@ -574,7 +583,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed1337(); + o.errors = buildUnnamed1359(); o.persisted = true; o.rowNumber = 42; } @@ -588,7 +597,7 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed1337(o.errors); + checkUnnamed1359(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } @@ -662,27 +671,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed1338() { +buildUnnamed1360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1338(core.List<core.String> o) { +checkUnnamed1360(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1339() { +buildUnnamed1361() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed1339(core.List<api.RowStatus> o) { +checkUnnamed1361(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -693,8 +702,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed1338(); - o.rowStatus = buildUnnamed1339(); + o.errors = buildUnnamed1360(); + o.rowStatus = buildUnnamed1361(); } buildCounterUploadStatus--; return o; @@ -703,8 +712,8 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed1338(o.errors); - checkUnnamed1339(o.rowStatus); + checkUnnamed1360(o.errors); + checkUnnamed1361(o.rowStatus); } buildCounterUploadStatus--; } @@ -729,6 +738,24 @@ }); + unittest.group("obj-schema-DownloadRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDownloadRequest(); + var od = new api.DownloadRequest.fromJson(o.toJson()); + checkDownloadRequest(od); + }); + }); + + + unittest.group("obj-schema-DownloadResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDownloadResponse(); + var od = new api.DownloadResponse.fromJson(o.toJson()); + checkDownloadResponse(od); + }); + }); + + unittest.group("obj-schema-FilterPair", () { unittest.test("to-json--from-json", () { var o = buildFilterPair(); @@ -756,24 +783,6 @@ }); - unittest.group("obj-schema-Note", () { - unittest.test("to-json--from-json", () { - var o = buildNote(); - var od = new api.Note.fromJson(o.toJson()); - checkNote(od); - }); - }); - - - unittest.group("obj-schema-NotifyProposalChangeRequest", () { - unittest.test("to-json--from-json", () { - var o = buildNotifyProposalChangeRequest(); - var od = new api.NotifyProposalChangeRequest.fromJson(o.toJson()); - checkNotifyProposalChangeRequest(od); - }); - }); - - unittest.group("obj-schema-Parameters", () { unittest.test("to-json--from-json", () { var o = buildParameters(); @@ -1304,15 +1313,15 @@ }); - unittest.group("resource-RubiconResourceApi", () { - unittest.test("method--notifyproposalchange", () { + unittest.group("resource-SdfResourceApi", () { + unittest.test("method--download", () { var mock = new HttpServerMock(); - api.RubiconResourceApi res = new api.DoubleclickbidmanagerApi(mock).rubicon; - var arg_request = buildNotifyProposalChangeRequest(); + api.SdfResourceApi res = new api.DoubleclickbidmanagerApi(mock).sdf; + var arg_request = buildDownloadRequest(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { - var obj = new api.NotifyProposalChangeRequest.fromJson(json); - checkNotifyProposalChangeRequest(obj); + var obj = new api.DownloadRequest.fromJson(json); + checkDownloadRequest(obj); var path = (req.url).path; var pathOffset = 0; @@ -1322,8 +1331,8 @@ pathOffset += 1; unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.equals("doubleclickbidmanager/v1/")); pathOffset += 25; - unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.equals("rubicon/notifyproposalchange")); - pathOffset += 28; + unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("sdf/download")); + pathOffset += 12; var query = (req.url).query; var queryOffset = 0; @@ -1346,10 +1355,12 @@ var h = { "content-type" : "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.JSON.encode(buildDownloadResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.notifyproposalchange(arg_request).then(unittest.expectAsync((_) {})); + res.download(arg_request).then(unittest.expectAsync(((api.DownloadResponse response) { + checkDownloadResponse(response); + }))); }); });
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index f669f5d..1c0693c 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -80,27 +80,27 @@ buildCounterAvailability--; } -buildUnnamed1429() { +buildUnnamed1439() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1429(core.List<api.CustomDimension> o) { +checkUnnamed1439(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed1430() { +buildUnnamed1440() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1430(core.List<api.CustomMetric> o) { +checkUnnamed1440(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 = buildUnnamed1429(); - o.customMetric = buildUnnamed1430(); + o.customDimension = buildUnnamed1439(); + o.customMetric = buildUnnamed1440(); 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')); - checkUnnamed1429(o.customDimension); - checkUnnamed1430(o.customMetric); + checkUnnamed1439(o.customDimension); + checkUnnamed1440(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--; } -buildUnnamed1431() { +buildUnnamed1441() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed1431(core.List<api.Conversion> o) { +checkUnnamed1441(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 = buildUnnamed1431(); + o.conversion = buildUnnamed1441(); o.kind = "foo"; } buildCounterConversionList--; @@ -217,7 +217,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed1431(o.conversion); + checkUnnamed1441(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -286,27 +286,27 @@ buildCounterReportFiles--; } -buildUnnamed1432() { +buildUnnamed1442() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed1432(core.List<api.ReportFiles> o) { +checkUnnamed1442(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed1433() { +buildUnnamed1443() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed1433(core.List<api.ReportRow> o) { +checkUnnamed1443(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 = buildUnnamed1432(); + o.files = buildUnnamed1442(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed1433(); + o.rows = buildUnnamed1443(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -334,13 +334,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed1432(o.files); + checkUnnamed1442(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)); - checkUnnamed1433(o.rows); + checkUnnamed1443(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -384,27 +384,27 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed1434() { +buildUnnamed1444() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed1434(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed1444(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed1435() { +buildUnnamed1445() { 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; } -checkUnnamed1435(core.List<core.Object> o) { +checkUnnamed1445(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 = buildUnnamed1435(); + o.values = buildUnnamed1445(); } buildCounterReportRequestFilters--; return o; @@ -428,19 +428,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed1435(o.values); + checkUnnamed1445(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed1436() { +buildUnnamed1446() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed1436(core.List<api.ReportRequestFilters> o) { +checkUnnamed1446(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -467,14 +467,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed1437() { +buildUnnamed1447() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed1437(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed1447(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 = buildUnnamed1434(); + o.columns = buildUnnamed1444(); o.downloadFormat = "foo"; - o.filters = buildUnnamed1436(); + o.filters = buildUnnamed1446(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed1437(); + o.orderBy = buildUnnamed1447(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -563,13 +563,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1434(o.columns); + checkUnnamed1444(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed1436(o.filters); + checkUnnamed1446(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed1437(o.orderBy); + checkUnnamed1447(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -617,14 +617,14 @@ buildCounterSavedColumn--; } -buildUnnamed1438() { +buildUnnamed1448() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed1438(core.List<api.SavedColumn> o) { +checkUnnamed1448(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 = buildUnnamed1438(); + o.items = buildUnnamed1448(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -645,20 +645,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed1438(o.items); + checkUnnamed1448(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed1439() { +buildUnnamed1449() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1439(core.List<api.Availability> o) { +checkUnnamed1449(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 = buildUnnamed1439(); + o.availabilities = buildUnnamed1449(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -678,19 +678,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed1439(o.availabilities); + checkUnnamed1449(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed1440() { +buildUnnamed1450() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed1440(core.List<api.Availability> o) { +checkUnnamed1450(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 = buildUnnamed1440(); + o.availabilities = buildUnnamed1450(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -710,7 +710,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed1440(o.availabilities); + checkUnnamed1450(o.availabilities); } buildCounterUpdateAvailabilityResponse--; }
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index d71513d..1367755 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); } -buildUnnamed822() { +buildUnnamed846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed822(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')); @@ -69,7 +69,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed822(); + o.additionalRoles = buildUnnamed846(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -79,20 +79,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed822(o.additionalRoles); + checkUnnamed846(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed823() { +buildUnnamed847() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed823(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed847(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 = buildUnnamed823(); + o.roleSets = buildUnnamed847(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -113,33 +113,33 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed823(o.roleSets); + checkUnnamed847(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed824() { +buildUnnamed848() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed824(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed848(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); } -buildUnnamed825() { +buildUnnamed849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed825(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')); @@ -151,7 +151,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed825(); + o.targets = buildUnnamed849(); } buildCounterAboutExportFormats--; return o; @@ -161,19 +161,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed825(o.targets); + checkUnnamed849(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed826() { +buildUnnamed850() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed826(core.List<api.AboutExportFormats> o) { +checkUnnamed850(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -200,40 +200,40 @@ buildCounterAboutFeatures--; } -buildUnnamed827() { +buildUnnamed851() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed827(core.List<api.AboutFeatures> o) { +checkUnnamed851(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed828() { +buildUnnamed852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed828(core.List<core.String> o) { +checkUnnamed852(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed829() { +buildUnnamed853() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed829(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')); @@ -245,7 +245,7 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed829(); + o.targets = buildUnnamed853(); } buildCounterAboutImportFormats--; return o; @@ -255,19 +255,19 @@ buildCounterAboutImportFormats++; if (buildCounterAboutImportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed829(o.targets); + checkUnnamed853(o.targets); } buildCounterAboutImportFormats--; } -buildUnnamed830() { +buildUnnamed854() { var o = new core.List<api.AboutImportFormats>(); o.add(buildAboutImportFormats()); o.add(buildAboutImportFormats()); return o; } -checkUnnamed830(core.List<api.AboutImportFormats> o) { +checkUnnamed854(core.List<api.AboutImportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutImportFormats(o[0]); checkAboutImportFormats(o[1]); @@ -294,14 +294,14 @@ buildCounterAboutMaxUploadSizes--; } -buildUnnamed831() { +buildUnnamed855() { var o = new core.List<api.AboutMaxUploadSizes>(); o.add(buildAboutMaxUploadSizes()); o.add(buildAboutMaxUploadSizes()); return o; } -checkUnnamed831(core.List<api.AboutMaxUploadSizes> o) { +checkUnnamed855(core.List<api.AboutMaxUploadSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutMaxUploadSizes(o[0]); checkAboutMaxUploadSizes(o[1]); @@ -328,14 +328,14 @@ buildCounterAboutQuotaBytesByService--; } -buildUnnamed832() { +buildUnnamed856() { var o = new core.List<api.AboutQuotaBytesByService>(); o.add(buildAboutQuotaBytesByService()); o.add(buildAboutQuotaBytesByService()); return o; } -checkUnnamed832(core.List<api.AboutQuotaBytesByService> o) { +checkUnnamed856(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 = buildUnnamed824(); + o.additionalRoleInfo = buildUnnamed848(); o.domainSharingPolicy = "foo"; o.etag = "foo"; - o.exportFormats = buildUnnamed826(); - o.features = buildUnnamed827(); - o.folderColorPalette = buildUnnamed828(); - o.importFormats = buildUnnamed830(); + o.exportFormats = buildUnnamed850(); + o.features = buildUnnamed851(); + o.folderColorPalette = buildUnnamed852(); + o.importFormats = buildUnnamed854(); o.isCurrentAppInstalled = true; o.kind = "foo"; o.languageCode = "foo"; o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed831(); + o.maxUploadSizes = buildUnnamed855(); o.name = "foo"; o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed832(); + o.quotaBytesByService = buildUnnamed856(); o.quotaBytesTotal = "foo"; o.quotaBytesUsed = "foo"; o.quotaBytesUsedAggregate = "foo"; @@ -378,21 +378,21 @@ checkAbout(api.About o) { buildCounterAbout++; if (buildCounterAbout < 3) { - checkUnnamed824(o.additionalRoleInfo); + checkUnnamed848(o.additionalRoleInfo); unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed826(o.exportFormats); - checkUnnamed827(o.features); - checkUnnamed828(o.folderColorPalette); - checkUnnamed830(o.importFormats); + checkUnnamed850(o.exportFormats); + checkUnnamed851(o.features); + checkUnnamed852(o.folderColorPalette); + checkUnnamed854(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')); - checkUnnamed831(o.maxUploadSizes); + checkUnnamed855(o.maxUploadSizes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed832(o.quotaBytesByService); + checkUnnamed856(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--; } -buildUnnamed833() { +buildUnnamed857() { var o = new core.List<api.AppIcons>(); o.add(buildAppIcons()); o.add(buildAppIcons()); return o; } -checkUnnamed833(core.List<api.AppIcons> o) { +checkUnnamed857(core.List<api.AppIcons> o) { unittest.expect(o, unittest.hasLength(2)); checkAppIcons(o[0]); checkAppIcons(o[1]); } -buildUnnamed834() { +buildUnnamed858() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed834(core.List<core.String> o) { +checkUnnamed858(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed835() { +buildUnnamed859() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed835(core.List<core.String> o) { +checkUnnamed859(core.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() { +buildUnnamed860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed836(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')); } -buildUnnamed837() { +buildUnnamed861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed837(core.List<core.String> o) { +checkUnnamed861(core.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 = buildUnnamed833(); + o.icons = buildUnnamed857(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -511,12 +511,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed834(); - o.primaryMimeTypes = buildUnnamed835(); + o.primaryFileExtensions = buildUnnamed858(); + o.primaryMimeTypes = buildUnnamed859(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed836(); - o.secondaryMimeTypes = buildUnnamed837(); + o.secondaryFileExtensions = buildUnnamed860(); + o.secondaryMimeTypes = buildUnnamed861(); 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); - checkUnnamed833(o.icons); + checkUnnamed857(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')); - checkUnnamed834(o.primaryFileExtensions); - checkUnnamed835(o.primaryMimeTypes); + checkUnnamed858(o.primaryFileExtensions); + checkUnnamed859(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed836(o.secondaryFileExtensions); - checkUnnamed837(o.secondaryMimeTypes); + checkUnnamed860(o.secondaryFileExtensions); + checkUnnamed861(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--; } -buildUnnamed838() { +buildUnnamed862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed838(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')); } -buildUnnamed839() { +buildUnnamed863() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed839(core.List<api.App> o) { +checkUnnamed863(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 = buildUnnamed838(); + o.defaultAppIds = buildUnnamed862(); o.etag = "foo"; - o.items = buildUnnamed839(); + o.items = buildUnnamed863(); o.kind = "foo"; o.selfLink = "foo"; } @@ -603,9 +603,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed838(o.defaultAppIds); + checkUnnamed862(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed839(o.items); + checkUnnamed863(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -643,14 +643,14 @@ buildCounterChange--; } -buildUnnamed840() { +buildUnnamed864() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed840(core.List<api.Change> o) { +checkUnnamed864(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 = buildUnnamed840(); + o.items = buildUnnamed864(); o.kind = "foo"; o.largestChangeId = "foo"; o.nextLink = "foo"; @@ -677,7 +677,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed840(o.items); + checkUnnamed864(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--; } -buildUnnamed841() { +buildUnnamed865() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed841(core.Map<core.String, core.String> o) { +checkUnnamed865(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 = buildUnnamed841(); + o.params = buildUnnamed865(); 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')); - checkUnnamed841(o.params); + checkUnnamed865(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--; } -buildUnnamed842() { +buildUnnamed866() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed842(core.List<api.ChildReference> o) { +checkUnnamed866(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 = buildUnnamed842(); + o.items = buildUnnamed866(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -770,7 +770,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed842(o.items); + checkUnnamed866(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--; } -buildUnnamed843() { +buildUnnamed867() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed843(core.List<api.CommentReply> o) { +checkUnnamed867(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 = buildUnnamed843(); + o.replies = buildUnnamed867(); 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"))); - checkUnnamed843(o.replies); + checkUnnamed867(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed844() { +buildUnnamed868() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed844(core.List<api.Comment> o) { +checkUnnamed868(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 = buildUnnamed844(); + o.items = buildUnnamed868(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -916,7 +916,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed844(o.items); + checkUnnamed868(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--; } -buildUnnamed845() { +buildUnnamed869() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed845(core.List<api.CommentReply> o) { +checkUnnamed869(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 = buildUnnamed845(); + o.items = buildUnnamed869(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -991,7 +991,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed845(o.items); + checkUnnamed869(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--; } -buildUnnamed846() { +buildUnnamed870() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed846(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')); @@ -1120,6 +1120,7 @@ buildCounterFileLabels++; if (buildCounterFileLabels < 3) { o.hidden = true; + o.modified = true; o.restricted = true; o.starred = true; o.trashed = true; @@ -1133,6 +1134,7 @@ buildCounterFileLabels++; if (buildCounterFileLabels < 3) { unittest.expect(o.hidden, unittest.isTrue); + unittest.expect(o.modified, unittest.isTrue); unittest.expect(o.restricted, unittest.isTrue); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.trashed, unittest.isTrue); @@ -1141,92 +1143,92 @@ buildCounterFileLabels--; } -buildUnnamed847() { +buildUnnamed871() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed847(core.Map<core.String, core.String> o) { +checkUnnamed871(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')); } -buildUnnamed848() { +buildUnnamed872() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed848(core.List<core.String> o) { +checkUnnamed872(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed849() { +buildUnnamed873() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed849(core.List<api.User> o) { +checkUnnamed873(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed850() { +buildUnnamed874() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed850(core.List<api.ParentReference> o) { +checkUnnamed874(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); } -buildUnnamed851() { +buildUnnamed875() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed851(core.List<api.Permission> o) { +checkUnnamed875(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed852() { +buildUnnamed876() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed852(core.List<api.Property> o) { +checkUnnamed876(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); } -buildUnnamed853() { +buildUnnamed877() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed853(core.List<core.String> o) { +checkUnnamed877(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1294,7 +1296,7 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed846(); + o.exportLinks = buildUnnamed870(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; @@ -1315,21 +1317,21 @@ 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 = buildUnnamed847(); + o.openWithLinks = buildUnnamed871(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed848(); - o.owners = buildUnnamed849(); - o.parents = buildUnnamed850(); - o.permissions = buildUnnamed851(); - o.properties = buildUnnamed852(); + o.ownerNames = buildUnnamed872(); + o.owners = buildUnnamed873(); + o.parents = buildUnnamed874(); + o.permissions = buildUnnamed875(); + o.properties = buildUnnamed876(); 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 = buildUnnamed853(); + o.spaces = buildUnnamed877(); o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; o.title = "foo"; @@ -1360,7 +1362,7 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed846(o.exportLinks); + checkUnnamed870(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); @@ -1381,21 +1383,21 @@ 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"))); - checkUnnamed847(o.openWithLinks); + checkUnnamed871(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed848(o.ownerNames); - checkUnnamed849(o.owners); - checkUnnamed850(o.parents); - checkUnnamed851(o.permissions); - checkUnnamed852(o.properties); + checkUnnamed872(o.ownerNames); + checkUnnamed873(o.owners); + checkUnnamed874(o.parents); + checkUnnamed875(o.permissions); + checkUnnamed876(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); - checkUnnamed853(o.spaces); + checkUnnamed877(o.spaces); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -1409,14 +1411,14 @@ buildCounterFile--; } -buildUnnamed854() { +buildUnnamed878() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed854(core.List<api.File> o) { +checkUnnamed878(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1428,7 +1430,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed854(); + o.items = buildUnnamed878(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1442,7 +1444,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed854(o.items); + checkUnnamed878(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1451,14 +1453,14 @@ buildCounterFileList--; } -buildUnnamed855() { +buildUnnamed879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed855(core.List<core.String> o) { +checkUnnamed879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1469,7 +1471,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed855(); + o.ids = buildUnnamed879(); o.kind = "foo"; o.space = "foo"; } @@ -1480,21 +1482,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed855(o.ids); + checkUnnamed879(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed856() { +buildUnnamed880() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed856(core.List<api.ParentReference> o) { +checkUnnamed880(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1506,7 +1508,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed856(); + o.items = buildUnnamed880(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1518,7 +1520,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed856(o.items); + checkUnnamed880(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1552,14 +1554,14 @@ buildCounterParentReference--; } -buildUnnamed857() { +buildUnnamed881() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed857(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')); @@ -1570,7 +1572,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed857(); + o.additionalRoles = buildUnnamed881(); o.authKey = "foo"; o.domain = "foo"; o.emailAddress = "foo"; @@ -1593,7 +1595,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed857(o.additionalRoles); + checkUnnamed881(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); unittest.expect(o.emailAddress, unittest.equals('foo')); @@ -1633,14 +1635,14 @@ buildCounterPermissionId--; } -buildUnnamed858() { +buildUnnamed882() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed858(core.List<api.Permission> o) { +checkUnnamed882(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1652,7 +1654,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed858(); + o.items = buildUnnamed882(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1664,7 +1666,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed858(o.items); + checkUnnamed882(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1700,14 +1702,14 @@ buildCounterProperty--; } -buildUnnamed859() { +buildUnnamed883() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed859(core.List<api.Property> o) { +checkUnnamed883(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1719,7 +1721,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed859(); + o.items = buildUnnamed883(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1731,21 +1733,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed859(o.items); + checkUnnamed883(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed860() { +buildUnnamed884() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed860(core.Map<core.String, core.String> o) { +checkUnnamed884(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')); @@ -1758,7 +1760,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed860(); + o.exportLinks = buildUnnamed884(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -1784,7 +1786,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed860(o.exportLinks); + checkUnnamed884(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1804,14 +1806,14 @@ buildCounterRevision--; } -buildUnnamed861() { +buildUnnamed885() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed861(core.List<api.Revision> o) { +checkUnnamed885(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1823,8 +1825,9 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed861(); + o.items = buildUnnamed885(); o.kind = "foo"; + o.nextPageToken = "foo"; o.selfLink = "foo"; } buildCounterRevisionList--; @@ -1835,8 +1838,9 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed861(o.items); + checkUnnamed885(o.items); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterRevisionList--; @@ -5701,6 +5705,8 @@ var mock = new HttpServerMock(); api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "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; @@ -5736,6 +5742,8 @@ 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 = { @@ -5744,7 +5752,7 @@ var resp = convert.JSON.encode(buildRevisionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId).then(unittest.expectAsync(((api.RevisionList response) { + res.list(arg_fileId, maxResults: arg_maxResults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) { checkRevisionList(response); }))); });
diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart index 5dd673f..9a1a6db 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); } -buildUnnamed1801() { +buildUnnamed1816() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1801(core.List<core.String> o) { +checkUnnamed1816(core.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() { +buildUnnamed1817() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1801(); - o["y"] = buildUnnamed1801(); + o["x"] = buildUnnamed1816(); + o["y"] = buildUnnamed1816(); return o; } -checkUnnamed1802(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1817(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1801(o["x"]); - checkUnnamed1801(o["y"]); + checkUnnamed1816(o["x"]); + checkUnnamed1816(o["y"]); } -buildUnnamed1803() { +buildUnnamed1818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1803(core.List<core.String> o) { +checkUnnamed1818(core.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() { +buildUnnamed1819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1804(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')); } -buildUnnamed1805() { +buildUnnamed1820() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed1804(); - o["y"] = buildUnnamed1804(); + o["x"] = buildUnnamed1819(); + o["y"] = buildUnnamed1819(); return o; } -checkUnnamed1805(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed1820(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1804(o["x"]); - checkUnnamed1804(o["y"]); + checkUnnamed1819(o["x"]); + checkUnnamed1819(o["y"]); } -buildUnnamed1806() { +buildUnnamed1821() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1806(core.Map<core.String, core.String> o) { +checkUnnamed1821(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 = buildUnnamed1802(); - o.folderColorPalette = buildUnnamed1803(); - o.importFormats = buildUnnamed1805(); + o.exportFormats = buildUnnamed1817(); + o.folderColorPalette = buildUnnamed1818(); + o.importFormats = buildUnnamed1820(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed1806(); + o.maxImportSizes = buildUnnamed1821(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); o.user = buildUser(); @@ -177,11 +177,11 @@ buildCounterAbout++; if (buildCounterAbout < 3) { unittest.expect(o.appInstalled, unittest.isTrue); - checkUnnamed1802(o.exportFormats); - checkUnnamed1803(o.folderColorPalette); - checkUnnamed1805(o.importFormats); + checkUnnamed1817(o.exportFormats); + checkUnnamed1818(o.folderColorPalette); + checkUnnamed1820(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1806(o.maxImportSizes); + checkUnnamed1821(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); checkUser(o.user); @@ -216,14 +216,14 @@ buildCounterChange--; } -buildUnnamed1807() { +buildUnnamed1822() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed1807(core.List<api.Change> o) { +checkUnnamed1822(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 = buildUnnamed1807(); + o.changes = buildUnnamed1822(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -246,7 +246,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed1807(o.changes); + checkUnnamed1822(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--; } -buildUnnamed1808() { +buildUnnamed1823() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1808(core.Map<core.String, core.String> o) { +checkUnnamed1823(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 = buildUnnamed1808(); + o.params = buildUnnamed1823(); 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')); - checkUnnamed1808(o.params); + checkUnnamed1823(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--; } -buildUnnamed1809() { +buildUnnamed1824() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1809(core.List<api.Reply> o) { +checkUnnamed1824(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 = buildUnnamed1809(); + o.replies = buildUnnamed1824(); 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); - checkUnnamed1809(o.replies); + checkUnnamed1824(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed1810() { +buildUnnamed1825() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1810(core.List<api.Comment> o) { +checkUnnamed1825(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 = buildUnnamed1810(); + o.comments = buildUnnamed1825(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -408,21 +408,21 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed1810(o.comments); + checkUnnamed1825(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } -buildUnnamed1811() { +buildUnnamed1826() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1811(core.Map<core.String, core.String> o) { +checkUnnamed1826(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--; } -buildUnnamed1812() { +buildUnnamed1827() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1812(core.List<api.User> o) { +checkUnnamed1827(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed1813() { +buildUnnamed1828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1813(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')); } -buildUnnamed1814() { +buildUnnamed1829() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1814(core.List<api.Permission> o) { +checkUnnamed1829(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1815() { +buildUnnamed1830() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1815(core.Map<core.String, core.String> o) { +checkUnnamed1830(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')); } -buildUnnamed1816() { +buildUnnamed1831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1816(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')); @@ -672,7 +672,7 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed1811(); + o.appProperties = buildUnnamed1826(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -690,21 +690,22 @@ o.lastModifyingUser = buildUser(); o.md5Checksum = "foo"; o.mimeType = "foo"; + o.modifiedByMe = true; o.modifiedByMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed1812(); - o.parents = buildUnnamed1813(); - o.permissions = buildUnnamed1814(); - o.properties = buildUnnamed1815(); + o.owners = buildUnnamed1827(); + o.parents = buildUnnamed1828(); + o.permissions = buildUnnamed1829(); + o.properties = buildUnnamed1830(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.size = "foo"; - o.spaces = buildUnnamed1816(); + o.spaces = buildUnnamed1831(); o.starred = true; o.thumbnailLink = "foo"; o.trashed = true; @@ -724,7 +725,7 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed1811(o.appProperties); + checkUnnamed1826(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -742,21 +743,22 @@ checkUser(o.lastModifyingUser); unittest.expect(o.md5Checksum, unittest.equals('foo')); unittest.expect(o.mimeType, unittest.equals('foo')); + unittest.expect(o.modifiedByMe, unittest.isTrue); unittest.expect(o.modifiedByMeTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed1812(o.owners); - checkUnnamed1813(o.parents); - checkUnnamed1814(o.permissions); - checkUnnamed1815(o.properties); + checkUnnamed1827(o.owners); + checkUnnamed1828(o.parents); + checkUnnamed1829(o.permissions); + checkUnnamed1830(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')); - checkUnnamed1816(o.spaces); + checkUnnamed1831(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.thumbnailLink, unittest.equals('foo')); unittest.expect(o.trashed, unittest.isTrue); @@ -772,14 +774,14 @@ buildCounterFile--; } -buildUnnamed1817() { +buildUnnamed1832() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1817(core.List<api.File> o) { +checkUnnamed1832(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -790,7 +792,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed1817(); + o.files = buildUnnamed1832(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -801,21 +803,21 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed1817(o.files); + checkUnnamed1832(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFileList--; } -buildUnnamed1818() { +buildUnnamed1833() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1818(core.List<core.String> o) { +checkUnnamed1833(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -826,7 +828,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed1818(); + o.ids = buildUnnamed1833(); o.kind = "foo"; o.space = "foo"; } @@ -837,7 +839,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed1818(o.ids); + checkUnnamed1833(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -881,14 +883,14 @@ buildCounterPermission--; } -buildUnnamed1819() { +buildUnnamed1834() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1819(core.List<api.Permission> o) { +checkUnnamed1834(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -900,7 +902,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.kind = "foo"; - o.permissions = buildUnnamed1819(); + o.permissions = buildUnnamed1834(); } buildCounterPermissionList--; return o; @@ -910,7 +912,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1819(o.permissions); + checkUnnamed1834(o.permissions); } buildCounterPermissionList--; } @@ -950,14 +952,14 @@ buildCounterReply--; } -buildUnnamed1820() { +buildUnnamed1835() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed1820(core.List<api.Reply> o) { +checkUnnamed1835(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -970,7 +972,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed1820(); + o.replies = buildUnnamed1835(); } buildCounterReplyList--; return o; @@ -981,7 +983,7 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1820(o.replies); + checkUnnamed1835(o.replies); } buildCounterReplyList--; } @@ -1027,14 +1029,14 @@ buildCounterRevision--; } -buildUnnamed1821() { +buildUnnamed1836() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed1821(core.List<api.Revision> o) { +checkUnnamed1836(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1046,7 +1048,8 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.kind = "foo"; - o.revisions = buildUnnamed1821(); + o.nextPageToken = "foo"; + o.revisions = buildUnnamed1836(); } buildCounterRevisionList--; return o; @@ -1056,7 +1059,8 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1821(o.revisions); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1836(o.revisions); } buildCounterRevisionList--; } @@ -3208,6 +3212,8 @@ var mock = new HttpServerMock(); api.RevisionsResourceApi res = new api.DriveApi(mock).revisions; var arg_fileId = "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; @@ -3243,6 +3249,8 @@ 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 = { @@ -3251,7 +3259,7 @@ var resp = convert.JSON.encode(buildRevisionList()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_fileId).then(unittest.expectAsync(((api.RevisionList response) { + res.list(arg_fileId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.RevisionList response) { checkRevisionList(response); }))); });
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart new file mode 100644 index 0000000..f0023db --- /dev/null +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -0,0 +1,489 @@ +library googleapis.firebasedynamiclinks.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/firebasedynamiclinks/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 buildCounterAnalyticsInfo = 0; +buildAnalyticsInfo() { + var o = new api.AnalyticsInfo(); + buildCounterAnalyticsInfo++; + if (buildCounterAnalyticsInfo < 3) { + o.googlePlayAnalytics = buildGooglePlayAnalytics(); + o.itunesConnectAnalytics = buildITunesConnectAnalytics(); + } + buildCounterAnalyticsInfo--; + return o; +} + +checkAnalyticsInfo(api.AnalyticsInfo o) { + buildCounterAnalyticsInfo++; + if (buildCounterAnalyticsInfo < 3) { + checkGooglePlayAnalytics(o.googlePlayAnalytics); + checkITunesConnectAnalytics(o.itunesConnectAnalytics); + } + buildCounterAnalyticsInfo--; +} + +core.int buildCounterAndroidInfo = 0; +buildAndroidInfo() { + var o = new api.AndroidInfo(); + buildCounterAndroidInfo++; + if (buildCounterAndroidInfo < 3) { + o.androidFallbackLink = "foo"; + o.androidLink = "foo"; + o.androidMinPackageVersionCode = "foo"; + o.androidPackageName = "foo"; + } + buildCounterAndroidInfo--; + return o; +} + +checkAndroidInfo(api.AndroidInfo o) { + buildCounterAndroidInfo++; + if (buildCounterAndroidInfo < 3) { + unittest.expect(o.androidFallbackLink, unittest.equals('foo')); + unittest.expect(o.androidLink, unittest.equals('foo')); + unittest.expect(o.androidMinPackageVersionCode, unittest.equals('foo')); + unittest.expect(o.androidPackageName, unittest.equals('foo')); + } + buildCounterAndroidInfo--; +} + +core.int buildCounterCreateShortDynamicLinkRequest = 0; +buildCreateShortDynamicLinkRequest() { + var o = new api.CreateShortDynamicLinkRequest(); + buildCounterCreateShortDynamicLinkRequest++; + if (buildCounterCreateShortDynamicLinkRequest < 3) { + o.dynamicLinkInfo = buildDynamicLinkInfo(); + o.longDynamicLink = "foo"; + o.suffix = buildSuffix(); + } + buildCounterCreateShortDynamicLinkRequest--; + return o; +} + +checkCreateShortDynamicLinkRequest(api.CreateShortDynamicLinkRequest o) { + buildCounterCreateShortDynamicLinkRequest++; + if (buildCounterCreateShortDynamicLinkRequest < 3) { + checkDynamicLinkInfo(o.dynamicLinkInfo); + unittest.expect(o.longDynamicLink, unittest.equals('foo')); + checkSuffix(o.suffix); + } + buildCounterCreateShortDynamicLinkRequest--; +} + +buildUnnamed2171() { + var o = new core.List<api.DynamicLinkWarning>(); + o.add(buildDynamicLinkWarning()); + o.add(buildDynamicLinkWarning()); + return o; +} + +checkUnnamed2171(core.List<api.DynamicLinkWarning> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDynamicLinkWarning(o[0]); + checkDynamicLinkWarning(o[1]); +} + +core.int buildCounterCreateShortDynamicLinkResponse = 0; +buildCreateShortDynamicLinkResponse() { + var o = new api.CreateShortDynamicLinkResponse(); + buildCounterCreateShortDynamicLinkResponse++; + if (buildCounterCreateShortDynamicLinkResponse < 3) { + o.previewLink = "foo"; + o.shortLink = "foo"; + o.warning = buildUnnamed2171(); + } + buildCounterCreateShortDynamicLinkResponse--; + return o; +} + +checkCreateShortDynamicLinkResponse(api.CreateShortDynamicLinkResponse o) { + buildCounterCreateShortDynamicLinkResponse++; + if (buildCounterCreateShortDynamicLinkResponse < 3) { + unittest.expect(o.previewLink, unittest.equals('foo')); + unittest.expect(o.shortLink, unittest.equals('foo')); + checkUnnamed2171(o.warning); + } + buildCounterCreateShortDynamicLinkResponse--; +} + +core.int buildCounterDynamicLinkInfo = 0; +buildDynamicLinkInfo() { + var o = new api.DynamicLinkInfo(); + buildCounterDynamicLinkInfo++; + if (buildCounterDynamicLinkInfo < 3) { + o.analyticsInfo = buildAnalyticsInfo(); + o.androidInfo = buildAndroidInfo(); + o.dynamicLinkDomain = "foo"; + o.iosInfo = buildIosInfo(); + o.isAd = true; + o.link = "foo"; + o.socialMetaTagInfo = buildSocialMetaTagInfo(); + } + buildCounterDynamicLinkInfo--; + return o; +} + +checkDynamicLinkInfo(api.DynamicLinkInfo o) { + buildCounterDynamicLinkInfo++; + if (buildCounterDynamicLinkInfo < 3) { + checkAnalyticsInfo(o.analyticsInfo); + 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); + } + buildCounterDynamicLinkInfo--; +} + +core.int buildCounterDynamicLinkWarning = 0; +buildDynamicLinkWarning() { + var o = new api.DynamicLinkWarning(); + buildCounterDynamicLinkWarning++; + if (buildCounterDynamicLinkWarning < 3) { + o.warningCode = "foo"; + o.warningMessage = "foo"; + } + buildCounterDynamicLinkWarning--; + return o; +} + +checkDynamicLinkWarning(api.DynamicLinkWarning o) { + buildCounterDynamicLinkWarning++; + if (buildCounterDynamicLinkWarning < 3) { + unittest.expect(o.warningCode, unittest.equals('foo')); + unittest.expect(o.warningMessage, unittest.equals('foo')); + } + buildCounterDynamicLinkWarning--; +} + +core.int buildCounterGooglePlayAnalytics = 0; +buildGooglePlayAnalytics() { + var o = new api.GooglePlayAnalytics(); + buildCounterGooglePlayAnalytics++; + if (buildCounterGooglePlayAnalytics < 3) { + o.gclid = "foo"; + o.utmCampaign = "foo"; + o.utmContent = "foo"; + o.utmMedium = "foo"; + o.utmSource = "foo"; + o.utmTerm = "foo"; + } + buildCounterGooglePlayAnalytics--; + return o; +} + +checkGooglePlayAnalytics(api.GooglePlayAnalytics o) { + buildCounterGooglePlayAnalytics++; + if (buildCounterGooglePlayAnalytics < 3) { + unittest.expect(o.gclid, unittest.equals('foo')); + unittest.expect(o.utmCampaign, unittest.equals('foo')); + unittest.expect(o.utmContent, unittest.equals('foo')); + unittest.expect(o.utmMedium, unittest.equals('foo')); + unittest.expect(o.utmSource, unittest.equals('foo')); + unittest.expect(o.utmTerm, unittest.equals('foo')); + } + buildCounterGooglePlayAnalytics--; +} + +core.int buildCounterITunesConnectAnalytics = 0; +buildITunesConnectAnalytics() { + var o = new api.ITunesConnectAnalytics(); + buildCounterITunesConnectAnalytics++; + if (buildCounterITunesConnectAnalytics < 3) { + o.at = "foo"; + o.ct = "foo"; + o.mt = "foo"; + o.pt = "foo"; + } + buildCounterITunesConnectAnalytics--; + return o; +} + +checkITunesConnectAnalytics(api.ITunesConnectAnalytics o) { + buildCounterITunesConnectAnalytics++; + if (buildCounterITunesConnectAnalytics < 3) { + unittest.expect(o.at, unittest.equals('foo')); + unittest.expect(o.ct, unittest.equals('foo')); + unittest.expect(o.mt, unittest.equals('foo')); + unittest.expect(o.pt, unittest.equals('foo')); + } + buildCounterITunesConnectAnalytics--; +} + +core.int buildCounterIosInfo = 0; +buildIosInfo() { + var o = new api.IosInfo(); + buildCounterIosInfo++; + if (buildCounterIosInfo < 3) { + o.iosAppStoreId = "foo"; + o.iosBundleId = "foo"; + o.iosCustomScheme = "foo"; + o.iosFallbackLink = "foo"; + o.iosIpadBundleId = "foo"; + o.iosIpadFallbackLink = "foo"; + } + buildCounterIosInfo--; + return o; +} + +checkIosInfo(api.IosInfo o) { + buildCounterIosInfo++; + if (buildCounterIosInfo < 3) { + unittest.expect(o.iosAppStoreId, unittest.equals('foo')); + unittest.expect(o.iosBundleId, unittest.equals('foo')); + unittest.expect(o.iosCustomScheme, unittest.equals('foo')); + unittest.expect(o.iosFallbackLink, unittest.equals('foo')); + unittest.expect(o.iosIpadBundleId, unittest.equals('foo')); + unittest.expect(o.iosIpadFallbackLink, unittest.equals('foo')); + } + buildCounterIosInfo--; +} + +core.int buildCounterSocialMetaTagInfo = 0; +buildSocialMetaTagInfo() { + var o = new api.SocialMetaTagInfo(); + buildCounterSocialMetaTagInfo++; + if (buildCounterSocialMetaTagInfo < 3) { + o.socialDescription = "foo"; + o.socialImageLink = "foo"; + o.socialTitle = "foo"; + } + buildCounterSocialMetaTagInfo--; + return o; +} + +checkSocialMetaTagInfo(api.SocialMetaTagInfo o) { + buildCounterSocialMetaTagInfo++; + if (buildCounterSocialMetaTagInfo < 3) { + unittest.expect(o.socialDescription, unittest.equals('foo')); + unittest.expect(o.socialImageLink, unittest.equals('foo')); + unittest.expect(o.socialTitle, unittest.equals('foo')); + } + buildCounterSocialMetaTagInfo--; +} + +core.int buildCounterSuffix = 0; +buildSuffix() { + var o = new api.Suffix(); + buildCounterSuffix++; + if (buildCounterSuffix < 3) { + o.option = "foo"; + } + buildCounterSuffix--; + return o; +} + +checkSuffix(api.Suffix o) { + buildCounterSuffix++; + if (buildCounterSuffix < 3) { + unittest.expect(o.option, unittest.equals('foo')); + } + buildCounterSuffix--; +} + + +main() { + unittest.group("obj-schema-AnalyticsInfo", () { + unittest.test("to-json--from-json", () { + var o = buildAnalyticsInfo(); + var od = new api.AnalyticsInfo.fromJson(o.toJson()); + checkAnalyticsInfo(od); + }); + }); + + + unittest.group("obj-schema-AndroidInfo", () { + unittest.test("to-json--from-json", () { + var o = buildAndroidInfo(); + var od = new api.AndroidInfo.fromJson(o.toJson()); + checkAndroidInfo(od); + }); + }); + + + unittest.group("obj-schema-CreateShortDynamicLinkRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCreateShortDynamicLinkRequest(); + var od = new api.CreateShortDynamicLinkRequest.fromJson(o.toJson()); + checkCreateShortDynamicLinkRequest(od); + }); + }); + + + unittest.group("obj-schema-CreateShortDynamicLinkResponse", () { + unittest.test("to-json--from-json", () { + var o = buildCreateShortDynamicLinkResponse(); + var od = new api.CreateShortDynamicLinkResponse.fromJson(o.toJson()); + checkCreateShortDynamicLinkResponse(od); + }); + }); + + + unittest.group("obj-schema-DynamicLinkInfo", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicLinkInfo(); + var od = new api.DynamicLinkInfo.fromJson(o.toJson()); + checkDynamicLinkInfo(od); + }); + }); + + + unittest.group("obj-schema-DynamicLinkWarning", () { + unittest.test("to-json--from-json", () { + var o = buildDynamicLinkWarning(); + var od = new api.DynamicLinkWarning.fromJson(o.toJson()); + checkDynamicLinkWarning(od); + }); + }); + + + unittest.group("obj-schema-GooglePlayAnalytics", () { + unittest.test("to-json--from-json", () { + var o = buildGooglePlayAnalytics(); + var od = new api.GooglePlayAnalytics.fromJson(o.toJson()); + checkGooglePlayAnalytics(od); + }); + }); + + + unittest.group("obj-schema-ITunesConnectAnalytics", () { + unittest.test("to-json--from-json", () { + var o = buildITunesConnectAnalytics(); + var od = new api.ITunesConnectAnalytics.fromJson(o.toJson()); + checkITunesConnectAnalytics(od); + }); + }); + + + unittest.group("obj-schema-IosInfo", () { + unittest.test("to-json--from-json", () { + var o = buildIosInfo(); + var od = new api.IosInfo.fromJson(o.toJson()); + checkIosInfo(od); + }); + }); + + + unittest.group("obj-schema-SocialMetaTagInfo", () { + unittest.test("to-json--from-json", () { + var o = buildSocialMetaTagInfo(); + var od = new api.SocialMetaTagInfo.fromJson(o.toJson()); + checkSocialMetaTagInfo(od); + }); + }); + + + unittest.group("obj-schema-Suffix", () { + unittest.test("to-json--from-json", () { + var o = buildSuffix(); + var od = new api.Suffix.fromJson(o.toJson()); + checkSuffix(od); + }); + }); + + + unittest.group("resource-ShortLinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ShortLinksResourceApi res = new api.FirebasedynamiclinksApi(mock).shortLinks; + var arg_request = buildCreateShortDynamicLinkRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.CreateShortDynamicLinkRequest.fromJson(json); + checkCreateShortDynamicLinkRequest(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 + 13), unittest.equals("v1/shortLinks")); + 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(buildCreateShortDynamicLinkResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request).then(unittest.expectAsync(((api.CreateShortDynamicLinkResponse response) { + checkCreateShortDynamicLinkResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index c56dad2..7f1e583 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -114,14 +114,14 @@ buildCounterIssue--; } -buildUnnamed3454() { +buildUnnamed3268() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed3454(core.List<api.Release> o) { +checkUnnamed3268(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 = buildUnnamed3454(); + o.releases = buildUnnamed3268(); } buildCounterListReleasesResponse--; return o; @@ -143,19 +143,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3454(o.releases); + checkUnnamed3268(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed3455() { +buildUnnamed3269() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed3455(core.List<api.Ruleset> o) { +checkUnnamed3269(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 = buildUnnamed3455(); + o.rulesets = buildUnnamed3269(); } buildCounterListRulesetsResponse--; return o; @@ -177,7 +177,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3455(o.rulesets); + checkUnnamed3269(o.rulesets); } buildCounterListRulesetsResponse--; } @@ -230,14 +230,14 @@ buildCounterRuleset--; } -buildUnnamed3456() { +buildUnnamed3270() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3456(core.List<api.File> o) { +checkUnnamed3270(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 = buildUnnamed3456(); + o.files = buildUnnamed3270(); } buildCounterSource--; return o; @@ -257,7 +257,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3456(o.files); + checkUnnamed3270(o.files); } buildCounterSource--; } @@ -304,14 +304,14 @@ buildCounterTestRulesetRequest--; } -buildUnnamed3457() { +buildUnnamed3271() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3457(core.List<api.Issue> o) { +checkUnnamed3271(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 = buildUnnamed3457(); + o.issues = buildUnnamed3271(); } buildCounterTestRulesetResponse--; return o; @@ -331,7 +331,7 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed3457(o.issues); + checkUnnamed3271(o.issues); } buildCounterTestRulesetResponse--; }
diff --git a/generated/googleapis/test/fitness/v1_test.dart b/generated/googleapis/test/fitness/v1_test.dart index 985c468..bc1c0d4 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); } -buildUnnamed2244() { +buildUnnamed1998() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed2244(core.List<api.Dataset> o) { +checkUnnamed1998(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 = buildUnnamed2244(); + o.dataset = buildUnnamed1998(); o.endTimeMillis = "foo"; o.session = buildSession(); o.startTimeMillis = "foo"; @@ -84,7 +84,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { unittest.expect(o.activity, unittest.equals(42)); - checkUnnamed2244(o.dataset); + checkUnnamed1998(o.dataset); unittest.expect(o.endTimeMillis, unittest.equals('foo')); checkSession(o.session); unittest.expect(o.startTimeMillis, unittest.equals('foo')); @@ -114,27 +114,27 @@ buildCounterAggregateBy--; } -buildUnnamed2245() { +buildUnnamed1999() { var o = new core.List<api.AggregateBy>(); o.add(buildAggregateBy()); o.add(buildAggregateBy()); return o; } -checkUnnamed2245(core.List<api.AggregateBy> o) { +checkUnnamed1999(core.List<api.AggregateBy> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBy(o[0]); checkAggregateBy(o[1]); } -buildUnnamed2246() { +buildUnnamed2000() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2246(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')); @@ -145,13 +145,13 @@ var o = new api.AggregateRequest(); buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - o.aggregateBy = buildUnnamed2245(); + o.aggregateBy = buildUnnamed1999(); o.bucketByActivitySegment = buildBucketByActivity(); o.bucketByActivityType = buildBucketByActivity(); o.bucketBySession = buildBucketBySession(); o.bucketByTime = buildBucketByTime(); o.endTimeMillis = "foo"; - o.filteredDataQualityStandard = buildUnnamed2246(); + o.filteredDataQualityStandard = buildUnnamed2000(); o.startTimeMillis = "foo"; } buildCounterAggregateRequest--; @@ -161,26 +161,26 @@ checkAggregateRequest(api.AggregateRequest o) { buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - checkUnnamed2245(o.aggregateBy); + checkUnnamed1999(o.aggregateBy); checkBucketByActivity(o.bucketByActivitySegment); checkBucketByActivity(o.bucketByActivityType); checkBucketBySession(o.bucketBySession); checkBucketByTime(o.bucketByTime); unittest.expect(o.endTimeMillis, unittest.equals('foo')); - checkUnnamed2246(o.filteredDataQualityStandard); + checkUnnamed2000(o.filteredDataQualityStandard); unittest.expect(o.startTimeMillis, unittest.equals('foo')); } buildCounterAggregateRequest--; } -buildUnnamed2247() { +buildUnnamed2001() { var o = new core.List<api.AggregateBucket>(); o.add(buildAggregateBucket()); o.add(buildAggregateBucket()); return o; } -checkUnnamed2247(core.List<api.AggregateBucket> o) { +checkUnnamed2001(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 = buildUnnamed2247(); + o.bucket = buildUnnamed2001(); } buildCounterAggregateResponse--; return o; @@ -200,7 +200,7 @@ checkAggregateResponse(api.AggregateResponse o) { buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - checkUnnamed2247(o.bucket); + checkUnnamed2001(o.bucket); } buildCounterAggregateResponse--; } @@ -314,14 +314,14 @@ buildCounterBucketByTimePeriod--; } -buildUnnamed2248() { +buildUnnamed2002() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed2248(core.List<api.Value> o) { +checkUnnamed2002(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 = buildUnnamed2248(); + o.value = buildUnnamed2002(); } 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')); - checkUnnamed2248(o.value); + checkUnnamed2002(o.value); } buildCounterDataPoint--; } -buildUnnamed2249() { +buildUnnamed2003() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2249(core.List<core.String> o) { +checkUnnamed2003(core.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 = buildUnnamed2249(); + o.dataQualityStandard = buildUnnamed2003(); o.dataStreamId = "foo"; o.dataStreamName = "foo"; o.dataType = buildDataType(); @@ -395,7 +395,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { checkApplication(o.application); - checkUnnamed2249(o.dataQualityStandard); + checkUnnamed2003(o.dataQualityStandard); unittest.expect(o.dataStreamId, unittest.equals('foo')); unittest.expect(o.dataStreamName, unittest.equals('foo')); checkDataType(o.dataType); @@ -406,14 +406,14 @@ buildCounterDataSource--; } -buildUnnamed2250() { +buildUnnamed2004() { var o = new core.List<api.DataTypeField>(); o.add(buildDataTypeField()); o.add(buildDataTypeField()); return o; } -checkUnnamed2250(core.List<api.DataTypeField> o) { +checkUnnamed2004(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 = buildUnnamed2250(); + o.field = buildUnnamed2004(); o.name = "foo"; } buildCounterDataType--; @@ -434,7 +434,7 @@ checkDataType(api.DataType o) { buildCounterDataType++; if (buildCounterDataType < 3) { - checkUnnamed2250(o.field); + checkUnnamed2004(o.field); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDataType--; @@ -463,14 +463,14 @@ buildCounterDataTypeField--; } -buildUnnamed2251() { +buildUnnamed2005() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed2251(core.List<api.DataPoint> o) { +checkUnnamed2005(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 = buildUnnamed2251(); + o.point = buildUnnamed2005(); } 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')); - checkUnnamed2251(o.point); + checkUnnamed2005(o.point); } buildCounterDataset--; } @@ -530,14 +530,14 @@ buildCounterDevice--; } -buildUnnamed2252() { +buildUnnamed2006() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed2252(core.List<api.DataSource> o) { +checkUnnamed2006(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 = buildUnnamed2252(); + o.dataSource = buildUnnamed2006(); } buildCounterListDataSourcesResponse--; return o; @@ -557,32 +557,32 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed2252(o.dataSource); + checkUnnamed2006(o.dataSource); } buildCounterListDataSourcesResponse--; } -buildUnnamed2253() { +buildUnnamed2007() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed2253(core.List<api.Session> o) { +checkUnnamed2007(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); } -buildUnnamed2254() { +buildUnnamed2008() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed2254(core.List<api.Session> o) { +checkUnnamed2008(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -593,9 +593,10 @@ var o = new api.ListSessionsResponse(); buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - o.deletedSession = buildUnnamed2253(); + o.deletedSession = buildUnnamed2007(); + o.hasMoreData = true; o.nextPageToken = "foo"; - o.session = buildUnnamed2254(); + o.session = buildUnnamed2008(); } buildCounterListSessionsResponse--; return o; @@ -604,9 +605,10 @@ checkListSessionsResponse(api.ListSessionsResponse o) { buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - checkUnnamed2253(o.deletedSession); + checkUnnamed2007(o.deletedSession); + unittest.expect(o.hasMoreData, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2254(o.session); + checkUnnamed2008(o.session); } buildCounterListSessionsResponse--; } @@ -665,14 +667,14 @@ buildCounterSession--; } -buildUnnamed2255() { +buildUnnamed2009() { var o = new core.List<api.ValueMapValEntry>(); o.add(buildValueMapValEntry()); o.add(buildValueMapValEntry()); return o; } -checkUnnamed2255(core.List<api.ValueMapValEntry> o) { +checkUnnamed2009(core.List<api.ValueMapValEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkValueMapValEntry(o[0]); checkValueMapValEntry(o[1]); @@ -685,7 +687,7 @@ if (buildCounterValue < 3) { o.fpVal = 42.0; o.intVal = 42; - o.mapVal = buildUnnamed2255(); + o.mapVal = buildUnnamed2009(); o.stringVal = "foo"; } buildCounterValue--; @@ -697,7 +699,7 @@ if (buildCounterValue < 3) { unittest.expect(o.fpVal, unittest.equals(42.0)); unittest.expect(o.intVal, unittest.equals(42)); - checkUnnamed2255(o.mapVal); + checkUnnamed2009(o.mapVal); unittest.expect(o.stringVal, unittest.equals('foo')); } buildCounterValue--; @@ -724,14 +726,14 @@ buildCounterValueMapValEntry--; } -buildUnnamed2256() { +buildUnnamed2010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2256(core.List<core.String> o) { +checkUnnamed2010(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1066,7 +1068,7 @@ var mock = new HttpServerMock(); api.UsersDataSourcesResourceApi res = new api.FitnessApi(mock).users.dataSources; var arg_userId = "foo"; - var arg_dataTypeName = buildUnnamed2256(); + var arg_dataTypeName = buildUnnamed2010(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0;
diff --git a/generated/googleapis/test/freebase/v1_test.dart b/generated/googleapis/test/freebase/v1_test.dart deleted file mode 100644 index 20c8fef..0000000 --- a/generated/googleapis/test/freebase/v1_test.dart +++ /dev/null
@@ -1,527 +0,0 @@ -library googleapis.freebase.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/freebase/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 buildCounterReconcileCandidateNotable = 0; -buildReconcileCandidateNotable() { - var o = new api.ReconcileCandidateNotable(); - buildCounterReconcileCandidateNotable++; - if (buildCounterReconcileCandidateNotable < 3) { - o.id = "foo"; - o.name = "foo"; - } - buildCounterReconcileCandidateNotable--; - return o; -} - -checkReconcileCandidateNotable(api.ReconcileCandidateNotable o) { - buildCounterReconcileCandidateNotable++; - if (buildCounterReconcileCandidateNotable < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterReconcileCandidateNotable--; -} - -core.int buildCounterReconcileCandidate = 0; -buildReconcileCandidate() { - var o = new api.ReconcileCandidate(); - buildCounterReconcileCandidate++; - if (buildCounterReconcileCandidate < 3) { - o.confidence = 42.0; - o.lang = "foo"; - o.mid = "foo"; - o.name = "foo"; - o.notable = buildReconcileCandidateNotable(); - } - buildCounterReconcileCandidate--; - return o; -} - -checkReconcileCandidate(api.ReconcileCandidate o) { - buildCounterReconcileCandidate++; - if (buildCounterReconcileCandidate < 3) { - unittest.expect(o.confidence, unittest.equals(42.0)); - unittest.expect(o.lang, unittest.equals('foo')); - unittest.expect(o.mid, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkReconcileCandidateNotable(o.notable); - } - buildCounterReconcileCandidate--; -} - -buildUnnamed1389() { - var o = new core.List<api.ReconcileCandidate>(); - o.add(buildReconcileCandidate()); - o.add(buildReconcileCandidate()); - return o; -} - -checkUnnamed1389(core.List<api.ReconcileCandidate> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReconcileCandidate(o[0]); - checkReconcileCandidate(o[1]); -} - -core.int buildCounterReconcileGetCosts = 0; -buildReconcileGetCosts() { - var o = new api.ReconcileGetCosts(); - buildCounterReconcileGetCosts++; - if (buildCounterReconcileGetCosts < 3) { - o.hits = 42; - o.ms = 42; - } - buildCounterReconcileGetCosts--; - return o; -} - -checkReconcileGetCosts(api.ReconcileGetCosts o) { - buildCounterReconcileGetCosts++; - if (buildCounterReconcileGetCosts < 3) { - unittest.expect(o.hits, unittest.equals(42)); - unittest.expect(o.ms, unittest.equals(42)); - } - buildCounterReconcileGetCosts--; -} - -core.int buildCounterReconcileGetWarning = 0; -buildReconcileGetWarning() { - var o = new api.ReconcileGetWarning(); - buildCounterReconcileGetWarning++; - if (buildCounterReconcileGetWarning < 3) { - o.location = "foo"; - o.message = "foo"; - o.reason = "foo"; - } - buildCounterReconcileGetWarning--; - return o; -} - -checkReconcileGetWarning(api.ReconcileGetWarning o) { - buildCounterReconcileGetWarning++; - if (buildCounterReconcileGetWarning < 3) { - unittest.expect(o.location, unittest.equals('foo')); - unittest.expect(o.message, unittest.equals('foo')); - unittest.expect(o.reason, unittest.equals('foo')); - } - buildCounterReconcileGetWarning--; -} - -buildUnnamed1390() { - var o = new core.List<api.ReconcileGetWarning>(); - o.add(buildReconcileGetWarning()); - o.add(buildReconcileGetWarning()); - return o; -} - -checkUnnamed1390(core.List<api.ReconcileGetWarning> o) { - unittest.expect(o, unittest.hasLength(2)); - checkReconcileGetWarning(o[0]); - checkReconcileGetWarning(o[1]); -} - -core.int buildCounterReconcileGet = 0; -buildReconcileGet() { - var o = new api.ReconcileGet(); - buildCounterReconcileGet++; - if (buildCounterReconcileGet < 3) { - o.candidate = buildUnnamed1389(); - o.costs = buildReconcileGetCosts(); - o.match = buildReconcileCandidate(); - o.warning = buildUnnamed1390(); - } - buildCounterReconcileGet--; - return o; -} - -checkReconcileGet(api.ReconcileGet o) { - buildCounterReconcileGet++; - if (buildCounterReconcileGet < 3) { - checkUnnamed1389(o.candidate); - checkReconcileGetCosts(o.costs); - checkReconcileCandidate(o.match); - checkUnnamed1390(o.warning); - } - buildCounterReconcileGet--; -} - -buildUnnamed1391() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1391(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1392(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1393(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1394(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1395() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1395(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1396() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1397() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1397(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1398() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1398(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1399() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1400() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1400(core.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-ReconcileCandidateNotable", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileCandidateNotable(); - var od = new api.ReconcileCandidateNotable.fromJson(o.toJson()); - checkReconcileCandidateNotable(od); - }); - }); - - - unittest.group("obj-schema-ReconcileCandidate", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileCandidate(); - var od = new api.ReconcileCandidate.fromJson(o.toJson()); - checkReconcileCandidate(od); - }); - }); - - - unittest.group("obj-schema-ReconcileGetCosts", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileGetCosts(); - var od = new api.ReconcileGetCosts.fromJson(o.toJson()); - checkReconcileGetCosts(od); - }); - }); - - - unittest.group("obj-schema-ReconcileGetWarning", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileGetWarning(); - var od = new api.ReconcileGetWarning.fromJson(o.toJson()); - checkReconcileGetWarning(od); - }); - }); - - - unittest.group("obj-schema-ReconcileGet", () { - unittest.test("to-json--from-json", () { - var o = buildReconcileGet(); - var od = new api.ReconcileGet.fromJson(o.toJson()); - checkReconcileGet(od); - }); - }); - - - unittest.group("resource-FreebaseApi", () { - unittest.test("method--reconcile", () { - - var mock = new HttpServerMock(); - api.FreebaseApi res = new api.FreebaseApi(mock); - var arg_confidence = 42.0; - var arg_kind = buildUnnamed1391(); - var arg_lang = buildUnnamed1392(); - var arg_limit = 42; - var arg_name = "foo"; - var arg_prop = buildUnnamed1393(); - 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 + 12), unittest.equals("freebase/v1/")); - pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("reconcile")); - 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(core.num.parse(queryMap["confidence"].first), unittest.equals(arg_confidence)); - unittest.expect(queryMap["kind"], unittest.equals(arg_kind)); - unittest.expect(queryMap["lang"], unittest.equals(arg_lang)); - unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect(queryMap["prop"], unittest.equals(arg_prop)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = convert.JSON.encode(buildReconcileGet()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.reconcile(confidence: arg_confidence, kind: arg_kind, lang: arg_lang, limit: arg_limit, name: arg_name, prop: arg_prop).then(unittest.expectAsync(((api.ReconcileGet response) { - checkReconcileGet(response); - }))); - }); - - unittest.test("method--search", () { - // TODO: Implement tests for media upload; - // TODO: Implement tests for media download; - - var mock = new HttpServerMock(); - api.FreebaseApi res = new api.FreebaseApi(mock); - var arg_asOfTime = "foo"; - var arg_callback = "foo"; - var arg_cursor = 42; - var arg_domain = buildUnnamed1394(); - var arg_encode = "foo"; - var arg_exact = true; - var arg_filter = buildUnnamed1395(); - var arg_format = "foo"; - var arg_help = "foo"; - var arg_indent = true; - var arg_lang = buildUnnamed1396(); - var arg_limit = 42; - var arg_mid = buildUnnamed1397(); - var arg_mqlOutput = "foo"; - var arg_output = "foo"; - var arg_prefixed = true; - var arg_query = "foo"; - var arg_scoring = "foo"; - var arg_spell = "foo"; - var arg_stemmed = true; - var arg_type = buildUnnamed1398(); - var arg_with_ = buildUnnamed1399(); - var arg_without = buildUnnamed1400(); - 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 + 12), unittest.equals("freebase/v1/")); - pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("search")); - 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["as_of_time"].first, unittest.equals(arg_asOfTime)); - unittest.expect(queryMap["callback"].first, unittest.equals(arg_callback)); - unittest.expect(core.int.parse(queryMap["cursor"].first), unittest.equals(arg_cursor)); - unittest.expect(queryMap["domain"], unittest.equals(arg_domain)); - unittest.expect(queryMap["encode"].first, unittest.equals(arg_encode)); - unittest.expect(queryMap["exact"].first, unittest.equals("$arg_exact")); - unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); - unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); - unittest.expect(queryMap["help"].first, unittest.equals(arg_help)); - unittest.expect(queryMap["indent"].first, unittest.equals("$arg_indent")); - unittest.expect(queryMap["lang"], unittest.equals(arg_lang)); - unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["mid"], unittest.equals(arg_mid)); - unittest.expect(queryMap["mql_output"].first, unittest.equals(arg_mqlOutput)); - unittest.expect(queryMap["output"].first, unittest.equals(arg_output)); - unittest.expect(queryMap["prefixed"].first, unittest.equals("$arg_prefixed")); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); - unittest.expect(queryMap["scoring"].first, unittest.equals(arg_scoring)); - unittest.expect(queryMap["spell"].first, unittest.equals(arg_spell)); - unittest.expect(queryMap["stemmed"].first, unittest.equals("$arg_stemmed")); - unittest.expect(queryMap["type"], unittest.equals(arg_type)); - unittest.expect(queryMap["with"], unittest.equals(arg_with_)); - unittest.expect(queryMap["without"], unittest.equals(arg_without)); - - - var h = { - "content-type" : "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.search(asOfTime: arg_asOfTime, callback: arg_callback, cursor: arg_cursor, domain: arg_domain, encode: arg_encode, exact: arg_exact, filter: arg_filter, format: arg_format, help: arg_help, indent: arg_indent, lang: arg_lang, limit: arg_limit, mid: arg_mid, mqlOutput: arg_mqlOutput, output: arg_output, prefixed: arg_prefixed, query: arg_query, scoring: arg_scoring, spell: arg_spell, stemmed: arg_stemmed, type: arg_type, with_: arg_with_, without: arg_without).then(unittest.expectAsync((_) {})); - }); - - }); - - -} -
diff --git a/generated/googleapis/test/fusiontables/v1_test.dart b/generated/googleapis/test/fusiontables/v1_test.dart index 10c86c3..fb27315 100644 --- a/generated/googleapis/test/fusiontables/v1_test.dart +++ b/generated/googleapis/test/fusiontables/v1_test.dart
@@ -132,14 +132,14 @@ buildCounterColumn--; } -buildUnnamed3327() { +buildUnnamed3140() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3327(core.List<api.Column> o) { +checkUnnamed3140(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 = buildUnnamed3327(); + o.items = buildUnnamed3140(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -162,7 +162,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed3327(o.items); + checkUnnamed3140(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--; } -buildUnnamed3328() { +buildUnnamed3141() { 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; } -checkUnnamed3328(core.List<core.Object> o) { +checkUnnamed3141(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 = buildUnnamed3328(); + o.geometries = buildUnnamed3141(); 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) { - checkUnnamed3328(o.geometries); + checkUnnamed3141(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--; } -buildUnnamed3329() { +buildUnnamed3142() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3329(core.List<core.double> o) { +checkUnnamed3142(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)); } -buildUnnamed3330() { +buildUnnamed3143() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3329()); - o.add(buildUnnamed3329()); + o.add(buildUnnamed3142()); + o.add(buildUnnamed3142()); return o; } -checkUnnamed3330(core.List<core.List<core.double>> o) { +checkUnnamed3143(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3329(o[0]); - checkUnnamed3329(o[1]); + checkUnnamed3142(o[0]); + checkUnnamed3142(o[1]); } core.int buildCounterLine = 0; @@ -258,7 +258,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed3330(); + o.coordinates = buildUnnamed3143(); o.type = "foo"; } buildCounterLine--; @@ -268,7 +268,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed3330(o.coordinates); + checkUnnamed3143(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -301,14 +301,14 @@ buildCounterLineStyle--; } -buildUnnamed3331() { +buildUnnamed3144() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3331(core.List<core.double> o) { +checkUnnamed3144(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 = buildUnnamed3331(); + o.coordinates = buildUnnamed3144(); o.type = "foo"; } buildCounterPoint--; @@ -329,7 +329,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed3331(o.coordinates); + checkUnnamed3144(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -356,43 +356,43 @@ buildCounterPointStyle--; } -buildUnnamed3332() { +buildUnnamed3145() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3332(core.List<core.double> o) { +checkUnnamed3145(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)); } -buildUnnamed3333() { +buildUnnamed3146() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed3332()); - o.add(buildUnnamed3332()); + o.add(buildUnnamed3145()); + o.add(buildUnnamed3145()); return o; } -checkUnnamed3333(core.List<core.List<core.double>> o) { +checkUnnamed3146(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3332(o[0]); - checkUnnamed3332(o[1]); + checkUnnamed3145(o[0]); + checkUnnamed3145(o[1]); } -buildUnnamed3334() { +buildUnnamed3147() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed3333()); - o.add(buildUnnamed3333()); + o.add(buildUnnamed3146()); + o.add(buildUnnamed3146()); return o; } -checkUnnamed3334(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed3147(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3333(o[0]); - checkUnnamed3333(o[1]); + checkUnnamed3146(o[0]); + checkUnnamed3146(o[1]); } core.int buildCounterPolygon = 0; @@ -400,7 +400,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed3334(); + o.coordinates = buildUnnamed3147(); o.type = "foo"; } buildCounterPolygon--; @@ -410,7 +410,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed3334(o.coordinates); + checkUnnamed3147(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -449,43 +449,43 @@ buildCounterPolygonStyle--; } -buildUnnamed3335() { +buildUnnamed3148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3335(core.List<core.String> o) { +checkUnnamed3148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3336() { +buildUnnamed3149() { 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; } -checkUnnamed3336(core.List<core.Object> o) { +checkUnnamed3149(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')); } -buildUnnamed3337() { +buildUnnamed3150() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3336()); - o.add(buildUnnamed3336()); + o.add(buildUnnamed3149()); + o.add(buildUnnamed3149()); return o; } -checkUnnamed3337(core.List<core.List<core.Object>> o) { +checkUnnamed3150(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3336(o[0]); - checkUnnamed3336(o[1]); + checkUnnamed3149(o[0]); + checkUnnamed3149(o[1]); } core.int buildCounterSqlresponse = 0; @@ -493,9 +493,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed3335(); + o.columns = buildUnnamed3148(); o.kind = "foo"; - o.rows = buildUnnamed3337(); + o.rows = buildUnnamed3150(); } buildCounterSqlresponse--; return o; @@ -504,21 +504,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed3335(o.columns); + checkUnnamed3148(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3337(o.rows); + checkUnnamed3150(o.rows); } buildCounterSqlresponse--; } -buildUnnamed3338() { +buildUnnamed3151() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed3338(core.List<api.Bucket> o) { +checkUnnamed3151(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -545,14 +545,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed3339() { +buildUnnamed3152() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed3339(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed3152(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 = buildUnnamed3339(); + o.colors = buildUnnamed3152(); o.max = 42.0; o.min = 42.0; } @@ -574,7 +574,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed3339(o.colors); + checkUnnamed3152(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 = buildUnnamed3338(); + o.buckets = buildUnnamed3151(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -598,7 +598,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed3338(o.buckets); + checkUnnamed3151(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -637,14 +637,14 @@ buildCounterStyleSetting--; } -buildUnnamed3340() { +buildUnnamed3153() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed3340(core.List<api.StyleSetting> o) { +checkUnnamed3153(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 = buildUnnamed3340(); + o.items = buildUnnamed3153(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -667,7 +667,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed3340(o.items); + checkUnnamed3153(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--; } -buildUnnamed3341() { +buildUnnamed3154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3341(core.List<core.String> o) { +checkUnnamed3154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3342() { +buildUnnamed3155() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed3342(core.List<api.Column> o) { +checkUnnamed3155(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 = buildUnnamed3341(); - o.columns = buildUnnamed3342(); + o.baseTableIds = buildUnnamed3154(); + o.columns = buildUnnamed3155(); 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')); - checkUnnamed3341(o.baseTableIds); - checkUnnamed3342(o.columns); + checkUnnamed3154(o.baseTableIds); + checkUnnamed3155(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--; } -buildUnnamed3343() { +buildUnnamed3156() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed3343(core.List<api.Table> o) { +checkUnnamed3156(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 = buildUnnamed3343(); + o.items = buildUnnamed3156(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -767,7 +767,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed3343(o.items); + checkUnnamed3156(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -801,14 +801,14 @@ buildCounterTask--; } -buildUnnamed3344() { +buildUnnamed3157() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3344(core.List<api.Task> o) { +checkUnnamed3157(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 = buildUnnamed3344(); + o.items = buildUnnamed3157(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -831,7 +831,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed3344(o.items); + checkUnnamed3157(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--; } -buildUnnamed3345() { +buildUnnamed3158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3345(core.List<core.String> o) { +checkUnnamed3158(core.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 = buildUnnamed3345(); + o.automaticColumnNames = buildUnnamed3158(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -871,7 +871,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed3345(o.automaticColumnNames); + checkUnnamed3158(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--; } -buildUnnamed3346() { +buildUnnamed3159() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed3346(core.List<api.Template> o) { +checkUnnamed3159(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 = buildUnnamed3346(); + o.items = buildUnnamed3159(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -911,7 +911,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed3346(o.items); + checkUnnamed3159(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 3af3e47..45c03ae 100644 --- a/generated/googleapis/test/fusiontables/v2_test.dart +++ b/generated/googleapis/test/fusiontables/v2_test.dart
@@ -101,14 +101,14 @@ buildCounterColumnBaseColumn--; } -buildUnnamed648() { +buildUnnamed666() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed648(core.List<core.String> o) { +checkUnnamed666(core.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 = buildUnnamed648(); + o.validValues = buildUnnamed666(); 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')); - checkUnnamed648(o.validValues); + checkUnnamed666(o.validValues); unittest.expect(o.validateData, unittest.isTrue); } buildCounterColumn--; } -buildUnnamed649() { +buildUnnamed667() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed649(core.List<api.Column> o) { +checkUnnamed667(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 = buildUnnamed649(); + o.items = buildUnnamed667(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -185,7 +185,7 @@ checkColumnList(api.ColumnList o) { buildCounterColumnList++; if (buildCounterColumnList < 3) { - checkUnnamed649(o.items); + checkUnnamed667(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--; } -buildUnnamed650() { +buildUnnamed668() { 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; } -checkUnnamed650(core.List<core.Object> o) { +checkUnnamed668(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 = buildUnnamed650(); + o.geometries = buildUnnamed668(); 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) { - checkUnnamed650(o.geometries); + checkUnnamed668(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--; } -buildUnnamed651() { +buildUnnamed669() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed651(core.List<core.double> o) { +checkUnnamed669(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)); } -buildUnnamed652() { +buildUnnamed670() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed651()); - o.add(buildUnnamed651()); + o.add(buildUnnamed669()); + o.add(buildUnnamed669()); return o; } -checkUnnamed652(core.List<core.List<core.double>> o) { +checkUnnamed670(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed651(o[0]); - checkUnnamed651(o[1]); + checkUnnamed669(o[0]); + checkUnnamed669(o[1]); } core.int buildCounterLine = 0; @@ -281,7 +281,7 @@ var o = new api.Line(); buildCounterLine++; if (buildCounterLine < 3) { - o.coordinates = buildUnnamed652(); + o.coordinates = buildUnnamed670(); o.type = "foo"; } buildCounterLine--; @@ -291,7 +291,7 @@ checkLine(api.Line o) { buildCounterLine++; if (buildCounterLine < 3) { - checkUnnamed652(o.coordinates); + checkUnnamed670(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterLine--; @@ -324,14 +324,14 @@ buildCounterLineStyle--; } -buildUnnamed653() { +buildUnnamed671() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed653(core.List<core.double> o) { +checkUnnamed671(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 = buildUnnamed653(); + o.coordinates = buildUnnamed671(); o.type = "foo"; } buildCounterPoint--; @@ -352,7 +352,7 @@ checkPoint(api.Point o) { buildCounterPoint++; if (buildCounterPoint < 3) { - checkUnnamed653(o.coordinates); + checkUnnamed671(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPoint--; @@ -379,43 +379,43 @@ buildCounterPointStyle--; } -buildUnnamed654() { +buildUnnamed672() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed654(core.List<core.double> o) { +checkUnnamed672(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)); } -buildUnnamed655() { +buildUnnamed673() { var o = new core.List<core.List<core.double>>(); - o.add(buildUnnamed654()); - o.add(buildUnnamed654()); + o.add(buildUnnamed672()); + o.add(buildUnnamed672()); return o; } -checkUnnamed655(core.List<core.List<core.double>> o) { +checkUnnamed673(core.List<core.List<core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed654(o[0]); - checkUnnamed654(o[1]); + checkUnnamed672(o[0]); + checkUnnamed672(o[1]); } -buildUnnamed656() { +buildUnnamed674() { var o = new core.List<core.List<core.List<core.double>>>(); - o.add(buildUnnamed655()); - o.add(buildUnnamed655()); + o.add(buildUnnamed673()); + o.add(buildUnnamed673()); return o; } -checkUnnamed656(core.List<core.List<core.List<core.double>>> o) { +checkUnnamed674(core.List<core.List<core.List<core.double>>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed655(o[0]); - checkUnnamed655(o[1]); + checkUnnamed673(o[0]); + checkUnnamed673(o[1]); } core.int buildCounterPolygon = 0; @@ -423,7 +423,7 @@ var o = new api.Polygon(); buildCounterPolygon++; if (buildCounterPolygon < 3) { - o.coordinates = buildUnnamed656(); + o.coordinates = buildUnnamed674(); o.type = "foo"; } buildCounterPolygon--; @@ -433,7 +433,7 @@ checkPolygon(api.Polygon o) { buildCounterPolygon++; if (buildCounterPolygon < 3) { - checkUnnamed656(o.coordinates); + checkUnnamed674(o.coordinates); unittest.expect(o.type, unittest.equals('foo')); } buildCounterPolygon--; @@ -472,43 +472,43 @@ buildCounterPolygonStyle--; } -buildUnnamed657() { +buildUnnamed675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed657(core.List<core.String> o) { +checkUnnamed675(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed658() { +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; } -checkUnnamed658(core.List<core.Object> o) { +checkUnnamed676(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')); } -buildUnnamed659() { +buildUnnamed677() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed658()); - o.add(buildUnnamed658()); + o.add(buildUnnamed676()); + o.add(buildUnnamed676()); return o; } -checkUnnamed659(core.List<core.List<core.Object>> o) { +checkUnnamed677(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed658(o[0]); - checkUnnamed658(o[1]); + checkUnnamed676(o[0]); + checkUnnamed676(o[1]); } core.int buildCounterSqlresponse = 0; @@ -516,9 +516,9 @@ var o = new api.Sqlresponse(); buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - o.columns = buildUnnamed657(); + o.columns = buildUnnamed675(); o.kind = "foo"; - o.rows = buildUnnamed659(); + o.rows = buildUnnamed677(); } buildCounterSqlresponse--; return o; @@ -527,21 +527,21 @@ checkSqlresponse(api.Sqlresponse o) { buildCounterSqlresponse++; if (buildCounterSqlresponse < 3) { - checkUnnamed657(o.columns); + checkUnnamed675(o.columns); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed659(o.rows); + checkUnnamed677(o.rows); } buildCounterSqlresponse--; } -buildUnnamed660() { +buildUnnamed678() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed660(core.List<api.Bucket> o) { +checkUnnamed678(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -568,14 +568,14 @@ buildCounterStyleFunctionGradientColors--; } -buildUnnamed661() { +buildUnnamed679() { var o = new core.List<api.StyleFunctionGradientColors>(); o.add(buildStyleFunctionGradientColors()); o.add(buildStyleFunctionGradientColors()); return o; } -checkUnnamed661(core.List<api.StyleFunctionGradientColors> o) { +checkUnnamed679(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 = buildUnnamed661(); + o.colors = buildUnnamed679(); o.max = 42.0; o.min = 42.0; } @@ -597,7 +597,7 @@ checkStyleFunctionGradient(api.StyleFunctionGradient o) { buildCounterStyleFunctionGradient++; if (buildCounterStyleFunctionGradient < 3) { - checkUnnamed661(o.colors); + checkUnnamed679(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 = buildUnnamed660(); + o.buckets = buildUnnamed678(); o.columnName = "foo"; o.gradient = buildStyleFunctionGradient(); o.kind = "foo"; @@ -621,7 +621,7 @@ checkStyleFunction(api.StyleFunction o) { buildCounterStyleFunction++; if (buildCounterStyleFunction < 3) { - checkUnnamed660(o.buckets); + checkUnnamed678(o.buckets); unittest.expect(o.columnName, unittest.equals('foo')); checkStyleFunctionGradient(o.gradient); unittest.expect(o.kind, unittest.equals('foo')); @@ -660,14 +660,14 @@ buildCounterStyleSetting--; } -buildUnnamed662() { +buildUnnamed680() { var o = new core.List<api.StyleSetting>(); o.add(buildStyleSetting()); o.add(buildStyleSetting()); return o; } -checkUnnamed662(core.List<api.StyleSetting> o) { +checkUnnamed680(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 = buildUnnamed662(); + o.items = buildUnnamed680(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -690,7 +690,7 @@ checkStyleSettingList(api.StyleSettingList o) { buildCounterStyleSettingList++; if (buildCounterStyleSettingList < 3) { - checkUnnamed662(o.items); + checkUnnamed680(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--; } -buildUnnamed663() { +buildUnnamed681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed663(core.List<core.String> o) { +checkUnnamed681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed664() { +buildUnnamed682() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed664(core.List<api.Column> o) { +checkUnnamed682(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 = buildUnnamed663(); + o.baseTableIds = buildUnnamed681(); o.columnPropertiesJsonSchema = "foo"; - o.columns = buildUnnamed664(); + o.columns = buildUnnamed682(); 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')); - checkUnnamed663(o.baseTableIds); + checkUnnamed681(o.baseTableIds); unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); - checkUnnamed664(o.columns); + checkUnnamed682(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--; } -buildUnnamed665() { +buildUnnamed683() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed665(core.List<api.Table> o) { +checkUnnamed683(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 = buildUnnamed665(); + o.items = buildUnnamed683(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,7 +796,7 @@ checkTableList(api.TableList o) { buildCounterTableList++; if (buildCounterTableList < 3) { - checkUnnamed665(o.items); + checkUnnamed683(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -830,14 +830,14 @@ buildCounterTask--; } -buildUnnamed666() { +buildUnnamed684() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed666(core.List<api.Task> o) { +checkUnnamed684(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 = buildUnnamed666(); + o.items = buildUnnamed684(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -860,7 +860,7 @@ checkTaskList(api.TaskList o) { buildCounterTaskList++; if (buildCounterTaskList < 3) { - checkUnnamed666(o.items); + checkUnnamed684(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--; } -buildUnnamed667() { +buildUnnamed685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed667(core.List<core.String> o) { +checkUnnamed685(core.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 = buildUnnamed667(); + o.automaticColumnNames = buildUnnamed685(); o.body = "foo"; o.kind = "foo"; o.name = "foo"; @@ -900,7 +900,7 @@ checkTemplate(api.Template o) { buildCounterTemplate++; if (buildCounterTemplate < 3) { - checkUnnamed667(o.automaticColumnNames); + checkUnnamed685(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--; } -buildUnnamed668() { +buildUnnamed686() { var o = new core.List<api.Template>(); o.add(buildTemplate()); o.add(buildTemplate()); return o; } -checkUnnamed668(core.List<api.Template> o) { +checkUnnamed686(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 = buildUnnamed668(); + o.items = buildUnnamed686(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -940,7 +940,7 @@ checkTemplateList(api.TemplateList o) { buildCounterTemplateList++; if (buildCounterTemplateList < 3) { - checkUnnamed668(o.items); + checkUnnamed686(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 18859ac..6dfda57 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -113,14 +113,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed870() { +buildUnnamed894() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed870(core.List<api.AchievementConfiguration> o) { +checkUnnamed894(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 = buildUnnamed870(); + o.items = buildUnnamed894(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkAchievementConfigurationListResponse(api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed870(o.items); + checkUnnamed894(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed871() { +buildUnnamed895() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed871(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed895(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 = buildUnnamed871(); + o.items = buildUnnamed895(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -317,7 +317,7 @@ checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed871(o.items); + checkUnnamed895(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -347,14 +347,14 @@ buildCounterLocalizedString--; } -buildUnnamed872() { +buildUnnamed896() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed872(core.List<api.LocalizedString> o) { +checkUnnamed896(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 = buildUnnamed872(); + o.translations = buildUnnamed896(); } buildCounterLocalizedStringBundle--; return o; @@ -376,7 +376,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed872(o.translations); + checkUnnamed896(o.translations); } buildCounterLocalizedStringBundle--; }
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index 44878fc..f24e4cd 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); } -buildUnnamed862() { +buildUnnamed886() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed862(core.List<api.AchievementResetResponse> o) { +checkUnnamed886(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 = buildUnnamed862(); + o.results = buildUnnamed886(); } buildCounterAchievementResetAllResponse--; return o; @@ -80,19 +80,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed862(o.results); + checkUnnamed886(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed863() { +buildUnnamed887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed863(core.List<core.String> o) { +checkUnnamed887(core.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 = buildUnnamed863(); + o.achievementIds = buildUnnamed887(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ checkAchievementResetMultipleForAllRequest(api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed863(o.achievementIds); + checkUnnamed887(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed864() { +buildUnnamed888() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed864(core.List<core.String> o) { +checkUnnamed888(core.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 = buildUnnamed864(); + o.eventIds = buildUnnamed888(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,7 +172,7 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed864(o.eventIds); + checkUnnamed888(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; @@ -270,14 +270,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed865() { +buildUnnamed889() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed865(core.List<api.HiddenPlayer> o) { +checkUnnamed889(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 = buildUnnamed865(); + o.items = buildUnnamed889(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -299,7 +299,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed865(o.items); + checkUnnamed889(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -368,14 +368,14 @@ buildCounterPlayer--; } -buildUnnamed866() { +buildUnnamed890() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed866(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed890(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 = buildUnnamed866(); + o.results = buildUnnamed890(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -397,19 +397,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed866(o.results); + checkUnnamed890(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed867() { +buildUnnamed891() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed867(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')); @@ -422,7 +422,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed867(); + o.resetScoreTimeSpans = buildUnnamed891(); } buildCounterPlayerScoreResetResponse--; return o; @@ -433,7 +433,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed867(o.resetScoreTimeSpans); + checkUnnamed891(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -459,14 +459,14 @@ buildCounterProfileSettings--; } -buildUnnamed868() { +buildUnnamed892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed868(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')); @@ -478,7 +478,7 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.questIds = buildUnnamed868(); + o.questIds = buildUnnamed892(); } buildCounterQuestsResetMultipleForAllRequest--; return o; @@ -488,19 +488,19 @@ buildCounterQuestsResetMultipleForAllRequest++; if (buildCounterQuestsResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed868(o.questIds); + checkUnnamed892(o.questIds); } buildCounterQuestsResetMultipleForAllRequest--; } -buildUnnamed869() { +buildUnnamed893() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed869(core.List<core.String> o) { +checkUnnamed893(core.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 = buildUnnamed869(); + o.leaderboardIds = buildUnnamed893(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -522,7 +522,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed869(o.leaderboardIds); + checkUnnamed893(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; }
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index 0adbb2b..e30db48 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); } -buildUnnamed2951() { +buildUnnamed3025() { 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; } -checkUnnamed2951(core.List<core.Object> o) { +checkUnnamed3025(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')); } -buildUnnamed2952() { +buildUnnamed3026() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2951(); - o["y"] = buildUnnamed2951(); + o["x"] = buildUnnamed3025(); + o["y"] = buildUnnamed3025(); return o; } -checkUnnamed2952(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3026(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2951(o["x"]); - checkUnnamed2951(o["y"]); + checkUnnamed3025(o["x"]); + checkUnnamed3025(o["y"]); } core.int buildCounterAnnotation = 0; @@ -85,7 +85,7 @@ o.annotationSetId = "foo"; o.end = "foo"; o.id = "foo"; - o.info = buildUnnamed2952(); + o.info = buildUnnamed3026(); 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')); - checkUnnamed2952(o.info); + checkUnnamed3026(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--; } -buildUnnamed2953() { +buildUnnamed3027() { 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; } -checkUnnamed2953(core.List<core.Object> o) { +checkUnnamed3027(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')); } -buildUnnamed2954() { +buildUnnamed3028() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2953(); - o["y"] = buildUnnamed2953(); + o["x"] = buildUnnamed3027(); + o["y"] = buildUnnamed3027(); return o; } -checkUnnamed2954(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3028(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2953(o["x"]); - checkUnnamed2953(o["y"]); + checkUnnamed3027(o["x"]); + checkUnnamed3027(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -151,7 +151,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed2954(); + o.info = buildUnnamed3028(); 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')); - checkUnnamed2954(o.info); + checkUnnamed3028(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--; } -buildUnnamed2955() { +buildUnnamed3029() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2955(core.List<api.Annotation> o) { +checkUnnamed3029(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 = buildUnnamed2955(); + o.annotations = buildUnnamed3029(); o.requestId = "foo"; } buildCounterBatchCreateAnnotationsRequest--; @@ -203,20 +203,20 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed2955(o.annotations); + checkUnnamed3029(o.annotations); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed2956() { +buildUnnamed3030() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed2956(core.List<api.Entry> o) { +checkUnnamed3030(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 = buildUnnamed2956(); + o.entries = buildUnnamed3030(); } buildCounterBatchCreateAnnotationsResponse--; return o; @@ -236,19 +236,19 @@ checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { buildCounterBatchCreateAnnotationsResponse++; if (buildCounterBatchCreateAnnotationsResponse < 3) { - checkUnnamed2956(o.entries); + checkUnnamed3030(o.entries); } buildCounterBatchCreateAnnotationsResponse--; } -buildUnnamed2957() { +buildUnnamed3031() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2957(core.List<core.String> o) { +checkUnnamed3031(core.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 = buildUnnamed2957(); + o.members = buildUnnamed3031(); o.role = "foo"; } buildCounterBinding--; @@ -269,46 +269,46 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed2957(o.members); + checkUnnamed3031(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2958() { +buildUnnamed3032() { 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; } -checkUnnamed2958(core.List<core.Object> o) { +checkUnnamed3032(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')); } -buildUnnamed2959() { +buildUnnamed3033() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2958(); - o["y"] = buildUnnamed2958(); + o["x"] = buildUnnamed3032(); + o["y"] = buildUnnamed3032(); return o; } -checkUnnamed2959(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3033(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2958(o["x"]); - checkUnnamed2958(o["y"]); + checkUnnamed3032(o["x"]); + checkUnnamed3032(o["y"]); } -buildUnnamed2960() { +buildUnnamed3034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2960(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')); @@ -321,10 +321,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed2959(); + o.info = buildUnnamed3033(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed2960(); + o.variantSetIds = buildUnnamed3034(); } buildCounterCallSet--; return o; @@ -335,10 +335,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2959(o.info); + checkUnnamed3033(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed2960(o.variantSetIds); + checkUnnamed3034(o.variantSetIds); } buildCounterCallSet--; } @@ -383,27 +383,27 @@ buildCounterCigarUnit--; } -buildUnnamed2961() { +buildUnnamed3035() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed2961(core.List<api.ExternalId> o) { +checkUnnamed3035(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed2962() { +buildUnnamed3036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2962(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')); @@ -415,8 +415,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed2961(); - o.names = buildUnnamed2962(); + o.externalIds = buildUnnamed3035(); + o.names = buildUnnamed3036(); o.omimId = "foo"; } buildCounterClinicalCondition--; @@ -427,8 +427,8 @@ buildCounterClinicalCondition++; if (buildCounterClinicalCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed2961(o.externalIds); - checkUnnamed2962(o.names); + checkUnnamed3035(o.externalIds); + checkUnnamed3036(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterClinicalCondition--; @@ -455,14 +455,14 @@ buildCounterCodingSequence--; } -buildUnnamed2963() { +buildUnnamed3037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2963(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')); @@ -473,7 +473,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed2963(); + o.diskNames = buildUnnamed3037(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -485,7 +485,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed2963(o.diskNames); + checkUnnamed3037(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--; } -buildUnnamed2964() { +buildUnnamed3038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2964(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')); @@ -645,7 +645,7 @@ if (buildCounterExportReadGroupSetRequest < 3) { o.exportUri = "foo"; o.projectId = "foo"; - o.referenceNames = buildUnnamed2964(); + o.referenceNames = buildUnnamed3038(); } buildCounterExportReadGroupSetRequest--; return o; @@ -656,19 +656,19 @@ if (buildCounterExportReadGroupSetRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2964(o.referenceNames); + checkUnnamed3038(o.referenceNames); } buildCounterExportReadGroupSetRequest--; } -buildUnnamed2965() { +buildUnnamed3039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2965(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')); @@ -681,7 +681,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed2965(); + o.callSetIds = buildUnnamed3039(); 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')); - checkUnnamed2965(o.callSetIds); + checkUnnamed3039(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); } @@ -739,14 +739,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed2966() { +buildUnnamed3040() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2966(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')); @@ -760,7 +760,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed2966(); + o.sourceUris = buildUnnamed3040(); } 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')); - checkUnnamed2966(o.sourceUris); + checkUnnamed3040(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } -buildUnnamed2967() { +buildUnnamed3041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2967(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')); @@ -795,7 +795,7 @@ var o = new api.ImportReadGroupSetsResponse(); buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - o.readGroupSetIds = buildUnnamed2967(); + o.readGroupSetIds = buildUnnamed3041(); } buildCounterImportReadGroupSetsResponse--; return o; @@ -804,32 +804,32 @@ checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { buildCounterImportReadGroupSetsResponse++; if (buildCounterImportReadGroupSetsResponse < 3) { - checkUnnamed2967(o.readGroupSetIds); + checkUnnamed3041(o.readGroupSetIds); } buildCounterImportReadGroupSetsResponse--; } -buildUnnamed2968() { +buildUnnamed3042() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2968(core.Map<core.String, core.String> o) { +checkUnnamed3042(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')); } -buildUnnamed2969() { +buildUnnamed3043() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2969(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')); @@ -841,9 +841,9 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; - o.infoMergeConfig = buildUnnamed2968(); + o.infoMergeConfig = buildUnnamed3042(); o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed2969(); + o.sourceUris = buildUnnamed3043(); o.variantSetId = "foo"; } buildCounterImportVariantsRequest--; @@ -854,22 +854,22 @@ buildCounterImportVariantsRequest++; if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed2968(o.infoMergeConfig); + checkUnnamed3042(o.infoMergeConfig); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed2969(o.sourceUris); + checkUnnamed3043(o.sourceUris); unittest.expect(o.variantSetId, unittest.equals('foo')); } buildCounterImportVariantsRequest--; } -buildUnnamed2970() { +buildUnnamed3044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2970(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')); @@ -880,7 +880,7 @@ var o = new api.ImportVariantsResponse(); buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - o.callSetIds = buildUnnamed2970(); + o.callSetIds = buildUnnamed3044(); } buildCounterImportVariantsResponse--; return o; @@ -889,19 +889,19 @@ checkImportVariantsResponse(api.ImportVariantsResponse o) { buildCounterImportVariantsResponse++; if (buildCounterImportVariantsResponse < 3) { - checkUnnamed2970(o.callSetIds); + checkUnnamed3044(o.callSetIds); } buildCounterImportVariantsResponse--; } -buildUnnamed2971() { +buildUnnamed3045() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed2971(core.List<api.CigarUnit> o) { +checkUnnamed3045(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 = buildUnnamed2971(); + o.cigar = buildUnnamed3045(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -923,7 +923,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed2971(o.cigar); + checkUnnamed3045(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -953,14 +953,14 @@ buildCounterListBasesResponse--; } -buildUnnamed2972() { +buildUnnamed3046() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed2972(core.List<api.CoverageBucket> o) { +checkUnnamed3046(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 = buildUnnamed2972(); + o.coverageBuckets = buildUnnamed3046(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -983,20 +983,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed2972(o.coverageBuckets); + checkUnnamed3046(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed2973() { +buildUnnamed3047() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed2973(core.List<api.Dataset> o) { +checkUnnamed3047(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 = buildUnnamed2973(); + o.datasets = buildUnnamed3047(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1017,20 +1017,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed2973(o.datasets); + checkUnnamed3047(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed2974() { +buildUnnamed3048() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2974(core.List<api.Operation> o) { +checkUnnamed3048(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 = buildUnnamed2974(); + o.operations = buildUnnamed3048(); } buildCounterListOperationsResponse--; return o; @@ -1052,32 +1052,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2974(o.operations); + checkUnnamed3048(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2975() { +buildUnnamed3049() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2975(core.Map<core.String, core.String> o) { +checkUnnamed3049(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')); } -buildUnnamed2976() { +buildUnnamed3050() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed2976(core.List<api.Variant> o) { +checkUnnamed3050(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 = buildUnnamed2975(); + o.infoMergeConfig = buildUnnamed3049(); o.variantSetId = "foo"; - o.variants = buildUnnamed2976(); + o.variants = buildUnnamed3050(); } buildCounterMergeVariantsRequest--; return o; @@ -1099,34 +1099,34 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed2975(o.infoMergeConfig); + checkUnnamed3049(o.infoMergeConfig); unittest.expect(o.variantSetId, unittest.equals('foo')); - checkUnnamed2976(o.variants); + checkUnnamed3050(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed2977() { +buildUnnamed3051() { 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; } -checkUnnamed2977(core.Map<core.String, core.Object> o) { +checkUnnamed3051(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')); } -buildUnnamed2978() { +buildUnnamed3052() { 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; } -checkUnnamed2978(core.Map<core.String, core.Object> o) { +checkUnnamed3052(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 = buildUnnamed2977(); + o.metadata = buildUnnamed3051(); o.name = "foo"; - o.response = buildUnnamed2978(); + o.response = buildUnnamed3052(); } buildCounterOperation--; return o; @@ -1152,9 +1152,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2977(o.metadata); + checkUnnamed3051(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2978(o.response); + checkUnnamed3052(o.response); } buildCounterOperation--; } @@ -1182,40 +1182,53 @@ buildCounterOperationEvent--; } -buildUnnamed2979() { +buildUnnamed3053() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed2979(core.List<api.OperationEvent> o) { +checkUnnamed3053(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed2980() { +buildUnnamed3054() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed3055() { 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; } -checkUnnamed2980(core.Map<core.String, core.Object> o) { +checkUnnamed3055(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')); } -buildUnnamed2981() { +buildUnnamed3056() { 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; } -checkUnnamed2981(core.Map<core.String, core.Object> o) { +checkUnnamed3056(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')); @@ -1229,10 +1242,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed2979(); + o.events = buildUnnamed3053(); + o.labels = buildUnnamed3054(); o.projectId = "foo"; - o.request = buildUnnamed2980(); - o.runtimeMetadata = buildUnnamed2981(); + o.request = buildUnnamed3055(); + o.runtimeMetadata = buildUnnamed3056(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -1245,23 +1259,24 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed2979(o.events); + checkUnnamed3053(o.events); + checkUnnamed3054(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed2980(o.request); - checkUnnamed2981(o.runtimeMetadata); + checkUnnamed3055(o.request); + checkUnnamed3056(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; } -buildUnnamed2982() { +buildUnnamed3057() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2982(core.List<api.Binding> o) { +checkUnnamed3057(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1272,7 +1287,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2982(); + o.bindings = buildUnnamed3057(); o.etag = "foo"; o.version = 42; } @@ -1283,7 +1298,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2982(o.bindings); + checkUnnamed3057(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1363,43 +1378,43 @@ buildCounterRange--; } -buildUnnamed2983() { +buildUnnamed3058() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2983(core.List<core.int> o) { +checkUnnamed3058(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)); } -buildUnnamed2984() { +buildUnnamed3059() { 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; } -checkUnnamed2984(core.List<core.Object> o) { +checkUnnamed3059(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')); } -buildUnnamed2985() { +buildUnnamed3060() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2984(); - o["y"] = buildUnnamed2984(); + o["x"] = buildUnnamed3059(); + o["y"] = buildUnnamed3059(); return o; } -checkUnnamed2985(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3060(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2984(o["x"]); - checkUnnamed2984(o["y"]); + checkUnnamed3059(o["x"]); + checkUnnamed3059(o["y"]); } core.int buildCounterRead = 0; @@ -1407,7 +1422,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed2983(); + o.alignedQuality = buildUnnamed3058(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1415,7 +1430,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed2985(); + o.info = buildUnnamed3060(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1432,7 +1447,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed2983(o.alignedQuality); + checkUnnamed3058(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1440,7 +1455,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2985(o.info); + checkUnnamed3060(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1453,40 +1468,40 @@ buildCounterRead--; } -buildUnnamed2986() { +buildUnnamed3061() { 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; } -checkUnnamed2986(core.List<core.Object> o) { +checkUnnamed3061(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')); } -buildUnnamed2987() { +buildUnnamed3062() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2986(); - o["y"] = buildUnnamed2986(); + o["x"] = buildUnnamed3061(); + o["y"] = buildUnnamed3061(); return o; } -checkUnnamed2987(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3062(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2986(o["x"]); - checkUnnamed2986(o["y"]); + checkUnnamed3061(o["x"]); + checkUnnamed3061(o["y"]); } -buildUnnamed2988() { +buildUnnamed3063() { var o = new core.List<api.Program>(); o.add(buildProgram()); o.add(buildProgram()); return o; } -checkUnnamed2988(core.List<api.Program> o) { +checkUnnamed3063(core.List<api.Program> o) { unittest.expect(o, unittest.hasLength(2)); checkProgram(o[0]); checkProgram(o[1]); @@ -1501,10 +1516,10 @@ o.description = "foo"; o.experiment = buildExperiment(); o.id = "foo"; - o.info = buildUnnamed2987(); + o.info = buildUnnamed3062(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed2988(); + o.programs = buildUnnamed3063(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1519,50 +1534,50 @@ unittest.expect(o.description, unittest.equals('foo')); checkExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2987(o.info); + checkUnnamed3062(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed2988(o.programs); + checkUnnamed3063(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } buildCounterReadGroup--; } -buildUnnamed2989() { +buildUnnamed3064() { 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; } -checkUnnamed2989(core.List<core.Object> o) { +checkUnnamed3064(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')); } -buildUnnamed2990() { +buildUnnamed3065() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed2989(); - o["y"] = buildUnnamed2989(); + o["x"] = buildUnnamed3064(); + o["y"] = buildUnnamed3064(); return o; } -checkUnnamed2990(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3065(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2989(o["x"]); - checkUnnamed2989(o["y"]); + checkUnnamed3064(o["x"]); + checkUnnamed3064(o["y"]); } -buildUnnamed2991() { +buildUnnamed3066() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed2991(core.List<api.ReadGroup> o) { +checkUnnamed3066(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1576,9 +1591,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed2990(); + o.info = buildUnnamed3065(); o.name = "foo"; - o.readGroups = buildUnnamed2991(); + o.readGroups = buildUnnamed3066(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1591,22 +1606,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2990(o.info); + checkUnnamed3065(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2991(o.readGroups); + checkUnnamed3066(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed2992() { +buildUnnamed3067() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2992(core.List<core.String> o) { +checkUnnamed3067(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1622,7 +1637,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed2992(); + o.sourceAccessions = buildUnnamed3067(); o.sourceUri = "foo"; } buildCounterReference--; @@ -1637,7 +1652,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2992(o.sourceAccessions); + checkUnnamed3067(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReference--; @@ -1664,27 +1679,27 @@ buildCounterReferenceBound--; } -buildUnnamed2993() { +buildUnnamed3068() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2993(core.List<core.String> o) { +checkUnnamed3068(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2994() { +buildUnnamed3069() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2994(core.List<core.String> o) { +checkUnnamed3069(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1700,8 +1715,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed2993(); - o.sourceAccessions = buildUnnamed2994(); + o.referenceIds = buildUnnamed3068(); + o.sourceAccessions = buildUnnamed3069(); o.sourceUri = "foo"; } buildCounterReferenceSet--; @@ -1716,8 +1731,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed2993(o.referenceIds); - checkUnnamed2994(o.sourceAccessions); + checkUnnamed3068(o.referenceIds); + checkUnnamed3069(o.sourceAccessions); unittest.expect(o.sourceUri, unittest.equals('foo')); } buildCounterReferenceSet--; @@ -1742,27 +1757,27 @@ buildCounterRuntimeMetadata--; } -buildUnnamed2995() { +buildUnnamed3070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2995(core.List<core.String> o) { +checkUnnamed3070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2996() { +buildUnnamed3071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2996(core.List<core.String> o) { +checkUnnamed3071(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1773,12 +1788,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed2995(); + o.datasetIds = buildUnnamed3070(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed2996(); + o.types = buildUnnamed3071(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1787,24 +1802,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed2995(o.datasetIds); + checkUnnamed3070(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')); - checkUnnamed2996(o.types); + checkUnnamed3071(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed2997() { +buildUnnamed3072() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed2997(core.List<api.AnnotationSet> o) { +checkUnnamed3072(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1815,7 +1830,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed2997(); + o.annotationSets = buildUnnamed3072(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1825,20 +1840,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed2997(o.annotationSets); + checkUnnamed3072(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed2998() { +buildUnnamed3073() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2998(core.List<core.String> o) { +checkUnnamed3073(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1849,7 +1864,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed2998(); + o.annotationSetIds = buildUnnamed3073(); o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -1864,7 +1879,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed2998(o.annotationSetIds); + checkUnnamed3073(o.annotationSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -1875,14 +1890,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed2999() { +buildUnnamed3074() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed2999(core.List<api.Annotation> o) { +checkUnnamed3074(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -1893,7 +1908,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed2999(); + o.annotations = buildUnnamed3074(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -1903,20 +1918,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed2999(o.annotations); + checkUnnamed3074(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed3000() { +buildUnnamed3075() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3000(core.List<core.String> o) { +checkUnnamed3075(core.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 +1945,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed3000(); + o.variantSetIds = buildUnnamed3075(); } buildCounterSearchCallSetsRequest--; return o; @@ -1942,19 +1957,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3000(o.variantSetIds); + checkUnnamed3075(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed3001() { +buildUnnamed3076() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed3001(core.List<api.CallSet> o) { +checkUnnamed3076(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -1965,7 +1980,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed3001(); + o.callSets = buildUnnamed3076(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -1975,20 +1990,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed3001(o.callSets); + checkUnnamed3076(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed3002() { +buildUnnamed3077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3002(core.List<core.String> o) { +checkUnnamed3077(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1999,7 +2014,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed3002(); + o.datasetIds = buildUnnamed3077(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2011,7 +2026,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed3002(o.datasetIds); + checkUnnamed3077(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2019,14 +2034,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed3003() { +buildUnnamed3078() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed3003(core.List<api.ReadGroupSet> o) { +checkUnnamed3078(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2038,7 +2053,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed3003(); + o.readGroupSets = buildUnnamed3078(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2048,32 +2063,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3003(o.readGroupSets); + checkUnnamed3078(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed3004() { +buildUnnamed3079() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3004(core.List<core.String> o) { +checkUnnamed3079(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3005() { +buildUnnamed3080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3005(core.List<core.String> o) { +checkUnnamed3080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2087,8 +2102,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed3004(); - o.readGroupSetIds = buildUnnamed3005(); + o.readGroupIds = buildUnnamed3079(); + o.readGroupSetIds = buildUnnamed3080(); o.referenceName = "foo"; o.start = "foo"; } @@ -2102,22 +2117,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3004(o.readGroupIds); - checkUnnamed3005(o.readGroupSetIds); + checkUnnamed3079(o.readGroupIds); + checkUnnamed3080(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed3006() { +buildUnnamed3081() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3006(core.List<api.Read> o) { +checkUnnamed3081(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2128,7 +2143,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed3006(); + o.alignments = buildUnnamed3081(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2138,33 +2153,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed3006(o.alignments); + checkUnnamed3081(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed3007() { +buildUnnamed3082() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3007(core.List<core.String> o) { +checkUnnamed3082(core.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() { +buildUnnamed3083() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3008(core.List<core.String> o) { +checkUnnamed3083(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2175,9 +2190,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed3007(); + o.accessions = buildUnnamed3082(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed3008(); + o.md5checksums = buildUnnamed3083(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2188,23 +2203,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed3007(o.accessions); + checkUnnamed3082(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed3008(o.md5checksums); + checkUnnamed3083(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed3009() { +buildUnnamed3084() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed3009(core.List<api.ReferenceSet> o) { +checkUnnamed3084(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2216,7 +2231,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed3009(); + o.referenceSets = buildUnnamed3084(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2226,32 +2241,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3009(o.referenceSets); + checkUnnamed3084(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed3010() { +buildUnnamed3085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3010(core.List<core.String> o) { +checkUnnamed3085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3011() { +buildUnnamed3086() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3011(core.List<core.String> o) { +checkUnnamed3086(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2262,8 +2277,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed3010(); - o.md5checksums = buildUnnamed3011(); + o.accessions = buildUnnamed3085(); + o.md5checksums = buildUnnamed3086(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2275,8 +2290,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed3010(o.accessions); - checkUnnamed3011(o.md5checksums); + checkUnnamed3085(o.accessions); + checkUnnamed3086(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2284,14 +2299,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed3012() { +buildUnnamed3087() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed3012(core.List<api.Reference> o) { +checkUnnamed3087(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2303,7 +2318,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed3012(); + o.references = buildUnnamed3087(); } buildCounterSearchReferencesResponse--; return o; @@ -2313,19 +2328,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3012(o.references); + checkUnnamed3087(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed3013() { +buildUnnamed3088() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3013(core.List<core.String> o) { +checkUnnamed3088(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2336,7 +2351,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed3013(); + o.datasetIds = buildUnnamed3088(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2347,21 +2362,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed3013(o.datasetIds); + checkUnnamed3088(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed3014() { +buildUnnamed3089() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed3014(core.List<api.VariantSet> o) { +checkUnnamed3089(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2373,7 +2388,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed3014(); + o.variantSets = buildUnnamed3089(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2383,32 +2398,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3014(o.variantSets); + checkUnnamed3089(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed3015() { +buildUnnamed3090() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3015(core.List<core.String> o) { +checkUnnamed3090(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3016() { +buildUnnamed3091() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3016(core.List<core.String> o) { +checkUnnamed3091(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2419,7 +2434,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed3015(); + o.callSetIds = buildUnnamed3090(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2427,7 +2442,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed3016(); + o.variantSetIds = buildUnnamed3091(); } buildCounterSearchVariantsRequest--; return o; @@ -2436,7 +2451,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed3015(o.callSetIds); + checkUnnamed3090(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2444,19 +2459,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed3016(o.variantSetIds); + checkUnnamed3091(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed3017() { +buildUnnamed3092() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3017(core.List<api.Variant> o) { +checkUnnamed3092(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2468,7 +2483,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed3017(); + o.variants = buildUnnamed3092(); } buildCounterSearchVariantsResponse--; return o; @@ -2478,7 +2493,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3017(o.variants); + checkUnnamed3092(o.variants); } buildCounterSearchVariantsResponse--; } @@ -2502,30 +2517,30 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3018() { +buildUnnamed3093() { 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; } -checkUnnamed3018(core.Map<core.String, core.Object> o) { +checkUnnamed3093(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')); } -buildUnnamed3019() { +buildUnnamed3094() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3018()); - o.add(buildUnnamed3018()); + o.add(buildUnnamed3093()); + o.add(buildUnnamed3093()); return o; } -checkUnnamed3019(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3094(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3018(o[0]); - checkUnnamed3018(o[1]); + checkUnnamed3093(o[0]); + checkUnnamed3093(o[1]); } core.int buildCounterStatus = 0; @@ -2534,7 +2549,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3019(); + o.details = buildUnnamed3094(); o.message = "foo"; } buildCounterStatus--; @@ -2545,7 +2560,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3019(o.details); + checkUnnamed3094(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2582,14 +2597,14 @@ buildCounterStreamReadsRequest--; } -buildUnnamed3020() { +buildUnnamed3095() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3020(core.List<api.Read> o) { +checkUnnamed3095(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2600,7 +2615,7 @@ var o = new api.StreamReadsResponse(); buildCounterStreamReadsResponse++; if (buildCounterStreamReadsResponse < 3) { - o.alignments = buildUnnamed3020(); + o.alignments = buildUnnamed3095(); } buildCounterStreamReadsResponse--; return o; @@ -2609,19 +2624,19 @@ checkStreamReadsResponse(api.StreamReadsResponse o) { buildCounterStreamReadsResponse++; if (buildCounterStreamReadsResponse < 3) { - checkUnnamed3020(o.alignments); + checkUnnamed3095(o.alignments); } buildCounterStreamReadsResponse--; } -buildUnnamed3021() { +buildUnnamed3096() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3021(core.List<core.String> o) { +checkUnnamed3096(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2632,7 +2647,7 @@ var o = new api.StreamVariantsRequest(); buildCounterStreamVariantsRequest++; if (buildCounterStreamVariantsRequest < 3) { - o.callSetIds = buildUnnamed3021(); + o.callSetIds = buildUnnamed3096(); o.end = "foo"; o.projectId = "foo"; o.referenceName = "foo"; @@ -2646,7 +2661,7 @@ checkStreamVariantsRequest(api.StreamVariantsRequest o) { buildCounterStreamVariantsRequest++; if (buildCounterStreamVariantsRequest < 3) { - checkUnnamed3021(o.callSetIds); + checkUnnamed3096(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2656,14 +2671,14 @@ buildCounterStreamVariantsRequest--; } -buildUnnamed3022() { +buildUnnamed3097() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3022(core.List<api.Variant> o) { +checkUnnamed3097(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2674,7 +2689,7 @@ var o = new api.StreamVariantsResponse(); buildCounterStreamVariantsResponse++; if (buildCounterStreamVariantsResponse < 3) { - o.variants = buildUnnamed3022(); + o.variants = buildUnnamed3097(); } buildCounterStreamVariantsResponse--; return o; @@ -2683,19 +2698,19 @@ checkStreamVariantsResponse(api.StreamVariantsResponse o) { buildCounterStreamVariantsResponse++; if (buildCounterStreamVariantsResponse < 3) { - checkUnnamed3022(o.variants); + checkUnnamed3097(o.variants); } buildCounterStreamVariantsResponse--; } -buildUnnamed3023() { +buildUnnamed3098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3023(core.List<core.String> o) { +checkUnnamed3098(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2706,7 +2721,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3023(); + o.permissions = buildUnnamed3098(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2715,19 +2730,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3023(o.permissions); + checkUnnamed3098(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3024() { +buildUnnamed3099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3024(core.List<core.String> o) { +checkUnnamed3099(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2738,7 +2753,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3024(); + o.permissions = buildUnnamed3099(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2747,19 +2762,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3024(o.permissions); + checkUnnamed3099(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed3025() { +buildUnnamed3100() { var o = new core.List<api.Exon>(); o.add(buildExon()); o.add(buildExon()); return o; } -checkUnnamed3025(core.List<api.Exon> o) { +checkUnnamed3100(core.List<api.Exon> o) { unittest.expect(o, unittest.hasLength(2)); checkExon(o[0]); checkExon(o[1]); @@ -2771,7 +2786,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildCodingSequence(); - o.exons = buildUnnamed3025(); + o.exons = buildUnnamed3100(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2782,7 +2797,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkCodingSequence(o.codingSequence); - checkUnnamed3025(o.exons); + checkUnnamed3100(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2805,79 +2820,79 @@ buildCounterUndeleteDatasetRequest--; } -buildUnnamed3026() { +buildUnnamed3101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3026(core.List<core.String> o) { +checkUnnamed3101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3027() { +buildUnnamed3102() { var o = new core.List<api.VariantCall>(); o.add(buildVariantCall()); o.add(buildVariantCall()); return o; } -checkUnnamed3027(core.List<api.VariantCall> o) { +checkUnnamed3102(core.List<api.VariantCall> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantCall(o[0]); checkVariantCall(o[1]); } -buildUnnamed3028() { +buildUnnamed3103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3028(core.List<core.String> o) { +checkUnnamed3103(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3029() { +buildUnnamed3104() { 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; } -checkUnnamed3029(core.List<core.Object> o) { +checkUnnamed3104(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')); } -buildUnnamed3030() { +buildUnnamed3105() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3029(); - o["y"] = buildUnnamed3029(); + o["x"] = buildUnnamed3104(); + o["y"] = buildUnnamed3104(); return o; } -checkUnnamed3030(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3105(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3029(o["x"]); - checkUnnamed3029(o["y"]); + checkUnnamed3104(o["x"]); + checkUnnamed3104(o["y"]); } -buildUnnamed3031() { +buildUnnamed3106() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3031(core.List<core.String> o) { +checkUnnamed3106(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2888,14 +2903,14 @@ var o = new api.Variant(); buildCounterVariant++; if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed3026(); - o.calls = buildUnnamed3027(); + o.alternateBases = buildUnnamed3101(); + o.calls = buildUnnamed3102(); o.created = "foo"; o.end = "foo"; - o.filter = buildUnnamed3028(); + o.filter = buildUnnamed3103(); o.id = "foo"; - o.info = buildUnnamed3030(); - o.names = buildUnnamed3031(); + o.info = buildUnnamed3105(); + o.names = buildUnnamed3106(); o.quality = 42.0; o.referenceBases = "foo"; o.referenceName = "foo"; @@ -2909,14 +2924,14 @@ checkVariant(api.Variant o) { buildCounterVariant++; if (buildCounterVariant < 3) { - checkUnnamed3026(o.alternateBases); - checkUnnamed3027(o.calls); + checkUnnamed3101(o.alternateBases); + checkUnnamed3102(o.calls); unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed3028(o.filter); + checkUnnamed3103(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3030(o.info); - checkUnnamed3031(o.names); + checkUnnamed3105(o.info); + checkUnnamed3106(o.names); unittest.expect(o.quality, unittest.equals(42.0)); unittest.expect(o.referenceBases, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2926,27 +2941,27 @@ buildCounterVariant--; } -buildUnnamed3032() { +buildUnnamed3107() { var o = new core.List<api.ClinicalCondition>(); o.add(buildClinicalCondition()); o.add(buildClinicalCondition()); return o; } -checkUnnamed3032(core.List<api.ClinicalCondition> o) { +checkUnnamed3107(core.List<api.ClinicalCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkClinicalCondition(o[0]); checkClinicalCondition(o[1]); } -buildUnnamed3033() { +buildUnnamed3108() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3033(core.List<core.String> o) { +checkUnnamed3108(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2959,10 +2974,10 @@ if (buildCounterVariantAnnotation < 3) { o.alternateBases = "foo"; o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed3032(); + o.conditions = buildUnnamed3107(); o.effect = "foo"; o.geneId = "foo"; - o.transcriptIds = buildUnnamed3033(); + o.transcriptIds = buildUnnamed3108(); o.type = "foo"; } buildCounterVariantAnnotation--; @@ -2974,65 +2989,65 @@ if (buildCounterVariantAnnotation < 3) { unittest.expect(o.alternateBases, unittest.equals('foo')); unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed3032(o.conditions); + checkUnnamed3107(o.conditions); unittest.expect(o.effect, unittest.equals('foo')); unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed3033(o.transcriptIds); + checkUnnamed3108(o.transcriptIds); unittest.expect(o.type, unittest.equals('foo')); } buildCounterVariantAnnotation--; } -buildUnnamed3034() { +buildUnnamed3109() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3034(core.List<core.int> o) { +checkUnnamed3109(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)); } -buildUnnamed3035() { +buildUnnamed3110() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3035(core.List<core.double> o) { +checkUnnamed3110(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)); } -buildUnnamed3036() { +buildUnnamed3111() { 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; } -checkUnnamed3036(core.List<core.Object> o) { +checkUnnamed3111(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')); } -buildUnnamed3037() { +buildUnnamed3112() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3036(); - o["y"] = buildUnnamed3036(); + o["x"] = buildUnnamed3111(); + o["y"] = buildUnnamed3111(); return o; } -checkUnnamed3037(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3112(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3036(o["x"]); - checkUnnamed3036(o["y"]); + checkUnnamed3111(o["x"]); + checkUnnamed3111(o["y"]); } core.int buildCounterVariantCall = 0; @@ -3042,9 +3057,9 @@ if (buildCounterVariantCall < 3) { o.callSetId = "foo"; o.callSetName = "foo"; - o.genotype = buildUnnamed3034(); - o.genotypeLikelihood = buildUnnamed3035(); - o.info = buildUnnamed3037(); + o.genotype = buildUnnamed3109(); + o.genotypeLikelihood = buildUnnamed3110(); + o.info = buildUnnamed3112(); o.phaseset = "foo"; } buildCounterVariantCall--; @@ -3056,35 +3071,35 @@ if (buildCounterVariantCall < 3) { unittest.expect(o.callSetId, unittest.equals('foo')); unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed3034(o.genotype); - checkUnnamed3035(o.genotypeLikelihood); - checkUnnamed3037(o.info); + checkUnnamed3109(o.genotype); + checkUnnamed3110(o.genotypeLikelihood); + checkUnnamed3112(o.info); unittest.expect(o.phaseset, unittest.equals('foo')); } buildCounterVariantCall--; } -buildUnnamed3038() { +buildUnnamed3113() { var o = new core.List<api.VariantSetMetadata>(); o.add(buildVariantSetMetadata()); o.add(buildVariantSetMetadata()); return o; } -checkUnnamed3038(core.List<api.VariantSetMetadata> o) { +checkUnnamed3113(core.List<api.VariantSetMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSetMetadata(o[0]); checkVariantSetMetadata(o[1]); } -buildUnnamed3039() { +buildUnnamed3114() { var o = new core.List<api.ReferenceBound>(); o.add(buildReferenceBound()); o.add(buildReferenceBound()); return o; } -checkUnnamed3039(core.List<api.ReferenceBound> o) { +checkUnnamed3114(core.List<api.ReferenceBound> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceBound(o[0]); checkReferenceBound(o[1]); @@ -3098,9 +3113,9 @@ o.datasetId = "foo"; o.description = "foo"; o.id = "foo"; - o.metadata = buildUnnamed3038(); + o.metadata = buildUnnamed3113(); o.name = "foo"; - o.referenceBounds = buildUnnamed3039(); + o.referenceBounds = buildUnnamed3114(); o.referenceSetId = "foo"; } buildCounterVariantSet--; @@ -3113,38 +3128,38 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3038(o.metadata); + checkUnnamed3113(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3039(o.referenceBounds); + checkUnnamed3114(o.referenceBounds); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterVariantSet--; } -buildUnnamed3040() { +buildUnnamed3115() { 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; } -checkUnnamed3040(core.List<core.Object> o) { +checkUnnamed3115(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')); } -buildUnnamed3041() { +buildUnnamed3116() { var o = new core.Map<core.String, core.List<core.Object>>(); - o["x"] = buildUnnamed3040(); - o["y"] = buildUnnamed3040(); + o["x"] = buildUnnamed3115(); + o["y"] = buildUnnamed3115(); return o; } -checkUnnamed3041(core.Map<core.String, core.List<core.Object>> o) { +checkUnnamed3116(core.Map<core.String, core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3040(o["x"]); - checkUnnamed3040(o["y"]); + checkUnnamed3115(o["x"]); + checkUnnamed3115(o["y"]); } core.int buildCounterVariantSetMetadata = 0; @@ -3154,7 +3169,7 @@ if (buildCounterVariantSetMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed3041(); + o.info = buildUnnamed3116(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -3169,7 +3184,7 @@ if (buildCounterVariantSetMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3041(o.info); + checkUnnamed3116(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/iam/v1_test.dart b/generated/googleapis/test/iam/v1_test.dart index 6db81ef..7529b01 100644 --- a/generated/googleapis/test/iam/v1_test.dart +++ b/generated/googleapis/test/iam/v1_test.dart
@@ -51,14 +51,33 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1301() { +core.int buildCounterAuditData = 0; +buildAuditData() { + var o = new api.AuditData(); + buildCounterAuditData++; + if (buildCounterAuditData < 3) { + o.policyDelta = buildPolicyDelta(); + } + buildCounterAuditData--; + return o; +} + +checkAuditData(api.AuditData o) { + buildCounterAuditData++; + if (buildCounterAuditData < 3) { + checkPolicyDelta(o.policyDelta); + } + buildCounterAuditData--; +} + +buildUnnamed1327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1301(core.List<core.String> o) { +checkUnnamed1327(core.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 = buildUnnamed1301(); + o.members = buildUnnamed1327(); o.role = "foo"; } buildCounterBinding--; @@ -79,90 +98,33 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1301(o.members); + checkUnnamed1327(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -core.int buildCounterCloudAuditOptions = 0; -buildCloudAuditOptions() { - var o = new api.CloudAuditOptions(); - buildCounterCloudAuditOptions++; - if (buildCounterCloudAuditOptions < 3) { +core.int buildCounterBindingDelta = 0; +buildBindingDelta() { + var o = new api.BindingDelta(); + buildCounterBindingDelta++; + if (buildCounterBindingDelta < 3) { + o.action = "foo"; + o.member = "foo"; + o.role = "foo"; } - buildCounterCloudAuditOptions--; + buildCounterBindingDelta--; return o; } -checkCloudAuditOptions(api.CloudAuditOptions o) { - buildCounterCloudAuditOptions++; - if (buildCounterCloudAuditOptions < 3) { +checkBindingDelta(api.BindingDelta o) { + buildCounterBindingDelta++; + if (buildCounterBindingDelta < 3) { + unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.member, unittest.equals('foo')); + unittest.expect(o.role, unittest.equals('foo')); } - buildCounterCloudAuditOptions--; -} - -buildUnnamed1302() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1302(core.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 buildCounterCondition = 0; -buildCondition() { - var o = new api.Condition(); - buildCounterCondition++; - if (buildCounterCondition < 3) { - o.iam = "foo"; - o.op = "foo"; - o.svc = "foo"; - o.sys = "foo"; - o.value = "foo"; - o.values = buildUnnamed1302(); - } - buildCounterCondition--; - return o; -} - -checkCondition(api.Condition o) { - buildCounterCondition++; - if (buildCounterCondition < 3) { - unittest.expect(o.iam, unittest.equals('foo')); - unittest.expect(o.op, unittest.equals('foo')); - unittest.expect(o.svc, unittest.equals('foo')); - unittest.expect(o.sys, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1302(o.values); - } - buildCounterCondition--; -} - -core.int buildCounterCounterOptions = 0; -buildCounterOptions() { - var o = new api.CounterOptions(); - buildCounterCounterOptions++; - if (buildCounterCounterOptions < 3) { - o.field = "foo"; - o.metric = "foo"; - } - buildCounterCounterOptions--; - return o; -} - -checkCounterOptions(api.CounterOptions o) { - buildCounterCounterOptions++; - if (buildCounterCounterOptions < 3) { - unittest.expect(o.field, unittest.equals('foo')); - unittest.expect(o.metric, unittest.equals('foo')); - } - buildCounterCounterOptions--; + buildCounterBindingDelta--; } core.int buildCounterCreateServiceAccountKeyRequest = 0; @@ -170,6 +132,7 @@ var o = new api.CreateServiceAccountKeyRequest(); buildCounterCreateServiceAccountKeyRequest++; if (buildCounterCreateServiceAccountKeyRequest < 3) { + o.keyAlgorithm = "foo"; o.privateKeyType = "foo"; } buildCounterCreateServiceAccountKeyRequest--; @@ -179,6 +142,7 @@ checkCreateServiceAccountKeyRequest(api.CreateServiceAccountKeyRequest o) { buildCounterCreateServiceAccountKeyRequest++; if (buildCounterCreateServiceAccountKeyRequest < 3) { + unittest.expect(o.keyAlgorithm, unittest.equals('foo')); unittest.expect(o.privateKeyType, unittest.equals('foo')); } buildCounterCreateServiceAccountKeyRequest--; @@ -205,23 +169,6 @@ buildCounterCreateServiceAccountRequest--; } -core.int buildCounterDataAccessOptions = 0; -buildDataAccessOptions() { - var o = new api.DataAccessOptions(); - buildCounterDataAccessOptions++; - if (buildCounterDataAccessOptions < 3) { - } - buildCounterDataAccessOptions--; - return o; -} - -checkDataAccessOptions(api.DataAccessOptions o) { - buildCounterDataAccessOptions++; - if (buildCounterDataAccessOptions < 3) { - } - buildCounterDataAccessOptions--; -} - core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -239,14 +186,14 @@ buildCounterEmpty--; } -buildUnnamed1303() { +buildUnnamed1328() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed1303(core.List<api.ServiceAccountKey> o) { +checkUnnamed1328(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -257,7 +204,7 @@ var o = new api.ListServiceAccountKeysResponse(); buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - o.keys = buildUnnamed1303(); + o.keys = buildUnnamed1328(); } buildCounterListServiceAccountKeysResponse--; return o; @@ -266,19 +213,19 @@ checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - checkUnnamed1303(o.keys); + checkUnnamed1328(o.keys); } buildCounterListServiceAccountKeysResponse--; } -buildUnnamed1304() { +buildUnnamed1329() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed1304(core.List<api.ServiceAccount> o) { +checkUnnamed1329(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -289,7 +236,7 @@ var o = new api.ListServiceAccountsResponse(); buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - o.accounts = buildUnnamed1304(); + o.accounts = buildUnnamed1329(); o.nextPageToken = "foo"; } buildCounterListServiceAccountsResponse--; @@ -299,69 +246,32 @@ checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - checkUnnamed1304(o.accounts); + checkUnnamed1329(o.accounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListServiceAccountsResponse--; } -core.int buildCounterLogConfig = 0; -buildLogConfig() { - var o = new api.LogConfig(); - buildCounterLogConfig++; - if (buildCounterLogConfig < 3) { - o.cloudAudit = buildCloudAuditOptions(); - o.counter = buildCounterOptions(); - o.dataAccess = buildDataAccessOptions(); - } - buildCounterLogConfig--; - return o; -} - -checkLogConfig(api.LogConfig o) { - buildCounterLogConfig++; - if (buildCounterLogConfig < 3) { - checkCloudAuditOptions(o.cloudAudit); - checkCounterOptions(o.counter); - checkDataAccessOptions(o.dataAccess); - } - buildCounterLogConfig--; -} - -buildUnnamed1305() { +buildUnnamed1330() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1305(core.List<api.Binding> o) { +checkUnnamed1330(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1306() { - var o = new core.List<api.Rule>(); - o.add(buildRule()); - o.add(buildRule()); - return o; -} - -checkUnnamed1306(core.List<api.Rule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRule(o[0]); - checkRule(o[1]); -} - core.int buildCounterPolicy = 0; buildPolicy() { var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed1305(); + o.bindings = buildUnnamed1330(); o.etag = "foo"; - o.rules = buildUnnamed1306(); o.version = 42; } buildCounterPolicy--; @@ -371,108 +281,117 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1305(o.bindings); + checkUnnamed1330(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1306(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1307() { - var o = new core.List<api.Condition>(); - o.add(buildCondition()); - o.add(buildCondition()); +buildUnnamed1331() { + var o = new core.List<api.BindingDelta>(); + o.add(buildBindingDelta()); + o.add(buildBindingDelta()); return o; } -checkUnnamed1307(core.List<api.Condition> o) { +checkUnnamed1331(core.List<api.BindingDelta> o) { unittest.expect(o, unittest.hasLength(2)); - checkCondition(o[0]); - checkCondition(o[1]); + checkBindingDelta(o[0]); + checkBindingDelta(o[1]); } -buildUnnamed1308() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +core.int buildCounterPolicyDelta = 0; +buildPolicyDelta() { + var o = new api.PolicyDelta(); + buildCounterPolicyDelta++; + if (buildCounterPolicyDelta < 3) { + o.bindingDeltas = buildUnnamed1331(); + } + buildCounterPolicyDelta--; return o; } -checkUnnamed1308(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +checkPolicyDelta(api.PolicyDelta o) { + buildCounterPolicyDelta++; + if (buildCounterPolicyDelta < 3) { + checkUnnamed1331(o.bindingDeltas); + } + buildCounterPolicyDelta--; } -buildUnnamed1309() { - var o = new core.List<api.LogConfig>(); - o.add(buildLogConfig()); - o.add(buildLogConfig()); +core.int buildCounterQueryGrantableRolesRequest = 0; +buildQueryGrantableRolesRequest() { + var o = new api.QueryGrantableRolesRequest(); + buildCounterQueryGrantableRolesRequest++; + if (buildCounterQueryGrantableRolesRequest < 3) { + o.fullResourceName = "foo"; + } + buildCounterQueryGrantableRolesRequest--; return o; } -checkUnnamed1309(core.List<api.LogConfig> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLogConfig(o[0]); - checkLogConfig(o[1]); +checkQueryGrantableRolesRequest(api.QueryGrantableRolesRequest o) { + buildCounterQueryGrantableRolesRequest++; + if (buildCounterQueryGrantableRolesRequest < 3) { + unittest.expect(o.fullResourceName, unittest.equals('foo')); + } + buildCounterQueryGrantableRolesRequest--; } -buildUnnamed1310() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +buildUnnamed1332() { + var o = new core.List<api.Role>(); + o.add(buildRole()); + o.add(buildRole()); return o; } -checkUnnamed1310(core.List<core.String> o) { +checkUnnamed1332(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkRole(o[0]); + checkRole(o[1]); } -buildUnnamed1311() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +core.int buildCounterQueryGrantableRolesResponse = 0; +buildQueryGrantableRolesResponse() { + var o = new api.QueryGrantableRolesResponse(); + buildCounterQueryGrantableRolesResponse++; + if (buildCounterQueryGrantableRolesResponse < 3) { + o.roles = buildUnnamed1332(); + } + buildCounterQueryGrantableRolesResponse--; return o; } -checkUnnamed1311(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); +checkQueryGrantableRolesResponse(api.QueryGrantableRolesResponse o) { + buildCounterQueryGrantableRolesResponse++; + if (buildCounterQueryGrantableRolesResponse < 3) { + checkUnnamed1332(o.roles); + } + buildCounterQueryGrantableRolesResponse--; } -core.int buildCounterRule = 0; -buildRule() { - var o = new api.Rule(); - buildCounterRule++; - if (buildCounterRule < 3) { - o.action = "foo"; - o.conditions = buildUnnamed1307(); +core.int buildCounterRole = 0; +buildRole() { + var o = new api.Role(); + buildCounterRole++; + if (buildCounterRole < 3) { o.description = "foo"; - o.in_ = buildUnnamed1308(); - o.logConfig = buildUnnamed1309(); - o.notIn = buildUnnamed1310(); - o.permissions = buildUnnamed1311(); + o.name = "foo"; + o.title = "foo"; } - buildCounterRule--; + buildCounterRole--; return o; } -checkRule(api.Rule o) { - buildCounterRule++; - if (buildCounterRule < 3) { - unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1307(o.conditions); +checkRole(api.Role o) { + buildCounterRole++; + if (buildCounterRole < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1308(o.in_); - checkUnnamed1309(o.logConfig); - checkUnnamed1310(o.notIn); - checkUnnamed1311(o.permissions); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); } - buildCounterRule--; + buildCounterRole--; } core.int buildCounterServiceAccount = 0; @@ -511,9 +430,11 @@ var o = new api.ServiceAccountKey(); buildCounterServiceAccountKey++; if (buildCounterServiceAccountKey < 3) { + o.keyAlgorithm = "foo"; o.name = "foo"; o.privateKeyData = "foo"; o.privateKeyType = "foo"; + o.publicKeyData = "foo"; o.validAfterTime = "foo"; o.validBeforeTime = "foo"; } @@ -524,9 +445,11 @@ checkServiceAccountKey(api.ServiceAccountKey o) { buildCounterServiceAccountKey++; if (buildCounterServiceAccountKey < 3) { + unittest.expect(o.keyAlgorithm, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.privateKeyData, unittest.equals('foo')); unittest.expect(o.privateKeyType, unittest.equals('foo')); + unittest.expect(o.publicKeyData, unittest.equals('foo')); unittest.expect(o.validAfterTime, unittest.equals('foo')); unittest.expect(o.validBeforeTime, unittest.equals('foo')); } @@ -592,14 +515,14 @@ buildCounterSignBlobResponse--; } -buildUnnamed1312() { +buildUnnamed1333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1312(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')); @@ -610,7 +533,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1312(); + o.permissions = buildUnnamed1333(); } buildCounterTestIamPermissionsRequest--; return o; @@ -619,19 +542,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1312(o.permissions); + checkUnnamed1333(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1313() { +buildUnnamed1334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1313(core.List<core.String> o) { +checkUnnamed1334(core.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 +565,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1313(); + o.permissions = buildUnnamed1334(); } buildCounterTestIamPermissionsResponse--; return o; @@ -651,19 +574,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1313(o.permissions); + checkUnnamed1334(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1314() { +buildUnnamed1335() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1314(core.List<core.String> o) { +checkUnnamed1335(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -671,6 +594,15 @@ main() { + unittest.group("obj-schema-AuditData", () { + unittest.test("to-json--from-json", () { + var o = buildAuditData(); + var od = new api.AuditData.fromJson(o.toJson()); + checkAuditData(od); + }); + }); + + unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -680,29 +612,11 @@ }); - unittest.group("obj-schema-CloudAuditOptions", () { + unittest.group("obj-schema-BindingDelta", () { unittest.test("to-json--from-json", () { - var o = buildCloudAuditOptions(); - var od = new api.CloudAuditOptions.fromJson(o.toJson()); - checkCloudAuditOptions(od); - }); - }); - - - unittest.group("obj-schema-Condition", () { - unittest.test("to-json--from-json", () { - var o = buildCondition(); - var od = new api.Condition.fromJson(o.toJson()); - checkCondition(od); - }); - }); - - - unittest.group("obj-schema-CounterOptions", () { - unittest.test("to-json--from-json", () { - var o = buildCounterOptions(); - var od = new api.CounterOptions.fromJson(o.toJson()); - checkCounterOptions(od); + var o = buildBindingDelta(); + var od = new api.BindingDelta.fromJson(o.toJson()); + checkBindingDelta(od); }); }); @@ -725,15 +639,6 @@ }); - unittest.group("obj-schema-DataAccessOptions", () { - unittest.test("to-json--from-json", () { - var o = buildDataAccessOptions(); - var od = new api.DataAccessOptions.fromJson(o.toJson()); - checkDataAccessOptions(od); - }); - }); - - unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -761,15 +666,6 @@ }); - unittest.group("obj-schema-LogConfig", () { - unittest.test("to-json--from-json", () { - var o = buildLogConfig(); - var od = new api.LogConfig.fromJson(o.toJson()); - checkLogConfig(od); - }); - }); - - unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -779,11 +675,38 @@ }); - unittest.group("obj-schema-Rule", () { + unittest.group("obj-schema-PolicyDelta", () { unittest.test("to-json--from-json", () { - var o = buildRule(); - var od = new api.Rule.fromJson(o.toJson()); - checkRule(od); + var o = buildPolicyDelta(); + var od = new api.PolicyDelta.fromJson(o.toJson()); + checkPolicyDelta(od); + }); + }); + + + unittest.group("obj-schema-QueryGrantableRolesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildQueryGrantableRolesRequest(); + var od = new api.QueryGrantableRolesRequest.fromJson(o.toJson()); + checkQueryGrantableRolesRequest(od); + }); + }); + + + unittest.group("obj-schema-QueryGrantableRolesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildQueryGrantableRolesResponse(); + var od = new api.QueryGrantableRolesResponse.fromJson(o.toJson()); + checkQueryGrantableRolesResponse(od); + }); + }); + + + unittest.group("obj-schema-Role", () { + unittest.test("to-json--from-json", () { + var o = buildRole(); + var od = new api.Role.fromJson(o.toJson()); + checkRole(od); }); }); @@ -1384,6 +1307,7 @@ var mock = new HttpServerMock(); api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; + var arg_publicKeyType = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1411,6 +1335,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["publicKeyType"].first, unittest.equals(arg_publicKeyType)); var h = { @@ -1419,7 +1344,7 @@ var resp = convert.JSON.encode(buildServiceAccountKey()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_name).then(unittest.expectAsync(((api.ServiceAccountKey response) { + res.get(arg_name, publicKeyType: arg_publicKeyType).then(unittest.expectAsync(((api.ServiceAccountKey response) { checkServiceAccountKey(response); }))); }); @@ -1429,7 +1354,7 @@ var mock = new HttpServerMock(); api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; - var arg_keyTypes = buildUnnamed1314(); + var arg_keyTypes = buildUnnamed1335(); mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -1474,5 +1399,56 @@ }); + unittest.group("resource-RolesResourceApi", () { + unittest.test("method--queryGrantableRoles", () { + + var mock = new HttpServerMock(); + api.RolesResourceApi res = new api.IamApi(mock).roles; + var arg_request = buildQueryGrantableRolesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.QueryGrantableRolesRequest.fromJson(json); + checkQueryGrantableRolesRequest(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/roles:queryGrantableRoles")); + 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(buildQueryGrantableRolesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.queryGrantableRoles(arg_request).then(unittest.expectAsync(((api.QueryGrantableRolesResponse response) { + checkQueryGrantableRolesResponse(response); + }))); + }); + + }); + + }
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index adccdf0..2d061e6 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); } -buildUnnamed2584() { +buildUnnamed2378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2584(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')); @@ -69,7 +69,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed2584(); + o.allProviders = buildUnnamed2378(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -85,7 +85,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed2584(o.allProviders); + checkUnnamed2378(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--; } -buildUnnamed2585() { +buildUnnamed2379() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2585(core.List<api.UserInfo> o) { +checkUnnamed2379(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 = buildUnnamed2585(); + o.users = buildUnnamed2379(); } buildCounterDownloadAccountResponse--; return o; @@ -147,7 +147,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2585(o.users); + checkUnnamed2379(o.users); } buildCounterDownloadAccountResponse--; } @@ -181,14 +181,14 @@ buildCounterEmailTemplate--; } -buildUnnamed2586() { +buildUnnamed2380() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2586(core.List<api.UserInfo> o) { +checkUnnamed2380(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 = buildUnnamed2586(); + o.users = buildUnnamed2380(); } buildCounterGetAccountInfoResponse--; return o; @@ -210,7 +210,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2586(o.users); + checkUnnamed2380(o.users); } buildCounterGetAccountInfoResponse--; } @@ -261,6 +261,19 @@ buildCounterGetRecaptchaParamResponse--; } +buildUnnamed2381() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + core.int buildCounterIdentitytoolkitRelyingpartyCreateAuthUriRequest = 0; buildIdentitytoolkitRelyingpartyCreateAuthUriRequest() { var o = new api.IdentitytoolkitRelyingpartyCreateAuthUriRequest(); @@ -271,6 +284,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; + o.customParameter = buildUnnamed2381(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -292,6 +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); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -350,27 +365,27 @@ buildCounterIdentitytoolkitRelyingpartyDownloadAccountRequest--; } -buildUnnamed2587() { +buildUnnamed2382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2587(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')); } -buildUnnamed2588() { +buildUnnamed2383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2588(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')); @@ -382,9 +397,9 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed2587(); + o.email = buildUnnamed2382(); o.idToken = "foo"; - o.localId = buildUnnamed2588(); + o.localId = buildUnnamed2383(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -394,34 +409,34 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2587(o.email); + checkUnnamed2382(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed2588(o.localId); + checkUnnamed2383(o.localId); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed2589() { +buildUnnamed2384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2589(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')); } -buildUnnamed2590() { +buildUnnamed2385() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2590(core.List<api.IdpConfig> o) { +checkUnnamed2385(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -434,10 +449,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2589(); + o.authorizedDomains = buildUnnamed2384(); o.changeEmailTemplate = buildEmailTemplate(); + o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2590(); + o.idpConfig = buildUnnamed2385(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -453,10 +469,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2589(o.authorizedDomains); + checkUnnamed2384(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); + unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2590(o.idpConfig); + checkUnnamed2385(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -504,40 +521,40 @@ buildCounterIdentitytoolkitRelyingpartyResetPasswordRequest--; } -buildUnnamed2591() { +buildUnnamed2386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2591(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')); } -buildUnnamed2592() { +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2592(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')); } -buildUnnamed2593() { +buildUnnamed2388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2593(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')); @@ -552,8 +569,8 @@ o.captchaResponse = "foo"; o.createdAt = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed2591(); - o.deleteProvider = buildUnnamed2592(); + o.deleteAttribute = buildUnnamed2386(); + o.deleteProvider = buildUnnamed2387(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -565,7 +582,7 @@ o.oobCode = "foo"; o.password = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed2593(); + o.provider = buildUnnamed2388(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -581,8 +598,8 @@ unittest.expect(o.captchaResponse, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed2591(o.deleteAttribute); - checkUnnamed2592(o.deleteProvider); + checkUnnamed2386(o.deleteAttribute); + checkUnnamed2387(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -594,7 +611,7 @@ unittest.expect(o.oobCode, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2593(o.provider); + checkUnnamed2388(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -602,27 +619,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed2594() { +buildUnnamed2389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2594(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')); } -buildUnnamed2595() { +buildUnnamed2390() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed2595(core.List<api.IdpConfig> o) { +checkUnnamed2390(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -635,11 +652,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed2594(); + o.authorizedDomains = buildUnnamed2389(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed2595(); + o.idpConfig = buildUnnamed2390(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -654,11 +671,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed2594(o.authorizedDomains); + checkUnnamed2389(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed2595(o.idpConfig); + checkUnnamed2390(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -733,11 +750,14 @@ if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { o.captchaChallenge = "foo"; o.captchaResponse = "foo"; + o.disabled = true; o.displayName = "foo"; o.email = "foo"; + o.emailVerified = true; o.idToken = "foo"; o.instanceId = "foo"; o.password = "foo"; + o.photoUrl = "foo"; } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; return o; @@ -748,23 +768,26 @@ if (buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest < 3) { unittest.expect(o.captchaChallenge, unittest.equals('foo')); unittest.expect(o.captchaResponse, unittest.equals('foo')); + unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); + unittest.expect(o.emailVerified, unittest.isTrue); unittest.expect(o.idToken, unittest.equals('foo')); unittest.expect(o.instanceId, unittest.equals('foo')); unittest.expect(o.password, unittest.equals('foo')); + unittest.expect(o.photoUrl, unittest.equals('foo')); } buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed2596() { +buildUnnamed2391() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed2596(core.List<api.UserInfo> o) { +checkUnnamed2391(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -775,13 +798,16 @@ var o = new api.IdentitytoolkitRelyingpartyUploadAccountRequest(); buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { + o.allowOverwrite = true; o.delegatedProjectNumber = "foo"; o.hashAlgorithm = "foo"; o.memoryCost = 42; o.rounds = 42; o.saltSeparator = "foo"; + o.sanityCheck = true; o.signerKey = "foo"; - o.users = buildUnnamed2596(); + o.targetProjectId = "foo"; + o.users = buildUnnamed2391(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -790,13 +816,16 @@ checkIdentitytoolkitRelyingpartyUploadAccountRequest(api.IdentitytoolkitRelyingpartyUploadAccountRequest o) { buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest++; if (buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest < 3) { + unittest.expect(o.allowOverwrite, unittest.isTrue); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.hashAlgorithm, unittest.equals('foo')); unittest.expect(o.memoryCost, unittest.equals(42)); unittest.expect(o.rounds, unittest.equals(42)); unittest.expect(o.saltSeparator, unittest.equals('foo')); + unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); - checkUnnamed2596(o.users); + unittest.expect(o.targetProjectId, unittest.equals('foo')); + checkUnnamed2391(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -898,14 +927,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPasswordRequest--; } -buildUnnamed2597() { +buildUnnamed2392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2597(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')); @@ -921,7 +950,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed2597(); + o.whitelistedAudiences = buildUnnamed2392(); } buildCounterIdpConfig--; return o; @@ -935,7 +964,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed2597(o.whitelistedAudiences); + checkUnnamed2392(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -980,6 +1009,8 @@ if (buildCounterResetPasswordResponse < 3) { o.email = "foo"; o.kind = "foo"; + o.newEmail = "foo"; + o.requestType = "foo"; } buildCounterResetPasswordResponse--; return o; @@ -990,6 +1021,8 @@ if (buildCounterResetPasswordResponse < 3) { unittest.expect(o.email, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.newEmail, unittest.equals('foo')); + unittest.expect(o.requestType, unittest.equals('foo')); } buildCounterResetPasswordResponse--; } @@ -1019,14 +1052,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed2598() { +buildUnnamed2393() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed2598(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed2393(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1046,7 +1079,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2598(); + o.providerUserInfo = buildUnnamed2393(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1065,7 +1098,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2598(o.providerUserInfo); + checkUnnamed2393(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1123,14 +1156,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed2599() { +buildUnnamed2394() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed2599(core.List<api.UploadAccountResponseError> o) { +checkUnnamed2394(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1141,7 +1174,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed2599(); + o.error = buildUnnamed2394(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1151,7 +1184,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed2599(o.error); + checkUnnamed2394(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1168,7 +1201,6 @@ o.photoUrl = "foo"; o.providerId = "foo"; o.rawId = "foo"; - o.rawUserInfo = "foo"; o.screenName = "foo"; } buildCounterUserInfoProviderUserInfo--; @@ -1184,20 +1216,19 @@ unittest.expect(o.photoUrl, unittest.equals('foo')); unittest.expect(o.providerId, unittest.equals('foo')); unittest.expect(o.rawId, unittest.equals('foo')); - unittest.expect(o.rawUserInfo, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); } buildCounterUserInfoProviderUserInfo--; } -buildUnnamed2600() { +buildUnnamed2395() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed2600(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed2395(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1209,6 +1240,7 @@ buildCounterUserInfo++; if (buildCounterUserInfo < 3) { o.createdAt = "foo"; + o.customAuth = true; o.disabled = true; o.displayName = "foo"; o.email = "foo"; @@ -1218,7 +1250,8 @@ o.passwordHash = "foo"; o.passwordUpdatedAt = 42.0; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed2600(); + o.providerUserInfo = buildUnnamed2395(); + o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; o.validSince = "foo"; @@ -1232,6 +1265,7 @@ buildCounterUserInfo++; if (buildCounterUserInfo < 3) { unittest.expect(o.createdAt, unittest.equals('foo')); + unittest.expect(o.customAuth, unittest.isTrue); unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -1241,7 +1275,8 @@ unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed2600(o.providerUserInfo); + checkUnnamed2395(o.providerUserInfo); + unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.validSince, unittest.equals('foo')); @@ -1250,14 +1285,14 @@ buildCounterUserInfo--; } -buildUnnamed2601() { +buildUnnamed2396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2601(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')); @@ -1305,7 +1340,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed2601(); + o.verifiedProvider = buildUnnamed2396(); } buildCounterVerifyAssertionResponse--; return o; @@ -1351,7 +1386,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed2601(o.verifiedProvider); + checkUnnamed2396(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; }
diff --git a/generated/googleapis/test/kgsearch/v1_test.dart b/generated/googleapis/test/kgsearch/v1_test.dart index e243db4..b6a1c66 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); } -buildUnnamed1084() { +buildUnnamed1110() { 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) { +checkUnnamed1110(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 = buildUnnamed1084(); + o.itemListElement = buildUnnamed1110(); 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')); - checkUnnamed1084(o.itemListElement); + checkUnnamed1110(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--; } -buildUnnamed1085() { +buildUnnamed1111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1085(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')); } -buildUnnamed1086() { +buildUnnamed1112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1086(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')); } -buildUnnamed1087() { +buildUnnamed1113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1087(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')); @@ -143,9 +143,9 @@ var mock = new HttpServerMock(); api.EntitiesResourceApi res = new api.KgsearchApi(mock).entities; var arg_query = "foo"; - var arg_ids = buildUnnamed1085(); - var arg_languages = buildUnnamed1086(); - var arg_types = buildUnnamed1087(); + var arg_ids = buildUnnamed1111(); + var arg_languages = buildUnnamed1112(); + var arg_types = buildUnnamed1113(); var arg_indent = true; var arg_prefix = true; var arg_limit = 42;
diff --git a/generated/googleapis/test/licensing/v1_test.dart b/generated/googleapis/test/licensing/v1_test.dart index 523cdc9..5284397 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -99,14 +99,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed2371() { +buildUnnamed2133() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed2371(core.List<api.LicenseAssignment> o) { +checkUnnamed2133(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 = buildUnnamed2371(); + o.items = buildUnnamed2133(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -130,7 +130,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2371(o.items); + checkUnnamed2133(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 new file mode 100644 index 0000000..b6f74b7 --- /dev/null +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -0,0 +1,2264 @@ +library googleapis.logging.v2.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/logging/v2.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 buildCounterEmpty = 0; +buildEmpty() { + var o = new api.Empty(); + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; + return o; +} + +checkEmpty(api.Empty o) { + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; +} + +core.int buildCounterHttpRequest = 0; +buildHttpRequest() { + var o = new api.HttpRequest(); + buildCounterHttpRequest++; + if (buildCounterHttpRequest < 3) { + o.cacheFillBytes = "foo"; + o.cacheHit = true; + o.cacheLookup = true; + o.cacheValidatedWithOriginServer = true; + o.latency = "foo"; + o.referer = "foo"; + o.remoteIp = "foo"; + o.requestMethod = "foo"; + o.requestSize = "foo"; + o.requestUrl = "foo"; + o.responseSize = "foo"; + o.serverIp = "foo"; + o.status = 42; + o.userAgent = "foo"; + } + buildCounterHttpRequest--; + return o; +} + +checkHttpRequest(api.HttpRequest o) { + buildCounterHttpRequest++; + if (buildCounterHttpRequest < 3) { + unittest.expect(o.cacheFillBytes, unittest.equals('foo')); + unittest.expect(o.cacheHit, unittest.isTrue); + unittest.expect(o.cacheLookup, unittest.isTrue); + unittest.expect(o.cacheValidatedWithOriginServer, unittest.isTrue); + unittest.expect(o.latency, unittest.equals('foo')); + unittest.expect(o.referer, unittest.equals('foo')); + unittest.expect(o.remoteIp, unittest.equals('foo')); + unittest.expect(o.requestMethod, unittest.equals('foo')); + unittest.expect(o.requestSize, unittest.equals('foo')); + unittest.expect(o.requestUrl, unittest.equals('foo')); + unittest.expect(o.responseSize, unittest.equals('foo')); + unittest.expect(o.serverIp, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals(42)); + unittest.expect(o.userAgent, unittest.equals('foo')); + } + buildCounterHttpRequest--; +} + +core.int buildCounterLabelDescriptor = 0; +buildLabelDescriptor() { + var o = new api.LabelDescriptor(); + buildCounterLabelDescriptor++; + if (buildCounterLabelDescriptor < 3) { + o.description = "foo"; + o.key = "foo"; + o.valueType = "foo"; + } + buildCounterLabelDescriptor--; + return o; +} + +checkLabelDescriptor(api.LabelDescriptor o) { + buildCounterLabelDescriptor++; + if (buildCounterLabelDescriptor < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.valueType, unittest.equals('foo')); + } + buildCounterLabelDescriptor--; +} + +buildUnnamed174() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed174(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed175(core.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 buildCounterListLogEntriesRequest = 0; +buildListLogEntriesRequest() { + var o = new api.ListLogEntriesRequest(); + buildCounterListLogEntriesRequest++; + if (buildCounterListLogEntriesRequest < 3) { + o.filter = "foo"; + o.orderBy = "foo"; + o.pageSize = 42; + o.pageToken = "foo"; + o.projectIds = buildUnnamed174(); + o.resourceNames = buildUnnamed175(); + } + buildCounterListLogEntriesRequest--; + return o; +} + +checkListLogEntriesRequest(api.ListLogEntriesRequest o) { + buildCounterListLogEntriesRequest++; + if (buildCounterListLogEntriesRequest < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + 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); + } + buildCounterListLogEntriesRequest--; +} + +buildUnnamed176() { + var o = new core.List<api.LogEntry>(); + o.add(buildLogEntry()); + o.add(buildLogEntry()); + return o; +} + +checkUnnamed176(core.List<api.LogEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogEntry(o[0]); + checkLogEntry(o[1]); +} + +core.int buildCounterListLogEntriesResponse = 0; +buildListLogEntriesResponse() { + var o = new api.ListLogEntriesResponse(); + buildCounterListLogEntriesResponse++; + if (buildCounterListLogEntriesResponse < 3) { + o.entries = buildUnnamed176(); + o.nextPageToken = "foo"; + } + buildCounterListLogEntriesResponse--; + return o; +} + +checkListLogEntriesResponse(api.ListLogEntriesResponse o) { + buildCounterListLogEntriesResponse++; + if (buildCounterListLogEntriesResponse < 3) { + checkUnnamed176(o.entries); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogEntriesResponse--; +} + +buildUnnamed177() { + var o = new core.List<api.LogMetric>(); + o.add(buildLogMetric()); + o.add(buildLogMetric()); + return o; +} + +checkUnnamed177(core.List<api.LogMetric> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogMetric(o[0]); + checkLogMetric(o[1]); +} + +core.int buildCounterListLogMetricsResponse = 0; +buildListLogMetricsResponse() { + var o = new api.ListLogMetricsResponse(); + buildCounterListLogMetricsResponse++; + if (buildCounterListLogMetricsResponse < 3) { + o.metrics = buildUnnamed177(); + o.nextPageToken = "foo"; + } + buildCounterListLogMetricsResponse--; + return o; +} + +checkListLogMetricsResponse(api.ListLogMetricsResponse o) { + buildCounterListLogMetricsResponse++; + if (buildCounterListLogMetricsResponse < 3) { + checkUnnamed177(o.metrics); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLogMetricsResponse--; +} + +buildUnnamed178() { + var o = new core.List<api.MonitoredResourceDescriptor>(); + o.add(buildMonitoredResourceDescriptor()); + o.add(buildMonitoredResourceDescriptor()); + return o; +} + +checkUnnamed178(core.List<api.MonitoredResourceDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMonitoredResourceDescriptor(o[0]); + checkMonitoredResourceDescriptor(o[1]); +} + +core.int buildCounterListMonitoredResourceDescriptorsResponse = 0; +buildListMonitoredResourceDescriptorsResponse() { + var o = new api.ListMonitoredResourceDescriptorsResponse(); + buildCounterListMonitoredResourceDescriptorsResponse++; + if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { + o.nextPageToken = "foo"; + o.resourceDescriptors = buildUnnamed178(); + } + buildCounterListMonitoredResourceDescriptorsResponse--; + return o; +} + +checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescriptorsResponse o) { + buildCounterListMonitoredResourceDescriptorsResponse++; + if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed178(o.resourceDescriptors); + } + buildCounterListMonitoredResourceDescriptorsResponse--; +} + +buildUnnamed179() { + var o = new core.List<api.LogSink>(); + o.add(buildLogSink()); + o.add(buildLogSink()); + return o; +} + +checkUnnamed179(core.List<api.LogSink> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogSink(o[0]); + checkLogSink(o[1]); +} + +core.int buildCounterListSinksResponse = 0; +buildListSinksResponse() { + var o = new api.ListSinksResponse(); + buildCounterListSinksResponse++; + if (buildCounterListSinksResponse < 3) { + o.nextPageToken = "foo"; + o.sinks = buildUnnamed179(); + } + buildCounterListSinksResponse--; + return o; +} + +checkListSinksResponse(api.ListSinksResponse o) { + buildCounterListSinksResponse++; + if (buildCounterListSinksResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed179(o.sinks); + } + buildCounterListSinksResponse--; +} + +buildUnnamed180() { + 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) { + 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() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed182() { + 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) { + 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')); +} + +core.int buildCounterLogEntry = 0; +buildLogEntry() { + var o = new api.LogEntry(); + buildCounterLogEntry++; + if (buildCounterLogEntry < 3) { + o.httpRequest = buildHttpRequest(); + o.insertId = "foo"; + o.jsonPayload = buildUnnamed180(); + o.labels = buildUnnamed181(); + o.logName = "foo"; + o.operation = buildLogEntryOperation(); + o.protoPayload = buildUnnamed182(); + o.resource = buildMonitoredResource(); + o.severity = "foo"; + o.textPayload = "foo"; + o.timestamp = "foo"; + } + buildCounterLogEntry--; + return o; +} + +checkLogEntry(api.LogEntry o) { + buildCounterLogEntry++; + if (buildCounterLogEntry < 3) { + checkHttpRequest(o.httpRequest); + unittest.expect(o.insertId, unittest.equals('foo')); + checkUnnamed180(o.jsonPayload); + checkUnnamed181(o.labels); + unittest.expect(o.logName, unittest.equals('foo')); + checkLogEntryOperation(o.operation); + checkUnnamed182(o.protoPayload); + checkMonitoredResource(o.resource); + unittest.expect(o.severity, unittest.equals('foo')); + unittest.expect(o.textPayload, unittest.equals('foo')); + unittest.expect(o.timestamp, unittest.equals('foo')); + } + buildCounterLogEntry--; +} + +core.int buildCounterLogEntryOperation = 0; +buildLogEntryOperation() { + var o = new api.LogEntryOperation(); + buildCounterLogEntryOperation++; + if (buildCounterLogEntryOperation < 3) { + o.first = true; + o.id = "foo"; + o.last = true; + o.producer = "foo"; + } + buildCounterLogEntryOperation--; + return o; +} + +checkLogEntryOperation(api.LogEntryOperation o) { + buildCounterLogEntryOperation++; + if (buildCounterLogEntryOperation < 3) { + unittest.expect(o.first, unittest.isTrue); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.last, unittest.isTrue); + unittest.expect(o.producer, unittest.equals('foo')); + } + buildCounterLogEntryOperation--; +} + +core.int buildCounterLogLine = 0; +buildLogLine() { + var o = new api.LogLine(); + buildCounterLogLine++; + if (buildCounterLogLine < 3) { + o.logMessage = "foo"; + o.severity = "foo"; + o.sourceLocation = buildSourceLocation(); + o.time = "foo"; + } + buildCounterLogLine--; + return o; +} + +checkLogLine(api.LogLine o) { + buildCounterLogLine++; + if (buildCounterLogLine < 3) { + unittest.expect(o.logMessage, unittest.equals('foo')); + unittest.expect(o.severity, unittest.equals('foo')); + checkSourceLocation(o.sourceLocation); + unittest.expect(o.time, unittest.equals('foo')); + } + buildCounterLogLine--; +} + +core.int buildCounterLogMetric = 0; +buildLogMetric() { + var o = new api.LogMetric(); + buildCounterLogMetric++; + if (buildCounterLogMetric < 3) { + o.description = "foo"; + o.filter = "foo"; + o.name = "foo"; + o.version = "foo"; + } + buildCounterLogMetric--; + return o; +} + +checkLogMetric(api.LogMetric o) { + buildCounterLogMetric++; + if (buildCounterLogMetric < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterLogMetric--; +} + +core.int buildCounterLogSink = 0; +buildLogSink() { + var o = new api.LogSink(); + buildCounterLogSink++; + if (buildCounterLogSink < 3) { + o.destination = "foo"; + o.endTime = "foo"; + o.filter = "foo"; + o.name = "foo"; + o.outputVersionFormat = "foo"; + o.startTime = "foo"; + o.writerIdentity = "foo"; + } + buildCounterLogSink--; + return o; +} + +checkLogSink(api.LogSink o) { + buildCounterLogSink++; + if (buildCounterLogSink < 3) { + unittest.expect(o.destination, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.outputVersionFormat, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.writerIdentity, unittest.equals('foo')); + } + buildCounterLogSink--; +} + +buildUnnamed183() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterMonitoredResource = 0; +buildMonitoredResource() { + var o = new api.MonitoredResource(); + buildCounterMonitoredResource++; + if (buildCounterMonitoredResource < 3) { + o.labels = buildUnnamed183(); + o.type = "foo"; + } + buildCounterMonitoredResource--; + return o; +} + +checkMonitoredResource(api.MonitoredResource o) { + buildCounterMonitoredResource++; + if (buildCounterMonitoredResource < 3) { + checkUnnamed183(o.labels); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterMonitoredResource--; +} + +buildUnnamed184() { + var o = new core.List<api.LabelDescriptor>(); + o.add(buildLabelDescriptor()); + o.add(buildLabelDescriptor()); + return o; +} + +checkUnnamed184(core.List<api.LabelDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLabelDescriptor(o[0]); + checkLabelDescriptor(o[1]); +} + +core.int buildCounterMonitoredResourceDescriptor = 0; +buildMonitoredResourceDescriptor() { + var o = new api.MonitoredResourceDescriptor(); + buildCounterMonitoredResourceDescriptor++; + if (buildCounterMonitoredResourceDescriptor < 3) { + o.description = "foo"; + o.displayName = "foo"; + o.labels = buildUnnamed184(); + o.name = "foo"; + o.type = "foo"; + } + buildCounterMonitoredResourceDescriptor--; + return o; +} + +checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { + buildCounterMonitoredResourceDescriptor++; + if (buildCounterMonitoredResourceDescriptor < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed184(o.labels); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterMonitoredResourceDescriptor--; +} + +buildUnnamed185() { + var o = new core.List<api.LogLine>(); + o.add(buildLogLine()); + o.add(buildLogLine()); + return o; +} + +checkUnnamed185(core.List<api.LogLine> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogLine(o[0]); + checkLogLine(o[1]); +} + +buildUnnamed186() { + var o = new core.List<api.SourceReference>(); + o.add(buildSourceReference()); + o.add(buildSourceReference()); + return o; +} + +checkUnnamed186(core.List<api.SourceReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSourceReference(o[0]); + checkSourceReference(o[1]); +} + +core.int buildCounterRequestLog = 0; +buildRequestLog() { + var o = new api.RequestLog(); + buildCounterRequestLog++; + if (buildCounterRequestLog < 3) { + o.appEngineRelease = "foo"; + o.appId = "foo"; + o.cost = 42.0; + o.endTime = "foo"; + o.finished = true; + o.first = true; + o.host = "foo"; + o.httpVersion = "foo"; + o.instanceId = "foo"; + o.instanceIndex = 42; + o.ip = "foo"; + o.latency = "foo"; + o.line = buildUnnamed185(); + o.megaCycles = "foo"; + o.method = "foo"; + o.moduleId = "foo"; + o.nickname = "foo"; + o.pendingTime = "foo"; + o.referrer = "foo"; + o.requestId = "foo"; + o.resource = "foo"; + o.responseSize = "foo"; + o.sourceReference = buildUnnamed186(); + o.startTime = "foo"; + o.status = 42; + o.taskName = "foo"; + o.taskQueueName = "foo"; + o.traceId = "foo"; + o.urlMapEntry = "foo"; + o.userAgent = "foo"; + o.versionId = "foo"; + o.wasLoadingRequest = true; + } + buildCounterRequestLog--; + return o; +} + +checkRequestLog(api.RequestLog o) { + buildCounterRequestLog++; + if (buildCounterRequestLog < 3) { + unittest.expect(o.appEngineRelease, unittest.equals('foo')); + unittest.expect(o.appId, unittest.equals('foo')); + unittest.expect(o.cost, unittest.equals(42.0)); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.finished, unittest.isTrue); + unittest.expect(o.first, unittest.isTrue); + unittest.expect(o.host, unittest.equals('foo')); + unittest.expect(o.httpVersion, unittest.equals('foo')); + unittest.expect(o.instanceId, unittest.equals('foo')); + unittest.expect(o.instanceIndex, unittest.equals(42)); + unittest.expect(o.ip, unittest.equals('foo')); + unittest.expect(o.latency, unittest.equals('foo')); + checkUnnamed185(o.line); + unittest.expect(o.megaCycles, unittest.equals('foo')); + unittest.expect(o.method, unittest.equals('foo')); + unittest.expect(o.moduleId, unittest.equals('foo')); + unittest.expect(o.nickname, unittest.equals('foo')); + unittest.expect(o.pendingTime, unittest.equals('foo')); + unittest.expect(o.referrer, unittest.equals('foo')); + unittest.expect(o.requestId, unittest.equals('foo')); + unittest.expect(o.resource, unittest.equals('foo')); + unittest.expect(o.responseSize, unittest.equals('foo')); + checkUnnamed186(o.sourceReference); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.status, unittest.equals(42)); + unittest.expect(o.taskName, unittest.equals('foo')); + unittest.expect(o.taskQueueName, unittest.equals('foo')); + unittest.expect(o.traceId, unittest.equals('foo')); + unittest.expect(o.urlMapEntry, unittest.equals('foo')); + unittest.expect(o.userAgent, unittest.equals('foo')); + unittest.expect(o.versionId, unittest.equals('foo')); + unittest.expect(o.wasLoadingRequest, unittest.isTrue); + } + buildCounterRequestLog--; +} + +core.int buildCounterSourceLocation = 0; +buildSourceLocation() { + var o = new api.SourceLocation(); + buildCounterSourceLocation++; + if (buildCounterSourceLocation < 3) { + o.file = "foo"; + o.functionName = "foo"; + o.line = "foo"; + } + buildCounterSourceLocation--; + return o; +} + +checkSourceLocation(api.SourceLocation o) { + buildCounterSourceLocation++; + if (buildCounterSourceLocation < 3) { + unittest.expect(o.file, unittest.equals('foo')); + unittest.expect(o.functionName, unittest.equals('foo')); + unittest.expect(o.line, unittest.equals('foo')); + } + buildCounterSourceLocation--; +} + +core.int buildCounterSourceReference = 0; +buildSourceReference() { + var o = new api.SourceReference(); + buildCounterSourceReference++; + if (buildCounterSourceReference < 3) { + o.repository = "foo"; + o.revisionId = "foo"; + } + buildCounterSourceReference--; + return o; +} + +checkSourceReference(api.SourceReference o) { + buildCounterSourceReference++; + if (buildCounterSourceReference < 3) { + unittest.expect(o.repository, unittest.equals('foo')); + unittest.expect(o.revisionId, unittest.equals('foo')); + } + buildCounterSourceReference--; +} + +buildUnnamed187() { + var o = new core.List<api.LogEntry>(); + o.add(buildLogEntry()); + o.add(buildLogEntry()); + return o; +} + +checkUnnamed187(core.List<api.LogEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogEntry(o[0]); + checkLogEntry(o[1]); +} + +buildUnnamed188() { + 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) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +core.int buildCounterWriteLogEntriesRequest = 0; +buildWriteLogEntriesRequest() { + var o = new api.WriteLogEntriesRequest(); + buildCounterWriteLogEntriesRequest++; + if (buildCounterWriteLogEntriesRequest < 3) { + o.entries = buildUnnamed187(); + o.labels = buildUnnamed188(); + o.logName = "foo"; + o.partialSuccess = true; + o.resource = buildMonitoredResource(); + } + buildCounterWriteLogEntriesRequest--; + return o; +} + +checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { + buildCounterWriteLogEntriesRequest++; + if (buildCounterWriteLogEntriesRequest < 3) { + checkUnnamed187(o.entries); + checkUnnamed188(o.labels); + unittest.expect(o.logName, unittest.equals('foo')); + unittest.expect(o.partialSuccess, unittest.isTrue); + checkMonitoredResource(o.resource); + } + buildCounterWriteLogEntriesRequest--; +} + +core.int buildCounterWriteLogEntriesResponse = 0; +buildWriteLogEntriesResponse() { + var o = new api.WriteLogEntriesResponse(); + buildCounterWriteLogEntriesResponse++; + if (buildCounterWriteLogEntriesResponse < 3) { + } + buildCounterWriteLogEntriesResponse--; + return o; +} + +checkWriteLogEntriesResponse(api.WriteLogEntriesResponse o) { + buildCounterWriteLogEntriesResponse++; + if (buildCounterWriteLogEntriesResponse < 3) { + } + buildCounterWriteLogEntriesResponse--; +} + + +main() { + unittest.group("obj-schema-Empty", () { + unittest.test("to-json--from-json", () { + var o = buildEmpty(); + var od = new api.Empty.fromJson(o.toJson()); + checkEmpty(od); + }); + }); + + + unittest.group("obj-schema-HttpRequest", () { + unittest.test("to-json--from-json", () { + var o = buildHttpRequest(); + var od = new api.HttpRequest.fromJson(o.toJson()); + checkHttpRequest(od); + }); + }); + + + unittest.group("obj-schema-LabelDescriptor", () { + unittest.test("to-json--from-json", () { + var o = buildLabelDescriptor(); + var od = new api.LabelDescriptor.fromJson(o.toJson()); + checkLabelDescriptor(od); + }); + }); + + + unittest.group("obj-schema-ListLogEntriesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildListLogEntriesRequest(); + var od = new api.ListLogEntriesRequest.fromJson(o.toJson()); + checkListLogEntriesRequest(od); + }); + }); + + + unittest.group("obj-schema-ListLogEntriesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLogEntriesResponse(); + var od = new api.ListLogEntriesResponse.fromJson(o.toJson()); + checkListLogEntriesResponse(od); + }); + }); + + + unittest.group("obj-schema-ListLogMetricsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLogMetricsResponse(); + var od = new api.ListLogMetricsResponse.fromJson(o.toJson()); + checkListLogMetricsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListMonitoredResourceDescriptorsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListMonitoredResourceDescriptorsResponse(); + var od = new api.ListMonitoredResourceDescriptorsResponse.fromJson(o.toJson()); + checkListMonitoredResourceDescriptorsResponse(od); + }); + }); + + + unittest.group("obj-schema-ListSinksResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListSinksResponse(); + var od = new api.ListSinksResponse.fromJson(o.toJson()); + checkListSinksResponse(od); + }); + }); + + + unittest.group("obj-schema-LogEntry", () { + unittest.test("to-json--from-json", () { + var o = buildLogEntry(); + var od = new api.LogEntry.fromJson(o.toJson()); + checkLogEntry(od); + }); + }); + + + unittest.group("obj-schema-LogEntryOperation", () { + unittest.test("to-json--from-json", () { + var o = buildLogEntryOperation(); + var od = new api.LogEntryOperation.fromJson(o.toJson()); + checkLogEntryOperation(od); + }); + }); + + + unittest.group("obj-schema-LogLine", () { + unittest.test("to-json--from-json", () { + var o = buildLogLine(); + var od = new api.LogLine.fromJson(o.toJson()); + checkLogLine(od); + }); + }); + + + unittest.group("obj-schema-LogMetric", () { + unittest.test("to-json--from-json", () { + var o = buildLogMetric(); + var od = new api.LogMetric.fromJson(o.toJson()); + checkLogMetric(od); + }); + }); + + + unittest.group("obj-schema-LogSink", () { + unittest.test("to-json--from-json", () { + var o = buildLogSink(); + var od = new api.LogSink.fromJson(o.toJson()); + checkLogSink(od); + }); + }); + + + unittest.group("obj-schema-MonitoredResource", () { + unittest.test("to-json--from-json", () { + var o = buildMonitoredResource(); + var od = new api.MonitoredResource.fromJson(o.toJson()); + checkMonitoredResource(od); + }); + }); + + + unittest.group("obj-schema-MonitoredResourceDescriptor", () { + unittest.test("to-json--from-json", () { + var o = buildMonitoredResourceDescriptor(); + var od = new api.MonitoredResourceDescriptor.fromJson(o.toJson()); + checkMonitoredResourceDescriptor(od); + }); + }); + + + unittest.group("obj-schema-RequestLog", () { + unittest.test("to-json--from-json", () { + var o = buildRequestLog(); + var od = new api.RequestLog.fromJson(o.toJson()); + checkRequestLog(od); + }); + }); + + + unittest.group("obj-schema-SourceLocation", () { + unittest.test("to-json--from-json", () { + var o = buildSourceLocation(); + var od = new api.SourceLocation.fromJson(o.toJson()); + checkSourceLocation(od); + }); + }); + + + unittest.group("obj-schema-SourceReference", () { + unittest.test("to-json--from-json", () { + var o = buildSourceReference(); + var od = new api.SourceReference.fromJson(o.toJson()); + checkSourceReference(od); + }); + }); + + + unittest.group("obj-schema-WriteLogEntriesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildWriteLogEntriesRequest(); + var od = new api.WriteLogEntriesRequest.fromJson(o.toJson()); + checkWriteLogEntriesRequest(od); + }); + }); + + + unittest.group("obj-schema-WriteLogEntriesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildWriteLogEntriesResponse(); + var od = new api.WriteLogEntriesResponse.fromJson(o.toJson()); + checkWriteLogEntriesResponse(od); + }); + }); + + + unittest.group("resource-BillingAccountsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.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.group("resource-BillingAccountsSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.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.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.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.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.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.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.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.BillingAccountsSinksResourceApi res = new api.LoggingApi(mock).billingAccounts.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-EntriesResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.EntriesResourceApi res = new api.LoggingApi(mock).entries; + var arg_request = buildListLogEntriesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ListLogEntriesRequest.fromJson(json); + checkListLogEntriesRequest(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 + 15), unittest.equals("v2/entries:list")); + 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(buildListLogEntriesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_request).then(unittest.expectAsync(((api.ListLogEntriesResponse response) { + checkListLogEntriesResponse(response); + }))); + }); + + unittest.test("method--write", () { + + var mock = new HttpServerMock(); + api.EntriesResourceApi res = new api.LoggingApi(mock).entries; + var arg_request = buildWriteLogEntriesRequest(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.WriteLogEntriesRequest.fromJson(json); + checkWriteLogEntriesRequest(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("v2/entries:write")); + 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(buildWriteLogEntriesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.write(arg_request).then(unittest.expectAsync(((api.WriteLogEntriesResponse response) { + checkWriteLogEntriesResponse(response); + }))); + }); + + }); + + + unittest.group("resource-MonitoredResourceDescriptorsResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; + 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 + 31), unittest.equals("v2/monitoredResourceDescriptors")); + 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])); + } + } + 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(buildListMonitoredResourceDescriptorsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { + checkListMonitoredResourceDescriptorsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-OrganizationsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.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.group("resource-OrganizationsSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.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.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.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.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.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.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.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.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.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-ProjectsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.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.group("resource-ProjectsMetricsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_request = buildLogMetric(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogMetric.fromJson(json); + checkLogMetric(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])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogMetric()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.LogMetric response) { + checkLogMetric(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_metricName = "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_metricName).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_metricName = "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(buildLogMetric()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + checkLogMetric(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + 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(buildListLogMetricsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogMetricsResponse response) { + checkListLogMetricsResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; + var arg_request = buildLogMetric(); + var arg_metricName = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LogMetric.fromJson(json); + checkLogMetric(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])); + } + } + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildLogMetric()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_metricName).then(unittest.expectAsync(((api.LogMetric response) { + checkLogMetric(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsSinksResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.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.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.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.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.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.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.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.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.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); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart new file mode 100644 index 0000000..c8e95ea --- /dev/null +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -0,0 +1,373 @@ +library googleapis.manufacturers.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/manufacturers/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); +} + +buildUnnamed1811() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1811(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1812(core.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 buildCounterAttributes = 0; +buildAttributes() { + var o = new api.Attributes(); + buildCounterAttributes++; + if (buildCounterAttributes < 3) { + o.brand = "foo"; + o.gtin = buildUnnamed1811(); + o.mpn = "foo"; + o.productLine = "foo"; + o.productName = "foo"; + o.productPageUrl = "foo"; + o.productType = buildUnnamed1812(); + o.title = "foo"; + } + buildCounterAttributes--; + return o; +} + +checkAttributes(api.Attributes o) { + buildCounterAttributes++; + if (buildCounterAttributes < 3) { + unittest.expect(o.brand, unittest.equals('foo')); + checkUnnamed1811(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); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterAttributes--; +} + +core.int buildCounterIssue = 0; +buildIssue() { + var o = new api.Issue(); + buildCounterIssue++; + if (buildCounterIssue < 3) { + o.attribute = "foo"; + o.description = "foo"; + o.severity = "foo"; + o.type = "foo"; + } + buildCounterIssue--; + return o; +} + +checkIssue(api.Issue o) { + buildCounterIssue++; + if (buildCounterIssue < 3) { + unittest.expect(o.attribute, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.severity, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterIssue--; +} + +buildUnnamed1813() { + var o = new core.List<api.Product>(); + o.add(buildProduct()); + o.add(buildProduct()); + return o; +} + +checkUnnamed1813(core.List<api.Product> o) { + unittest.expect(o, unittest.hasLength(2)); + checkProduct(o[0]); + checkProduct(o[1]); +} + +core.int buildCounterListProductsResponse = 0; +buildListProductsResponse() { + var o = new api.ListProductsResponse(); + buildCounterListProductsResponse++; + if (buildCounterListProductsResponse < 3) { + o.nextPageToken = "foo"; + o.products = buildUnnamed1813(); + } + buildCounterListProductsResponse--; + return o; +} + +checkListProductsResponse(api.ListProductsResponse o) { + buildCounterListProductsResponse++; + if (buildCounterListProductsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed1813(o.products); + } + buildCounterListProductsResponse--; +} + +buildUnnamed1814() { + var o = new core.List<api.Issue>(); + o.add(buildIssue()); + o.add(buildIssue()); + return o; +} + +checkUnnamed1814(core.List<api.Issue> o) { + unittest.expect(o, unittest.hasLength(2)); + checkIssue(o[0]); + checkIssue(o[1]); +} + +buildUnnamed1815() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterProduct = 0; +buildProduct() { + var o = new api.Product(); + buildCounterProduct++; + if (buildCounterProduct < 3) { + o.contentLanguage = "foo"; + o.finalAttributes = buildAttributes(); + o.issues = buildUnnamed1814(); + o.manuallyDeletedAttributes = buildUnnamed1815(); + o.manuallyProvidedAttributes = buildAttributes(); + o.name = "foo"; + o.parent = "foo"; + o.productId = "foo"; + o.targetCountry = "foo"; + o.uploadedAttributes = buildAttributes(); + } + buildCounterProduct--; + return o; +} + +checkProduct(api.Product o) { + buildCounterProduct++; + if (buildCounterProduct < 3) { + unittest.expect(o.contentLanguage, unittest.equals('foo')); + checkAttributes(o.finalAttributes); + checkUnnamed1814(o.issues); + checkUnnamed1815(o.manuallyDeletedAttributes); + checkAttributes(o.manuallyProvidedAttributes); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.parent, unittest.equals('foo')); + unittest.expect(o.productId, unittest.equals('foo')); + unittest.expect(o.targetCountry, unittest.equals('foo')); + checkAttributes(o.uploadedAttributes); + } + buildCounterProduct--; +} + + +main() { + unittest.group("obj-schema-Attributes", () { + unittest.test("to-json--from-json", () { + var o = buildAttributes(); + var od = new api.Attributes.fromJson(o.toJson()); + checkAttributes(od); + }); + }); + + + unittest.group("obj-schema-Issue", () { + unittest.test("to-json--from-json", () { + var o = buildIssue(); + var od = new api.Issue.fromJson(o.toJson()); + checkIssue(od); + }); + }); + + + unittest.group("obj-schema-ListProductsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListProductsResponse(); + var od = new api.ListProductsResponse.fromJson(o.toJson()); + checkListProductsResponse(od); + }); + }); + + + unittest.group("obj-schema-Product", () { + unittest.test("to-json--from-json", () { + var o = buildProduct(); + var od = new api.Product.fromJson(o.toJson()); + checkProduct(od); + }); + }); + + + unittest.group("resource-AccountsProductsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; + var arg_parent = "foo"; + var arg_name = "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("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(buildProduct()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_parent, arg_name).then(unittest.expectAsync(((api.Product response) { + checkProduct(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; + 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("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])); + } + } + 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(buildListProductsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListProductsResponse response) { + checkListProductsResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/mirror/v1_test.dart b/generated/googleapis/test/mirror/v1_test.dart index 9b71c91..26df054 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); } -buildUnnamed1471() { +buildUnnamed1481() { var o = new core.List<api.AuthToken>(); o.add(buildAuthToken()); o.add(buildAuthToken()); return o; } -checkUnnamed1471(core.List<api.AuthToken> o) { +checkUnnamed1481(core.List<api.AuthToken> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthToken(o[0]); checkAuthToken(o[1]); } -buildUnnamed1472() { +buildUnnamed1482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1472(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')); } -buildUnnamed1473() { +buildUnnamed1483() { var o = new core.List<api.UserData>(); o.add(buildUserData()); o.add(buildUserData()); return o; } -checkUnnamed1473(core.List<api.UserData> o) { +checkUnnamed1483(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 = buildUnnamed1471(); - o.features = buildUnnamed1472(); + o.authTokens = buildUnnamed1481(); + o.features = buildUnnamed1482(); o.password = "foo"; - o.userData = buildUnnamed1473(); + o.userData = buildUnnamed1483(); } buildCounterAccount--; return o; @@ -107,10 +107,10 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1471(o.authTokens); - checkUnnamed1472(o.features); + checkUnnamed1481(o.authTokens); + checkUnnamed1482(o.features); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed1473(o.userData); + checkUnnamed1483(o.userData); } buildCounterAccount--; } @@ -140,14 +140,14 @@ buildCounterAttachment--; } -buildUnnamed1474() { +buildUnnamed1484() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1474(core.List<api.Attachment> o) { +checkUnnamed1484(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 = buildUnnamed1474(); + o.items = buildUnnamed1484(); o.kind = "foo"; } buildCounterAttachmentsListResponse--; @@ -168,7 +168,7 @@ checkAttachmentsListResponse(api.AttachmentsListResponse o) { buildCounterAttachmentsListResponse++; if (buildCounterAttachmentsListResponse < 3) { - checkUnnamed1474(o.items); + checkUnnamed1484(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAttachmentsListResponse--; @@ -214,53 +214,53 @@ buildCounterCommand--; } -buildUnnamed1475() { +buildUnnamed1485() { var o = new core.List<api.Command>(); o.add(buildCommand()); o.add(buildCommand()); return o; } -checkUnnamed1475(core.List<api.Command> o) { +checkUnnamed1485(core.List<api.Command> o) { unittest.expect(o, unittest.hasLength(2)); checkCommand(o[0]); checkCommand(o[1]); } -buildUnnamed1476() { +buildUnnamed1486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1476(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')); } -buildUnnamed1477() { +buildUnnamed1487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1477(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')); } -buildUnnamed1478() { +buildUnnamed1488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1478(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')); @@ -271,15 +271,15 @@ var o = new api.Contact(); buildCounterContact++; if (buildCounterContact < 3) { - o.acceptCommands = buildUnnamed1475(); - o.acceptTypes = buildUnnamed1476(); + o.acceptCommands = buildUnnamed1485(); + o.acceptTypes = buildUnnamed1486(); o.displayName = "foo"; o.id = "foo"; - o.imageUrls = buildUnnamed1477(); + o.imageUrls = buildUnnamed1487(); o.kind = "foo"; o.phoneNumber = "foo"; o.priority = 42; - o.sharingFeatures = buildUnnamed1478(); + o.sharingFeatures = buildUnnamed1488(); o.source = "foo"; o.speakableName = "foo"; o.type = "foo"; @@ -291,15 +291,15 @@ checkContact(api.Contact o) { buildCounterContact++; if (buildCounterContact < 3) { - checkUnnamed1475(o.acceptCommands); - checkUnnamed1476(o.acceptTypes); + checkUnnamed1485(o.acceptCommands); + checkUnnamed1486(o.acceptTypes); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1477(o.imageUrls); + checkUnnamed1487(o.imageUrls); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); - checkUnnamed1478(o.sharingFeatures); + checkUnnamed1488(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--; } -buildUnnamed1479() { +buildUnnamed1489() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1479(core.List<api.Contact> o) { +checkUnnamed1489(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 = buildUnnamed1479(); + o.items = buildUnnamed1489(); o.kind = "foo"; } buildCounterContactsListResponse--; @@ -335,7 +335,7 @@ checkContactsListResponse(api.ContactsListResponse o) { buildCounterContactsListResponse++; if (buildCounterContactsListResponse < 3) { - checkUnnamed1479(o.items); + checkUnnamed1489(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterContactsListResponse--; @@ -374,14 +374,14 @@ buildCounterLocation--; } -buildUnnamed1480() { +buildUnnamed1490() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1480(core.List<api.Location> o) { +checkUnnamed1490(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 = buildUnnamed1480(); + o.items = buildUnnamed1490(); o.kind = "foo"; } buildCounterLocationsListResponse--; @@ -402,20 +402,20 @@ checkLocationsListResponse(api.LocationsListResponse o) { buildCounterLocationsListResponse++; if (buildCounterLocationsListResponse < 3) { - checkUnnamed1480(o.items); + checkUnnamed1490(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocationsListResponse--; } -buildUnnamed1481() { +buildUnnamed1491() { var o = new core.List<api.MenuValue>(); o.add(buildMenuValue()); o.add(buildMenuValue()); return o; } -checkUnnamed1481(core.List<api.MenuValue> o) { +checkUnnamed1491(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 = buildUnnamed1481(); + o.values = buildUnnamed1491(); } 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); - checkUnnamed1481(o.values); + checkUnnamed1491(o.values); } buildCounterMenuItem--; } @@ -473,14 +473,14 @@ buildCounterMenuValue--; } -buildUnnamed1482() { +buildUnnamed1492() { var o = new core.List<api.UserAction>(); o.add(buildUserAction()); o.add(buildUserAction()); return o; } -checkUnnamed1482(core.List<api.UserAction> o) { +checkUnnamed1492(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 = buildUnnamed1482(); + o.userActions = buildUnnamed1492(); 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')); - checkUnnamed1482(o.userActions); + checkUnnamed1492(o.userActions); unittest.expect(o.userToken, unittest.equals('foo')); unittest.expect(o.verifyToken, unittest.equals('foo')); } @@ -559,14 +559,14 @@ buildCounterSetting--; } -buildUnnamed1483() { +buildUnnamed1493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1483(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')); @@ -582,7 +582,7 @@ o.id = "foo"; o.kind = "foo"; o.notification = buildNotification(); - o.operation = buildUnnamed1483(); + o.operation = buildUnnamed1493(); 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); - checkUnnamed1483(o.operation); + checkUnnamed1493(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--; } -buildUnnamed1484() { +buildUnnamed1494() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1484(core.List<api.Subscription> o) { +checkUnnamed1494(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 = buildUnnamed1484(); + o.items = buildUnnamed1494(); o.kind = "foo"; } buildCounterSubscriptionsListResponse--; @@ -635,46 +635,46 @@ checkSubscriptionsListResponse(api.SubscriptionsListResponse o) { buildCounterSubscriptionsListResponse++; if (buildCounterSubscriptionsListResponse < 3) { - checkUnnamed1484(o.items); + checkUnnamed1494(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSubscriptionsListResponse--; } -buildUnnamed1485() { +buildUnnamed1495() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed1485(core.List<api.Attachment> o) { +checkUnnamed1495(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); } -buildUnnamed1486() { +buildUnnamed1496() { var o = new core.List<api.MenuItem>(); o.add(buildMenuItem()); o.add(buildMenuItem()); return o; } -checkUnnamed1486(core.List<api.MenuItem> o) { +checkUnnamed1496(core.List<api.MenuItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMenuItem(o[0]); checkMenuItem(o[1]); } -buildUnnamed1487() { +buildUnnamed1497() { var o = new core.List<api.Contact>(); o.add(buildContact()); o.add(buildContact()); return o; } -checkUnnamed1487(core.List<api.Contact> o) { +checkUnnamed1497(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 = buildUnnamed1485(); + o.attachments = buildUnnamed1495(); 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 = buildUnnamed1486(); + o.menuItems = buildUnnamed1496(); o.notification = buildNotificationConfig(); o.pinScore = 42; - o.recipients = buildUnnamed1487(); + o.recipients = buildUnnamed1497(); o.selfLink = "foo"; o.sourceItemId = "foo"; o.speakableText = "foo"; @@ -719,7 +719,7 @@ checkTimelineItem(api.TimelineItem o) { buildCounterTimelineItem++; if (buildCounterTimelineItem < 3) { - checkUnnamed1485(o.attachments); + checkUnnamed1495(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); - checkUnnamed1486(o.menuItems); + checkUnnamed1496(o.menuItems); checkNotificationConfig(o.notification); unittest.expect(o.pinScore, unittest.equals(42)); - checkUnnamed1487(o.recipients); + checkUnnamed1497(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--; } -buildUnnamed1488() { +buildUnnamed1498() { var o = new core.List<api.TimelineItem>(); o.add(buildTimelineItem()); o.add(buildTimelineItem()); return o; } -checkUnnamed1488(core.List<api.TimelineItem> o) { +checkUnnamed1498(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 = buildUnnamed1488(); + o.items = buildUnnamed1498(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -778,7 +778,7 @@ checkTimelineListResponse(api.TimelineListResponse o) { buildCounterTimelineListResponse++; if (buildCounterTimelineListResponse < 3) { - checkUnnamed1488(o.items); + checkUnnamed1498(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 fffa8b1..70b1640 100644 --- a/generated/googleapis/test/monitoring/v3_test.dart +++ b/generated/googleapis/test/monitoring/v3_test.dart
@@ -74,27 +74,27 @@ buildCounterBucketOptions--; } -buildUnnamed1511() { +buildUnnamed1521() { var o = new core.Map<core.String, api.TypedValue>(); o["x"] = buildTypedValue(); o["y"] = buildTypedValue(); return o; } -checkUnnamed1511(core.Map<core.String, api.TypedValue> o) { +checkUnnamed1521(core.Map<core.String, api.TypedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTypedValue(o["x"]); checkTypedValue(o["y"]); } -buildUnnamed1512() { +buildUnnamed1522() { var o = new core.List<api.CollectdValue>(); o.add(buildCollectdValue()); o.add(buildCollectdValue()); return o; } -checkUnnamed1512(core.List<api.CollectdValue> o) { +checkUnnamed1522(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 = buildUnnamed1511(); + o.metadata = buildUnnamed1521(); o.plugin = "foo"; o.pluginInstance = "foo"; o.startTime = "foo"; o.type = "foo"; o.typeInstance = "foo"; - o.values = buildUnnamed1512(); + o.values = buildUnnamed1522(); } buildCounterCollectdPayload--; return o; @@ -122,13 +122,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1511(o.metadata); + checkUnnamed1521(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')); - checkUnnamed1512(o.values); + checkUnnamed1522(o.values); } buildCounterCollectdPayload--; } @@ -156,14 +156,14 @@ buildCounterCollectdValue--; } -buildUnnamed1513() { +buildUnnamed1523() { var o = new core.List<api.CollectdPayload>(); o.add(buildCollectdPayload()); o.add(buildCollectdPayload()); return o; } -checkUnnamed1513(core.List<api.CollectdPayload> o) { +checkUnnamed1523(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 = buildUnnamed1513(); + o.collectdPayloads = buildUnnamed1523(); o.collectdVersion = "foo"; o.resource = buildMonitoredResource(); } @@ -185,21 +185,21 @@ checkCreateCollectdTimeSeriesRequest(api.CreateCollectdTimeSeriesRequest o) { buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - checkUnnamed1513(o.collectdPayloads); + checkUnnamed1523(o.collectdPayloads); unittest.expect(o.collectdVersion, unittest.equals('foo')); checkMonitoredResource(o.resource); } buildCounterCreateCollectdTimeSeriesRequest--; } -buildUnnamed1514() { +buildUnnamed1524() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1514(core.List<api.TimeSeries> o) { +checkUnnamed1524(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 = buildUnnamed1514(); + o.timeSeries = buildUnnamed1524(); } buildCounterCreateTimeSeriesRequest--; return o; @@ -219,19 +219,19 @@ checkCreateTimeSeriesRequest(api.CreateTimeSeriesRequest o) { buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - checkUnnamed1514(o.timeSeries); + checkUnnamed1524(o.timeSeries); } buildCounterCreateTimeSeriesRequest--; } -buildUnnamed1515() { +buildUnnamed1525() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1515(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')); @@ -242,7 +242,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1515(); + o.bucketCounts = buildUnnamed1525(); o.bucketOptions = buildBucketOptions(); o.count = "foo"; o.mean = 42.0; @@ -256,7 +256,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1515(o.bucketCounts); + checkUnnamed1525(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--; } -buildUnnamed1516() { +buildUnnamed1526() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1516(core.List<core.double> o) { +checkUnnamed1526(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 = buildUnnamed1516(); + o.bounds = buildUnnamed1526(); } buildCounterExplicit--; return o; @@ -310,7 +310,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed1516(o.bounds); + checkUnnamed1526(o.bounds); } buildCounterExplicit--; } @@ -338,14 +338,14 @@ buildCounterExponential--; } -buildUnnamed1517() { +buildUnnamed1527() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1517(core.List<api.Option> o) { +checkUnnamed1527(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 = buildUnnamed1517(); + o.options = buildUnnamed1527(); 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)); - checkUnnamed1517(o.options); + checkUnnamed1527(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -461,14 +461,14 @@ buildCounterLinear--; } -buildUnnamed1518() { +buildUnnamed1528() { var o = new core.List<api.MonitoredResource>(); o.add(buildMonitoredResource()); o.add(buildMonitoredResource()); return o; } -checkUnnamed1518(core.List<api.MonitoredResource> o) { +checkUnnamed1528(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 = buildUnnamed1518(); + o.members = buildUnnamed1528(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -490,21 +490,21 @@ checkListGroupMembersResponse(api.ListGroupMembersResponse o) { buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - checkUnnamed1518(o.members); + checkUnnamed1528(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListGroupMembersResponse--; } -buildUnnamed1519() { +buildUnnamed1529() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed1519(core.List<api.Group> o) { +checkUnnamed1529(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 = buildUnnamed1519(); + o.group = buildUnnamed1529(); o.nextPageToken = "foo"; } buildCounterListGroupsResponse--; @@ -525,20 +525,20 @@ checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed1519(o.group); + checkUnnamed1529(o.group); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed1520() { +buildUnnamed1530() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1520(core.List<api.MetricDescriptor> o) { +checkUnnamed1530(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 = buildUnnamed1520(); + o.metricDescriptors = buildUnnamed1530(); o.nextPageToken = "foo"; } buildCounterListMetricDescriptorsResponse--; @@ -559,20 +559,20 @@ checkListMetricDescriptorsResponse(api.ListMetricDescriptorsResponse o) { buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - checkUnnamed1520(o.metricDescriptors); + checkUnnamed1530(o.metricDescriptors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMetricDescriptorsResponse--; } -buildUnnamed1521() { +buildUnnamed1531() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1521(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1531(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 = buildUnnamed1521(); + o.resourceDescriptors = buildUnnamed1531(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -594,19 +594,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1521(o.resourceDescriptors); + checkUnnamed1531(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed1522() { +buildUnnamed1532() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed1522(core.List<api.TimeSeries> o) { +checkUnnamed1532(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 = buildUnnamed1522(); + o.timeSeries = buildUnnamed1532(); } buildCounterListTimeSeriesResponse--; return o; @@ -628,19 +628,19 @@ buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1522(o.timeSeries); + checkUnnamed1532(o.timeSeries); } buildCounterListTimeSeriesResponse--; } -buildUnnamed1523() { +buildUnnamed1533() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1523(core.Map<core.String, core.String> o) { +checkUnnamed1533(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 = buildUnnamed1523(); + o.labels = buildUnnamed1533(); o.type = "foo"; } buildCounterMetric--; @@ -661,20 +661,20 @@ checkMetric(api.Metric o) { buildCounterMetric++; if (buildCounterMetric < 3) { - checkUnnamed1523(o.labels); + checkUnnamed1533(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMetric--; } -buildUnnamed1524() { +buildUnnamed1534() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1524(core.List<api.LabelDescriptor> o) { +checkUnnamed1534(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 = buildUnnamed1524(); + o.labels = buildUnnamed1534(); 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')); - checkUnnamed1524(o.labels); + checkUnnamed1534(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--; } -buildUnnamed1525() { +buildUnnamed1535() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1525(core.Map<core.String, core.String> o) { +checkUnnamed1535(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 = buildUnnamed1525(); + o.labels = buildUnnamed1535(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -741,20 +741,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed1525(o.labels); + checkUnnamed1535(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed1526() { +buildUnnamed1536() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1526(core.List<api.LabelDescriptor> o) { +checkUnnamed1536(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 = buildUnnamed1526(); + o.labels = buildUnnamed1536(); 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')); - checkUnnamed1526(o.labels); + checkUnnamed1536(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1527() { +buildUnnamed1537() { 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; } -checkUnnamed1527(core.Map<core.String, core.Object> o) { +checkUnnamed1537(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 = buildUnnamed1527(); + o.value = buildUnnamed1537(); } buildCounterOption--; return o; @@ -816,7 +816,7 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1527(o.value); + checkUnnamed1537(o.value); } buildCounterOption--; } @@ -903,14 +903,14 @@ buildCounterTimeInterval--; } -buildUnnamed1528() { +buildUnnamed1538() { var o = new core.List<api.Point>(); o.add(buildPoint()); o.add(buildPoint()); return o; } -checkUnnamed1528(core.List<api.Point> o) { +checkUnnamed1538(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 = buildUnnamed1528(); + o.points = buildUnnamed1538(); o.resource = buildMonitoredResource(); o.valueType = "foo"; } @@ -936,47 +936,47 @@ if (buildCounterTimeSeries < 3) { checkMetric(o.metric); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed1528(o.points); + checkUnnamed1538(o.points); checkMonitoredResource(o.resource); unittest.expect(o.valueType, unittest.equals('foo')); } buildCounterTimeSeries--; } -buildUnnamed1529() { +buildUnnamed1539() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1529(core.List<api.Field> o) { +checkUnnamed1539(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1530() { +buildUnnamed1540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1530(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')); } -buildUnnamed1531() { +buildUnnamed1541() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1531(core.List<api.Option> o) { +checkUnnamed1541(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 = buildUnnamed1529(); + o.fields = buildUnnamed1539(); o.name = "foo"; - o.oneofs = buildUnnamed1530(); - o.options = buildUnnamed1531(); + o.oneofs = buildUnnamed1540(); + o.options = buildUnnamed1541(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1001,10 +1001,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1529(o.fields); + checkUnnamed1539(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1530(o.oneofs); - checkUnnamed1531(o.options); + checkUnnamed1540(o.oneofs); + checkUnnamed1541(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -1038,14 +1038,14 @@ buildCounterTypedValue--; } -buildUnnamed1532() { +buildUnnamed1542() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1532(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')); @@ -1523,10 +1523,10 @@ var mock = new HttpServerMock(); api.ProjectsGroupsResourceApi res = new api.MonitoringApi(mock).projects.groups; var arg_name = "foo"; - var arg_childrenOfGroup = "foo"; - var arg_ancestorsOfGroup = "foo"; var arg_descendantsOfGroup = "foo"; var arg_pageSize = 42; + var arg_childrenOfGroup = "foo"; + var arg_ancestorsOfGroup = "foo"; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -1555,10 +1555,10 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["childrenOfGroup"].first, unittest.equals(arg_childrenOfGroup)); - unittest.expect(queryMap["ancestorsOfGroup"].first, unittest.equals(arg_ancestorsOfGroup)); unittest.expect(queryMap["descendantsOfGroup"].first, unittest.equals(arg_descendantsOfGroup)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["childrenOfGroup"].first, unittest.equals(arg_childrenOfGroup)); + unittest.expect(queryMap["ancestorsOfGroup"].first, unittest.equals(arg_ancestorsOfGroup)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1568,7 +1568,7 @@ var resp = convert.JSON.encode(buildListGroupsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, childrenOfGroup: arg_childrenOfGroup, ancestorsOfGroup: arg_ancestorsOfGroup, descendantsOfGroup: arg_descendantsOfGroup, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListGroupsResponse response) { + res.list(arg_name, descendantsOfGroup: arg_descendantsOfGroup, pageSize: arg_pageSize, childrenOfGroup: arg_childrenOfGroup, ancestorsOfGroup: arg_ancestorsOfGroup, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListGroupsResponse response) { checkListGroupsResponse(response); }))); }); @@ -1633,11 +1633,11 @@ var mock = new HttpServerMock(); api.ProjectsGroupsMembersResourceApi res = new api.MonitoringApi(mock).projects.groups.members; var arg_name = "foo"; - var arg_pageSize = 42; - var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_interval_endTime = "foo"; var arg_interval_startTime = "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; @@ -1665,11 +1665,11 @@ 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)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["interval.endTime"].first, unittest.equals(arg_interval_endTime)); unittest.expect(queryMap["interval.startTime"].first, unittest.equals(arg_interval_startTime)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1678,7 +1678,7 @@ var resp = convert.JSON.encode(buildListGroupMembersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, pageSize: arg_pageSize, pageToken: arg_pageToken, filter: arg_filter, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime).then(unittest.expectAsync(((api.ListGroupMembersResponse response) { + res.list(arg_name, filter: arg_filter, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListGroupMembersResponse response) { checkListGroupMembersResponse(response); }))); }); @@ -1831,8 +1831,8 @@ var mock = new HttpServerMock(); api.ProjectsMetricDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.metricDescriptors; var arg_name = "foo"; - var arg_filter = "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; @@ -1861,8 +1861,8 @@ 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["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1872,7 +1872,7 @@ var resp = convert.JSON.encode(buildListMetricDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMetricDescriptorsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMetricDescriptorsResponse response) { checkListMetricDescriptorsResponse(response); }))); }); @@ -1931,8 +1931,8 @@ var mock = new HttpServerMock(); api.ProjectsMonitoredResourceDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.monitoredResourceDescriptors; var arg_name = "foo"; - var arg_filter = "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; @@ -1961,8 +1961,8 @@ 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["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -1972,7 +1972,7 @@ var resp = convert.JSON.encode(buildListMonitoredResourceDescriptorsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListMonitoredResourceDescriptorsResponse response) { checkListMonitoredResourceDescriptorsResponse(response); }))); }); @@ -2036,15 +2036,15 @@ 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_crossSeriesReducer = "foo"; var arg_interval_endTime = "foo"; var arg_interval_startTime = "foo"; + var arg_pageSize = 42; + var arg_view = "foo"; var arg_aggregation_alignmentPeriod = "foo"; var arg_aggregation_perSeriesAligner = "foo"; - var arg_aggregation_crossSeriesReducer = "foo"; - var arg_aggregation_groupByFields = buildUnnamed1532(); var arg_orderBy = "foo"; - var arg_view = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -2074,15 +2074,15 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["aggregation.groupByFields"], unittest.equals(arg_aggregation_groupByFields)); + unittest.expect(queryMap["aggregation.crossSeriesReducer"].first, unittest.equals(arg_aggregation_crossSeriesReducer)); unittest.expect(queryMap["interval.endTime"].first, unittest.equals(arg_interval_endTime)); unittest.expect(queryMap["interval.startTime"].first, unittest.equals(arg_interval_startTime)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["aggregation.alignmentPeriod"].first, unittest.equals(arg_aggregation_alignmentPeriod)); unittest.expect(queryMap["aggregation.perSeriesAligner"].first, unittest.equals(arg_aggregation_perSeriesAligner)); - unittest.expect(queryMap["aggregation.crossSeriesReducer"].first, unittest.equals(arg_aggregation_crossSeriesReducer)); - unittest.expect(queryMap["aggregation.groupByFields"], unittest.equals(arg_aggregation_groupByFields)); unittest.expect(queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -2092,7 +2092,7 @@ var resp = convert.JSON.encode(buildListTimeSeriesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_name, filter: arg_filter, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime, aggregation_alignmentPeriod: arg_aggregation_alignmentPeriod, aggregation_perSeriesAligner: arg_aggregation_perSeriesAligner, aggregation_crossSeriesReducer: arg_aggregation_crossSeriesReducer, aggregation_groupByFields: arg_aggregation_groupByFields, orderBy: arg_orderBy, view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTimeSeriesResponse response) { + res.list(arg_name, filter: arg_filter, aggregation_groupByFields: arg_aggregation_groupByFields, aggregation_crossSeriesReducer: arg_aggregation_crossSeriesReducer, interval_endTime: arg_interval_endTime, interval_startTime: arg_interval_startTime, pageSize: arg_pageSize, view: arg_view, aggregation_alignmentPeriod: arg_aggregation_alignmentPeriod, aggregation_perSeriesAligner: arg_aggregation_perSeriesAligner, orderBy: arg_orderBy, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListTimeSeriesResponse response) { checkListTimeSeriesResponse(response); }))); });
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart index ea8a216..12f4100 100644 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ b/generated/googleapis/test/oauth2/v2_test.dart
@@ -80,14 +80,14 @@ buildCounterJwkKeys--; } -buildUnnamed2919() { +buildUnnamed2993() { var o = new core.List<api.JwkKeys>(); o.add(buildJwkKeys()); o.add(buildJwkKeys()); return o; } -checkUnnamed2919(core.List<api.JwkKeys> o) { +checkUnnamed2993(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 = buildUnnamed2919(); + o.keys = buildUnnamed2993(); } buildCounterJwk--; return o; @@ -107,7 +107,7 @@ checkJwk(api.Jwk o) { buildCounterJwk++; if (buildCounterJwk < 3) { - checkUnnamed2919(o.keys); + checkUnnamed2993(o.keys); } buildCounterJwk--; }
diff --git a/generated/googleapis/test/pagespeedonline/v1_test.dart b/generated/googleapis/test/pagespeedonline/v1_test.dart index f0c1b6e..701d22e 100644 --- a/generated/googleapis/test/pagespeedonline/v1_test.dart +++ b/generated/googleapis/test/pagespeedonline/v1_test.dart
@@ -72,14 +72,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs--; } -buildUnnamed2920() { +buildUnnamed2994() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs()); return o; } -checkUnnamed2920(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksHeaderArgs> o) { +checkUnnamed2994(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 = buildUnnamed2920(); + o.args = buildUnnamed2994(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -100,7 +100,7 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(api.ResultFormattedResultsRuleResultsValueUrlBlocksHeader o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader < 3) { - checkUnnamed2920(o.args); + checkUnnamed2994(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksHeader--; @@ -127,14 +127,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs--; } -buildUnnamed2921() { +buildUnnamed2995() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs()); return o; } -checkUnnamed2921(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetailsArgs> o) { +checkUnnamed2995(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 = buildUnnamed2921(); + o.args = buildUnnamed2995(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; @@ -155,20 +155,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails < 3) { - checkUnnamed2921(o.args); + checkUnnamed2995(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails--; } -buildUnnamed2922() { +buildUnnamed2996() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails()); return o; } -checkUnnamed2922(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { +checkUnnamed2996(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(o[0]); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsDetails(o[1]); @@ -195,14 +195,14 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs--; } -buildUnnamed2923() { +buildUnnamed2997() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs()); return o; } -checkUnnamed2923(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResultArgs> o) { +checkUnnamed2997(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 = buildUnnamed2923(); + o.args = buildUnnamed2997(); o.format = "foo"; } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult--; @@ -223,7 +223,7 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult < 3) { - checkUnnamed2923(o.args); + checkUnnamed2997(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 = buildUnnamed2922(); + o.details = buildUnnamed2996(); o.result = buildResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -244,20 +244,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed2922(o.details); + checkUnnamed2996(o.details); checkResultFormattedResultsRuleResultsValueUrlBlocksUrlsResult(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed2924() { +buildUnnamed2998() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); return o; } -checkUnnamed2924(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { +checkUnnamed2998(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 = buildUnnamed2924(); + o.urls = buildUnnamed2998(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -279,19 +279,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkResultFormattedResultsRuleResultsValueUrlBlocksHeader(o.header); - checkUnnamed2924(o.urls); + checkUnnamed2998(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed2925() { +buildUnnamed2999() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed2925(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { +checkUnnamed2999(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 = buildUnnamed2925(); + o.urlBlocks = buildUnnamed2999(); } 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)); - checkUnnamed2925(o.urlBlocks); + checkUnnamed2999(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed2926() { +buildUnnamed3000() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); o["y"] = buildResultFormattedResultsRuleResultsValue(); return o; } -checkUnnamed2926(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { +checkUnnamed3000(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 = buildUnnamed2926(); + o.ruleResults = buildUnnamed3000(); } buildCounterResultFormattedResults--; return o; @@ -349,19 +349,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2926(o.ruleResults); + checkUnnamed3000(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed2927() { +buildUnnamed3001() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2927(core.List<core.String> o) { +checkUnnamed3001(core.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 = buildUnnamed2927(); + o.invalidRules = buildUnnamed3001(); 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')); - checkUnnamed2927(o.invalidRules); + checkUnnamed3001(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); @@ -493,14 +493,14 @@ buildCounterResult--; } -buildUnnamed2928() { +buildUnnamed3002() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2928(core.List<core.String> o) { +checkUnnamed3002(core.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 = buildUnnamed2928(); + var arg_rule = buildUnnamed3002(); 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 bc28dd3..63b4103 100644 --- a/generated/googleapis/test/pagespeedonline/v2_test.dart +++ b/generated/googleapis/test/pagespeedonline/v2_test.dart
@@ -76,14 +76,14 @@ buildCounterPagespeedApiFormatStringV2ArgsRects--; } -buildUnnamed1315() { +buildUnnamed1336() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsRects>(); o.add(buildPagespeedApiFormatStringV2ArgsRects()); o.add(buildPagespeedApiFormatStringV2ArgsRects()); return o; } -checkUnnamed1315(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { +checkUnnamed1336(core.List<api.PagespeedApiFormatStringV2ArgsRects> o) { unittest.expect(o, unittest.hasLength(2)); checkPagespeedApiFormatStringV2ArgsRects(o[0]); checkPagespeedApiFormatStringV2ArgsRects(o[1]); @@ -114,14 +114,14 @@ buildCounterPagespeedApiFormatStringV2ArgsSecondaryRects--; } -buildUnnamed1316() { +buildUnnamed1337() { var o = new core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects>(); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); o.add(buildPagespeedApiFormatStringV2ArgsSecondaryRects()); return o; } -checkUnnamed1316(core.List<api.PagespeedApiFormatStringV2ArgsSecondaryRects> o) { +checkUnnamed1337(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 = buildUnnamed1315(); - o.secondaryRects = buildUnnamed1316(); + o.rects = buildUnnamed1336(); + o.secondaryRects = buildUnnamed1337(); o.type = "foo"; o.value = "foo"; } @@ -146,22 +146,22 @@ buildCounterPagespeedApiFormatStringV2Args++; if (buildCounterPagespeedApiFormatStringV2Args < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1315(o.rects); - checkUnnamed1316(o.secondaryRects); + checkUnnamed1336(o.rects); + checkUnnamed1337(o.secondaryRects); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2Args--; } -buildUnnamed1317() { +buildUnnamed1338() { var o = new core.List<api.PagespeedApiFormatStringV2Args>(); o.add(buildPagespeedApiFormatStringV2Args()); o.add(buildPagespeedApiFormatStringV2Args()); return o; } -checkUnnamed1317(core.List<api.PagespeedApiFormatStringV2Args> o) { +checkUnnamed1338(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 = buildUnnamed1317(); + o.args = buildUnnamed1338(); o.format = "foo"; } buildCounterPagespeedApiFormatStringV2--; @@ -182,7 +182,7 @@ checkPagespeedApiFormatStringV2(api.PagespeedApiFormatStringV2 o) { buildCounterPagespeedApiFormatStringV2++; if (buildCounterPagespeedApiFormatStringV2 < 3) { - checkUnnamed1317(o.args); + checkUnnamed1338(o.args); unittest.expect(o.format, unittest.equals('foo')); } buildCounterPagespeedApiFormatStringV2--; @@ -242,27 +242,27 @@ buildCounterPagespeedApiImageV2--; } -buildUnnamed1318() { +buildUnnamed1339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1318(core.List<core.String> o) { +checkUnnamed1339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1319() { +buildUnnamed1340() { var o = new core.List<api.PagespeedApiFormatStringV2>(); o.add(buildPagespeedApiFormatStringV2()); o.add(buildPagespeedApiFormatStringV2()); return o; } -checkUnnamed1319(core.List<api.PagespeedApiFormatStringV2> o) { +checkUnnamed1340(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 = buildUnnamed1319(); + o.details = buildUnnamed1340(); o.result = buildPagespeedApiFormatStringV2(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; @@ -283,20 +283,20 @@ checkResultFormattedResultsRuleResultsValueUrlBlocksUrls(api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls o) { buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls < 3) { - checkUnnamed1319(o.details); + checkUnnamed1340(o.details); checkPagespeedApiFormatStringV2(o.result); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocksUrls--; } -buildUnnamed1320() { +buildUnnamed1341() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocksUrls()); return o; } -checkUnnamed1320(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocksUrls> o) { +checkUnnamed1341(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 = buildUnnamed1320(); + o.urls = buildUnnamed1341(); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; return o; @@ -318,19 +318,19 @@ buildCounterResultFormattedResultsRuleResultsValueUrlBlocks++; if (buildCounterResultFormattedResultsRuleResultsValueUrlBlocks < 3) { checkPagespeedApiFormatStringV2(o.header); - checkUnnamed1320(o.urls); + checkUnnamed1341(o.urls); } buildCounterResultFormattedResultsRuleResultsValueUrlBlocks--; } -buildUnnamed1321() { +buildUnnamed1342() { var o = new core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks>(); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); o.add(buildResultFormattedResultsRuleResultsValueUrlBlocks()); return o; } -checkUnnamed1321(core.List<api.ResultFormattedResultsRuleResultsValueUrlBlocks> o) { +checkUnnamed1342(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 = buildUnnamed1318(); + o.groups = buildUnnamed1339(); o.localizedRuleName = "foo"; o.ruleImpact = 42.0; o.summary = buildPagespeedApiFormatStringV2(); - o.urlBlocks = buildUnnamed1321(); + o.urlBlocks = buildUnnamed1342(); } buildCounterResultFormattedResultsRuleResultsValue--; return o; @@ -354,23 +354,23 @@ checkResultFormattedResultsRuleResultsValue(api.ResultFormattedResultsRuleResultsValue o) { buildCounterResultFormattedResultsRuleResultsValue++; if (buildCounterResultFormattedResultsRuleResultsValue < 3) { - checkUnnamed1318(o.groups); + checkUnnamed1339(o.groups); unittest.expect(o.localizedRuleName, unittest.equals('foo')); unittest.expect(o.ruleImpact, unittest.equals(42.0)); checkPagespeedApiFormatStringV2(o.summary); - checkUnnamed1321(o.urlBlocks); + checkUnnamed1342(o.urlBlocks); } buildCounterResultFormattedResultsRuleResultsValue--; } -buildUnnamed1322() { +buildUnnamed1343() { var o = new core.Map<core.String, api.ResultFormattedResultsRuleResultsValue>(); o["x"] = buildResultFormattedResultsRuleResultsValue(); o["y"] = buildResultFormattedResultsRuleResultsValue(); return o; } -checkUnnamed1322(core.Map<core.String, api.ResultFormattedResultsRuleResultsValue> o) { +checkUnnamed1343(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 = buildUnnamed1322(); + o.ruleResults = buildUnnamed1343(); } buildCounterResultFormattedResults--; return o; @@ -392,19 +392,19 @@ buildCounterResultFormattedResults++; if (buildCounterResultFormattedResults < 3) { unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed1322(o.ruleResults); + checkUnnamed1343(o.ruleResults); } buildCounterResultFormattedResults--; } -buildUnnamed1323() { +buildUnnamed1344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1323(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')); @@ -472,14 +472,14 @@ buildCounterResultRuleGroupsValue--; } -buildUnnamed1324() { +buildUnnamed1345() { var o = new core.Map<core.String, api.ResultRuleGroupsValue>(); o["x"] = buildResultRuleGroupsValue(); o["y"] = buildResultRuleGroupsValue(); return o; } -checkUnnamed1324(core.Map<core.String, api.ResultRuleGroupsValue> o) { +checkUnnamed1345(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 = buildUnnamed1323(); + o.invalidRules = buildUnnamed1344(); o.kind = "foo"; o.pageStats = buildResultPageStats(); o.responseCode = 42; - o.ruleGroups = buildUnnamed1324(); + o.ruleGroups = buildUnnamed1345(); 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')); - checkUnnamed1323(o.invalidRules); + checkUnnamed1344(o.invalidRules); unittest.expect(o.kind, unittest.equals('foo')); checkResultPageStats(o.pageStats); unittest.expect(o.responseCode, unittest.equals(42)); - checkUnnamed1324(o.ruleGroups); + checkUnnamed1345(o.ruleGroups); checkPagespeedApiImageV2(o.screenshot); unittest.expect(o.title, unittest.equals('foo')); checkResultVersion(o.version); @@ -543,14 +543,14 @@ buildCounterResult--; } -buildUnnamed1325() { +buildUnnamed1346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1325(core.List<core.String> o) { +checkUnnamed1346(core.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 = buildUnnamed1325(); + var arg_rule = buildUnnamed1346(); 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 257f84c..a0b87fb 100644 --- a/generated/googleapis/test/partners/v2_test.dart +++ b/generated/googleapis/test/partners/v2_test.dart
@@ -72,14 +72,14 @@ buildCounterCertificationExamStatus--; } -buildUnnamed2257() { +buildUnnamed2016() { var o = new core.List<api.CertificationExamStatus>(); o.add(buildCertificationExamStatus()); o.add(buildCertificationExamStatus()); return o; } -checkUnnamed2257(core.List<api.CertificationExamStatus> o) { +checkUnnamed2016(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 = buildUnnamed2257(); + o.examStatuses = buildUnnamed2016(); o.isCertified = true; o.type = "foo"; } @@ -101,86 +101,86 @@ checkCertificationStatus(api.CertificationStatus o) { buildCounterCertificationStatus++; if (buildCounterCertificationStatus < 3) { - checkUnnamed2257(o.examStatuses); + checkUnnamed2016(o.examStatuses); unittest.expect(o.isCertified, unittest.isTrue); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCertificationStatus--; } -buildUnnamed2258() { +buildUnnamed2017() { var o = new core.List<api.CertificationStatus>(); o.add(buildCertificationStatus()); o.add(buildCertificationStatus()); return o; } -checkUnnamed2258(core.List<api.CertificationStatus> o) { +checkUnnamed2017(core.List<api.CertificationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCertificationStatus(o[0]); checkCertificationStatus(o[1]); } -buildUnnamed2259() { +buildUnnamed2018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2259(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')); } -buildUnnamed2260() { +buildUnnamed2019() { var o = new core.List<api.LocalizedCompanyInfo>(); o.add(buildLocalizedCompanyInfo()); o.add(buildLocalizedCompanyInfo()); return o; } -checkUnnamed2260(core.List<api.LocalizedCompanyInfo> o) { +checkUnnamed2019(core.List<api.LocalizedCompanyInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedCompanyInfo(o[0]); checkLocalizedCompanyInfo(o[1]); } -buildUnnamed2261() { +buildUnnamed2020() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2261(core.List<api.Location> o) { +checkUnnamed2020(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); } -buildUnnamed2262() { +buildUnnamed2021() { var o = new core.List<api.Rank>(); o.add(buildRank()); o.add(buildRank()); return o; } -checkUnnamed2262(core.List<api.Rank> o) { +checkUnnamed2021(core.List<api.Rank> o) { unittest.expect(o, unittest.hasLength(2)); checkRank(o[0]); checkRank(o[1]); } -buildUnnamed2263() { +buildUnnamed2022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2263(core.List<core.String> 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')); @@ -191,17 +191,17 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.certificationStatuses = buildUnnamed2258(); + o.certificationStatuses = buildUnnamed2017(); o.convertedMinMonthlyBudget = buildMoney(); o.id = "foo"; - o.industries = buildUnnamed2259(); - o.localizedInfos = buildUnnamed2260(); - o.locations = buildUnnamed2261(); + o.industries = buildUnnamed2018(); + o.localizedInfos = buildUnnamed2019(); + o.locations = buildUnnamed2020(); o.name = "foo"; o.originalMinMonthlyBudget = buildMoney(); o.publicProfile = buildPublicProfile(); - o.ranks = buildUnnamed2262(); - o.services = buildUnnamed2263(); + o.ranks = buildUnnamed2021(); + o.services = buildUnnamed2022(); o.websiteUrl = "foo"; } buildCounterCompany--; @@ -211,17 +211,17 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed2258(o.certificationStatuses); + checkUnnamed2017(o.certificationStatuses); checkMoney(o.convertedMinMonthlyBudget); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2259(o.industries); - checkUnnamed2260(o.localizedInfos); - checkUnnamed2261(o.locations); + checkUnnamed2018(o.industries); + checkUnnamed2019(o.localizedInfos); + checkUnnamed2020(o.locations); unittest.expect(o.name, unittest.equals('foo')); checkMoney(o.originalMinMonthlyBudget); checkPublicProfile(o.publicProfile); - checkUnnamed2262(o.ranks); - checkUnnamed2263(o.services); + checkUnnamed2021(o.ranks); + checkUnnamed2022(o.services); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterCompany--; @@ -296,14 +296,14 @@ buildCounterDebugInfo--; } -buildUnnamed2264() { +buildUnnamed2023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2264(core.List<core.String> o) { +checkUnnamed2023(core.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 = buildUnnamed2264(); + o.values = buildUnnamed2023(); } buildCounterEventData--; return o; @@ -325,7 +325,7 @@ buildCounterEventData++; if (buildCounterEventData < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2264(o.values); + checkUnnamed2023(o.values); } buildCounterEventData--; } @@ -372,14 +372,14 @@ buildCounterLatLng--; } -buildUnnamed2265() { +buildUnnamed2024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2265(core.List<core.String> o) { +checkUnnamed2024(core.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 = buildUnnamed2265(); + o.gpsMotivations = buildUnnamed2024(); 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')); - checkUnnamed2265(o.gpsMotivations); + checkUnnamed2024(o.gpsMotivations); unittest.expect(o.id, unittest.equals('foo')); checkMoney(o.minMonthlyBudget); unittest.expect(o.phoneNumber, unittest.equals('foo')); @@ -422,14 +422,14 @@ buildCounterLead--; } -buildUnnamed2266() { +buildUnnamed2025() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2266(core.List<api.Company> o) { +checkUnnamed2025(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 = buildUnnamed2266(); + o.companies = buildUnnamed2025(); o.nextPageToken = "foo"; o.responseMetadata = buildResponseMetadata(); } @@ -451,21 +451,21 @@ checkListCompaniesResponse(api.ListCompaniesResponse o) { buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - checkUnnamed2266(o.companies); + checkUnnamed2025(o.companies); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkResponseMetadata(o.responseMetadata); } buildCounterListCompaniesResponse--; } -buildUnnamed2267() { +buildUnnamed2026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2267(core.List<core.String> o) { +checkUnnamed2026(core.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 = buildUnnamed2267(); + o.userStates = buildUnnamed2026(); } buildCounterListUserStatesResponse--; return o; @@ -487,19 +487,19 @@ buildCounterListUserStatesResponse++; if (buildCounterListUserStatesResponse < 3) { checkResponseMetadata(o.responseMetadata); - checkUnnamed2267(o.userStates); + checkUnnamed2026(o.userStates); } buildCounterListUserStatesResponse--; } -buildUnnamed2268() { +buildUnnamed2027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2268(core.List<core.String> o) { +checkUnnamed2027(core.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 = buildUnnamed2268(); + o.countryCodes = buildUnnamed2027(); o.displayName = "foo"; o.languageCode = "foo"; o.overview = "foo"; @@ -522,7 +522,7 @@ checkLocalizedCompanyInfo(api.LocalizedCompanyInfo o) { buildCounterLocalizedCompanyInfo++; if (buildCounterLocalizedCompanyInfo < 3) { - checkUnnamed2268(o.countryCodes); + checkUnnamed2027(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--; } -buildUnnamed2269() { +buildUnnamed2028() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2269(core.Map<core.String, core.String> o) { +checkUnnamed2028(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 = buildUnnamed2269(); + o.clientInfo = buildUnnamed2028(); o.details = "foo"; o.level = "foo"; o.requestMetadata = buildRequestMetadata(); @@ -581,7 +581,7 @@ checkLogMessageRequest(api.LogMessageRequest o) { buildCounterLogMessageRequest++; if (buildCounterLogMessageRequest < 3) { - checkUnnamed2269(o.clientInfo); + checkUnnamed2028(o.clientInfo); unittest.expect(o.details, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); checkRequestMetadata(o.requestMetadata); @@ -608,14 +608,14 @@ buildCounterLogMessageResponse--; } -buildUnnamed2270() { +buildUnnamed2029() { var o = new core.List<api.EventData>(); o.add(buildEventData()); o.add(buildEventData()); return o; } -checkUnnamed2270(core.List<api.EventData> o) { +checkUnnamed2029(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 = buildUnnamed2270(); + o.eventDatas = buildUnnamed2029(); 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')); - checkUnnamed2270(o.eventDatas); + checkUnnamed2029(o.eventDatas); unittest.expect(o.eventScope, unittest.equals('foo')); checkLead(o.lead); checkRequestMetadata(o.requestMetadata); @@ -761,14 +761,14 @@ buildCounterRecaptchaChallenge--; } -buildUnnamed2271() { +buildUnnamed2030() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2271(core.List<core.String> o) { +checkUnnamed2030(core.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 = buildUnnamed2271(); + o.experimentIds = buildUnnamed2030(); o.locale = "foo"; o.partnersSessionId = "foo"; o.trafficSource = buildTrafficSource(); @@ -792,7 +792,7 @@ checkRequestMetadata(api.RequestMetadata o) { buildCounterRequestMetadata++; if (buildCounterRequestMetadata < 3) { - checkUnnamed2271(o.experimentIds); + checkUnnamed2030(o.experimentIds); unittest.expect(o.locale, unittest.equals('foo')); unittest.expect(o.partnersSessionId, unittest.equals('foo')); checkTrafficSource(o.trafficSource); @@ -862,92 +862,92 @@ buildCounterUserOverrides--; } -buildUnnamed2272() { +buildUnnamed2031() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2272(core.List<core.String> o) { +checkUnnamed2031(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2273() { +buildUnnamed2032() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2273(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')); } -buildUnnamed2274() { +buildUnnamed2033() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2274(core.List<core.String> o) { +checkUnnamed2033(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2275() { +buildUnnamed2034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2275(core.List<core.String> o) { +checkUnnamed2034(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2276() { +buildUnnamed2035() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2276(core.List<core.String> o) { +checkUnnamed2035(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2277() { +buildUnnamed2036() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2277(core.List<core.String> o) { +checkUnnamed2036(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2278() { +buildUnnamed2037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2278(core.List<core.String> o) { +checkUnnamed2037(core.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 = buildUnnamed2272(); + var arg_requestMetadata_experimentIds = buildUnnamed2031(); 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 = buildUnnamed2273(); + var arg_requestMetadata_experimentIds = buildUnnamed2032(); 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 = buildUnnamed2274(); - var arg_services = buildUnnamed2275(); - var arg_languageCodes = buildUnnamed2276(); + var arg_industries = buildUnnamed2033(); + var arg_services = buildUnnamed2034(); + var arg_languageCodes = buildUnnamed2035(); var arg_address = "foo"; var arg_orderBy = "foo"; - var arg_gpsMotivations = buildUnnamed2277(); + var arg_gpsMotivations = buildUnnamed2036(); 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 = buildUnnamed2278(); + var arg_requestMetadata_experimentIds = buildUnnamed2037(); 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 49fab60..07409ac 100644 --- a/generated/googleapis/test/people/v1_test.dart +++ b/generated/googleapis/test/people/v1_test.dart
@@ -337,14 +337,14 @@ buildCounterGender--; } -buildUnnamed1441() { +buildUnnamed1451() { var o = new core.List<api.PersonResponse>(); o.add(buildPersonResponse()); o.add(buildPersonResponse()); return o; } -checkUnnamed1441(core.List<api.PersonResponse> o) { +checkUnnamed1451(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 = buildUnnamed1441(); + o.responses = buildUnnamed1451(); } buildCounterGetPeopleResponse--; return o; @@ -364,7 +364,7 @@ checkGetPeopleResponse(api.GetPeopleResponse o) { buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - checkUnnamed1441(o.responses); + checkUnnamed1451(o.responses); } buildCounterGetPeopleResponse--; } @@ -419,14 +419,14 @@ buildCounterInterest--; } -buildUnnamed1442() { +buildUnnamed1452() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed1442(core.List<api.Person> o) { +checkUnnamed1452(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 = buildUnnamed1442(); + o.connections = buildUnnamed1452(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; } @@ -448,7 +448,7 @@ checkListConnectionsResponse(api.ListConnectionsResponse o) { buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - checkUnnamed1442(o.connections); + checkUnnamed1452(o.connections); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); } @@ -629,326 +629,326 @@ buildCounterOrganization--; } -buildUnnamed1443() { +buildUnnamed1453() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed1443(core.List<api.Address> o) { +checkUnnamed1453(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); } -buildUnnamed1444() { +buildUnnamed1454() { var o = new core.List<api.Biography>(); o.add(buildBiography()); o.add(buildBiography()); return o; } -checkUnnamed1444(core.List<api.Biography> o) { +checkUnnamed1454(core.List<api.Biography> o) { unittest.expect(o, unittest.hasLength(2)); checkBiography(o[0]); checkBiography(o[1]); } -buildUnnamed1445() { +buildUnnamed1455() { var o = new core.List<api.Birthday>(); o.add(buildBirthday()); o.add(buildBirthday()); return o; } -checkUnnamed1445(core.List<api.Birthday> o) { +checkUnnamed1455(core.List<api.Birthday> o) { unittest.expect(o, unittest.hasLength(2)); checkBirthday(o[0]); checkBirthday(o[1]); } -buildUnnamed1446() { +buildUnnamed1456() { var o = new core.List<api.BraggingRights>(); o.add(buildBraggingRights()); o.add(buildBraggingRights()); return o; } -checkUnnamed1446(core.List<api.BraggingRights> o) { +checkUnnamed1456(core.List<api.BraggingRights> o) { unittest.expect(o, unittest.hasLength(2)); checkBraggingRights(o[0]); checkBraggingRights(o[1]); } -buildUnnamed1447() { +buildUnnamed1457() { var o = new core.List<api.CoverPhoto>(); o.add(buildCoverPhoto()); o.add(buildCoverPhoto()); return o; } -checkUnnamed1447(core.List<api.CoverPhoto> o) { +checkUnnamed1457(core.List<api.CoverPhoto> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverPhoto(o[0]); checkCoverPhoto(o[1]); } -buildUnnamed1448() { +buildUnnamed1458() { var o = new core.List<api.EmailAddress>(); o.add(buildEmailAddress()); o.add(buildEmailAddress()); return o; } -checkUnnamed1448(core.List<api.EmailAddress> o) { +checkUnnamed1458(core.List<api.EmailAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkEmailAddress(o[0]); checkEmailAddress(o[1]); } -buildUnnamed1449() { +buildUnnamed1459() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed1449(core.List<api.Event> o) { +checkUnnamed1459(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); } -buildUnnamed1450() { +buildUnnamed1460() { var o = new core.List<api.Gender>(); o.add(buildGender()); o.add(buildGender()); return o; } -checkUnnamed1450(core.List<api.Gender> o) { +checkUnnamed1460(core.List<api.Gender> o) { unittest.expect(o, unittest.hasLength(2)); checkGender(o[0]); checkGender(o[1]); } -buildUnnamed1451() { +buildUnnamed1461() { var o = new core.List<api.ImClient>(); o.add(buildImClient()); o.add(buildImClient()); return o; } -checkUnnamed1451(core.List<api.ImClient> o) { +checkUnnamed1461(core.List<api.ImClient> o) { unittest.expect(o, unittest.hasLength(2)); checkImClient(o[0]); checkImClient(o[1]); } -buildUnnamed1452() { +buildUnnamed1462() { var o = new core.List<api.Interest>(); o.add(buildInterest()); o.add(buildInterest()); return o; } -checkUnnamed1452(core.List<api.Interest> o) { +checkUnnamed1462(core.List<api.Interest> o) { unittest.expect(o, unittest.hasLength(2)); checkInterest(o[0]); checkInterest(o[1]); } -buildUnnamed1453() { +buildUnnamed1463() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed1453(core.List<api.Locale> o) { +checkUnnamed1463(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed1454() { +buildUnnamed1464() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed1454(core.List<api.Membership> o) { +checkUnnamed1464(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); } -buildUnnamed1455() { +buildUnnamed1465() { var o = new core.List<api.Name>(); o.add(buildName()); o.add(buildName()); return o; } -checkUnnamed1455(core.List<api.Name> o) { +checkUnnamed1465(core.List<api.Name> o) { unittest.expect(o, unittest.hasLength(2)); checkName(o[0]); checkName(o[1]); } -buildUnnamed1456() { +buildUnnamed1466() { var o = new core.List<api.Nickname>(); o.add(buildNickname()); o.add(buildNickname()); return o; } -checkUnnamed1456(core.List<api.Nickname> o) { +checkUnnamed1466(core.List<api.Nickname> o) { unittest.expect(o, unittest.hasLength(2)); checkNickname(o[0]); checkNickname(o[1]); } -buildUnnamed1457() { +buildUnnamed1467() { var o = new core.List<api.Occupation>(); o.add(buildOccupation()); o.add(buildOccupation()); return o; } -checkUnnamed1457(core.List<api.Occupation> o) { +checkUnnamed1467(core.List<api.Occupation> o) { unittest.expect(o, unittest.hasLength(2)); checkOccupation(o[0]); checkOccupation(o[1]); } -buildUnnamed1458() { +buildUnnamed1468() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed1458(core.List<api.Organization> o) { +checkUnnamed1468(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); } -buildUnnamed1459() { +buildUnnamed1469() { var o = new core.List<api.PhoneNumber>(); o.add(buildPhoneNumber()); o.add(buildPhoneNumber()); return o; } -checkUnnamed1459(core.List<api.PhoneNumber> o) { +checkUnnamed1469(core.List<api.PhoneNumber> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoneNumber(o[0]); checkPhoneNumber(o[1]); } -buildUnnamed1460() { +buildUnnamed1470() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed1460(core.List<api.Photo> o) { +checkUnnamed1470(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); } -buildUnnamed1461() { +buildUnnamed1471() { var o = new core.List<api.Relation>(); o.add(buildRelation()); o.add(buildRelation()); return o; } -checkUnnamed1461(core.List<api.Relation> o) { +checkUnnamed1471(core.List<api.Relation> o) { unittest.expect(o, unittest.hasLength(2)); checkRelation(o[0]); checkRelation(o[1]); } -buildUnnamed1462() { +buildUnnamed1472() { var o = new core.List<api.RelationshipInterest>(); o.add(buildRelationshipInterest()); o.add(buildRelationshipInterest()); return o; } -checkUnnamed1462(core.List<api.RelationshipInterest> o) { +checkUnnamed1472(core.List<api.RelationshipInterest> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipInterest(o[0]); checkRelationshipInterest(o[1]); } -buildUnnamed1463() { +buildUnnamed1473() { var o = new core.List<api.RelationshipStatus>(); o.add(buildRelationshipStatus()); o.add(buildRelationshipStatus()); return o; } -checkUnnamed1463(core.List<api.RelationshipStatus> o) { +checkUnnamed1473(core.List<api.RelationshipStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipStatus(o[0]); checkRelationshipStatus(o[1]); } -buildUnnamed1464() { +buildUnnamed1474() { var o = new core.List<api.Residence>(); o.add(buildResidence()); o.add(buildResidence()); return o; } -checkUnnamed1464(core.List<api.Residence> o) { +checkUnnamed1474(core.List<api.Residence> o) { unittest.expect(o, unittest.hasLength(2)); checkResidence(o[0]); checkResidence(o[1]); } -buildUnnamed1465() { +buildUnnamed1475() { var o = new core.List<api.Skill>(); o.add(buildSkill()); o.add(buildSkill()); return o; } -checkUnnamed1465(core.List<api.Skill> o) { +checkUnnamed1475(core.List<api.Skill> o) { unittest.expect(o, unittest.hasLength(2)); checkSkill(o[0]); checkSkill(o[1]); } -buildUnnamed1466() { +buildUnnamed1476() { var o = new core.List<api.Tagline>(); o.add(buildTagline()); o.add(buildTagline()); return o; } -checkUnnamed1466(core.List<api.Tagline> o) { +checkUnnamed1476(core.List<api.Tagline> o) { unittest.expect(o, unittest.hasLength(2)); checkTagline(o[0]); checkTagline(o[1]); } -buildUnnamed1467() { +buildUnnamed1477() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed1467(core.List<api.Url> o) { +checkUnnamed1477(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 = buildUnnamed1443(); + o.addresses = buildUnnamed1453(); o.ageRange = "foo"; - o.biographies = buildUnnamed1444(); - o.birthdays = buildUnnamed1445(); - o.braggingRights = buildUnnamed1446(); - o.coverPhotos = buildUnnamed1447(); - o.emailAddresses = buildUnnamed1448(); + o.biographies = buildUnnamed1454(); + o.birthdays = buildUnnamed1455(); + o.braggingRights = buildUnnamed1456(); + o.coverPhotos = buildUnnamed1457(); + o.emailAddresses = buildUnnamed1458(); o.etag = "foo"; - o.events = buildUnnamed1449(); - o.genders = buildUnnamed1450(); - o.imClients = buildUnnamed1451(); - o.interests = buildUnnamed1452(); - o.locales = buildUnnamed1453(); - o.memberships = buildUnnamed1454(); + o.events = buildUnnamed1459(); + o.genders = buildUnnamed1460(); + o.imClients = buildUnnamed1461(); + o.interests = buildUnnamed1462(); + o.locales = buildUnnamed1463(); + o.memberships = buildUnnamed1464(); o.metadata = buildPersonMetadata(); - o.names = buildUnnamed1455(); - o.nicknames = buildUnnamed1456(); - o.occupations = buildUnnamed1457(); - o.organizations = buildUnnamed1458(); - o.phoneNumbers = buildUnnamed1459(); - o.photos = buildUnnamed1460(); - o.relations = buildUnnamed1461(); - o.relationshipInterests = buildUnnamed1462(); - o.relationshipStatuses = buildUnnamed1463(); - o.residences = buildUnnamed1464(); + 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.resourceName = "foo"; - o.skills = buildUnnamed1465(); - o.taglines = buildUnnamed1466(); - o.urls = buildUnnamed1467(); + o.skills = buildUnnamed1475(); + o.taglines = buildUnnamed1476(); + o.urls = buildUnnamed1477(); } buildCounterPerson--; return o; @@ -996,60 +996,60 @@ checkPerson(api.Person o) { buildCounterPerson++; if (buildCounterPerson < 3) { - checkUnnamed1443(o.addresses); + checkUnnamed1453(o.addresses); unittest.expect(o.ageRange, unittest.equals('foo')); - checkUnnamed1444(o.biographies); - checkUnnamed1445(o.birthdays); - checkUnnamed1446(o.braggingRights); - checkUnnamed1447(o.coverPhotos); - checkUnnamed1448(o.emailAddresses); + checkUnnamed1454(o.biographies); + checkUnnamed1455(o.birthdays); + checkUnnamed1456(o.braggingRights); + checkUnnamed1457(o.coverPhotos); + checkUnnamed1458(o.emailAddresses); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1449(o.events); - checkUnnamed1450(o.genders); - checkUnnamed1451(o.imClients); - checkUnnamed1452(o.interests); - checkUnnamed1453(o.locales); - checkUnnamed1454(o.memberships); + checkUnnamed1459(o.events); + checkUnnamed1460(o.genders); + checkUnnamed1461(o.imClients); + checkUnnamed1462(o.interests); + checkUnnamed1463(o.locales); + checkUnnamed1464(o.memberships); checkPersonMetadata(o.metadata); - checkUnnamed1455(o.names); - checkUnnamed1456(o.nicknames); - checkUnnamed1457(o.occupations); - checkUnnamed1458(o.organizations); - checkUnnamed1459(o.phoneNumbers); - checkUnnamed1460(o.photos); - checkUnnamed1461(o.relations); - checkUnnamed1462(o.relationshipInterests); - checkUnnamed1463(o.relationshipStatuses); - checkUnnamed1464(o.residences); + 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); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed1465(o.skills); - checkUnnamed1466(o.taglines); - checkUnnamed1467(o.urls); + checkUnnamed1475(o.skills); + checkUnnamed1476(o.taglines); + checkUnnamed1477(o.urls); } buildCounterPerson--; } -buildUnnamed1468() { +buildUnnamed1478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1468(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')); } -buildUnnamed1469() { +buildUnnamed1479() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed1469(core.List<api.Source> o) { +checkUnnamed1479(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 = buildUnnamed1468(); - o.sources = buildUnnamed1469(); + o.previousResourceNames = buildUnnamed1478(); + o.sources = buildUnnamed1479(); } buildCounterPersonMetadata--; return o; @@ -1074,8 +1074,8 @@ if (buildCounterPersonMetadata < 3) { unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed1468(o.previousResourceNames); - checkUnnamed1469(o.sources); + checkUnnamed1478(o.previousResourceNames); + checkUnnamed1479(o.sources); } buildCounterPersonMetadata--; } @@ -1333,14 +1333,14 @@ buildCounterUrl--; } -buildUnnamed1470() { +buildUnnamed1480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1470(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')); @@ -1715,7 +1715,7 @@ var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; - var arg_resourceNames = buildUnnamed1470(); + var arg_resourceNames = buildUnnamed1480(); 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 2fa43d5..afdc450 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); } -buildUnnamed3415() { +buildUnnamed3229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3415(core.List<core.String> o) { +checkUnnamed3229(core.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 = buildUnnamed3415(); + o.pphNames = buildUnnamed3229(); 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')); - checkUnnamed3415(o.pphNames); + checkUnnamed3229(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--; } -buildUnnamed3416() { +buildUnnamed3230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3416(core.List<core.String> o) { +checkUnnamed3230(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3417() { +buildUnnamed3231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3417(core.List<core.String> o) { +checkUnnamed3231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3418() { +buildUnnamed3232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3418(core.List<core.String> o) { +checkUnnamed3232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3419() { +buildUnnamed3233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3419(core.List<core.String> o) { +checkUnnamed3233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3420() { +buildUnnamed3234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3420(core.List<core.String> o) { +checkUnnamed3234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3421() { +buildUnnamed3235() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3421(core.List<core.String> o) { +checkUnnamed3235(core.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 = buildUnnamed3416(); + o.altCutIds = buildUnnamed3230(); o.approvedTime = "foo"; o.componentDetailType = "foo"; o.componentId = "foo"; - o.customIds = buildUnnamed3417(); - o.editLevelEidrs = buildUnnamed3418(); - o.elIds = buildUnnamed3419(); + o.customIds = buildUnnamed3231(); + o.editLevelEidrs = buildUnnamed3232(); + o.elIds = buildUnnamed3233(); 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 = buildUnnamed3420(); + o.processingErrors = buildUnnamed3234(); o.receivedTime = "foo"; o.rejectionNote = "foo"; o.status = "foo"; o.statusDetail = "foo"; o.studioName = "foo"; - o.titleLevelEidrs = buildUnnamed3421(); + o.titleLevelEidrs = buildUnnamed3235(); o.type = "foo"; } buildCounterComponent--; @@ -260,13 +260,13 @@ checkComponent(api.Component o) { buildCounterComponent++; if (buildCounterComponent < 3) { - checkUnnamed3416(o.altCutIds); + checkUnnamed3230(o.altCutIds); unittest.expect(o.approvedTime, unittest.equals('foo')); unittest.expect(o.componentDetailType, unittest.equals('foo')); unittest.expect(o.componentId, unittest.equals('foo')); - checkUnnamed3417(o.customIds); - checkUnnamed3418(o.editLevelEidrs); - checkUnnamed3419(o.elIds); + checkUnnamed3231(o.customIds); + checkUnnamed3232(o.editLevelEidrs); + checkUnnamed3233(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)); - checkUnnamed3420(o.processingErrors); + checkUnnamed3234(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')); - checkUnnamed3421(o.titleLevelEidrs); + checkUnnamed3235(o.titleLevelEidrs); unittest.expect(o.type, unittest.equals('foo')); } buildCounterComponent--; } -buildUnnamed3422() { +buildUnnamed3236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3422(core.List<core.String> o) { +checkUnnamed3236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3423() { +buildUnnamed3237() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3423(core.List<core.String> o) { +checkUnnamed3237(core.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 = buildUnnamed3422(); + o.customIds = buildUnnamed3236(); o.earliestAvailStartTime = "foo"; o.editLevelEidr = "foo"; o.elId = "foo"; @@ -331,7 +331,7 @@ o.name = "foo"; o.normalizedPriority = "foo"; o.playableSequenceId = "foo"; - o.pphNames = buildUnnamed3423(); + o.pphNames = buildUnnamed3237(); 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')); - checkUnnamed3422(o.customIds); + checkUnnamed3236(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')); - checkUnnamed3423(o.pphNames); + checkUnnamed3237(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--; } -buildUnnamed3424() { +buildUnnamed3238() { var o = new core.List<api.Avail>(); o.add(buildAvail()); o.add(buildAvail()); return o; } -checkUnnamed3424(core.List<api.Avail> o) { +checkUnnamed3238(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 = buildUnnamed3424(); + o.avails = buildUnnamed3238(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -404,21 +404,21 @@ checkListAvailsResponse(api.ListAvailsResponse o) { buildCounterListAvailsResponse++; if (buildCounterListAvailsResponse < 3) { - checkUnnamed3424(o.avails); + checkUnnamed3238(o.avails); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListAvailsResponse--; } -buildUnnamed3425() { +buildUnnamed3239() { var o = new core.List<api.Component>(); o.add(buildComponent()); o.add(buildComponent()); return o; } -checkUnnamed3425(core.List<api.Component> o) { +checkUnnamed3239(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 = buildUnnamed3425(); + o.components = buildUnnamed3239(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -440,21 +440,21 @@ checkListComponentsResponse(api.ListComponentsResponse o) { buildCounterListComponentsResponse++; if (buildCounterListComponentsResponse < 3) { - checkUnnamed3425(o.components); + checkUnnamed3239(o.components); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListComponentsResponse--; } -buildUnnamed3426() { +buildUnnamed3240() { var o = new core.List<api.ExperienceLocale>(); o.add(buildExperienceLocale()); o.add(buildExperienceLocale()); return o; } -checkUnnamed3426(core.List<api.ExperienceLocale> o) { +checkUnnamed3240(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 = buildUnnamed3426(); + o.experienceLocales = buildUnnamed3240(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -476,21 +476,21 @@ checkListExperienceLocalesResponse(api.ListExperienceLocalesResponse o) { buildCounterListExperienceLocalesResponse++; if (buildCounterListExperienceLocalesResponse < 3) { - checkUnnamed3426(o.experienceLocales); + checkUnnamed3240(o.experienceLocales); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListExperienceLocalesResponse--; } -buildUnnamed3427() { +buildUnnamed3241() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed3427(core.List<api.Order> o) { +checkUnnamed3241(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 = buildUnnamed3427(); + o.orders = buildUnnamed3241(); o.totalSize = 42; } buildCounterListOrdersResponse--; @@ -513,20 +513,20 @@ buildCounterListOrdersResponse++; if (buildCounterListOrdersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3427(o.orders); + checkUnnamed3241(o.orders); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListOrdersResponse--; } -buildUnnamed3428() { +buildUnnamed3242() { var o = new core.List<api.StoreInfo>(); o.add(buildStoreInfo()); o.add(buildStoreInfo()); return o; } -checkUnnamed3428(core.List<api.StoreInfo> o) { +checkUnnamed3242(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 = buildUnnamed3428(); + o.storeInfos = buildUnnamed3242(); o.totalSize = 42; } buildCounterListStoreInfosResponse--; @@ -549,20 +549,20 @@ buildCounterListStoreInfosResponse++; if (buildCounterListStoreInfosResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3428(o.storeInfos); + checkUnnamed3242(o.storeInfos); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListStoreInfosResponse--; } -buildUnnamed3429() { +buildUnnamed3243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3429(core.List<core.String> o) { +checkUnnamed3243(core.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 = buildUnnamed3429(); + o.countries = buildUnnamed3243(); 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')); - checkUnnamed3429(o.countries); + checkUnnamed3243(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--; } -buildUnnamed3430() { +buildUnnamed3244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3430(core.List<core.String> o) { +checkUnnamed3244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3431() { +buildUnnamed3245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3431(core.List<core.String> o) { +checkUnnamed3245(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3432() { +buildUnnamed3246() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3432(core.List<core.String> o) { +checkUnnamed3246(core.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 = buildUnnamed3430(); + o.audioTracks = buildUnnamed3244(); o.country = "foo"; o.editLevelEidr = "foo"; o.episodeNumber = "foo"; @@ -688,14 +688,14 @@ o.liveTime = "foo"; o.mid = "foo"; o.name = "foo"; - o.pphNames = buildUnnamed3431(); + o.pphNames = buildUnnamed3245(); o.seasonId = "foo"; o.seasonName = "foo"; o.seasonNumber = "foo"; o.showId = "foo"; o.showName = "foo"; o.studioName = "foo"; - o.subtitles = buildUnnamed3432(); + o.subtitles = buildUnnamed3246(); o.titleLevelEidr = "foo"; o.trailerId = "foo"; o.type = "foo"; @@ -708,7 +708,7 @@ checkStoreInfo(api.StoreInfo o) { buildCounterStoreInfo++; if (buildCounterStoreInfo < 3) { - checkUnnamed3430(o.audioTracks); + checkUnnamed3244(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')); - checkUnnamed3431(o.pphNames); + checkUnnamed3245(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')); - checkUnnamed3432(o.subtitles); + checkUnnamed3246(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--; } -buildUnnamed3433() { +buildUnnamed3247() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3433(core.List<core.String> o) { +checkUnnamed3247(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3434() { +buildUnnamed3248() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3434(core.List<core.String> o) { +checkUnnamed3248(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3435() { +buildUnnamed3249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3435(core.List<core.String> o) { +checkUnnamed3249(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3436() { +buildUnnamed3250() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3436(core.List<core.String> o) { +checkUnnamed3250(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3437() { +buildUnnamed3251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3437(core.List<core.String> o) { +checkUnnamed3251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3438() { +buildUnnamed3252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3438(core.List<core.String> o) { +checkUnnamed3252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3439() { +buildUnnamed3253() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3439(core.List<core.String> o) { +checkUnnamed3253(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3440() { +buildUnnamed3254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3440(core.List<core.String> o) { +checkUnnamed3254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3441() { +buildUnnamed3255() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3441(core.List<core.String> o) { +checkUnnamed3255(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3442() { +buildUnnamed3256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3442(core.List<core.String> o) { +checkUnnamed3256(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3443() { +buildUnnamed3257() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3443(core.List<core.String> o) { +checkUnnamed3257(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3444() { +buildUnnamed3258() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3444(core.List<core.String> o) { +checkUnnamed3258(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3445() { +buildUnnamed3259() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3445(core.List<core.String> o) { +checkUnnamed3259(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3446() { +buildUnnamed3260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3446(core.List<core.String> o) { +checkUnnamed3260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3447() { +buildUnnamed3261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3447(core.List<core.String> o) { +checkUnnamed3261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3448() { +buildUnnamed3262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3448(core.List<core.String> o) { +checkUnnamed3262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3449() { +buildUnnamed3263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3449(core.List<core.String> o) { +checkUnnamed3263(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3450() { +buildUnnamed3264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3450(core.List<core.String> o) { +checkUnnamed3264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3451() { +buildUnnamed3265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3451(core.List<core.String> o) { +checkUnnamed3265(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3452() { +buildUnnamed3266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3452(core.List<core.String> o) { +checkUnnamed3266(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3453() { +buildUnnamed3267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3453(core.List<core.String> o) { +checkUnnamed3267(core.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 = buildUnnamed3433(); - var arg_studioNames = buildUnnamed3434(); + var arg_pphNames = buildUnnamed3247(); + var arg_studioNames = buildUnnamed3248(); var arg_title = "foo"; - var arg_territories = buildUnnamed3435(); + var arg_territories = buildUnnamed3249(); var arg_altId = "foo"; - var arg_videoIds = buildUnnamed3436(); - var arg_altIds = buildUnnamed3437(); + var arg_videoIds = buildUnnamed3250(); + var arg_altIds = buildUnnamed3251(); 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 = buildUnnamed3438(); - var arg_studioNames = buildUnnamed3439(); + var arg_pphNames = buildUnnamed3252(); + var arg_studioNames = buildUnnamed3253(); var arg_titleLevelEidr = "foo"; var arg_editLevelEidr = "foo"; - var arg_status = buildUnnamed3440(); + var arg_status = buildUnnamed3254(); 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 = buildUnnamed3441(); - var arg_studioNames = buildUnnamed3442(); + var arg_pphNames = buildUnnamed3255(); + var arg_studioNames = buildUnnamed3256(); var arg_titleLevelEidr = "foo"; var arg_editLevelEidr = "foo"; - var arg_status = buildUnnamed3443(); + var arg_status = buildUnnamed3257(); 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 = buildUnnamed3444(); - var arg_studioNames = buildUnnamed3445(); + var arg_pphNames = buildUnnamed3258(); + var arg_studioNames = buildUnnamed3259(); var arg_name = "foo"; - var arg_status = buildUnnamed3446(); + var arg_status = buildUnnamed3260(); var arg_customId = "foo"; - var arg_videoIds = buildUnnamed3447(); + var arg_videoIds = buildUnnamed3261(); 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 = buildUnnamed3448(); - var arg_studioNames = buildUnnamed3449(); + var arg_pphNames = buildUnnamed3262(); + var arg_studioNames = buildUnnamed3263(); var arg_videoId = "foo"; - var arg_countries = buildUnnamed3450(); + var arg_countries = buildUnnamed3264(); var arg_name = "foo"; - var arg_videoIds = buildUnnamed3451(); - var arg_mids = buildUnnamed3452(); - var arg_seasonIds = buildUnnamed3453(); + var arg_videoIds = buildUnnamed3265(); + var arg_mids = buildUnnamed3266(); + var arg_seasonIds = buildUnnamed3267(); 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 ef24665..c438be0 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); } -buildUnnamed1147() { +buildUnnamed1173() { var o = new core.List<api.PlusDomainsAclentryResource>(); o.add(buildPlusDomainsAclentryResource()); o.add(buildPlusDomainsAclentryResource()); return o; } -checkUnnamed1147(core.List<api.PlusDomainsAclentryResource> o) { +checkUnnamed1173(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 = buildUnnamed1147(); + o.items = buildUnnamed1173(); o.kind = "foo"; } buildCounterAcl--; @@ -83,7 +83,7 @@ if (buildCounterAcl < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.domainRestricted, unittest.isTrue); - checkUnnamed1147(o.items); + checkUnnamed1173(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAcl--; @@ -412,14 +412,14 @@ buildCounterActivityObjectAttachmentsPreviewThumbnails--; } -buildUnnamed1148() { +buildUnnamed1174() { var o = new core.List<api.ActivityObjectAttachmentsPreviewThumbnails>(); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); o.add(buildActivityObjectAttachmentsPreviewThumbnails()); return o; } -checkUnnamed1148(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { +checkUnnamed1174(core.List<api.ActivityObjectAttachmentsPreviewThumbnails> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityObjectAttachmentsPreviewThumbnails(o[0]); checkActivityObjectAttachmentsPreviewThumbnails(o[1]); @@ -473,14 +473,14 @@ buildCounterActivityObjectAttachmentsThumbnails--; } -buildUnnamed1149() { +buildUnnamed1175() { var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); o.add(buildActivityObjectAttachmentsThumbnails()); o.add(buildActivityObjectAttachmentsThumbnails()); return o; } -checkUnnamed1149(core.List<api.ActivityObjectAttachmentsThumbnails> o) { +checkUnnamed1175(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 = buildUnnamed1148(); - o.thumbnails = buildUnnamed1149(); + o.previewThumbnails = buildUnnamed1174(); + o.thumbnails = buildUnnamed1175(); 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')); - checkUnnamed1148(o.previewThumbnails); - checkUnnamed1149(o.thumbnails); + checkUnnamed1174(o.previewThumbnails); + checkUnnamed1175(o.thumbnails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterActivityObjectAttachments--; } -buildUnnamed1150() { +buildUnnamed1176() { var o = new core.List<api.ActivityObjectAttachments>(); o.add(buildActivityObjectAttachments()); o.add(buildActivityObjectAttachments()); return o; } -checkUnnamed1150(core.List<api.ActivityObjectAttachments> o) { +checkUnnamed1176(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 = buildUnnamed1150(); + o.attachments = buildUnnamed1176(); o.content = "foo"; o.id = "foo"; o.objectType = "foo"; @@ -651,7 +651,7 @@ buildCounterActivityObject++; if (buildCounterActivityObject < 3) { checkActivityObjectActor(o.actor); - checkUnnamed1150(o.attachments); + checkUnnamed1176(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--; } -buildUnnamed1151() { +buildUnnamed1177() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed1151(core.List<api.Activity> o) { +checkUnnamed1177(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 = buildUnnamed1151(); + o.items = buildUnnamed1177(); 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')); - checkUnnamed1151(o.items); + checkUnnamed1177(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--; } -buildUnnamed1152() { +buildUnnamed1178() { var o = new core.List<api.Audience>(); o.add(buildAudience()); o.add(buildAudience()); return o; } -checkUnnamed1152(core.List<api.Audience> o) { +checkUnnamed1178(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 = buildUnnamed1152(); + o.items = buildUnnamed1178(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -848,7 +848,7 @@ buildCounterAudiencesFeed++; if (buildCounterAudiencesFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1152(o.items); + checkUnnamed1178(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--; } -buildUnnamed1153() { +buildUnnamed1179() { var o = new core.List<api.Circle>(); o.add(buildCircle()); o.add(buildCircle()); return o; } -checkUnnamed1153(core.List<api.Circle> o) { +checkUnnamed1179(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 = buildUnnamed1153(); + o.items = buildUnnamed1179(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -941,7 +941,7 @@ buildCounterCircleFeed++; if (buildCounterCircleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1153(o.items); + checkUnnamed1179(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--; } -buildUnnamed1154() { +buildUnnamed1180() { var o = new core.List<api.CommentInReplyTo>(); o.add(buildCommentInReplyTo()); o.add(buildCommentInReplyTo()); return o; } -checkUnnamed1154(core.List<api.CommentInReplyTo> o) { +checkUnnamed1180(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 = buildUnnamed1154(); + o.inReplyTo = buildUnnamed1180(); 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')); - checkUnnamed1154(o.inReplyTo); + checkUnnamed1180(o.inReplyTo); unittest.expect(o.kind, unittest.equals('foo')); checkCommentObject(o.object); checkCommentPlusoners(o.plusoners); @@ -1172,14 +1172,14 @@ buildCounterComment--; } -buildUnnamed1155() { +buildUnnamed1181() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1155(core.List<api.Comment> o) { +checkUnnamed1181(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 = buildUnnamed1155(); + o.items = buildUnnamed1181(); 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')); - checkUnnamed1155(o.items); + checkUnnamed1181(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--; } -buildUnnamed1156() { +buildUnnamed1182() { var o = new core.List<api.Videostream>(); o.add(buildVideostream()); o.add(buildVideostream()); return o; } -checkUnnamed1156(core.List<api.Videostream> o) { +checkUnnamed1182(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 = buildUnnamed1156(); + o.streams = buildUnnamed1182(); 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')); - checkUnnamed1156(o.streams); + checkUnnamed1182(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--; } -buildUnnamed1157() { +buildUnnamed1183() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed1157(core.List<api.Person> o) { +checkUnnamed1183(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 = buildUnnamed1157(); + o.items = buildUnnamed1183(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1381,7 +1381,7 @@ buildCounterPeopleFeed++; if (buildCounterPeopleFeed < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1157(o.items); + checkUnnamed1183(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--; } -buildUnnamed1158() { +buildUnnamed1184() { var o = new core.List<api.PersonEmails>(); o.add(buildPersonEmails()); o.add(buildPersonEmails()); return o; } -checkUnnamed1158(core.List<api.PersonEmails> o) { +checkUnnamed1184(core.List<api.PersonEmails> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonEmails(o[0]); checkPersonEmails(o[1]); @@ -1577,14 +1577,14 @@ buildCounterPersonOrganizations--; } -buildUnnamed1159() { +buildUnnamed1185() { var o = new core.List<api.PersonOrganizations>(); o.add(buildPersonOrganizations()); o.add(buildPersonOrganizations()); return o; } -checkUnnamed1159(core.List<api.PersonOrganizations> o) { +checkUnnamed1185(core.List<api.PersonOrganizations> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonOrganizations(o[0]); checkPersonOrganizations(o[1]); @@ -1611,14 +1611,14 @@ buildCounterPersonPlacesLived--; } -buildUnnamed1160() { +buildUnnamed1186() { var o = new core.List<api.PersonPlacesLived>(); o.add(buildPersonPlacesLived()); o.add(buildPersonPlacesLived()); return o; } -checkUnnamed1160(core.List<api.PersonPlacesLived> o) { +checkUnnamed1186(core.List<api.PersonPlacesLived> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonPlacesLived(o[0]); checkPersonPlacesLived(o[1]); @@ -1647,14 +1647,14 @@ buildCounterPersonUrls--; } -buildUnnamed1161() { +buildUnnamed1187() { var o = new core.List<api.PersonUrls>(); o.add(buildPersonUrls()); o.add(buildPersonUrls()); return o; } -checkUnnamed1161(core.List<api.PersonUrls> o) { +checkUnnamed1187(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 = buildUnnamed1158(); + o.emails = buildUnnamed1184(); o.etag = "foo"; o.gender = "foo"; o.id = "foo"; @@ -1684,14 +1684,14 @@ o.nickname = "foo"; o.objectType = "foo"; o.occupation = "foo"; - o.organizations = buildUnnamed1159(); - o.placesLived = buildUnnamed1160(); + o.organizations = buildUnnamed1185(); + o.placesLived = buildUnnamed1186(); o.plusOneCount = 42; o.relationshipStatus = "foo"; o.skills = "foo"; o.tagline = "foo"; o.url = "foo"; - o.urls = buildUnnamed1161(); + o.urls = buildUnnamed1187(); 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')); - checkUnnamed1158(o.emails); + checkUnnamed1184(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')); - checkUnnamed1159(o.organizations); - checkUnnamed1160(o.placesLived); + checkUnnamed1185(o.organizations); + checkUnnamed1186(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')); - checkUnnamed1161(o.urls); + checkUnnamed1187(o.urls); unittest.expect(o.verified, unittest.isTrue); } buildCounterPerson--; @@ -1848,53 +1848,53 @@ buildCounterVideostream--; } -buildUnnamed1162() { +buildUnnamed1188() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1162(core.List<core.String> o) { +checkUnnamed1188(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1163() { +buildUnnamed1189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1163(core.List<core.String> o) { +checkUnnamed1189(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1164() { +buildUnnamed1190() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1164(core.List<core.String> o) { +checkUnnamed1190(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1165() { +buildUnnamed1191() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1165(core.List<core.String> o) { +checkUnnamed1191(core.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 = buildUnnamed1162(); - var arg_userId = buildUnnamed1163(); + var arg_email = buildUnnamed1188(); + var arg_userId = buildUnnamed1189(); 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 = buildUnnamed1164(); - var arg_userId = buildUnnamed1165(); + var arg_email = buildUnnamed1190(); + var arg_userId = buildUnnamed1191(); 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 3dbfa09..324f4d5 100644 --- a/generated/googleapis/test/prediction/v1_6_test.dart +++ b/generated/googleapis/test/prediction/v1_6_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; } -buildUnnamed2197() { +buildUnnamed1951() { var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); return o; } -checkUnnamed2197(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o) { +checkUnnamed1951(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 = buildUnnamed2197(); + o.values = buildUnnamed1951(); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; return o; @@ -101,7 +101,7 @@ buildCounterAnalyzeDataDescriptionFeaturesCategorical++; if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed2197(o.values); + checkUnnamed1951(o.values); } buildCounterAnalyzeDataDescriptionFeaturesCategorical--; } @@ -173,14 +173,14 @@ buildCounterAnalyzeDataDescriptionFeatures--; } -buildUnnamed2198() { +buildUnnamed1952() { var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); o.add(buildAnalyzeDataDescriptionFeatures()); o.add(buildAnalyzeDataDescriptionFeatures()); return o; } -checkUnnamed2198(core.List<api.AnalyzeDataDescriptionFeatures> o) { +checkUnnamed1952(core.List<api.AnalyzeDataDescriptionFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAnalyzeDataDescriptionFeatures(o[0]); checkAnalyzeDataDescriptionFeatures(o[1]); @@ -230,14 +230,14 @@ buildCounterAnalyzeDataDescriptionOutputFeatureText--; } -buildUnnamed2199() { +buildUnnamed1953() { var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); o.add(buildAnalyzeDataDescriptionOutputFeatureText()); return o; } -checkUnnamed2199(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { +checkUnnamed1953(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 = buildUnnamed2199(); + o.text = buildUnnamed1953(); } buildCounterAnalyzeDataDescriptionOutputFeature--; return o; @@ -259,7 +259,7 @@ buildCounterAnalyzeDataDescriptionOutputFeature++; if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); - checkUnnamed2199(o.text); + checkUnnamed1953(o.text); } buildCounterAnalyzeDataDescriptionOutputFeature--; } @@ -269,7 +269,7 @@ var o = new api.AnalyzeDataDescription(); buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - o.features = buildUnnamed2198(); + o.features = buildUnnamed1952(); o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); } buildCounterAnalyzeDataDescription--; @@ -279,72 +279,72 @@ checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { buildCounterAnalyzeDataDescription++; if (buildCounterAnalyzeDataDescription < 3) { - checkUnnamed2198(o.features); + checkUnnamed1952(o.features); checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); } buildCounterAnalyzeDataDescription--; } -buildUnnamed2200() { +buildUnnamed1954() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2200(core.Map<core.String, core.String> o) { +checkUnnamed1954(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')); } -buildUnnamed2201() { +buildUnnamed1955() { var o = new core.List<core.Map<core.String, core.String>>(); - o.add(buildUnnamed2200()); - o.add(buildUnnamed2200()); + o.add(buildUnnamed1954()); + o.add(buildUnnamed1954()); return o; } -checkUnnamed2201(core.List<core.Map<core.String, core.String>> o) { +checkUnnamed1955(core.List<core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2200(o[0]); - checkUnnamed2200(o[1]); + checkUnnamed1954(o[0]); + checkUnnamed1954(o[1]); } -buildUnnamed2202() { +buildUnnamed1956() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2202(core.Map<core.String, core.String> o) { +checkUnnamed1956(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')); } -buildUnnamed2203() { +buildUnnamed1957() { var o = new core.Map<core.String, core.Map<core.String, core.String>>(); - o["x"] = buildUnnamed2202(); - o["y"] = buildUnnamed2202(); + o["x"] = buildUnnamed1956(); + o["y"] = buildUnnamed1956(); return o; } -checkUnnamed2203(core.Map<core.String, core.Map<core.String, core.String>> o) { +checkUnnamed1957(core.Map<core.String, core.Map<core.String, core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2202(o["x"]); - checkUnnamed2202(o["y"]); + checkUnnamed1956(o["x"]); + checkUnnamed1956(o["y"]); } -buildUnnamed2204() { +buildUnnamed1958() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2204(core.Map<core.String, core.String> o) { +checkUnnamed1958(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 = buildUnnamed2203(); - o.confusionMatrixRowTotals = buildUnnamed2204(); + o.confusionMatrix = buildUnnamed1957(); + o.confusionMatrixRowTotals = buildUnnamed1958(); o.modelinfo = buildInsert2(); } buildCounterAnalyzeModelDescription--; @@ -366,8 +366,8 @@ checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { buildCounterAnalyzeModelDescription++; if (buildCounterAnalyzeModelDescription < 3) { - checkUnnamed2203(o.confusionMatrix); - checkUnnamed2204(o.confusionMatrixRowTotals); + checkUnnamed1957(o.confusionMatrix); + checkUnnamed1958(o.confusionMatrixRowTotals); checkInsert2(o.modelinfo); } buildCounterAnalyzeModelDescription--; @@ -379,7 +379,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { o.dataDescription = buildAnalyzeDataDescription(); - o.errors = buildUnnamed2201(); + o.errors = buildUnnamed1955(); o.id = "foo"; o.kind = "foo"; o.modelDescription = buildAnalyzeModelDescription(); @@ -393,7 +393,7 @@ buildCounterAnalyze++; if (buildCounterAnalyze < 3) { checkAnalyzeDataDescription(o.dataDescription); - checkUnnamed2201(o.errors); + checkUnnamed1955(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkAnalyzeModelDescription(o.modelDescription); @@ -402,14 +402,14 @@ buildCounterAnalyze--; } -buildUnnamed2205() { +buildUnnamed1959() { 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; } -checkUnnamed2205(core.List<core.Object> o) { +checkUnnamed1959(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 = buildUnnamed2205(); + o.csvInstance = buildUnnamed1959(); } buildCounterInputInput--; return o; @@ -429,7 +429,7 @@ checkInputInput(api.InputInput o) { buildCounterInputInput++; if (buildCounterInputInput < 3) { - checkUnnamed2205(o.csvInstance); + checkUnnamed1959(o.csvInstance); } buildCounterInputInput--; } @@ -453,14 +453,14 @@ buildCounterInput--; } -buildUnnamed2206() { +buildUnnamed1960() { 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; } -checkUnnamed2206(core.List<core.Object> o) { +checkUnnamed1960(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 = buildUnnamed2206(); + o.csvInstance = buildUnnamed1960(); o.output = "foo"; } buildCounterInsertTrainingInstances--; @@ -481,49 +481,49 @@ checkInsertTrainingInstances(api.InsertTrainingInstances o) { buildCounterInsertTrainingInstances++; if (buildCounterInsertTrainingInstances < 3) { - checkUnnamed2206(o.csvInstance); + checkUnnamed1960(o.csvInstance); unittest.expect(o.output, unittest.equals('foo')); } buildCounterInsertTrainingInstances--; } -buildUnnamed2207() { +buildUnnamed1961() { var o = new core.List<api.InsertTrainingInstances>(); o.add(buildInsertTrainingInstances()); o.add(buildInsertTrainingInstances()); return o; } -checkUnnamed2207(core.List<api.InsertTrainingInstances> o) { +checkUnnamed1961(core.List<api.InsertTrainingInstances> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertTrainingInstances(o[0]); checkInsertTrainingInstances(o[1]); } -buildUnnamed2208() { +buildUnnamed1962() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed2208(core.Map<core.String, core.double> o) { +checkUnnamed1962(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)); } -buildUnnamed2209() { +buildUnnamed1963() { var o = new core.List<core.Map<core.String, core.double>>(); - o.add(buildUnnamed2208()); - o.add(buildUnnamed2208()); + o.add(buildUnnamed1962()); + o.add(buildUnnamed1962()); return o; } -checkUnnamed2209(core.List<core.Map<core.String, core.double>> o) { +checkUnnamed1963(core.List<core.Map<core.String, core.double>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2208(o[0]); - checkUnnamed2208(o[1]); + checkUnnamed1962(o[0]); + checkUnnamed1962(o[1]); } core.int buildCounterInsert = 0; @@ -537,8 +537,8 @@ o.storageDataLocation = "foo"; o.storagePMMLLocation = "foo"; o.storagePMMLModelLocation = "foo"; - o.trainingInstances = buildUnnamed2207(); - o.utility = buildUnnamed2209(); + o.trainingInstances = buildUnnamed1961(); + o.utility = buildUnnamed1963(); } 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')); - checkUnnamed2207(o.trainingInstances); - checkUnnamed2209(o.utility); + checkUnnamed1961(o.trainingInstances); + checkUnnamed1963(o.utility); } buildCounterInsert--; } @@ -627,14 +627,14 @@ buildCounterInsert2--; } -buildUnnamed2210() { +buildUnnamed1964() { var o = new core.List<api.Insert2>(); o.add(buildInsert2()); o.add(buildInsert2()); return o; } -checkUnnamed2210(core.List<api.Insert2> o) { +checkUnnamed1964(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 = buildUnnamed2210(); + o.items = buildUnnamed1964(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -657,7 +657,7 @@ checkList(api.List o) { buildCounterList++; if (buildCounterList < 3) { - checkUnnamed2210(o.items); + checkUnnamed1964(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--; } -buildUnnamed2211() { +buildUnnamed1965() { var o = new core.List<api.OutputOutputMulti>(); o.add(buildOutputOutputMulti()); o.add(buildOutputOutputMulti()); return o; } -checkUnnamed2211(core.List<api.OutputOutputMulti> o) { +checkUnnamed1965(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 = buildUnnamed2211(); + o.outputMulti = buildUnnamed1965(); 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')); - checkUnnamed2211(o.outputMulti); + checkUnnamed1965(o.outputMulti); unittest.expect(o.outputValue, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterOutput--; } -buildUnnamed2212() { +buildUnnamed1966() { 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; } -checkUnnamed2212(core.List<core.Object> o) { +checkUnnamed1966(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 = buildUnnamed2212(); + o.csvInstance = buildUnnamed1966(); o.output = "foo"; } buildCounterUpdate--; @@ -756,7 +756,7 @@ checkUpdate(api.Update o) { buildCounterUpdate++; if (buildCounterUpdate < 3) { - checkUnnamed2212(o.csvInstance); + checkUnnamed1966(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 ffcde49..357842c 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); } -buildUnnamed1340() { +buildUnnamed1362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1340(core.List<core.String> o) { +checkUnnamed1362(core.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 = buildUnnamed1340(); + o.ackIds = buildUnnamed1362(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed1340(o.ackIds); + checkUnnamed1362(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed1341() { +buildUnnamed1363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1341(core.List<core.String> o) { +checkUnnamed1363(core.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 = buildUnnamed1341(); + o.members = buildUnnamed1363(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1341(o.members); + checkUnnamed1363(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed1342() { +buildUnnamed1364() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed1342(core.List<api.Subscription> o) { +checkUnnamed1364(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 = buildUnnamed1342(); + o.subscriptions = buildUnnamed1364(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1342(o.subscriptions); + checkUnnamed1364(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed1343() { +buildUnnamed1365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1343(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')); @@ -187,7 +187,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed1343(); + o.subscriptions = buildUnnamed1365(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1343(o.subscriptions); + checkUnnamed1365(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed1344() { +buildUnnamed1366() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed1344(core.List<api.Topic> o) { +checkUnnamed1366(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 = buildUnnamed1344(); + o.topics = buildUnnamed1366(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1344(o.topics); + checkUnnamed1366(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed1345() { +buildUnnamed1367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1345(core.List<core.String> o) { +checkUnnamed1367(core.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 = buildUnnamed1345(); + o.ackIds = buildUnnamed1367(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -265,7 +265,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed1345(o.ackIds); + checkUnnamed1367(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -289,14 +289,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed1346() { +buildUnnamed1368() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1346(core.List<api.Binding> o) { +checkUnnamed1368(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 = buildUnnamed1346(); + o.bindings = buildUnnamed1368(); o.etag = "foo"; o.version = 42; } @@ -318,21 +318,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1346(o.bindings); + checkUnnamed1368(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1347() { +buildUnnamed1369() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed1347(core.List<api.PubsubMessage> o) { +checkUnnamed1369(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 = buildUnnamed1347(); + o.messages = buildUnnamed1369(); } buildCounterPublishRequest--; return o; @@ -352,19 +352,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed1347(o.messages); + checkUnnamed1369(o.messages); } buildCounterPublishRequest--; } -buildUnnamed1348() { +buildUnnamed1370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1348(core.List<core.String> o) { +checkUnnamed1370(core.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 = buildUnnamed1348(); + o.messageIds = buildUnnamed1370(); } buildCounterPublishResponse--; return o; @@ -384,19 +384,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed1348(o.messageIds); + checkUnnamed1370(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed1349() { +buildUnnamed1371() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1349(core.Map<core.String, core.String> o) { +checkUnnamed1371(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 = buildUnnamed1349(); + o.attributes = buildUnnamed1371(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -419,7 +419,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed1349(o.attributes); + checkUnnamed1371(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--; } -buildUnnamed1350() { +buildUnnamed1372() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed1350(core.List<api.ReceivedMessage> o) { +checkUnnamed1372(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 = buildUnnamed1350(); + o.receivedMessages = buildUnnamed1372(); } buildCounterPullResponse--; return o; @@ -475,19 +475,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed1350(o.receivedMessages); + checkUnnamed1372(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed1351() { +buildUnnamed1373() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1351(core.Map<core.String, core.String> o) { +checkUnnamed1373(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 = buildUnnamed1351(); + o.attributes = buildUnnamed1373(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -508,7 +508,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed1351(o.attributes); + checkUnnamed1373(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -579,14 +579,14 @@ buildCounterSubscription--; } -buildUnnamed1352() { +buildUnnamed1374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1352(core.List<core.String> o) { +checkUnnamed1374(core.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 = buildUnnamed1352(); + o.permissions = buildUnnamed1374(); } buildCounterTestIamPermissionsRequest--; return o; @@ -606,19 +606,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1352(o.permissions); + checkUnnamed1374(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1353() { +buildUnnamed1375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1353(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')); @@ -629,7 +629,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1353(); + o.permissions = buildUnnamed1375(); } buildCounterTestIamPermissionsResponse--; return o; @@ -638,7 +638,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1353(o.permissions); + checkUnnamed1375(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -853,6 +853,153 @@ }); + unittest.group("resource-ProjectsSnapshotsResourceApi", () { + unittest.test("method--getIamPolicy", () { + + var mock = new HttpServerMock(); + api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; + var arg_resource = "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("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(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + + var mock = new HttpServerMock(); + api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SetIamPolicyRequest.fromJson(json); + checkSetIamPolicyRequest(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(buildPolicy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((api.Policy response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + + var mock = new HttpServerMock(); + api.ProjectsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.snapshots; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.TestIamPermissionsRequest.fromJson(json); + checkTestIamPermissionsRequest(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(buildTestIamPermissionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync(((api.TestIamPermissionsResponse response) { + checkTestIamPermissionsResponse(response); + }))); + }); + + }); + + unittest.group("resource-ProjectsSubscriptionsResourceApi", () { unittest.test("method--acknowledge", () {
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index d5f256e..197d9aa 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -238,14 +238,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed2582() { +buildUnnamed2376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2582(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')); @@ -312,7 +312,7 @@ o.skuId = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed2582(); + o.suspensionReasons = buildUnnamed2376(); 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')); - checkUnnamed2582(o.suspensionReasons); + checkUnnamed2376(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed2583() { +buildUnnamed2377() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed2583(core.List<api.Subscription> o) { +checkUnnamed2377(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 = buildUnnamed2583(); + o.subscriptions = buildUnnamed2377(); } buildCounterSubscriptions--; return o; @@ -375,7 +375,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2583(o.subscriptions); + checkUnnamed2377(o.subscriptions); } buildCounterSubscriptions--; }
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart new file mode 100644 index 0000000..5ecc0b4 --- /dev/null +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -0,0 +1,421 @@ +library googleapis.runtimeconfig.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/runtimeconfig/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 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(); + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; + return o; +} + +checkEmpty(api.Empty o) { + buildCounterEmpty++; + if (buildCounterEmpty < 3) { + } + buildCounterEmpty--; +} + +buildUnnamed2011() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed2011(core.List<api.Operation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOperation(o[0]); + checkOperation(o[1]); +} + +core.int buildCounterListOperationsResponse = 0; +buildListOperationsResponse() { + var o = new api.ListOperationsResponse(); + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + o.nextPageToken = "foo"; + o.operations = buildUnnamed2011(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2011(o.operations); + } + buildCounterListOperationsResponse--; +} + +buildUnnamed2012() { + 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) { + 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() { + 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) { + 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')); +} + +core.int buildCounterOperation = 0; +buildOperation() { + var o = new api.Operation(); + buildCounterOperation++; + if (buildCounterOperation < 3) { + o.done = true; + o.error = buildStatus(); + o.metadata = buildUnnamed2012(); + o.name = "foo"; + o.response = buildUnnamed2013(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed2012(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed2013(o.response); + } + buildCounterOperation--; +} + +buildUnnamed2014() { + 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) { + 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() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed2014()); + o.add(buildUnnamed2014()); + return o; +} + +checkUnnamed2015(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed2014(o[0]); + checkUnnamed2014(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed2015(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed2015(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + + +main() { + 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(); + var od = new api.Empty.fromJson(o.toJson()); + checkEmpty(od); + }); + }); + + + unittest.group("obj-schema-ListOperationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListOperationsResponse(); + var od = new api.ListOperationsResponse.fromJson(o.toJson()); + checkListOperationsResponse(od); + }); + }); + + + unittest.group("obj-schema-Operation", () { + unittest.test("to-json--from-json", () { + var o = buildOperation(); + var od = new api.Operation.fromJson(o.toJson()); + checkOperation(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("resource-OperationsResourceApi", () { + unittest.test("method--cancel", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.RuntimeconfigApi(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--delete", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; + var arg_name = "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("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.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.OperationsResourceApi res = new api.RuntimeconfigApi(mock).operations; + var arg_name = "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; + 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])); + } + } + 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 = { + "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_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { + checkListOperationsResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index 632ef2d..cbc80d6 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -91,14 +91,14 @@ buildCounterClientInfo--; } -buildUnnamed1169() { +buildUnnamed1195() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1169(core.List<core.String> o) { +checkUnnamed1195(core.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 = buildUnnamed1169(); + o.supportedCompressions = buildUnnamed1195(); } 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')); - checkUnnamed1169(o.supportedCompressions); + checkUnnamed1195(o.supportedCompressions); } buildCounterConstraints--; } -buildUnnamed1170() { +buildUnnamed1196() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed1170(core.List<api.ListUpdateRequest> o) { +checkUnnamed1196(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 = buildUnnamed1170(); + o.listUpdateRequests = buildUnnamed1196(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -158,19 +158,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1170(o.listUpdateRequests); + checkUnnamed1196(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed1171() { +buildUnnamed1197() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed1171(core.List<api.ListUpdateResponse> o) { +checkUnnamed1197(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 = buildUnnamed1171(); + o.listUpdateResponses = buildUnnamed1197(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -191,20 +191,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed1171(o.listUpdateResponses); + checkUnnamed1197(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed1172() { +buildUnnamed1198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1172(core.List<core.String> o) { +checkUnnamed1198(core.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 = buildUnnamed1172(); + o.clientStates = buildUnnamed1198(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -227,20 +227,20 @@ buildCounterFindFullHashesRequest++; if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.client); - checkUnnamed1172(o.clientStates); + checkUnnamed1198(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed1173() { +buildUnnamed1199() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1173(core.List<api.ThreatMatch> o) { +checkUnnamed1199(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 = buildUnnamed1173(); + o.matches = buildUnnamed1199(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -262,7 +262,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed1173(o.matches); + checkUnnamed1199(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -290,14 +290,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed1174() { +buildUnnamed1200() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed1174(core.List<api.ThreatMatch> o) { +checkUnnamed1200(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 = buildUnnamed1174(); + o.matches = buildUnnamed1200(); } buildCounterFindThreatMatchesResponse--; return o; @@ -317,19 +317,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed1174(o.matches); + checkUnnamed1200(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed1175() { +buildUnnamed1201() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed1175(core.List<api.ThreatListDescriptor> o) { +checkUnnamed1201(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 = buildUnnamed1175(); + o.threatLists = buildUnnamed1201(); } buildCounterListThreatListsResponse--; return o; @@ -349,7 +349,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed1175(o.threatLists); + checkUnnamed1201(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -381,27 +381,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed1176() { +buildUnnamed1202() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1176(core.List<api.ThreatEntrySet> o) { +checkUnnamed1202(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed1177() { +buildUnnamed1203() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed1177(core.List<api.ThreatEntrySet> o) { +checkUnnamed1203(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 = buildUnnamed1176(); + o.additions = buildUnnamed1202(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed1177(); + o.removals = buildUnnamed1203(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -428,11 +428,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed1176(o.additions); + checkUnnamed1202(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed1177(o.removals); + checkUnnamed1203(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--; } -buildUnnamed1178() { +buildUnnamed1204() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1178(core.List<core.int> o) { +checkUnnamed1204(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 = buildUnnamed1178(); + o.indices = buildUnnamed1204(); } buildCounterRawIndices--; return o; @@ -509,7 +509,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed1178(o.indices); + checkUnnamed1204(o.indices); } buildCounterRawIndices--; } @@ -562,14 +562,14 @@ buildCounterThreatEntry--; } -buildUnnamed1179() { +buildUnnamed1205() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed1179(core.List<api.MetadataEntry> o) { +checkUnnamed1205(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 = buildUnnamed1179(); + o.entries = buildUnnamed1205(); } buildCounterThreatEntryMetadata--; return o; @@ -589,7 +589,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed1179(o.entries); + checkUnnamed1205(o.entries); } buildCounterThreatEntryMetadata--; } @@ -621,53 +621,53 @@ buildCounterThreatEntrySet--; } -buildUnnamed1180() { +buildUnnamed1206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1180(core.List<core.String> o) { +checkUnnamed1206(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1181() { +buildUnnamed1207() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed1181(core.List<api.ThreatEntry> o) { +checkUnnamed1207(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed1182() { +buildUnnamed1208() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1182(core.List<core.String> o) { +checkUnnamed1208(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1183() { +buildUnnamed1209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1183(core.List<core.String> o) { +checkUnnamed1209(core.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 = buildUnnamed1180(); - o.threatEntries = buildUnnamed1181(); - o.threatEntryTypes = buildUnnamed1182(); - o.threatTypes = buildUnnamed1183(); + o.platformTypes = buildUnnamed1206(); + o.threatEntries = buildUnnamed1207(); + o.threatEntryTypes = buildUnnamed1208(); + o.threatTypes = buildUnnamed1209(); } buildCounterThreatInfo--; return o; @@ -690,10 +690,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed1180(o.platformTypes); - checkUnnamed1181(o.threatEntries); - checkUnnamed1182(o.threatEntryTypes); - checkUnnamed1183(o.threatTypes); + checkUnnamed1206(o.platformTypes); + checkUnnamed1207(o.threatEntries); + checkUnnamed1208(o.threatEntryTypes); + checkUnnamed1209(o.threatTypes); } buildCounterThreatInfo--; }
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index 3d81a9e..4d71ab9 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); } -buildUnnamed910() { +buildUnnamed935() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed910(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed935(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 = buildUnnamed910(); + o.scriptStackTraceElements = buildUnnamed935(); } buildCounterExecutionError--; return o; @@ -82,19 +82,19 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed910(o.scriptStackTraceElements); + checkUnnamed935(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed911() { +buildUnnamed936() { 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; } -checkUnnamed911(core.List<core.Object> o) { +checkUnnamed936(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 = buildUnnamed911(); + o.parameters = buildUnnamed936(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -119,7 +119,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed911(o.parameters); + checkUnnamed936(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -146,27 +146,27 @@ buildCounterExecutionResponse--; } -buildUnnamed912() { +buildUnnamed937() { 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; } -checkUnnamed912(core.Map<core.String, core.Object> o) { +checkUnnamed937(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')); } -buildUnnamed913() { +buildUnnamed938() { 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; } -checkUnnamed913(core.Map<core.String, core.Object> o) { +checkUnnamed938(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 = buildUnnamed912(); + o.metadata = buildUnnamed937(); o.name = "foo"; - o.response = buildUnnamed913(); + o.response = buildUnnamed938(); } buildCounterOperation--; return o; @@ -192,9 +192,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed912(o.metadata); + checkUnnamed937(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed913(o.response); + checkUnnamed938(o.response); } buildCounterOperation--; } @@ -220,30 +220,30 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed914() { +buildUnnamed939() { 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; } -checkUnnamed914(core.Map<core.String, core.Object> o) { +checkUnnamed939(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')); } -buildUnnamed915() { +buildUnnamed940() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed914()); - o.add(buildUnnamed914()); + o.add(buildUnnamed939()); + o.add(buildUnnamed939()); return o; } -checkUnnamed915(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed940(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed914(o[0]); - checkUnnamed914(o[1]); + checkUnnamed939(o[0]); + checkUnnamed939(o[1]); } core.int buildCounterStatus = 0; @@ -252,7 +252,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed915(); + o.details = buildUnnamed940(); o.message = "foo"; } buildCounterStatus--; @@ -263,7 +263,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed915(o.details); + checkUnnamed940(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 a22e28c..b850d2c 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -78,6 +78,7 @@ buildCounterCheckRequest++; if (buildCounterCheckRequest < 3) { o.operation = buildOperation(); + o.serviceConfigId = "foo"; } buildCounterCheckRequest--; return o; @@ -87,18 +88,19 @@ buildCounterCheckRequest++; if (buildCounterCheckRequest < 3) { checkOperation(o.operation); + unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterCheckRequest--; } -buildUnnamed1874() { +buildUnnamed1889() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed1874(core.List<api.CheckError> o) { +checkUnnamed1889(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -109,7 +111,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed1874(); + o.checkErrors = buildUnnamed1889(); o.operationId = "foo"; o.serviceConfigId = "foo"; } @@ -120,21 +122,21 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed1874(o.checkErrors); + checkUnnamed1889(o.checkErrors); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterCheckResponse--; } -buildUnnamed1875() { +buildUnnamed1890() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1875(core.List<core.String> o) { +checkUnnamed1890(core.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,7 +147,7 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed1875(); + o.bucketCounts = buildUnnamed1890(); o.count = "foo"; o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); @@ -162,7 +164,7 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed1875(o.bucketCounts); + checkUnnamed1890(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); @@ -175,14 +177,14 @@ buildCounterDistribution--; } -buildUnnamed1876() { +buildUnnamed1891() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1876(core.List<core.double> o) { +checkUnnamed1891(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)); @@ -193,7 +195,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed1876(); + o.bounds = buildUnnamed1891(); } buildCounterExplicitBuckets--; return o; @@ -202,7 +204,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed1876(o.bounds); + checkUnnamed1891(o.bounds); } buildCounterExplicitBuckets--; } @@ -253,40 +255,40 @@ buildCounterLinearBuckets--; } -buildUnnamed1877() { +buildUnnamed1892() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1877(core.Map<core.String, core.String> o) { +checkUnnamed1892(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')); } -buildUnnamed1878() { +buildUnnamed1893() { 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; } -checkUnnamed1878(core.Map<core.String, core.Object> o) { +checkUnnamed1893(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')); } -buildUnnamed1879() { +buildUnnamed1894() { 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; } -checkUnnamed1879(core.Map<core.String, core.Object> o) { +checkUnnamed1894(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')); @@ -298,11 +300,11 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { o.insertId = "foo"; - o.labels = buildUnnamed1877(); + o.labels = buildUnnamed1892(); o.name = "foo"; - o.protoPayload = buildUnnamed1878(); + o.protoPayload = buildUnnamed1893(); o.severity = "foo"; - o.structPayload = buildUnnamed1879(); + o.structPayload = buildUnnamed1894(); o.textPayload = "foo"; o.timestamp = "foo"; } @@ -314,25 +316,25 @@ buildCounterLogEntry++; if (buildCounterLogEntry < 3) { unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed1877(o.labels); + checkUnnamed1892(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1878(o.protoPayload); + checkUnnamed1893(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); - checkUnnamed1879(o.structPayload); + checkUnnamed1894(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterLogEntry--; } -buildUnnamed1880() { +buildUnnamed1895() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1880(core.Map<core.String, core.String> o) { +checkUnnamed1895(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')); @@ -348,7 +350,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed1880(); + o.labels = buildUnnamed1895(); o.startTime = "foo"; o.stringValue = "foo"; } @@ -364,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')); - checkUnnamed1880(o.labels); + checkUnnamed1895(o.labels); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterMetricValue--; } -buildUnnamed1881() { +buildUnnamed1896() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed1881(core.List<api.MetricValue> o) { +checkUnnamed1896(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -390,7 +392,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed1881(); + o.metricValues = buildUnnamed1896(); } buildCounterMetricValueSet--; return o; @@ -400,45 +402,45 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed1881(o.metricValues); + checkUnnamed1896(o.metricValues); } buildCounterMetricValueSet--; } -buildUnnamed1882() { +buildUnnamed1897() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1882(core.Map<core.String, core.String> o) { +checkUnnamed1897(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')); } -buildUnnamed1883() { +buildUnnamed1898() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed1883(core.List<api.LogEntry> o) { +checkUnnamed1898(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed1884() { +buildUnnamed1899() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed1884(core.List<api.MetricValueSet> o) { +checkUnnamed1899(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -452,9 +454,9 @@ o.consumerId = "foo"; o.endTime = "foo"; o.importance = "foo"; - o.labels = buildUnnamed1882(); - o.logEntries = buildUnnamed1883(); - o.metricValueSets = buildUnnamed1884(); + o.labels = buildUnnamed1897(); + o.logEntries = buildUnnamed1898(); + o.metricValueSets = buildUnnamed1899(); o.operationId = "foo"; o.operationName = "foo"; o.startTime = "foo"; @@ -469,9 +471,9 @@ unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed1882(o.labels); - checkUnnamed1883(o.logEntries); - checkUnnamed1884(o.metricValueSets); + checkUnnamed1897(o.labels); + checkUnnamed1898(o.logEntries); + checkUnnamed1899(o.metricValueSets); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.operationName, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); @@ -500,14 +502,14 @@ buildCounterReportError--; } -buildUnnamed1885() { +buildUnnamed1900() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1885(core.List<api.Operation> o) { +checkUnnamed1900(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -518,7 +520,8 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed1885(); + o.operations = buildUnnamed1900(); + o.serviceConfigId = "foo"; } buildCounterReportRequest--; return o; @@ -527,19 +530,20 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed1885(o.operations); + checkUnnamed1900(o.operations); + unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed1886() { +buildUnnamed1901() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed1886(core.List<api.ReportError> o) { +checkUnnamed1901(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); @@ -550,7 +554,7 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed1886(); + o.reportErrors = buildUnnamed1901(); o.serviceConfigId = "foo"; } buildCounterReportResponse--; @@ -560,36 +564,36 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed1886(o.reportErrors); + checkUnnamed1901(o.reportErrors); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportResponse--; } -buildUnnamed1887() { +buildUnnamed1902() { 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; } -checkUnnamed1887(core.Map<core.String, core.Object> o) { +checkUnnamed1902(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')); } -buildUnnamed1888() { +buildUnnamed1903() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1887()); - o.add(buildUnnamed1887()); + o.add(buildUnnamed1902()); + o.add(buildUnnamed1902()); return o; } -checkUnnamed1888(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1903(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1887(o[0]); - checkUnnamed1887(o[1]); + checkUnnamed1902(o[0]); + checkUnnamed1902(o[1]); } core.int buildCounterStatus = 0; @@ -598,7 +602,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1888(); + o.details = buildUnnamed1903(); o.message = "foo"; } buildCounterStatus--; @@ -609,7 +613,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1888(o.details); + checkUnnamed1903(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 26a9c83..06a8d96 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -70,40 +70,40 @@ buildCounterAdvice--; } -buildUnnamed1220() { +buildUnnamed1246() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed1220(core.List<api.Method> o) { +checkUnnamed1246(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed1221() { +buildUnnamed1247() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed1221(core.List<api.Mixin> o) { +checkUnnamed1247(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed1222() { +buildUnnamed1248() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1222(core.List<api.Option> o) { +checkUnnamed1248(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 = buildUnnamed1220(); - o.mixins = buildUnnamed1221(); + o.methods = buildUnnamed1246(); + o.mixins = buildUnnamed1247(); o.name = "foo"; - o.options = buildUnnamed1222(); + o.options = buildUnnamed1248(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -129,10 +129,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed1220(o.methods); - checkUnnamed1221(o.mixins); + checkUnnamed1246(o.methods); + checkUnnamed1247(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1222(o.options); + checkUnnamed1248(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -140,14 +140,14 @@ buildCounterApi--; } -buildUnnamed1223() { +buildUnnamed1249() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1223(core.List<core.String> o) { +checkUnnamed1249(core.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 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.exemptedMembers = buildUnnamed1223(); + o.exemptedMembers = buildUnnamed1249(); o.service = "foo"; } buildCounterAuditConfig--; @@ -168,7 +168,7 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1223(o.exemptedMembers); + checkUnnamed1249(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; @@ -179,6 +179,7 @@ var o = new api.AuthProvider(); buildCounterAuthProvider++; if (buildCounterAuthProvider < 3) { + o.audiences = "foo"; o.id = "foo"; o.issuer = "foo"; o.jwksUri = "foo"; @@ -190,6 +191,7 @@ checkAuthProvider(api.AuthProvider o) { buildCounterAuthProvider++; if (buildCounterAuthProvider < 3) { + unittest.expect(o.audiences, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); @@ -218,27 +220,27 @@ buildCounterAuthRequirement--; } -buildUnnamed1224() { +buildUnnamed1250() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed1224(core.List<api.AuthProvider> o) { +checkUnnamed1250(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed1225() { +buildUnnamed1251() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed1225(core.List<api.AuthenticationRule> o) { +checkUnnamed1251(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -249,8 +251,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed1224(); - o.rules = buildUnnamed1225(); + o.providers = buildUnnamed1250(); + o.rules = buildUnnamed1251(); } buildCounterAuthentication--; return o; @@ -259,20 +261,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed1224(o.providers); - checkUnnamed1225(o.rules); + checkUnnamed1250(o.providers); + checkUnnamed1251(o.rules); } buildCounterAuthentication--; } -buildUnnamed1226() { +buildUnnamed1252() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed1226(core.List<api.AuthRequirement> o) { +checkUnnamed1252(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -285,7 +287,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed1226(); + o.requirements = buildUnnamed1252(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -297,20 +299,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed1226(o.requirements); + checkUnnamed1252(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed1227() { +buildUnnamed1253() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed1227(core.List<api.BackendRule> o) { +checkUnnamed1253(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -321,7 +323,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed1227(); + o.rules = buildUnnamed1253(); } buildCounterBackend--; return o; @@ -330,7 +332,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed1227(o.rules); + checkUnnamed1253(o.rules); } buildCounterBackend--; } @@ -358,14 +360,14 @@ buildCounterBackendRule--; } -buildUnnamed1228() { +buildUnnamed1254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1228(core.List<core.String> o) { +checkUnnamed1254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -376,7 +378,7 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { - o.members = buildUnnamed1228(); + o.members = buildUnnamed1254(); o.role = "foo"; } buildCounterBinding--; @@ -386,20 +388,20 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed1228(o.members); + checkUnnamed1254(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed1229() { +buildUnnamed1255() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed1229(core.List<api.ConfigChange> o) { +checkUnnamed1255(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -410,7 +412,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed1229(); + o.configChanges = buildUnnamed1255(); } buildCounterChangeReport--; return o; @@ -419,7 +421,7 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed1229(o.configChanges); + checkUnnamed1255(o.configChanges); } buildCounterChangeReport--; } @@ -441,14 +443,14 @@ buildCounterCloudAuditOptions--; } -buildUnnamed1230() { +buildUnnamed1256() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1230(core.List<core.String> o) { +checkUnnamed1256(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -464,7 +466,7 @@ o.svc = "foo"; o.sys = "foo"; o.value = "foo"; - o.values = buildUnnamed1230(); + o.values = buildUnnamed1256(); } buildCounterCondition--; return o; @@ -478,19 +480,19 @@ unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); - checkUnnamed1230(o.values); + checkUnnamed1256(o.values); } buildCounterCondition--; } -buildUnnamed1231() { +buildUnnamed1257() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed1231(core.List<api.Advice> o) { +checkUnnamed1257(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -501,7 +503,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed1231(); + o.advices = buildUnnamed1257(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -514,7 +516,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed1231(o.advices); + checkUnnamed1257(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -565,14 +567,14 @@ buildCounterConfigRef--; } -buildUnnamed1232() { +buildUnnamed1258() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed1232(core.List<api.ConfigFile> o) { +checkUnnamed1258(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -583,7 +585,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed1232(); + o.files = buildUnnamed1258(); o.id = "foo"; } buildCounterConfigSource--; @@ -593,20 +595,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed1232(o.files); + checkUnnamed1258(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed1233() { +buildUnnamed1259() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed1233(core.List<api.ContextRule> o) { +checkUnnamed1259(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -617,7 +619,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed1233(); + o.rules = buildUnnamed1259(); } buildCounterContext--; return o; @@ -626,32 +628,32 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed1233(o.rules); + checkUnnamed1259(o.rules); } buildCounterContext--; } -buildUnnamed1234() { +buildUnnamed1260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1234(core.List<core.String> o) { +checkUnnamed1260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1235() { +buildUnnamed1261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1235(core.List<core.String> o) { +checkUnnamed1261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -662,8 +664,8 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.provided = buildUnnamed1234(); - o.requested = buildUnnamed1235(); + o.provided = buildUnnamed1260(); + o.requested = buildUnnamed1261(); o.selector = "foo"; } buildCounterContextRule--; @@ -673,8 +675,8 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed1234(o.provided); - checkUnnamed1235(o.requested); + checkUnnamed1260(o.provided); + checkUnnamed1261(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -720,27 +722,27 @@ buildCounterCounterOptions--; } -buildUnnamed1236() { +buildUnnamed1262() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed1236(core.List<api.CustomErrorRule> o) { +checkUnnamed1262(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed1237() { +buildUnnamed1263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1237(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')); @@ -751,8 +753,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed1236(); - o.types = buildUnnamed1237(); + o.rules = buildUnnamed1262(); + o.types = buildUnnamed1263(); } buildCounterCustomError--; return o; @@ -761,8 +763,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed1236(o.rules); - checkUnnamed1237(o.types); + checkUnnamed1262(o.rules); + checkUnnamed1263(o.types); } buildCounterCustomError--; } @@ -885,27 +887,27 @@ buildCounterDisableServiceRequest--; } -buildUnnamed1238() { +buildUnnamed1264() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1238(core.List<api.Page> o) { +checkUnnamed1264(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed1239() { +buildUnnamed1265() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed1239(core.List<api.DocumentationRule> o) { +checkUnnamed1265(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -918,8 +920,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed1238(); - o.rules = buildUnnamed1239(); + o.pages = buildUnnamed1264(); + o.rules = buildUnnamed1265(); o.summary = "foo"; } buildCounterDocumentation--; @@ -931,8 +933,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed1238(o.pages); - checkUnnamed1239(o.rules); + checkUnnamed1264(o.pages); + checkUnnamed1265(o.rules); unittest.expect(o.summary, unittest.equals('foo')); } buildCounterDocumentation--; @@ -980,40 +982,40 @@ buildCounterEnableServiceRequest--; } -buildUnnamed1240() { +buildUnnamed1266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1240(core.List<core.String> o) { +checkUnnamed1266(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1241() { +buildUnnamed1267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1241(core.List<core.String> o) { +checkUnnamed1267(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1242() { +buildUnnamed1268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1242(core.List<core.String> o) { +checkUnnamed1268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1024,10 +1026,10 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed1240(); + o.aliases = buildUnnamed1266(); o.allowCors = true; - o.apis = buildUnnamed1241(); - o.features = buildUnnamed1242(); + o.apis = buildUnnamed1267(); + o.features = buildUnnamed1268(); o.name = "foo"; } buildCounterEndpoint--; @@ -1037,36 +1039,36 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed1240(o.aliases); + checkUnnamed1266(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed1241(o.apis); - checkUnnamed1242(o.features); + checkUnnamed1267(o.apis); + checkUnnamed1268(o.features); unittest.expect(o.name, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed1243() { +buildUnnamed1269() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed1243(core.List<api.EnumValue> o) { +checkUnnamed1269(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed1244() { +buildUnnamed1270() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1244(core.List<api.Option> o) { +checkUnnamed1270(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1077,9 +1079,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed1243(); + o.enumvalue = buildUnnamed1269(); o.name = "foo"; - o.options = buildUnnamed1244(); + o.options = buildUnnamed1270(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1090,23 +1092,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed1243(o.enumvalue); + checkUnnamed1269(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1244(o.options); + checkUnnamed1270(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed1245() { +buildUnnamed1271() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1245(core.List<api.Option> o) { +checkUnnamed1271(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1119,7 +1121,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed1245(); + o.options = buildUnnamed1271(); } buildCounterEnumValue--; return o; @@ -1130,19 +1132,19 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed1245(o.options); + checkUnnamed1271(o.options); } buildCounterEnumValue--; } -buildUnnamed1246() { +buildUnnamed1272() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1246(core.List<api.Option> o) { +checkUnnamed1272(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1160,7 +1162,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed1246(); + o.options = buildUnnamed1272(); o.packed = true; o.typeUrl = "foo"; } @@ -1178,34 +1180,34 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed1246(o.options); + checkUnnamed1272(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed1247() { +buildUnnamed1273() { 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; } -checkUnnamed1247(core.Map<core.String, core.Object> o) { +checkUnnamed1273(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')); } -buildUnnamed1248() { +buildUnnamed1274() { 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; } -checkUnnamed1248(core.Map<core.String, core.Object> o) { +checkUnnamed1274(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')); @@ -1216,8 +1218,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed1247(); - o.oldConfig = buildUnnamed1248(); + o.newConfig = buildUnnamed1273(); + o.oldConfig = buildUnnamed1274(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1226,33 +1228,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed1247(o.newConfig); - checkUnnamed1248(o.oldConfig); + checkUnnamed1273(o.newConfig); + checkUnnamed1274(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed1249() { +buildUnnamed1275() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed1249(core.List<api.ChangeReport> o) { +checkUnnamed1275(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed1250() { +buildUnnamed1276() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed1250(core.List<api.Diagnostic> o) { +checkUnnamed1276(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1263,8 +1265,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed1249(); - o.diagnostics = buildUnnamed1250(); + o.changeReports = buildUnnamed1275(); + o.diagnostics = buildUnnamed1276(); o.id = "foo"; o.serviceName = "foo"; } @@ -1275,8 +1277,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed1249(o.changeReports); - checkUnnamed1250(o.diagnostics); + checkUnnamed1275(o.changeReports); + checkUnnamed1276(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1300,14 +1302,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed1251() { +buildUnnamed1277() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1251(core.List<api.HttpRule> o) { +checkUnnamed1277(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1318,7 +1320,7 @@ var o = new api.Http(); buildCounterHttp++; if (buildCounterHttp < 3) { - o.rules = buildUnnamed1251(); + o.rules = buildUnnamed1277(); } buildCounterHttp--; return o; @@ -1327,19 +1329,19 @@ checkHttp(api.Http o) { buildCounterHttp++; if (buildCounterHttp < 3) { - checkUnnamed1251(o.rules); + checkUnnamed1277(o.rules); } buildCounterHttp--; } -buildUnnamed1252() { +buildUnnamed1278() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed1252(core.List<api.HttpRule> o) { +checkUnnamed1278(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1350,7 +1352,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed1252(); + o.additionalBindings = buildUnnamed1278(); o.body = "foo"; o.custom = buildCustomHttpPattern(); o.delete = "foo"; @@ -1370,7 +1372,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed1252(o.additionalBindings); + checkUnnamed1278(o.additionalBindings); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); unittest.expect(o.delete, unittest.equals('foo')); @@ -1409,14 +1411,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed1253() { +buildUnnamed1279() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1253(core.List<api.Service> o) { +checkUnnamed1279(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1428,7 +1430,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed1253(); + o.serviceConfigs = buildUnnamed1279(); } buildCounterListServiceConfigsResponse--; return o; @@ -1438,19 +1440,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1253(o.serviceConfigs); + checkUnnamed1279(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed1254() { +buildUnnamed1280() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed1254(core.List<api.Rollout> o) { +checkUnnamed1280(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1462,7 +1464,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed1254(); + o.rollouts = buildUnnamed1280(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1472,19 +1474,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1254(o.rollouts); + checkUnnamed1280(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed1255() { +buildUnnamed1281() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed1255(core.List<api.ManagedService> o) { +checkUnnamed1281(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1496,7 +1498,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed1255(); + o.services = buildUnnamed1281(); } buildCounterListServicesResponse--; return o; @@ -1506,7 +1508,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1255(o.services); + checkUnnamed1281(o.services); } buildCounterListServicesResponse--; } @@ -1534,14 +1536,14 @@ buildCounterLogConfig--; } -buildUnnamed1256() { +buildUnnamed1282() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1256(core.List<api.LabelDescriptor> o) { +checkUnnamed1282(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1554,7 +1556,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1256(); + o.labels = buildUnnamed1282(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1566,33 +1568,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1256(o.labels); + checkUnnamed1282(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed1257() { +buildUnnamed1283() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1257(core.List<api.LoggingDestination> o) { +checkUnnamed1283(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed1258() { +buildUnnamed1284() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed1258(core.List<api.LoggingDestination> o) { +checkUnnamed1284(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1603,8 +1605,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed1257(); - o.producerDestinations = buildUnnamed1258(); + o.consumerDestinations = buildUnnamed1283(); + o.producerDestinations = buildUnnamed1284(); } buildCounterLogging--; return o; @@ -1613,20 +1615,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed1257(o.consumerDestinations); - checkUnnamed1258(o.producerDestinations); + checkUnnamed1283(o.consumerDestinations); + checkUnnamed1284(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed1259() { +buildUnnamed1285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1259(core.List<core.String> o) { +checkUnnamed1285(core.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 +1639,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed1259(); + o.logs = buildUnnamed1285(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1647,7 +1649,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed1259(o.logs); + checkUnnamed1285(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1712,14 +1714,14 @@ buildCounterMediaUpload--; } -buildUnnamed1260() { +buildUnnamed1286() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1260(core.List<api.Option> o) { +checkUnnamed1286(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1731,7 +1733,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed1260(); + o.options = buildUnnamed1286(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1746,7 +1748,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1260(o.options); + checkUnnamed1286(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1756,14 +1758,14 @@ buildCounterMethod--; } -buildUnnamed1261() { +buildUnnamed1287() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1261(core.List<api.LabelDescriptor> o) { +checkUnnamed1287(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1776,7 +1778,7 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1261(); + o.labels = buildUnnamed1287(); o.metricKind = "foo"; o.name = "foo"; o.type = "foo"; @@ -1792,7 +1794,7 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1261(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')); @@ -1823,14 +1825,14 @@ buildCounterMixin--; } -buildUnnamed1262() { +buildUnnamed1288() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed1262(core.List<api.LabelDescriptor> o) { +checkUnnamed1288(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1843,7 +1845,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed1262(); + o.labels = buildUnnamed1288(); o.name = "foo"; o.type = "foo"; } @@ -1856,34 +1858,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1262(o.labels); + checkUnnamed1288(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed1263() { +buildUnnamed1289() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1263(core.List<api.MonitoringDestination> o) { +checkUnnamed1289(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed1264() { +buildUnnamed1290() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed1264(core.List<api.MonitoringDestination> o) { +checkUnnamed1290(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1894,8 +1896,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed1263(); - o.producerDestinations = buildUnnamed1264(); + o.consumerDestinations = buildUnnamed1289(); + o.producerDestinations = buildUnnamed1290(); } buildCounterMonitoring--; return o; @@ -1904,20 +1906,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed1263(o.consumerDestinations); - checkUnnamed1264(o.producerDestinations); + checkUnnamed1289(o.consumerDestinations); + checkUnnamed1290(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed1265() { +buildUnnamed1291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1265(core.List<core.String> o) { +checkUnnamed1291(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1928,7 +1930,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed1265(); + o.metrics = buildUnnamed1291(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1938,7 +1940,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed1265(o.metrics); + checkUnnamed1291(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1963,27 +1965,27 @@ buildCounterOAuthRequirements--; } -buildUnnamed1266() { +buildUnnamed1292() { 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; } -checkUnnamed1266(core.Map<core.String, core.Object> o) { +checkUnnamed1292(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')); } -buildUnnamed1267() { +buildUnnamed1293() { 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; } -checkUnnamed1267(core.Map<core.String, core.Object> o) { +checkUnnamed1293(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')); @@ -1996,9 +1998,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1266(); + o.metadata = buildUnnamed1292(); o.name = "foo"; - o.response = buildUnnamed1267(); + o.response = buildUnnamed1293(); } buildCounterOperation--; return o; @@ -2009,34 +2011,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1266(o.metadata); + checkUnnamed1292(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1267(o.response); + checkUnnamed1293(o.response); } buildCounterOperation--; } -buildUnnamed1268() { +buildUnnamed1294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1268(core.List<core.String> o) { +checkUnnamed1294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1269() { +buildUnnamed1295() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed1269(core.List<api.Step> o) { +checkUnnamed1295(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2048,9 +2050,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed1268(); + o.resourceNames = buildUnnamed1294(); o.startTime = "foo"; - o.steps = buildUnnamed1269(); + o.steps = buildUnnamed1295(); } buildCounterOperationMetadata--; return o; @@ -2060,21 +2062,21 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed1268(o.resourceNames); + checkUnnamed1294(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed1269(o.steps); + checkUnnamed1295(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed1270() { +buildUnnamed1296() { 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; } -checkUnnamed1270(core.Map<core.String, core.Object> o) { +checkUnnamed1296(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')); @@ -2086,7 +2088,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed1270(); + o.value = buildUnnamed1296(); } buildCounterOption--; return o; @@ -2096,19 +2098,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1270(o.value); + checkUnnamed1296(o.value); } buildCounterOption--; } -buildUnnamed1271() { +buildUnnamed1297() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed1271(core.List<api.Page> o) { +checkUnnamed1297(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2121,7 +2123,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed1271(); + o.subpages = buildUnnamed1297(); } buildCounterPage--; return o; @@ -2132,45 +2134,45 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1271(o.subpages); + checkUnnamed1297(o.subpages); } buildCounterPage--; } -buildUnnamed1272() { +buildUnnamed1298() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1272(core.List<api.AuditConfig> o) { +checkUnnamed1298(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1273() { +buildUnnamed1299() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1273(core.List<api.Binding> o) { +checkUnnamed1299(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1274() { +buildUnnamed1300() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1274(core.List<api.Rule> o) { +checkUnnamed1300(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2181,11 +2183,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1272(); - o.bindings = buildUnnamed1273(); + o.auditConfigs = buildUnnamed1298(); + o.bindings = buildUnnamed1299(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1274(); + o.rules = buildUnnamed1300(); o.version = 42; } buildCounterPolicy--; @@ -2195,11 +2197,11 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1272(o.auditConfigs); - checkUnnamed1273(o.bindings); + checkUnnamed1298(o.auditConfigs); + checkUnnamed1299(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1274(o.rules); + checkUnnamed1300(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; @@ -2236,66 +2238,66 @@ buildCounterRollout--; } -buildUnnamed1275() { +buildUnnamed1301() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1275(core.List<api.Condition> o) { +checkUnnamed1301(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1276() { +buildUnnamed1302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1276(core.List<core.String> o) { +checkUnnamed1302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1277() { +buildUnnamed1303() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed1277(core.List<api.LogConfig> o) { +checkUnnamed1303(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed1278() { +buildUnnamed1304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1278(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')); } -buildUnnamed1279() { +buildUnnamed1305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1279(core.List<core.String> o) { +checkUnnamed1305(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2307,12 +2309,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed1275(); + o.conditions = buildUnnamed1301(); o.description = "foo"; - o.in_ = buildUnnamed1276(); - o.logConfig = buildUnnamed1277(); - o.notIn = buildUnnamed1278(); - o.permissions = buildUnnamed1279(); + o.in_ = buildUnnamed1302(); + o.logConfig = buildUnnamed1303(); + o.notIn = buildUnnamed1304(); + o.permissions = buildUnnamed1305(); } buildCounterRule--; return o; @@ -2322,115 +2324,115 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1275(o.conditions); + checkUnnamed1301(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1276(o.in_); - checkUnnamed1277(o.logConfig); - checkUnnamed1278(o.notIn); - checkUnnamed1279(o.permissions); + checkUnnamed1302(o.in_); + checkUnnamed1303(o.logConfig); + checkUnnamed1304(o.notIn); + checkUnnamed1305(o.permissions); } buildCounterRule--; } -buildUnnamed1280() { +buildUnnamed1306() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed1280(core.List<api.Api> o) { +checkUnnamed1306(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed1281() { +buildUnnamed1307() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed1281(core.List<api.Endpoint> o) { +checkUnnamed1307(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed1282() { +buildUnnamed1308() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed1282(core.List<api.Enum> o) { +checkUnnamed1308(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed1283() { +buildUnnamed1309() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed1283(core.List<api.LogDescriptor> o) { +checkUnnamed1309(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed1284() { +buildUnnamed1310() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed1284(core.List<api.MetricDescriptor> o) { +checkUnnamed1310(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed1285() { +buildUnnamed1311() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed1285(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed1311(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed1286() { +buildUnnamed1312() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1286(core.List<api.Type> o) { +checkUnnamed1312(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed1287() { +buildUnnamed1313() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed1287(core.List<api.Type> o) { +checkUnnamed1313(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2441,7 +2443,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed1280(); + o.apis = buildUnnamed1306(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.configVersion = 42; @@ -2449,21 +2451,21 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed1281(); - o.enums = buildUnnamed1282(); + o.endpoints = buildUnnamed1307(); + o.enums = buildUnnamed1308(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed1283(); - o.metrics = buildUnnamed1284(); - o.monitoredResources = buildUnnamed1285(); + o.logs = buildUnnamed1309(); + o.metrics = buildUnnamed1310(); + o.monitoredResources = buildUnnamed1311(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed1286(); + o.systemTypes = buildUnnamed1312(); o.title = "foo"; - o.types = buildUnnamed1287(); + o.types = buildUnnamed1313(); o.usage = buildUsage(); o.visibility = buildVisibility(); } @@ -2474,7 +2476,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed1280(o.apis); + checkUnnamed1306(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); unittest.expect(o.configVersion, unittest.equals(42)); @@ -2482,21 +2484,21 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed1281(o.endpoints); - checkUnnamed1282(o.enums); + checkUnnamed1307(o.endpoints); + checkUnnamed1308(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed1283(o.logs); - checkUnnamed1284(o.metrics); - checkUnnamed1285(o.monitoredResources); + checkUnnamed1309(o.logs); + checkUnnamed1310(o.metrics); + checkUnnamed1311(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkSystemParameters(o.systemParameters); - checkUnnamed1286(o.systemTypes); + checkUnnamed1312(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1287(o.types); + checkUnnamed1313(o.types); checkUsage(o.usage); checkVisibility(o.visibility); } @@ -2541,30 +2543,30 @@ buildCounterSourceContext--; } -buildUnnamed1288() { +buildUnnamed1314() { 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; } -checkUnnamed1288(core.Map<core.String, core.Object> o) { +checkUnnamed1314(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')); } -buildUnnamed1289() { +buildUnnamed1315() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1288()); - o.add(buildUnnamed1288()); + o.add(buildUnnamed1314()); + o.add(buildUnnamed1314()); return o; } -checkUnnamed1289(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1315(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1288(o[0]); - checkUnnamed1288(o[1]); + checkUnnamed1314(o[0]); + checkUnnamed1314(o[1]); } core.int buildCounterStatus = 0; @@ -2573,7 +2575,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1289(); + o.details = buildUnnamed1315(); o.message = "foo"; } buildCounterStatus--; @@ -2584,7 +2586,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1289(o.details); + checkUnnamed1315(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2674,14 +2676,14 @@ buildCounterSystemParameter--; } -buildUnnamed1290() { +buildUnnamed1316() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed1290(core.List<api.SystemParameter> o) { +checkUnnamed1316(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2692,7 +2694,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed1290(); + o.parameters = buildUnnamed1316(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2702,20 +2704,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed1290(o.parameters); + checkUnnamed1316(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed1291() { +buildUnnamed1317() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed1291(core.List<api.SystemParameterRule> o) { +checkUnnamed1317(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2726,7 +2728,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed1291(); + o.rules = buildUnnamed1317(); } buildCounterSystemParameters--; return o; @@ -2735,19 +2737,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed1291(o.rules); + checkUnnamed1317(o.rules); } buildCounterSystemParameters--; } -buildUnnamed1292() { +buildUnnamed1318() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1292(core.List<core.String> o) { +checkUnnamed1318(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2758,7 +2760,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1292(); + o.permissions = buildUnnamed1318(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2767,19 +2769,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1292(o.permissions); + checkUnnamed1318(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1293() { +buildUnnamed1319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1293(core.List<core.String> o) { +checkUnnamed1319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2790,7 +2792,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1293(); + o.permissions = buildUnnamed1319(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2799,19 +2801,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1293(o.permissions); + checkUnnamed1319(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1294() { +buildUnnamed1320() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed1294(core.Map<core.String, core.double> o) { +checkUnnamed1320(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)); @@ -2822,7 +2824,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed1294(); + o.percentages = buildUnnamed1320(); } buildCounterTrafficPercentStrategy--; return o; @@ -2831,45 +2833,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed1294(o.percentages); + checkUnnamed1320(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed1295() { +buildUnnamed1321() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed1295(core.List<api.Field> o) { +checkUnnamed1321(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed1296() { +buildUnnamed1322() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1296(core.List<core.String> o) { +checkUnnamed1322(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1297() { +buildUnnamed1323() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed1297(core.List<api.Option> o) { +checkUnnamed1323(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2880,10 +2882,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed1295(); + o.fields = buildUnnamed1321(); o.name = "foo"; - o.oneofs = buildUnnamed1296(); - o.options = buildUnnamed1297(); + o.oneofs = buildUnnamed1322(); + o.options = buildUnnamed1323(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2894,10 +2896,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed1295(o.fields); + checkUnnamed1321(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1296(o.oneofs); - checkUnnamed1297(o.options); + checkUnnamed1322(o.oneofs); + checkUnnamed1323(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -2923,27 +2925,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed1298() { +buildUnnamed1324() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1298(core.List<core.String> o) { +checkUnnamed1324(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1299() { +buildUnnamed1325() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed1299(core.List<api.UsageRule> o) { +checkUnnamed1325(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2954,8 +2956,8 @@ var o = new api.Usage(); buildCounterUsage++; if (buildCounterUsage < 3) { - o.requirements = buildUnnamed1298(); - o.rules = buildUnnamed1299(); + o.requirements = buildUnnamed1324(); + o.rules = buildUnnamed1325(); } buildCounterUsage--; return o; @@ -2964,8 +2966,8 @@ checkUsage(api.Usage o) { buildCounterUsage++; if (buildCounterUsage < 3) { - checkUnnamed1298(o.requirements); - checkUnnamed1299(o.rules); + checkUnnamed1324(o.requirements); + checkUnnamed1325(o.rules); } buildCounterUsage--; } @@ -2991,14 +2993,14 @@ buildCounterUsageRule--; } -buildUnnamed1300() { +buildUnnamed1326() { var o = new core.List<api.VisibilityRule>(); o.add(buildVisibilityRule()); o.add(buildVisibilityRule()); return o; } -checkUnnamed1300(core.List<api.VisibilityRule> o) { +checkUnnamed1326(core.List<api.VisibilityRule> o) { unittest.expect(o, unittest.hasLength(2)); checkVisibilityRule(o[0]); checkVisibilityRule(o[1]); @@ -3009,7 +3011,7 @@ var o = new api.Visibility(); buildCounterVisibility++; if (buildCounterVisibility < 3) { - o.rules = buildUnnamed1300(); + o.rules = buildUnnamed1326(); } buildCounterVisibility--; return o; @@ -3018,7 +3020,7 @@ checkVisibility(api.Visibility o) { buildCounterVisibility++; if (buildCounterVisibility < 3) { - checkUnnamed1300(o.rules); + checkUnnamed1326(o.rules); } buildCounterVisibility--; }
diff --git a/generated/googleapis/test/sheets/v4_test.dart b/generated/googleapis/test/sheets/v4_test.dart index a0239d6..bf95f22 100644 --- a/generated/googleapis/test/sheets/v4_test.dart +++ b/generated/googleapis/test/sheets/v4_test.dart
@@ -51,6 +51,44 @@ return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAddBandingRequest = 0; +buildAddBandingRequest() { + var o = new api.AddBandingRequest(); + buildCounterAddBandingRequest++; + if (buildCounterAddBandingRequest < 3) { + o.bandedRange = buildBandedRange(); + } + buildCounterAddBandingRequest--; + return o; +} + +checkAddBandingRequest(api.AddBandingRequest o) { + buildCounterAddBandingRequest++; + if (buildCounterAddBandingRequest < 3) { + checkBandedRange(o.bandedRange); + } + buildCounterAddBandingRequest--; +} + +core.int buildCounterAddBandingResponse = 0; +buildAddBandingResponse() { + var o = new api.AddBandingResponse(); + buildCounterAddBandingResponse++; + if (buildCounterAddBandingResponse < 3) { + o.bandedRange = buildBandedRange(); + } + buildCounterAddBandingResponse--; + return o; +} + +checkAddBandingResponse(api.AddBandingResponse o) { + buildCounterAddBandingResponse++; + if (buildCounterAddBandingResponse < 3) { + checkBandedRange(o.bandedRange); + } + buildCounterAddBandingResponse--; +} + core.int buildCounterAddChartRequest = 0; buildAddChartRequest() { var o = new api.AddChartRequest(); @@ -262,14 +300,14 @@ buildCounterAddSheetResponse--; } -buildUnnamed602() { +buildUnnamed617() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed602(core.List<api.RowData> o) { +checkUnnamed617(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -281,7 +319,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { o.fields = "foo"; - o.rows = buildUnnamed602(); + o.rows = buildUnnamed617(); o.sheetId = 42; } buildCounterAppendCellsRequest--; @@ -292,7 +330,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); - checkUnnamed602(o.rows); + checkUnnamed617(o.rows); unittest.expect(o.sheetId, unittest.equals(42)); } buildCounterAppendCellsRequest--; @@ -386,6 +424,56 @@ buildCounterAutoResizeDimensionsRequest--; } +core.int buildCounterBandedRange = 0; +buildBandedRange() { + var o = new api.BandedRange(); + buildCounterBandedRange++; + if (buildCounterBandedRange < 3) { + o.bandedRangeId = 42; + o.columnProperties = buildBandingProperties(); + o.range = buildGridRange(); + o.rowProperties = buildBandingProperties(); + } + buildCounterBandedRange--; + return o; +} + +checkBandedRange(api.BandedRange o) { + buildCounterBandedRange++; + if (buildCounterBandedRange < 3) { + unittest.expect(o.bandedRangeId, unittest.equals(42)); + checkBandingProperties(o.columnProperties); + checkGridRange(o.range); + checkBandingProperties(o.rowProperties); + } + buildCounterBandedRange--; +} + +core.int buildCounterBandingProperties = 0; +buildBandingProperties() { + var o = new api.BandingProperties(); + buildCounterBandingProperties++; + if (buildCounterBandingProperties < 3) { + o.firstBandColor = buildColor(); + o.footerColor = buildColor(); + o.headerColor = buildColor(); + o.secondBandColor = buildColor(); + } + buildCounterBandingProperties--; + return o; +} + +checkBandingProperties(api.BandingProperties o) { + buildCounterBandingProperties++; + if (buildCounterBandingProperties < 3) { + checkColor(o.firstBandColor); + checkColor(o.footerColor); + checkColor(o.headerColor); + checkColor(o.secondBandColor); + } + buildCounterBandingProperties--; +} + core.int buildCounterBasicChartAxis = 0; buildBasicChartAxis() { var o = new api.BasicChartAxis(); @@ -451,40 +539,40 @@ buildCounterBasicChartSeries--; } -buildUnnamed603() { +buildUnnamed618() { var o = new core.List<api.BasicChartAxis>(); o.add(buildBasicChartAxis()); o.add(buildBasicChartAxis()); return o; } -checkUnnamed603(core.List<api.BasicChartAxis> o) { +checkUnnamed618(core.List<api.BasicChartAxis> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartAxis(o[0]); checkBasicChartAxis(o[1]); } -buildUnnamed604() { +buildUnnamed619() { var o = new core.List<api.BasicChartDomain>(); o.add(buildBasicChartDomain()); o.add(buildBasicChartDomain()); return o; } -checkUnnamed604(core.List<api.BasicChartDomain> o) { +checkUnnamed619(core.List<api.BasicChartDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartDomain(o[0]); checkBasicChartDomain(o[1]); } -buildUnnamed605() { +buildUnnamed620() { var o = new core.List<api.BasicChartSeries>(); o.add(buildBasicChartSeries()); o.add(buildBasicChartSeries()); return o; } -checkUnnamed605(core.List<api.BasicChartSeries> o) { +checkUnnamed620(core.List<api.BasicChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartSeries(o[0]); checkBasicChartSeries(o[1]); @@ -495,12 +583,12 @@ var o = new api.BasicChartSpec(); buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - o.axis = buildUnnamed603(); + o.axis = buildUnnamed618(); o.chartType = "foo"; - o.domains = buildUnnamed604(); + o.domains = buildUnnamed619(); o.headerCount = 42; o.legendPosition = "foo"; - o.series = buildUnnamed605(); + o.series = buildUnnamed620(); } buildCounterBasicChartSpec--; return o; @@ -509,37 +597,37 @@ checkBasicChartSpec(api.BasicChartSpec o) { buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - checkUnnamed603(o.axis); + checkUnnamed618(o.axis); unittest.expect(o.chartType, unittest.equals('foo')); - checkUnnamed604(o.domains); + checkUnnamed619(o.domains); unittest.expect(o.headerCount, unittest.equals(42)); unittest.expect(o.legendPosition, unittest.equals('foo')); - checkUnnamed605(o.series); + checkUnnamed620(o.series); } buildCounterBasicChartSpec--; } -buildUnnamed606() { +buildUnnamed621() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed606(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed621(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed607() { +buildUnnamed622() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed607(core.List<api.SortSpec> o) { +checkUnnamed622(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -550,9 +638,9 @@ var o = new api.BasicFilter(); buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - o.criteria = buildUnnamed606(); + o.criteria = buildUnnamed621(); o.range = buildGridRange(); - o.sortSpecs = buildUnnamed607(); + o.sortSpecs = buildUnnamed622(); } buildCounterBasicFilter--; return o; @@ -561,21 +649,87 @@ checkBasicFilter(api.BasicFilter o) { buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - checkUnnamed606(o.criteria); + checkUnnamed621(o.criteria); checkGridRange(o.range); - checkUnnamed607(o.sortSpecs); + checkUnnamed622(o.sortSpecs); } buildCounterBasicFilter--; } -buildUnnamed608() { +buildUnnamed623() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed623(core.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 buildCounterBatchClearValuesRequest = 0; +buildBatchClearValuesRequest() { + var o = new api.BatchClearValuesRequest(); + buildCounterBatchClearValuesRequest++; + if (buildCounterBatchClearValuesRequest < 3) { + o.ranges = buildUnnamed623(); + } + buildCounterBatchClearValuesRequest--; + return o; +} + +checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { + buildCounterBatchClearValuesRequest++; + if (buildCounterBatchClearValuesRequest < 3) { + checkUnnamed623(o.ranges); + } + buildCounterBatchClearValuesRequest--; +} + +buildUnnamed624() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed624(core.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 buildCounterBatchClearValuesResponse = 0; +buildBatchClearValuesResponse() { + var o = new api.BatchClearValuesResponse(); + buildCounterBatchClearValuesResponse++; + if (buildCounterBatchClearValuesResponse < 3) { + o.clearedRanges = buildUnnamed624(); + o.spreadsheetId = "foo"; + } + buildCounterBatchClearValuesResponse--; + return o; +} + +checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { + buildCounterBatchClearValuesResponse++; + if (buildCounterBatchClearValuesResponse < 3) { + checkUnnamed624(o.clearedRanges); + unittest.expect(o.spreadsheetId, unittest.equals('foo')); + } + buildCounterBatchClearValuesResponse--; +} + +buildUnnamed625() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed608(core.List<api.ValueRange> o) { +checkUnnamed625(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -587,7 +741,7 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed608(); + o.valueRanges = buildUnnamed625(); } buildCounterBatchGetValuesResponse--; return o; @@ -597,19 +751,19 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed608(o.valueRanges); + checkUnnamed625(o.valueRanges); } buildCounterBatchGetValuesResponse--; } -buildUnnamed609() { +buildUnnamed626() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed609(core.List<api.Request> o) { +checkUnnamed626(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -620,7 +774,7 @@ var o = new api.BatchUpdateSpreadsheetRequest(); buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { - o.requests = buildUnnamed609(); + o.requests = buildUnnamed626(); } buildCounterBatchUpdateSpreadsheetRequest--; return o; @@ -629,19 +783,19 @@ checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) { buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { - checkUnnamed609(o.requests); + checkUnnamed626(o.requests); } buildCounterBatchUpdateSpreadsheetRequest--; } -buildUnnamed610() { +buildUnnamed627() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed610(core.List<api.Response> o) { +checkUnnamed627(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -652,7 +806,7 @@ var o = new api.BatchUpdateSpreadsheetResponse(); buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - o.replies = buildUnnamed610(); + o.replies = buildUnnamed627(); o.spreadsheetId = "foo"; } buildCounterBatchUpdateSpreadsheetResponse--; @@ -662,20 +816,20 @@ checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - checkUnnamed610(o.replies); + checkUnnamed627(o.replies); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchUpdateSpreadsheetResponse--; } -buildUnnamed611() { +buildUnnamed628() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed611(core.List<api.ValueRange> o) { +checkUnnamed628(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -686,7 +840,7 @@ var o = new api.BatchUpdateValuesRequest(); buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - o.data = buildUnnamed611(); + o.data = buildUnnamed628(); o.valueInputOption = "foo"; } buildCounterBatchUpdateValuesRequest--; @@ -696,20 +850,20 @@ checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - checkUnnamed611(o.data); + checkUnnamed628(o.data); unittest.expect(o.valueInputOption, unittest.equals('foo')); } buildCounterBatchUpdateValuesRequest--; } -buildUnnamed612() { +buildUnnamed629() { var o = new core.List<api.UpdateValuesResponse>(); o.add(buildUpdateValuesResponse()); o.add(buildUpdateValuesResponse()); return o; } -checkUnnamed612(core.List<api.UpdateValuesResponse> o) { +checkUnnamed629(core.List<api.UpdateValuesResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesResponse(o[0]); checkUpdateValuesResponse(o[1]); @@ -720,7 +874,7 @@ var o = new api.BatchUpdateValuesResponse(); buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - o.responses = buildUnnamed612(); + o.responses = buildUnnamed629(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -734,7 +888,7 @@ checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - checkUnnamed612(o.responses); + checkUnnamed629(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -744,14 +898,14 @@ buildCounterBatchUpdateValuesResponse--; } -buildUnnamed613() { +buildUnnamed630() { var o = new core.List<api.ConditionValue>(); o.add(buildConditionValue()); o.add(buildConditionValue()); return o; } -checkUnnamed613(core.List<api.ConditionValue> o) { +checkUnnamed630(core.List<api.ConditionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionValue(o[0]); checkConditionValue(o[1]); @@ -763,7 +917,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { o.type = "foo"; - o.values = buildUnnamed613(); + o.values = buildUnnamed630(); } buildCounterBooleanCondition--; return o; @@ -773,7 +927,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed613(o.values); + checkUnnamed630(o.values); } buildCounterBooleanCondition--; } @@ -847,14 +1001,14 @@ buildCounterBorders--; } -buildUnnamed614() { +buildUnnamed631() { var o = new core.List<api.TextFormatRun>(); o.add(buildTextFormatRun()); o.add(buildTextFormatRun()); return o; } -checkUnnamed614(core.List<api.TextFormatRun> o) { +checkUnnamed631(core.List<api.TextFormatRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTextFormatRun(o[0]); checkTextFormatRun(o[1]); @@ -872,7 +1026,7 @@ o.hyperlink = "foo"; o.note = "foo"; o.pivotTable = buildPivotTable(); - o.textFormatRuns = buildUnnamed614(); + o.textFormatRuns = buildUnnamed631(); o.userEnteredFormat = buildCellFormat(); o.userEnteredValue = buildExtendedValue(); } @@ -890,7 +1044,7 @@ unittest.expect(o.hyperlink, unittest.equals('foo')); unittest.expect(o.note, unittest.equals('foo')); checkPivotTable(o.pivotTable); - checkUnnamed614(o.textFormatRuns); + checkUnnamed631(o.textFormatRuns); checkCellFormat(o.userEnteredFormat); checkExtendedValue(o.userEnteredValue); } @@ -953,14 +1107,14 @@ buildCounterChartData--; } -buildUnnamed615() { +buildUnnamed632() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed615(core.List<api.GridRange> o) { +checkUnnamed632(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -971,7 +1125,7 @@ var o = new api.ChartSourceRange(); buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - o.sources = buildUnnamed615(); + o.sources = buildUnnamed632(); } buildCounterChartSourceRange--; return o; @@ -980,7 +1134,7 @@ checkChartSourceRange(api.ChartSourceRange o) { buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - checkUnnamed615(o.sources); + checkUnnamed632(o.sources); } buildCounterChartSourceRange--; } @@ -1029,6 +1183,44 @@ buildCounterClearBasicFilterRequest--; } +core.int buildCounterClearValuesRequest = 0; +buildClearValuesRequest() { + var o = new api.ClearValuesRequest(); + buildCounterClearValuesRequest++; + if (buildCounterClearValuesRequest < 3) { + } + buildCounterClearValuesRequest--; + return o; +} + +checkClearValuesRequest(api.ClearValuesRequest o) { + buildCounterClearValuesRequest++; + if (buildCounterClearValuesRequest < 3) { + } + buildCounterClearValuesRequest--; +} + +core.int buildCounterClearValuesResponse = 0; +buildClearValuesResponse() { + var o = new api.ClearValuesResponse(); + buildCounterClearValuesResponse++; + if (buildCounterClearValuesResponse < 3) { + o.clearedRange = "foo"; + o.spreadsheetId = "foo"; + } + buildCounterClearValuesResponse--; + return o; +} + +checkClearValuesResponse(api.ClearValuesResponse o) { + buildCounterClearValuesResponse++; + if (buildCounterClearValuesResponse < 3) { + unittest.expect(o.clearedRange, unittest.equals('foo')); + unittest.expect(o.spreadsheetId, unittest.equals('foo')); + } + buildCounterClearValuesResponse--; +} + core.int buildCounterColor = 0; buildColor() { var o = new api.Color(); @@ -1075,14 +1267,14 @@ buildCounterConditionValue--; } -buildUnnamed616() { +buildUnnamed633() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed616(core.List<api.GridRange> o) { +checkUnnamed633(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1095,7 +1287,7 @@ if (buildCounterConditionalFormatRule < 3) { o.booleanRule = buildBooleanRule(); o.gradientRule = buildGradientRule(); - o.ranges = buildUnnamed616(); + o.ranges = buildUnnamed633(); } buildCounterConditionalFormatRule--; return o; @@ -1106,7 +1298,7 @@ if (buildCounterConditionalFormatRule < 3) { checkBooleanRule(o.booleanRule); checkGradientRule(o.gradientRule); - checkUnnamed616(o.ranges); + checkUnnamed633(o.ranges); } buildCounterConditionalFormatRule--; } @@ -1203,6 +1395,25 @@ buildCounterDataValidationRule--; } +core.int buildCounterDeleteBandingRequest = 0; +buildDeleteBandingRequest() { + var o = new api.DeleteBandingRequest(); + buildCounterDeleteBandingRequest++; + if (buildCounterDeleteBandingRequest < 3) { + o.bandedRangeId = 42; + } + buildCounterDeleteBandingRequest--; + return o; +} + +checkDeleteBandingRequest(api.DeleteBandingRequest o) { + buildCounterDeleteBandingRequest++; + if (buildCounterDeleteBandingRequest < 3) { + unittest.expect(o.bandedRangeId, unittest.equals(42)); + } + buildCounterDeleteBandingRequest--; +} + core.int buildCounterDeleteConditionalFormatRuleRequest = 0; buildDeleteConditionalFormatRuleRequest() { var o = new api.DeleteConditionalFormatRuleRequest(); @@ -1487,27 +1698,27 @@ buildCounterDuplicateSheetResponse--; } -buildUnnamed617() { +buildUnnamed634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed617(core.List<core.String> o) { +checkUnnamed634(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed618() { +buildUnnamed635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed618(core.List<core.String> o) { +checkUnnamed635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1519,8 +1730,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { o.domainUsersCanEdit = true; - o.groups = buildUnnamed617(); - o.users = buildUnnamed618(); + o.groups = buildUnnamed634(); + o.users = buildUnnamed635(); } buildCounterEditors--; return o; @@ -1530,8 +1741,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { unittest.expect(o.domainUsersCanEdit, unittest.isTrue); - checkUnnamed617(o.groups); - checkUnnamed618(o.users); + checkUnnamed634(o.groups); + checkUnnamed635(o.users); } buildCounterEditors--; } @@ -1630,14 +1841,14 @@ buildCounterExtendedValue--; } -buildUnnamed619() { +buildUnnamed636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed619(core.List<core.String> o) { +checkUnnamed636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1649,7 +1860,7 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { o.condition = buildBooleanCondition(); - o.hiddenValues = buildUnnamed619(); + o.hiddenValues = buildUnnamed636(); } buildCounterFilterCriteria--; return o; @@ -1659,32 +1870,32 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { checkBooleanCondition(o.condition); - checkUnnamed619(o.hiddenValues); + checkUnnamed636(o.hiddenValues); } buildCounterFilterCriteria--; } -buildUnnamed620() { +buildUnnamed637() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed620(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed637(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed621() { +buildUnnamed638() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed621(core.List<api.SortSpec> o) { +checkUnnamed638(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -1695,11 +1906,11 @@ var o = new api.FilterView(); buildCounterFilterView++; if (buildCounterFilterView < 3) { - o.criteria = buildUnnamed620(); + o.criteria = buildUnnamed637(); o.filterViewId = 42; o.namedRangeId = "foo"; o.range = buildGridRange(); - o.sortSpecs = buildUnnamed621(); + o.sortSpecs = buildUnnamed638(); o.title = "foo"; } buildCounterFilterView--; @@ -1709,11 +1920,11 @@ checkFilterView(api.FilterView o) { buildCounterFilterView++; if (buildCounterFilterView < 3) { - checkUnnamed620(o.criteria); + checkUnnamed637(o.criteria); unittest.expect(o.filterViewId, unittest.equals(42)); unittest.expect(o.namedRangeId, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed621(o.sortSpecs); + checkUnnamed638(o.sortSpecs); unittest.expect(o.title, unittest.equals('foo')); } buildCounterFilterView--; @@ -1827,40 +2038,40 @@ buildCounterGridCoordinate--; } -buildUnnamed622() { +buildUnnamed639() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed622(core.List<api.DimensionProperties> o) { +checkUnnamed639(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); } -buildUnnamed623() { +buildUnnamed640() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed623(core.List<api.RowData> o) { +checkUnnamed640(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); } -buildUnnamed624() { +buildUnnamed641() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed624(core.List<api.DimensionProperties> o) { +checkUnnamed641(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); @@ -1871,9 +2082,9 @@ var o = new api.GridData(); buildCounterGridData++; if (buildCounterGridData < 3) { - o.columnMetadata = buildUnnamed622(); - o.rowData = buildUnnamed623(); - o.rowMetadata = buildUnnamed624(); + o.columnMetadata = buildUnnamed639(); + o.rowData = buildUnnamed640(); + o.rowMetadata = buildUnnamed641(); o.startColumn = 42; o.startRow = 42; } @@ -1884,9 +2095,9 @@ checkGridData(api.GridData o) { buildCounterGridData++; if (buildCounterGridData < 3) { - checkUnnamed622(o.columnMetadata); - checkUnnamed623(o.rowData); - checkUnnamed624(o.rowMetadata); + checkUnnamed639(o.columnMetadata); + checkUnnamed640(o.rowData); + checkUnnamed641(o.rowMetadata); unittest.expect(o.startColumn, unittest.equals(42)); unittest.expect(o.startRow, unittest.equals(42)); } @@ -2183,14 +2394,14 @@ buildCounterPieChartSpec--; } -buildUnnamed625() { +buildUnnamed642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed625(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')); @@ -2201,7 +2412,7 @@ var o = new api.PivotFilterCriteria(); buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - o.visibleValues = buildUnnamed625(); + o.visibleValues = buildUnnamed642(); } buildCounterPivotFilterCriteria--; return o; @@ -2210,19 +2421,19 @@ checkPivotFilterCriteria(api.PivotFilterCriteria o) { buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - checkUnnamed625(o.visibleValues); + checkUnnamed642(o.visibleValues); } buildCounterPivotFilterCriteria--; } -buildUnnamed626() { +buildUnnamed643() { var o = new core.List<api.PivotGroupValueMetadata>(); o.add(buildPivotGroupValueMetadata()); o.add(buildPivotGroupValueMetadata()); return o; } -checkUnnamed626(core.List<api.PivotGroupValueMetadata> o) { +checkUnnamed643(core.List<api.PivotGroupValueMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroupValueMetadata(o[0]); checkPivotGroupValueMetadata(o[1]); @@ -2237,7 +2448,7 @@ o.sortOrder = "foo"; o.sourceColumnOffset = 42; o.valueBucket = buildPivotGroupSortValueBucket(); - o.valueMetadata = buildUnnamed626(); + o.valueMetadata = buildUnnamed643(); } buildCounterPivotGroup--; return o; @@ -2250,19 +2461,19 @@ unittest.expect(o.sortOrder, unittest.equals('foo')); unittest.expect(o.sourceColumnOffset, unittest.equals(42)); checkPivotGroupSortValueBucket(o.valueBucket); - checkUnnamed626(o.valueMetadata); + checkUnnamed643(o.valueMetadata); } buildCounterPivotGroup--; } -buildUnnamed627() { +buildUnnamed644() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed627(core.List<api.ExtendedValue> o) { +checkUnnamed644(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -2273,7 +2484,7 @@ var o = new api.PivotGroupSortValueBucket(); buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - o.buckets = buildUnnamed627(); + o.buckets = buildUnnamed644(); o.valuesIndex = 42; } buildCounterPivotGroupSortValueBucket--; @@ -2283,7 +2494,7 @@ checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - checkUnnamed627(o.buckets); + checkUnnamed644(o.buckets); unittest.expect(o.valuesIndex, unittest.equals(42)); } buildCounterPivotGroupSortValueBucket--; @@ -2310,53 +2521,53 @@ buildCounterPivotGroupValueMetadata--; } -buildUnnamed628() { +buildUnnamed645() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed628(core.List<api.PivotGroup> o) { +checkUnnamed645(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed629() { +buildUnnamed646() { var o = new core.Map<core.String, api.PivotFilterCriteria>(); o["x"] = buildPivotFilterCriteria(); o["y"] = buildPivotFilterCriteria(); return o; } -checkUnnamed629(core.Map<core.String, api.PivotFilterCriteria> o) { +checkUnnamed646(core.Map<core.String, api.PivotFilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotFilterCriteria(o["x"]); checkPivotFilterCriteria(o["y"]); } -buildUnnamed630() { +buildUnnamed647() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed630(core.List<api.PivotGroup> o) { +checkUnnamed647(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed631() { +buildUnnamed648() { var o = new core.List<api.PivotValue>(); o.add(buildPivotValue()); o.add(buildPivotValue()); return o; } -checkUnnamed631(core.List<api.PivotValue> o) { +checkUnnamed648(core.List<api.PivotValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValue(o[0]); checkPivotValue(o[1]); @@ -2367,12 +2578,12 @@ var o = new api.PivotTable(); buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - o.columns = buildUnnamed628(); - o.criteria = buildUnnamed629(); - o.rows = buildUnnamed630(); + o.columns = buildUnnamed645(); + o.criteria = buildUnnamed646(); + o.rows = buildUnnamed647(); o.source = buildGridRange(); o.valueLayout = "foo"; - o.values = buildUnnamed631(); + o.values = buildUnnamed648(); } buildCounterPivotTable--; return o; @@ -2381,12 +2592,12 @@ checkPivotTable(api.PivotTable o) { buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - checkUnnamed628(o.columns); - checkUnnamed629(o.criteria); - checkUnnamed630(o.rows); + checkUnnamed645(o.columns); + checkUnnamed646(o.criteria); + checkUnnamed647(o.rows); checkGridRange(o.source); unittest.expect(o.valueLayout, unittest.equals('foo')); - checkUnnamed631(o.values); + checkUnnamed648(o.values); } buildCounterPivotTable--; } @@ -2416,14 +2627,14 @@ buildCounterPivotValue--; } -buildUnnamed632() { +buildUnnamed649() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed632(core.List<api.GridRange> o) { +checkUnnamed649(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -2440,7 +2651,7 @@ o.protectedRangeId = 42; o.range = buildGridRange(); o.requestingUserCanEdit = true; - o.unprotectedRanges = buildUnnamed632(); + o.unprotectedRanges = buildUnnamed649(); o.warningOnly = true; } buildCounterProtectedRange--; @@ -2456,7 +2667,7 @@ unittest.expect(o.protectedRangeId, unittest.equals(42)); checkGridRange(o.range); unittest.expect(o.requestingUserCanEdit, unittest.isTrue); - checkUnnamed632(o.unprotectedRanges); + checkUnnamed649(o.unprotectedRanges); unittest.expect(o.warningOnly, unittest.isTrue); } buildCounterProtectedRange--; @@ -2490,6 +2701,7 @@ var o = new api.Request(); buildCounterRequest++; if (buildCounterRequest < 3) { + o.addBanding = buildAddBandingRequest(); o.addChart = buildAddChartRequest(); o.addConditionalFormatRule = buildAddConditionalFormatRuleRequest(); o.addFilterView = buildAddFilterViewRequest(); @@ -2503,6 +2715,7 @@ o.clearBasicFilter = buildClearBasicFilterRequest(); o.copyPaste = buildCopyPasteRequest(); o.cutPaste = buildCutPasteRequest(); + o.deleteBanding = buildDeleteBandingRequest(); o.deleteConditionalFormatRule = buildDeleteConditionalFormatRuleRequest(); o.deleteDimension = buildDeleteDimensionRequest(); o.deleteEmbeddedObject = buildDeleteEmbeddedObjectRequest(); @@ -2523,6 +2736,7 @@ o.sortRange = buildSortRangeRequest(); o.textToColumns = buildTextToColumnsRequest(); o.unmergeCells = buildUnmergeCellsRequest(); + o.updateBanding = buildUpdateBandingRequest(); o.updateBorders = buildUpdateBordersRequest(); o.updateCells = buildUpdateCellsRequest(); o.updateChartSpec = buildUpdateChartSpecRequest(); @@ -2542,6 +2756,7 @@ checkRequest(api.Request o) { buildCounterRequest++; if (buildCounterRequest < 3) { + checkAddBandingRequest(o.addBanding); checkAddChartRequest(o.addChart); checkAddConditionalFormatRuleRequest(o.addConditionalFormatRule); checkAddFilterViewRequest(o.addFilterView); @@ -2555,6 +2770,7 @@ checkClearBasicFilterRequest(o.clearBasicFilter); checkCopyPasteRequest(o.copyPaste); checkCutPasteRequest(o.cutPaste); + checkDeleteBandingRequest(o.deleteBanding); checkDeleteConditionalFormatRuleRequest(o.deleteConditionalFormatRule); checkDeleteDimensionRequest(o.deleteDimension); checkDeleteEmbeddedObjectRequest(o.deleteEmbeddedObject); @@ -2575,6 +2791,7 @@ checkSortRangeRequest(o.sortRange); checkTextToColumnsRequest(o.textToColumns); checkUnmergeCellsRequest(o.unmergeCells); + checkUpdateBandingRequest(o.updateBanding); checkUpdateBordersRequest(o.updateBorders); checkUpdateCellsRequest(o.updateCells); checkUpdateChartSpecRequest(o.updateChartSpec); @@ -2595,6 +2812,7 @@ var o = new api.Response(); buildCounterResponse++; if (buildCounterResponse < 3) { + o.addBanding = buildAddBandingResponse(); o.addChart = buildAddChartResponse(); o.addFilterView = buildAddFilterViewResponse(); o.addNamedRange = buildAddNamedRangeResponse(); @@ -2614,6 +2832,7 @@ checkResponse(api.Response o) { buildCounterResponse++; if (buildCounterResponse < 3) { + checkAddBandingResponse(o.addBanding); checkAddChartResponse(o.addChart); checkAddFilterViewResponse(o.addFilterView); checkAddNamedRangeResponse(o.addNamedRange); @@ -2629,14 +2848,14 @@ buildCounterResponse--; } -buildUnnamed633() { +buildUnnamed650() { var o = new core.List<api.CellData>(); o.add(buildCellData()); o.add(buildCellData()); return o; } -checkUnnamed633(core.List<api.CellData> o) { +checkUnnamed650(core.List<api.CellData> o) { unittest.expect(o, unittest.hasLength(2)); checkCellData(o[0]); checkCellData(o[1]); @@ -2647,7 +2866,7 @@ var o = new api.RowData(); buildCounterRowData++; if (buildCounterRowData < 3) { - o.values = buildUnnamed633(); + o.values = buildUnnamed650(); } buildCounterRowData--; return o; @@ -2656,7 +2875,7 @@ checkRowData(api.RowData o) { buildCounterRowData++; if (buildCounterRowData < 3) { - checkUnnamed633(o.values); + checkUnnamed650(o.values); } buildCounterRowData--; } @@ -2701,79 +2920,92 @@ buildCounterSetDataValidationRequest--; } -buildUnnamed634() { +buildUnnamed651() { + var o = new core.List<api.BandedRange>(); + o.add(buildBandedRange()); + o.add(buildBandedRange()); + return o; +} + +checkUnnamed651(core.List<api.BandedRange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBandedRange(o[0]); + checkBandedRange(o[1]); +} + +buildUnnamed652() { var o = new core.List<api.EmbeddedChart>(); o.add(buildEmbeddedChart()); o.add(buildEmbeddedChart()); return o; } -checkUnnamed634(core.List<api.EmbeddedChart> o) { +checkUnnamed652(core.List<api.EmbeddedChart> o) { unittest.expect(o, unittest.hasLength(2)); checkEmbeddedChart(o[0]); checkEmbeddedChart(o[1]); } -buildUnnamed635() { +buildUnnamed653() { var o = new core.List<api.ConditionalFormatRule>(); o.add(buildConditionalFormatRule()); o.add(buildConditionalFormatRule()); return o; } -checkUnnamed635(core.List<api.ConditionalFormatRule> o) { +checkUnnamed653(core.List<api.ConditionalFormatRule> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionalFormatRule(o[0]); checkConditionalFormatRule(o[1]); } -buildUnnamed636() { +buildUnnamed654() { var o = new core.List<api.GridData>(); o.add(buildGridData()); o.add(buildGridData()); return o; } -checkUnnamed636(core.List<api.GridData> o) { +checkUnnamed654(core.List<api.GridData> o) { unittest.expect(o, unittest.hasLength(2)); checkGridData(o[0]); checkGridData(o[1]); } -buildUnnamed637() { +buildUnnamed655() { var o = new core.List<api.FilterView>(); o.add(buildFilterView()); o.add(buildFilterView()); return o; } -checkUnnamed637(core.List<api.FilterView> o) { +checkUnnamed655(core.List<api.FilterView> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterView(o[0]); checkFilterView(o[1]); } -buildUnnamed638() { +buildUnnamed656() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed638(core.List<api.GridRange> o) { +checkUnnamed656(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); } -buildUnnamed639() { +buildUnnamed657() { var o = new core.List<api.ProtectedRange>(); o.add(buildProtectedRange()); o.add(buildProtectedRange()); return o; } -checkUnnamed639(core.List<api.ProtectedRange> o) { +checkUnnamed657(core.List<api.ProtectedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkProtectedRange(o[0]); checkProtectedRange(o[1]); @@ -2784,14 +3016,15 @@ var o = new api.Sheet(); buildCounterSheet++; if (buildCounterSheet < 3) { + o.bandedRanges = buildUnnamed651(); o.basicFilter = buildBasicFilter(); - o.charts = buildUnnamed634(); - o.conditionalFormats = buildUnnamed635(); - o.data = buildUnnamed636(); - o.filterViews = buildUnnamed637(); - o.merges = buildUnnamed638(); + o.charts = buildUnnamed652(); + o.conditionalFormats = buildUnnamed653(); + o.data = buildUnnamed654(); + o.filterViews = buildUnnamed655(); + o.merges = buildUnnamed656(); o.properties = buildSheetProperties(); - o.protectedRanges = buildUnnamed639(); + o.protectedRanges = buildUnnamed657(); } buildCounterSheet--; return o; @@ -2800,14 +3033,15 @@ checkSheet(api.Sheet o) { buildCounterSheet++; if (buildCounterSheet < 3) { + checkUnnamed651(o.bandedRanges); checkBasicFilter(o.basicFilter); - checkUnnamed634(o.charts); - checkUnnamed635(o.conditionalFormats); - checkUnnamed636(o.data); - checkUnnamed637(o.filterViews); - checkUnnamed638(o.merges); + checkUnnamed652(o.charts); + checkUnnamed653(o.conditionalFormats); + checkUnnamed654(o.data); + checkUnnamed655(o.filterViews); + checkUnnamed656(o.merges); checkSheetProperties(o.properties); - checkUnnamed639(o.protectedRanges); + checkUnnamed657(o.protectedRanges); } buildCounterSheet--; } @@ -2845,14 +3079,14 @@ buildCounterSheetProperties--; } -buildUnnamed640() { +buildUnnamed658() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed640(core.List<api.SortSpec> o) { +checkUnnamed658(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -2864,7 +3098,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { o.range = buildGridRange(); - o.sortSpecs = buildUnnamed640(); + o.sortSpecs = buildUnnamed658(); } buildCounterSortRangeRequest--; return o; @@ -2874,7 +3108,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { checkGridRange(o.range); - checkUnnamed640(o.sortSpecs); + checkUnnamed658(o.sortSpecs); } buildCounterSortRangeRequest--; } @@ -2923,27 +3157,27 @@ buildCounterSourceAndDestination--; } -buildUnnamed641() { +buildUnnamed659() { var o = new core.List<api.NamedRange>(); o.add(buildNamedRange()); o.add(buildNamedRange()); return o; } -checkUnnamed641(core.List<api.NamedRange> o) { +checkUnnamed659(core.List<api.NamedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRange(o[0]); checkNamedRange(o[1]); } -buildUnnamed642() { +buildUnnamed660() { var o = new core.List<api.Sheet>(); o.add(buildSheet()); o.add(buildSheet()); return o; } -checkUnnamed642(core.List<api.Sheet> o) { +checkUnnamed660(core.List<api.Sheet> o) { unittest.expect(o, unittest.hasLength(2)); checkSheet(o[0]); checkSheet(o[1]); @@ -2954,9 +3188,9 @@ var o = new api.Spreadsheet(); buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - o.namedRanges = buildUnnamed641(); + o.namedRanges = buildUnnamed659(); o.properties = buildSpreadsheetProperties(); - o.sheets = buildUnnamed642(); + o.sheets = buildUnnamed660(); o.spreadsheetId = "foo"; } buildCounterSpreadsheet--; @@ -2966,9 +3200,9 @@ checkSpreadsheet(api.Spreadsheet o) { buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - checkUnnamed641(o.namedRanges); + checkUnnamed659(o.namedRanges); checkSpreadsheetProperties(o.properties); - checkUnnamed642(o.sheets); + checkUnnamed660(o.sheets); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterSpreadsheet--; @@ -3095,6 +3329,27 @@ buildCounterUnmergeCellsRequest--; } +core.int buildCounterUpdateBandingRequest = 0; +buildUpdateBandingRequest() { + var o = new api.UpdateBandingRequest(); + buildCounterUpdateBandingRequest++; + if (buildCounterUpdateBandingRequest < 3) { + o.bandedRange = buildBandedRange(); + o.fields = "foo"; + } + buildCounterUpdateBandingRequest--; + return o; +} + +checkUpdateBandingRequest(api.UpdateBandingRequest o) { + buildCounterUpdateBandingRequest++; + if (buildCounterUpdateBandingRequest < 3) { + checkBandedRange(o.bandedRange); + unittest.expect(o.fields, unittest.equals('foo')); + } + buildCounterUpdateBandingRequest--; +} + core.int buildCounterUpdateBordersRequest = 0; buildUpdateBordersRequest() { var o = new api.UpdateBordersRequest(); @@ -3126,14 +3381,14 @@ buildCounterUpdateBordersRequest--; } -buildUnnamed643() { +buildUnnamed661() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed643(core.List<api.RowData> o) { +checkUnnamed661(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -3146,7 +3401,7 @@ if (buildCounterUpdateCellsRequest < 3) { o.fields = "foo"; o.range = buildGridRange(); - o.rows = buildUnnamed643(); + o.rows = buildUnnamed661(); o.start = buildGridCoordinate(); } buildCounterUpdateCellsRequest--; @@ -3158,7 +3413,7 @@ if (buildCounterUpdateCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed643(o.rows); + checkUnnamed661(o.rows); checkGridCoordinate(o.start); } buildCounterUpdateCellsRequest--; @@ -3432,30 +3687,30 @@ buildCounterUpdateValuesResponse--; } -buildUnnamed644() { +buildUnnamed662() { 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; } -checkUnnamed644(core.List<core.Object> o) { +checkUnnamed662(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')); } -buildUnnamed645() { +buildUnnamed663() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed644()); - o.add(buildUnnamed644()); + o.add(buildUnnamed662()); + o.add(buildUnnamed662()); return o; } -checkUnnamed645(core.List<core.List<core.Object>> o) { +checkUnnamed663(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed644(o[0]); - checkUnnamed644(o[1]); + checkUnnamed662(o[0]); + checkUnnamed662(o[1]); } core.int buildCounterValueRange = 0; @@ -3465,7 +3720,7 @@ if (buildCounterValueRange < 3) { o.majorDimension = "foo"; o.range = "foo"; - o.values = buildUnnamed645(); + o.values = buildUnnamed663(); } buildCounterValueRange--; return o; @@ -3476,32 +3731,32 @@ if (buildCounterValueRange < 3) { unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.range, unittest.equals('foo')); - checkUnnamed645(o.values); + checkUnnamed663(o.values); } buildCounterValueRange--; } -buildUnnamed646() { +buildUnnamed664() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed646(core.List<core.String> o) { +checkUnnamed664(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed647() { +buildUnnamed665() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed647(core.List<core.String> o) { +checkUnnamed665(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3509,6 +3764,24 @@ main() { + unittest.group("obj-schema-AddBandingRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddBandingRequest(); + var od = new api.AddBandingRequest.fromJson(o.toJson()); + checkAddBandingRequest(od); + }); + }); + + + unittest.group("obj-schema-AddBandingResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAddBandingResponse(); + var od = new api.AddBandingResponse.fromJson(o.toJson()); + checkAddBandingResponse(od); + }); + }); + + unittest.group("obj-schema-AddChartRequest", () { unittest.test("to-json--from-json", () { var o = buildAddChartRequest(); @@ -3653,6 +3926,24 @@ }); + unittest.group("obj-schema-BandedRange", () { + unittest.test("to-json--from-json", () { + var o = buildBandedRange(); + var od = new api.BandedRange.fromJson(o.toJson()); + checkBandedRange(od); + }); + }); + + + unittest.group("obj-schema-BandingProperties", () { + unittest.test("to-json--from-json", () { + var o = buildBandingProperties(); + var od = new api.BandingProperties.fromJson(o.toJson()); + checkBandingProperties(od); + }); + }); + + unittest.group("obj-schema-BasicChartAxis", () { unittest.test("to-json--from-json", () { var o = buildBasicChartAxis(); @@ -3698,6 +3989,24 @@ }); + unittest.group("obj-schema-BatchClearValuesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBatchClearValuesRequest(); + var od = new api.BatchClearValuesRequest.fromJson(o.toJson()); + checkBatchClearValuesRequest(od); + }); + }); + + + unittest.group("obj-schema-BatchClearValuesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBatchClearValuesResponse(); + var od = new api.BatchClearValuesResponse.fromJson(o.toJson()); + checkBatchClearValuesResponse(od); + }); + }); + + unittest.group("obj-schema-BatchGetValuesResponse", () { unittest.test("to-json--from-json", () { var o = buildBatchGetValuesResponse(); @@ -3833,6 +4142,24 @@ }); + unittest.group("obj-schema-ClearValuesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildClearValuesRequest(); + var od = new api.ClearValuesRequest.fromJson(o.toJson()); + checkClearValuesRequest(od); + }); + }); + + + unittest.group("obj-schema-ClearValuesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildClearValuesResponse(); + var od = new api.ClearValuesResponse.fromJson(o.toJson()); + checkClearValuesResponse(od); + }); + }); + + unittest.group("obj-schema-Color", () { unittest.test("to-json--from-json", () { var o = buildColor(); @@ -3896,6 +4223,15 @@ }); + unittest.group("obj-schema-DeleteBandingRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteBandingRequest(); + var od = new api.DeleteBandingRequest.fromJson(o.toJson()); + checkDeleteBandingRequest(od); + }); + }); + + unittest.group("obj-schema-DeleteConditionalFormatRuleRequest", () { unittest.test("to-json--from-json", () { var o = buildDeleteConditionalFormatRuleRequest(); @@ -4454,6 +4790,15 @@ }); + unittest.group("obj-schema-UpdateBandingRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateBandingRequest(); + var od = new api.UpdateBandingRequest.fromJson(o.toJson()); + checkUpdateBandingRequest(od); + }); + }); + + unittest.group("obj-schema-UpdateBordersRequest", () { unittest.test("to-json--from-json", () { var o = buildUpdateBordersRequest(); @@ -4697,7 +5042,7 @@ var mock = new HttpServerMock(); api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed646(); + var arg_ranges = buildUnnamed664(); var arg_includeGridData = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; @@ -4881,12 +5226,67 @@ }))); }); + unittest.test("method--batchClear", () { + + var mock = new HttpServerMock(); + api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; + var arg_request = buildBatchClearValuesRequest(); + var arg_spreadsheetId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.BatchClearValuesRequest.fromJson(json); + checkBatchClearValuesRequest(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("v4/spreadsheets/")); + pathOffset += 16; + index = path.indexOf("/values:batchClear", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_spreadsheetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("/values:batchClear")); + 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(buildBatchClearValuesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.batchClear(arg_request, arg_spreadsheetId).then(unittest.expectAsync(((api.BatchClearValuesResponse response) { + checkBatchClearValuesResponse(response); + }))); + }); + unittest.test("method--batchGet", () { var mock = new HttpServerMock(); api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed647(); + var arg_ranges = buildUnnamed665(); var arg_valueRenderOption = "foo"; var arg_dateTimeRenderOption = "foo"; var arg_majorDimension = "foo"; @@ -4995,6 +5395,69 @@ }))); }); + unittest.test("method--clear", () { + + var mock = new HttpServerMock(); + api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; + var arg_request = buildClearValuesRequest(); + var arg_spreadsheetId = "foo"; + var arg_range = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ClearValuesRequest.fromJson(json); + checkClearValuesRequest(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("v4/spreadsheets/")); + pathOffset += 16; + index = path.indexOf("/values/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_spreadsheetId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/values/")); + pathOffset += 8; + index = path.indexOf(":clear", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_range")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals(":clear")); + 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(buildClearValuesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.clear(arg_request, arg_spreadsheetId, arg_range).then(unittest.expectAsync(((api.ClearValuesResponse response) { + checkClearValuesResponse(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/storage/v1_test.dart b/generated/googleapis/test/storage/v1_test.dart index fa02d78..07610b1 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); } -buildUnnamed956() { +buildUnnamed981() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed956(core.List<api.BucketAccessControl> o) { +checkUnnamed981(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); } -buildUnnamed957() { +buildUnnamed982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed957(core.List<core.String> o) { +checkUnnamed982(core.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() { +buildUnnamed983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed958(core.List<core.String> o) { +checkUnnamed983(core.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() { +buildUnnamed984() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed959(core.List<core.String> o) { +checkUnnamed984(core.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 = buildUnnamed957(); - o.origin = buildUnnamed958(); - o.responseHeader = buildUnnamed959(); + o.method = buildUnnamed982(); + o.origin = buildUnnamed983(); + o.responseHeader = buildUnnamed984(); } buildCounterBucketCors--; return o; @@ -121,63 +121,45 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { unittest.expect(o.maxAgeSeconds, unittest.equals(42)); - checkUnnamed957(o.method); - checkUnnamed958(o.origin); - checkUnnamed959(o.responseHeader); + checkUnnamed982(o.method); + checkUnnamed983(o.origin); + checkUnnamed984(o.responseHeader); } buildCounterBucketCors--; } -buildUnnamed960() { +buildUnnamed985() { var o = new core.List<api.BucketCors>(); o.add(buildBucketCors()); o.add(buildBucketCors()); return o; } -checkUnnamed960(core.List<api.BucketCors> o) { +checkUnnamed985(core.List<api.BucketCors> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketCors(o[0]); checkBucketCors(o[1]); } -buildUnnamed961() { +buildUnnamed986() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed961(core.List<api.ObjectAccessControl> o) { +checkUnnamed986(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); } -core.int buildCounterBucketEncryption = 0; -buildBucketEncryption() { - var o = new api.BucketEncryption(); - buildCounterBucketEncryption++; - if (buildCounterBucketEncryption < 3) { - o.defaultKmsKeyName = "foo"; - } - buildCounterBucketEncryption--; - return o; -} - -checkBucketEncryption(api.BucketEncryption o) { - buildCounterBucketEncryption++; - if (buildCounterBucketEncryption < 3) { - unittest.expect(o.defaultKmsKeyName, unittest.equals('foo')); - } - buildCounterBucketEncryption--; -} - core.int buildCounterBucketLifecycleRuleAction = 0; buildBucketLifecycleRuleAction() { var o = new api.BucketLifecycleRuleAction(); buildCounterBucketLifecycleRuleAction++; if (buildCounterBucketLifecycleRuleAction < 3) { + o.storageClass = "foo"; o.type = "foo"; } buildCounterBucketLifecycleRuleAction--; @@ -187,11 +169,25 @@ checkBucketLifecycleRuleAction(api.BucketLifecycleRuleAction o) { buildCounterBucketLifecycleRuleAction++; if (buildCounterBucketLifecycleRuleAction < 3) { + unittest.expect(o.storageClass, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterBucketLifecycleRuleAction--; } +buildUnnamed987() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterBucketLifecycleRuleCondition = 0; buildBucketLifecycleRuleCondition() { var o = new api.BucketLifecycleRuleCondition(); @@ -200,6 +196,7 @@ o.age = 42; o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); o.isLive = true; + o.matchesStorageClass = buildUnnamed987(); o.numNewerVersions = 42; } buildCounterBucketLifecycleRuleCondition--; @@ -212,6 +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); unittest.expect(o.numNewerVersions, unittest.equals(42)); } buildCounterBucketLifecycleRuleCondition--; @@ -238,14 +236,14 @@ buildCounterBucketLifecycleRule--; } -buildUnnamed962() { +buildUnnamed988() { var o = new core.List<api.BucketLifecycleRule>(); o.add(buildBucketLifecycleRule()); o.add(buildBucketLifecycleRule()); return o; } -checkUnnamed962(core.List<api.BucketLifecycleRule> o) { +checkUnnamed988(core.List<api.BucketLifecycleRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketLifecycleRule(o[0]); checkBucketLifecycleRule(o[1]); @@ -256,7 +254,7 @@ var o = new api.BucketLifecycle(); buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - o.rule = buildUnnamed962(); + o.rule = buildUnnamed988(); } buildCounterBucketLifecycle--; return o; @@ -265,7 +263,7 @@ checkBucketLifecycle(api.BucketLifecycle o) { buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - checkUnnamed962(o.rule); + checkUnnamed988(o.rule); } buildCounterBucketLifecycle--; } @@ -357,10 +355,9 @@ var o = new api.Bucket(); buildCounterBucket++; if (buildCounterBucket < 3) { - o.acl = buildUnnamed956(); - o.cors = buildUnnamed960(); - o.defaultObjectAcl = buildUnnamed961(); - o.encryption = buildBucketEncryption(); + o.acl = buildUnnamed981(); + o.cors = buildUnnamed985(); + o.defaultObjectAcl = buildUnnamed986(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -385,10 +382,9 @@ checkBucket(api.Bucket o) { buildCounterBucket++; if (buildCounterBucket < 3) { - checkUnnamed956(o.acl); - checkUnnamed960(o.cors); - checkUnnamed961(o.defaultObjectAcl); - checkBucketEncryption(o.encryption); + checkUnnamed981(o.acl); + checkUnnamed985(o.cors); + checkUnnamed986(o.defaultObjectAcl); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -469,14 +465,14 @@ buildCounterBucketAccessControl--; } -buildUnnamed963() { +buildUnnamed989() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed963(core.List<api.BucketAccessControl> o) { +checkUnnamed989(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -487,7 +483,7 @@ var o = new api.BucketAccessControls(); buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - o.items = buildUnnamed963(); + o.items = buildUnnamed989(); o.kind = "foo"; } buildCounterBucketAccessControls--; @@ -497,20 +493,20 @@ checkBucketAccessControls(api.BucketAccessControls o) { buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - checkUnnamed963(o.items); + checkUnnamed989(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBucketAccessControls--; } -buildUnnamed964() { +buildUnnamed990() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed964(core.List<api.Bucket> o) { +checkUnnamed990(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -521,7 +517,7 @@ var o = new api.Buckets(); buildCounterBuckets++; if (buildCounterBuckets < 3) { - o.items = buildUnnamed964(); + o.items = buildUnnamed990(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -532,21 +528,21 @@ checkBuckets(api.Buckets o) { buildCounterBuckets++; if (buildCounterBuckets < 3) { - checkUnnamed964(o.items); + checkUnnamed990(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBuckets--; } -buildUnnamed965() { +buildUnnamed991() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed965(core.Map<core.String, core.String> o) { +checkUnnamed991(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')); @@ -561,7 +557,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed965(); + o.params = buildUnnamed991(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -579,7 +575,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed965(o.params); + checkUnnamed991(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -631,14 +627,14 @@ buildCounterComposeRequestSourceObjects--; } -buildUnnamed966() { +buildUnnamed992() { var o = new core.List<api.ComposeRequestSourceObjects>(); o.add(buildComposeRequestSourceObjects()); o.add(buildComposeRequestSourceObjects()); return o; } -checkUnnamed966(core.List<api.ComposeRequestSourceObjects> o) { +checkUnnamed992(core.List<api.ComposeRequestSourceObjects> o) { unittest.expect(o, unittest.hasLength(2)); checkComposeRequestSourceObjects(o[0]); checkComposeRequestSourceObjects(o[1]); @@ -651,7 +647,7 @@ if (buildCounterComposeRequest < 3) { o.destination = buildObject(); o.kind = "foo"; - o.sourceObjects = buildUnnamed966(); + o.sourceObjects = buildUnnamed992(); } buildCounterComposeRequest--; return o; @@ -662,19 +658,19 @@ if (buildCounterComposeRequest < 3) { checkObject(o.destination); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed966(o.sourceObjects); + checkUnnamed992(o.sourceObjects); } buildCounterComposeRequest--; } -buildUnnamed967() { +buildUnnamed993() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed967(core.List<api.ObjectAccessControl> o) { +checkUnnamed993(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -701,14 +697,14 @@ buildCounterObjectCustomerEncryption--; } -buildUnnamed968() { +buildUnnamed994() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed968(core.Map<core.String, core.String> o) { +checkUnnamed994(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')); @@ -740,7 +736,7 @@ var o = new api.Object(); buildCounterObject++; if (buildCounterObject < 3) { - o.acl = buildUnnamed967(); + o.acl = buildUnnamed993(); o.bucket = "foo"; o.cacheControl = "foo"; o.componentCount = 42; @@ -754,10 +750,9 @@ o.generation = "foo"; o.id = "foo"; o.kind = "foo"; - o.kmsKeyName = "foo"; o.md5Hash = "foo"; o.mediaLink = "foo"; - o.metadata = buildUnnamed968(); + o.metadata = buildUnnamed994(); o.metageneration = "foo"; o.name = "foo"; o.owner = buildObjectOwner(); @@ -775,7 +770,7 @@ checkObject(api.Object o) { buildCounterObject++; if (buildCounterObject < 3) { - checkUnnamed967(o.acl); + checkUnnamed993(o.acl); unittest.expect(o.bucket, unittest.equals('foo')); unittest.expect(o.cacheControl, unittest.equals('foo')); unittest.expect(o.componentCount, unittest.equals(42)); @@ -789,10 +784,9 @@ unittest.expect(o.generation, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.kmsKeyName, unittest.equals('foo')); unittest.expect(o.md5Hash, unittest.equals('foo')); unittest.expect(o.mediaLink, unittest.equals('foo')); - checkUnnamed968(o.metadata); + checkUnnamed994(o.metadata); unittest.expect(o.metageneration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkObjectOwner(o.owner); @@ -870,17 +864,17 @@ buildCounterObjectAccessControl--; } -buildUnnamed969() { - 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'}); +buildUnnamed995() { + var o = new core.List<api.ObjectAccessControl>(); + o.add(buildObjectAccessControl()); + o.add(buildObjectAccessControl()); return o; } -checkUnnamed969(core.List<core.Object> o) { +checkUnnamed995(core.List<api.ObjectAccessControl> 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')); + checkObjectAccessControl(o[0]); + checkObjectAccessControl(o[1]); } core.int buildCounterObjectAccessControls = 0; @@ -888,7 +882,7 @@ var o = new api.ObjectAccessControls(); buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - o.items = buildUnnamed969(); + o.items = buildUnnamed995(); o.kind = "foo"; } buildCounterObjectAccessControls--; @@ -898,33 +892,33 @@ checkObjectAccessControls(api.ObjectAccessControls o) { buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - checkUnnamed969(o.items); + checkUnnamed995(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterObjectAccessControls--; } -buildUnnamed970() { +buildUnnamed996() { var o = new core.List<api.Object>(); o.add(buildObject()); o.add(buildObject()); return o; } -checkUnnamed970(core.List<api.Object> o) { +checkUnnamed996(core.List<api.Object> o) { unittest.expect(o, unittest.hasLength(2)); checkObject(o[0]); checkObject(o[1]); } -buildUnnamed971() { +buildUnnamed997() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed971(core.List<core.String> o) { +checkUnnamed997(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -935,10 +929,10 @@ var o = new api.Objects(); buildCounterObjects++; if (buildCounterObjects < 3) { - o.items = buildUnnamed970(); + o.items = buildUnnamed996(); o.kind = "foo"; o.nextPageToken = "foo"; - o.prefixes = buildUnnamed971(); + o.prefixes = buildUnnamed997(); } buildCounterObjects--; return o; @@ -947,10 +941,10 @@ checkObjects(api.Objects o) { buildCounterObjects++; if (buildCounterObjects < 3) { - checkUnnamed970(o.items); + checkUnnamed996(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed971(o.prefixes); + checkUnnamed997(o.prefixes); } buildCounterObjects--; } @@ -995,15 +989,6 @@ }); - unittest.group("obj-schema-BucketEncryption", () { - unittest.test("to-json--from-json", () { - var o = buildBucketEncryption(); - var od = new api.BucketEncryption.fromJson(o.toJson()); - checkBucketEncryption(od); - }); - }); - - unittest.group("obj-schema-BucketLifecycleRuleAction", () { unittest.test("to-json--from-json", () { var o = buildBucketLifecycleRuleAction(); @@ -2749,7 +2734,6 @@ var arg_destinationPredefinedAcl = "foo"; var arg_ifGenerationMatch = "foo"; var arg_ifMetagenerationMatch = "foo"; - var arg_kmsKeyName = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.ComposeRequest.fromJson(json); checkComposeRequest(obj); @@ -2798,7 +2782,6 @@ unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equals(arg_destinationPredefinedAcl)); unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg_ifGenerationMatch)); unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals(arg_ifMetagenerationMatch)); - unittest.expect(queryMap["kmsKeyName"].first, unittest.equals(arg_kmsKeyName)); var h = { @@ -2807,7 +2790,7 @@ var resp = convert.JSON.encode(buildObject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.compose(arg_request, arg_destinationBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, kmsKeyName: arg_kmsKeyName).then(unittest.expectAsync(((api.Object response) { + res.compose(arg_request, arg_destinationBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch).then(unittest.expectAsync(((api.Object response) { checkObject(response); }))); }); @@ -3062,7 +3045,6 @@ var arg_ifGenerationNotMatch = "foo"; var arg_ifMetagenerationMatch = "foo"; var arg_ifMetagenerationNotMatch = "foo"; - var arg_kmsKeyName = "foo"; var arg_name = "foo"; var arg_predefinedAcl = "foo"; var arg_projection = "foo"; @@ -3109,7 +3091,6 @@ unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals(arg_ifGenerationNotMatch)); unittest.expect(queryMap["ifMetagenerationMatch"].first, unittest.equals(arg_ifMetagenerationMatch)); unittest.expect(queryMap["ifMetagenerationNotMatch"].first, unittest.equals(arg_ifMetagenerationNotMatch)); - unittest.expect(queryMap["kmsKeyName"].first, unittest.equals(arg_kmsKeyName)); unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["predefinedAcl"].first, unittest.equals(arg_predefinedAcl)); unittest.expect(queryMap["projection"].first, unittest.equals(arg_projection)); @@ -3121,7 +3102,7 @@ var resp = convert.JSON.encode(buildObject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.insert(arg_request, arg_bucket, contentEncoding: arg_contentEncoding, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, kmsKeyName: arg_kmsKeyName, name: arg_name, predefinedAcl: arg_predefinedAcl, projection: arg_projection).then(unittest.expectAsync(((api.Object response) { + res.insert(arg_request, arg_bucket, contentEncoding: arg_contentEncoding, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, name: arg_name, predefinedAcl: arg_predefinedAcl, projection: arg_projection).then(unittest.expectAsync(((api.Object response) { checkObject(response); }))); }); @@ -3275,7 +3256,6 @@ var arg_sourceObject = "foo"; var arg_destinationBucket = "foo"; var arg_destinationObject = "foo"; - var arg_destinationKmsKeyName = "foo"; var arg_destinationPredefinedAcl = "foo"; var arg_ifGenerationMatch = "foo"; var arg_ifGenerationNotMatch = "foo"; @@ -3344,7 +3324,6 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["destinationKmsKeyName"].first, unittest.equals(arg_destinationKmsKeyName)); unittest.expect(queryMap["destinationPredefinedAcl"].first, unittest.equals(arg_destinationPredefinedAcl)); unittest.expect(queryMap["ifGenerationMatch"].first, unittest.equals(arg_ifGenerationMatch)); unittest.expect(queryMap["ifGenerationNotMatch"].first, unittest.equals(arg_ifGenerationNotMatch)); @@ -3366,7 +3345,7 @@ var resp = convert.JSON.encode(buildRewriteResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.rewrite(arg_request, arg_sourceBucket, arg_sourceObject, arg_destinationBucket, arg_destinationObject, destinationKmsKeyName: arg_destinationKmsKeyName, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, ifSourceGenerationMatch: arg_ifSourceGenerationMatch, ifSourceGenerationNotMatch: arg_ifSourceGenerationNotMatch, ifSourceMetagenerationMatch: arg_ifSourceMetagenerationMatch, ifSourceMetagenerationNotMatch: arg_ifSourceMetagenerationNotMatch, maxBytesRewrittenPerCall: arg_maxBytesRewrittenPerCall, projection: arg_projection, rewriteToken: arg_rewriteToken, sourceGeneration: arg_sourceGeneration).then(unittest.expectAsync(((api.RewriteResponse response) { + res.rewrite(arg_request, arg_sourceBucket, arg_sourceObject, arg_destinationBucket, arg_destinationObject, destinationPredefinedAcl: arg_destinationPredefinedAcl, ifGenerationMatch: arg_ifGenerationMatch, ifGenerationNotMatch: arg_ifGenerationNotMatch, ifMetagenerationMatch: arg_ifMetagenerationMatch, ifMetagenerationNotMatch: arg_ifMetagenerationNotMatch, ifSourceGenerationMatch: arg_ifSourceGenerationMatch, ifSourceGenerationNotMatch: arg_ifSourceGenerationNotMatch, ifSourceMetagenerationMatch: arg_ifSourceMetagenerationMatch, ifSourceMetagenerationNotMatch: arg_ifSourceMetagenerationNotMatch, maxBytesRewrittenPerCall: arg_maxBytesRewrittenPerCall, projection: arg_projection, rewriteToken: arg_rewriteToken, sourceGeneration: arg_sourceGeneration).then(unittest.expectAsync(((api.RewriteResponse response) { checkRewriteResponse(response); }))); });
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index fb1cfde..e58f24d 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -133,14 +133,14 @@ buildCounterEmpty--; } -buildUnnamed1401() { +buildUnnamed1411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1401(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')); @@ -151,7 +151,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1401(); + o.errorDetails = buildUnnamed1411(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -161,20 +161,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1401(o.errorDetails); + checkUnnamed1411(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1402() { +buildUnnamed1412() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1402(core.List<api.ErrorLogEntry> o) { +checkUnnamed1412(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 = buildUnnamed1402(); + o.errorLogEntries = buildUnnamed1412(); } buildCounterErrorSummary--; return o; @@ -198,7 +198,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1402(o.errorLogEntries); + checkUnnamed1412(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -260,14 +260,14 @@ buildCounterHttpData--; } -buildUnnamed1403() { +buildUnnamed1413() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1403(core.List<api.Operation> o) { +checkUnnamed1413(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 = buildUnnamed1403(); + o.operations = buildUnnamed1413(); } buildCounterListOperationsResponse--; return o; @@ -289,19 +289,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1403(o.operations); + checkUnnamed1413(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1404() { +buildUnnamed1414() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1404(core.List<api.TransferJob> o) { +checkUnnamed1414(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 = buildUnnamed1404(); + o.transferJobs = buildUnnamed1414(); } buildCounterListTransferJobsResponse--; return o; @@ -323,32 +323,32 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1404(o.transferJobs); + checkUnnamed1414(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1405() { +buildUnnamed1415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1405(core.List<core.String> o) { +checkUnnamed1415(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1406() { +buildUnnamed1416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1406(core.List<core.String> o) { +checkUnnamed1416(core.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 = buildUnnamed1405(); - o.includePrefixes = buildUnnamed1406(); + o.excludePrefixes = buildUnnamed1415(); + o.includePrefixes = buildUnnamed1416(); o.maxTimeElapsedSinceLastModification = "foo"; o.minTimeElapsedSinceLastModification = "foo"; } @@ -371,35 +371,35 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1405(o.excludePrefixes); - checkUnnamed1406(o.includePrefixes); + checkUnnamed1415(o.excludePrefixes); + checkUnnamed1416(o.includePrefixes); unittest.expect(o.maxTimeElapsedSinceLastModification, unittest.equals('foo')); unittest.expect(o.minTimeElapsedSinceLastModification, unittest.equals('foo')); } buildCounterObjectConditions--; } -buildUnnamed1407() { +buildUnnamed1417() { 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; } -checkUnnamed1407(core.Map<core.String, core.Object> o) { +checkUnnamed1417(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')); } -buildUnnamed1408() { +buildUnnamed1418() { 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; } -checkUnnamed1408(core.Map<core.String, core.Object> o) { +checkUnnamed1418(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 = buildUnnamed1407(); + o.metadata = buildUnnamed1417(); o.name = "foo"; - o.response = buildUnnamed1408(); + o.response = buildUnnamed1418(); } buildCounterOperation--; return o; @@ -425,9 +425,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1407(o.metadata); + checkUnnamed1417(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1408(o.response); + checkUnnamed1418(o.response); } buildCounterOperation--; } @@ -489,30 +489,30 @@ buildCounterSchedule--; } -buildUnnamed1409() { +buildUnnamed1419() { 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) { +checkUnnamed1419(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')); } -buildUnnamed1410() { +buildUnnamed1420() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1409()); - o.add(buildUnnamed1409()); + o.add(buildUnnamed1419()); + o.add(buildUnnamed1419()); return o; } -checkUnnamed1410(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1420(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1409(o[0]); - checkUnnamed1409(o[1]); + checkUnnamed1419(o[0]); + checkUnnamed1419(o[1]); } core.int buildCounterStatus = 0; @@ -521,7 +521,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1410(); + o.details = buildUnnamed1420(); o.message = "foo"; } buildCounterStatus--; @@ -532,7 +532,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1410(o.details); + checkUnnamed1420(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -647,14 +647,14 @@ buildCounterTransferJob--; } -buildUnnamed1411() { +buildUnnamed1421() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1411(core.List<api.ErrorSummary> o) { +checkUnnamed1421(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 = buildUnnamed1411(); + o.errorBreakdowns = buildUnnamed1421(); 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')); - checkUnnamed1411(o.errorBreakdowns); + checkUnnamed1421(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 new file mode 100644 index 0000000..3f1b29c --- /dev/null +++ b/generated/googleapis/test/surveys/v2_test.dart
@@ -0,0 +1,1459 @@ +library googleapis.surveys.v2.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/surveys/v2.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); +} + +buildUnnamed2202() { + var o = new core.List<api.FieldMask>(); + o.add(buildFieldMask()); + o.add(buildFieldMask()); + return o; +} + +checkUnnamed2202(core.List<api.FieldMask> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFieldMask(o[0]); + checkFieldMask(o[1]); +} + +core.int buildCounterFieldMask = 0; +buildFieldMask() { + var o = new api.FieldMask(); + buildCounterFieldMask++; + if (buildCounterFieldMask < 3) { + o.fields = buildUnnamed2202(); + o.id = 42; + } + buildCounterFieldMask--; + return o; +} + +checkFieldMask(api.FieldMask o) { + buildCounterFieldMask++; + if (buildCounterFieldMask < 3) { + checkUnnamed2202(o.fields); + unittest.expect(o.id, unittest.equals(42)); + } + buildCounterFieldMask--; +} + +buildUnnamed2203() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2203(core.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 buildCounterMobileAppPanel = 0; +buildMobileAppPanel() { + var o = new api.MobileAppPanel(); + buildCounterMobileAppPanel++; + if (buildCounterMobileAppPanel < 3) { + o.country = "foo"; + o.isPublicPanel = true; + o.language = "foo"; + o.mobileAppPanelId = "foo"; + o.name = "foo"; + o.owners = buildUnnamed2203(); + } + buildCounterMobileAppPanel--; + return o; +} + +checkMobileAppPanel(api.MobileAppPanel o) { + buildCounterMobileAppPanel++; + if (buildCounterMobileAppPanel < 3) { + unittest.expect(o.country, unittest.equals('foo')); + unittest.expect(o.isPublicPanel, unittest.isTrue); + unittest.expect(o.language, unittest.equals('foo')); + unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed2203(o.owners); + } + buildCounterMobileAppPanel--; +} + +buildUnnamed2204() { + var o = new core.List<api.MobileAppPanel>(); + o.add(buildMobileAppPanel()); + o.add(buildMobileAppPanel()); + return o; +} + +checkUnnamed2204(core.List<api.MobileAppPanel> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMobileAppPanel(o[0]); + checkMobileAppPanel(o[1]); +} + +core.int buildCounterMobileAppPanelsListResponse = 0; +buildMobileAppPanelsListResponse() { + var o = new api.MobileAppPanelsListResponse(); + buildCounterMobileAppPanelsListResponse++; + if (buildCounterMobileAppPanelsListResponse < 3) { + o.pageInfo = buildPageInfo(); + o.requestId = "foo"; + o.resources = buildUnnamed2204(); + o.tokenPagination = buildTokenPagination(); + } + buildCounterMobileAppPanelsListResponse--; + return o; +} + +checkMobileAppPanelsListResponse(api.MobileAppPanelsListResponse o) { + buildCounterMobileAppPanelsListResponse++; + if (buildCounterMobileAppPanelsListResponse < 3) { + checkPageInfo(o.pageInfo); + unittest.expect(o.requestId, unittest.equals('foo')); + checkUnnamed2204(o.resources); + checkTokenPagination(o.tokenPagination); + } + buildCounterMobileAppPanelsListResponse--; +} + +core.int buildCounterPageInfo = 0; +buildPageInfo() { + var o = new api.PageInfo(); + buildCounterPageInfo++; + if (buildCounterPageInfo < 3) { + o.resultPerPage = 42; + o.startIndex = 42; + o.totalResults = 42; + } + buildCounterPageInfo--; + return o; +} + +checkPageInfo(api.PageInfo o) { + buildCounterPageInfo++; + if (buildCounterPageInfo < 3) { + unittest.expect(o.resultPerPage, unittest.equals(42)); + unittest.expect(o.startIndex, unittest.equals(42)); + unittest.expect(o.totalResults, unittest.equals(42)); + } + buildCounterPageInfo--; +} + +core.int buildCounterResultsGetRequest = 0; +buildResultsGetRequest() { + var o = new api.ResultsGetRequest(); + buildCounterResultsGetRequest++; + if (buildCounterResultsGetRequest < 3) { + o.resultMask = buildResultsMask(); + } + buildCounterResultsGetRequest--; + return o; +} + +checkResultsGetRequest(api.ResultsGetRequest o) { + buildCounterResultsGetRequest++; + if (buildCounterResultsGetRequest < 3) { + checkResultsMask(o.resultMask); + } + buildCounterResultsGetRequest--; +} + +buildUnnamed2205() { + var o = new core.List<api.FieldMask>(); + o.add(buildFieldMask()); + o.add(buildFieldMask()); + return o; +} + +checkUnnamed2205(core.List<api.FieldMask> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFieldMask(o[0]); + checkFieldMask(o[1]); +} + +core.int buildCounterResultsMask = 0; +buildResultsMask() { + var o = new api.ResultsMask(); + buildCounterResultsMask++; + if (buildCounterResultsMask < 3) { + o.fields = buildUnnamed2205(); + o.projection = "foo"; + } + buildCounterResultsMask--; + return o; +} + +checkResultsMask(api.ResultsMask o) { + buildCounterResultsMask++; + if (buildCounterResultsMask < 3) { + checkUnnamed2205(o.fields); + unittest.expect(o.projection, unittest.equals('foo')); + } + buildCounterResultsMask--; +} + +buildUnnamed2206() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2207() { + var o = new core.List<api.SurveyQuestion>(); + o.add(buildSurveyQuestion()); + o.add(buildSurveyQuestion()); + return o; +} + +checkUnnamed2207(core.List<api.SurveyQuestion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurveyQuestion(o[0]); + checkSurveyQuestion(o[1]); +} + +core.int buildCounterSurvey = 0; +buildSurvey() { + var o = new api.Survey(); + buildCounterSurvey++; + if (buildCounterSurvey < 3) { + o.audience = buildSurveyAudience(); + o.cost = buildSurveyCost(); + o.customerData = "foo"; + o.description = "foo"; + o.owners = buildUnnamed2206(); + o.questions = buildUnnamed2207(); + o.rejectionReason = buildSurveyRejection(); + o.state = "foo"; + o.surveyUrlId = "foo"; + o.title = "foo"; + o.wantedResponseCount = 42; + } + buildCounterSurvey--; + return o; +} + +checkSurvey(api.Survey o) { + buildCounterSurvey++; + if (buildCounterSurvey < 3) { + checkSurveyAudience(o.audience); + checkSurveyCost(o.cost); + unittest.expect(o.customerData, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed2206(o.owners); + checkUnnamed2207(o.questions); + checkSurveyRejection(o.rejectionReason); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.surveyUrlId, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.wantedResponseCount, unittest.equals(42)); + } + buildCounterSurvey--; +} + +buildUnnamed2208() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2208(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2209(core.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 buildCounterSurveyAudience = 0; +buildSurveyAudience() { + var o = new api.SurveyAudience(); + buildCounterSurveyAudience++; + if (buildCounterSurveyAudience < 3) { + o.ages = buildUnnamed2208(); + o.country = "foo"; + o.countrySubdivision = "foo"; + o.gender = "foo"; + o.languages = buildUnnamed2209(); + o.mobileAppPanelId = "foo"; + o.populationSource = "foo"; + } + buildCounterSurveyAudience--; + return o; +} + +checkSurveyAudience(api.SurveyAudience o) { + buildCounterSurveyAudience++; + if (buildCounterSurveyAudience < 3) { + checkUnnamed2208(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); + unittest.expect(o.mobileAppPanelId, unittest.equals('foo')); + unittest.expect(o.populationSource, unittest.equals('foo')); + } + buildCounterSurveyAudience--; +} + +core.int buildCounterSurveyCost = 0; +buildSurveyCost() { + var o = new api.SurveyCost(); + buildCounterSurveyCost++; + if (buildCounterSurveyCost < 3) { + o.costPerResponseNanos = "foo"; + o.currencyCode = "foo"; + o.maxCostPerResponseNanos = "foo"; + o.nanos = "foo"; + } + buildCounterSurveyCost--; + return o; +} + +checkSurveyCost(api.SurveyCost o) { + buildCounterSurveyCost++; + if (buildCounterSurveyCost < 3) { + unittest.expect(o.costPerResponseNanos, unittest.equals('foo')); + unittest.expect(o.currencyCode, unittest.equals('foo')); + unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo')); + unittest.expect(o.nanos, unittest.equals('foo')); + } + buildCounterSurveyCost--; +} + +buildUnnamed2210() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2210(core.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() { + var o = new core.List<api.SurveyQuestionImage>(); + o.add(buildSurveyQuestionImage()); + o.add(buildSurveyQuestionImage()); + return o; +} + +checkUnnamed2211(core.List<api.SurveyQuestionImage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurveyQuestionImage(o[0]); + checkSurveyQuestionImage(o[1]); +} + +buildUnnamed2212() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2212(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2213(core.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 buildCounterSurveyQuestion = 0; +buildSurveyQuestion() { + var o = new api.SurveyQuestion(); + buildCounterSurveyQuestion++; + if (buildCounterSurveyQuestion < 3) { + o.answerOrder = "foo"; + o.answers = buildUnnamed2210(); + o.hasOther = true; + o.highValueLabel = "foo"; + o.images = buildUnnamed2211(); + o.lastAnswerPositionPinned = true; + o.lowValueLabel = "foo"; + o.mustPickSuggestion = true; + o.numStars = "foo"; + o.openTextPlaceholder = "foo"; + o.openTextSuggestions = buildUnnamed2212(); + o.question = "foo"; + o.sentimentText = "foo"; + o.singleLineResponse = true; + o.thresholdAnswers = buildUnnamed2213(); + o.type = "foo"; + o.unitOfMeasurementLabel = "foo"; + o.videoId = "foo"; + } + buildCounterSurveyQuestion--; + return o; +} + +checkSurveyQuestion(api.SurveyQuestion o) { + buildCounterSurveyQuestion++; + if (buildCounterSurveyQuestion < 3) { + unittest.expect(o.answerOrder, unittest.equals('foo')); + checkUnnamed2210(o.answers); + unittest.expect(o.hasOther, unittest.isTrue); + unittest.expect(o.highValueLabel, unittest.equals('foo')); + checkUnnamed2211(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); + unittest.expect(o.question, unittest.equals('foo')); + unittest.expect(o.sentimentText, unittest.equals('foo')); + unittest.expect(o.singleLineResponse, unittest.isTrue); + checkUnnamed2213(o.thresholdAnswers); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.unitOfMeasurementLabel, unittest.equals('foo')); + unittest.expect(o.videoId, unittest.equals('foo')); + } + buildCounterSurveyQuestion--; +} + +core.int buildCounterSurveyQuestionImage = 0; +buildSurveyQuestionImage() { + var o = new api.SurveyQuestionImage(); + buildCounterSurveyQuestionImage++; + if (buildCounterSurveyQuestionImage < 3) { + o.altText = "foo"; + o.data = "foo"; + o.url = "foo"; + } + buildCounterSurveyQuestionImage--; + return o; +} + +checkSurveyQuestionImage(api.SurveyQuestionImage o) { + buildCounterSurveyQuestionImage++; + if (buildCounterSurveyQuestionImage < 3) { + unittest.expect(o.altText, unittest.equals('foo')); + unittest.expect(o.data, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterSurveyQuestionImage--; +} + +core.int buildCounterSurveyRejection = 0; +buildSurveyRejection() { + var o = new api.SurveyRejection(); + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + o.explanation = "foo"; + o.type = "foo"; + } + buildCounterSurveyRejection--; + return o; +} + +checkSurveyRejection(api.SurveyRejection o) { + buildCounterSurveyRejection++; + if (buildCounterSurveyRejection < 3) { + unittest.expect(o.explanation, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterSurveyRejection--; +} + +core.int buildCounterSurveyResults = 0; +buildSurveyResults() { + var o = new api.SurveyResults(); + buildCounterSurveyResults++; + if (buildCounterSurveyResults < 3) { + o.status = "foo"; + o.surveyUrlId = "foo"; + } + buildCounterSurveyResults--; + return o; +} + +checkSurveyResults(api.SurveyResults o) { + buildCounterSurveyResults++; + if (buildCounterSurveyResults < 3) { + unittest.expect(o.status, unittest.equals('foo')); + unittest.expect(o.surveyUrlId, unittest.equals('foo')); + } + buildCounterSurveyResults--; +} + +core.int buildCounterSurveysDeleteResponse = 0; +buildSurveysDeleteResponse() { + var o = new api.SurveysDeleteResponse(); + buildCounterSurveysDeleteResponse++; + if (buildCounterSurveysDeleteResponse < 3) { + o.requestId = "foo"; + } + buildCounterSurveysDeleteResponse--; + return o; +} + +checkSurveysDeleteResponse(api.SurveysDeleteResponse o) { + buildCounterSurveysDeleteResponse++; + if (buildCounterSurveysDeleteResponse < 3) { + unittest.expect(o.requestId, unittest.equals('foo')); + } + buildCounterSurveysDeleteResponse--; +} + +buildUnnamed2214() { + var o = new core.List<api.Survey>(); + o.add(buildSurvey()); + o.add(buildSurvey()); + return o; +} + +checkUnnamed2214(core.List<api.Survey> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSurvey(o[0]); + checkSurvey(o[1]); +} + +core.int buildCounterSurveysListResponse = 0; +buildSurveysListResponse() { + var o = new api.SurveysListResponse(); + buildCounterSurveysListResponse++; + if (buildCounterSurveysListResponse < 3) { + o.pageInfo = buildPageInfo(); + o.requestId = "foo"; + o.resources = buildUnnamed2214(); + o.tokenPagination = buildTokenPagination(); + } + buildCounterSurveysListResponse--; + return o; +} + +checkSurveysListResponse(api.SurveysListResponse o) { + buildCounterSurveysListResponse++; + if (buildCounterSurveysListResponse < 3) { + checkPageInfo(o.pageInfo); + unittest.expect(o.requestId, unittest.equals('foo')); + checkUnnamed2214(o.resources); + checkTokenPagination(o.tokenPagination); + } + buildCounterSurveysListResponse--; +} + +core.int buildCounterSurveysStartRequest = 0; +buildSurveysStartRequest() { + var o = new api.SurveysStartRequest(); + buildCounterSurveysStartRequest++; + if (buildCounterSurveysStartRequest < 3) { + o.maxCostPerResponseNanos = "foo"; + } + buildCounterSurveysStartRequest--; + return o; +} + +checkSurveysStartRequest(api.SurveysStartRequest o) { + buildCounterSurveysStartRequest++; + if (buildCounterSurveysStartRequest < 3) { + unittest.expect(o.maxCostPerResponseNanos, unittest.equals('foo')); + } + buildCounterSurveysStartRequest--; +} + +core.int buildCounterSurveysStartResponse = 0; +buildSurveysStartResponse() { + var o = new api.SurveysStartResponse(); + buildCounterSurveysStartResponse++; + if (buildCounterSurveysStartResponse < 3) { + o.requestId = "foo"; + o.resource = buildSurvey(); + } + buildCounterSurveysStartResponse--; + return o; +} + +checkSurveysStartResponse(api.SurveysStartResponse o) { + buildCounterSurveysStartResponse++; + if (buildCounterSurveysStartResponse < 3) { + unittest.expect(o.requestId, unittest.equals('foo')); + checkSurvey(o.resource); + } + buildCounterSurveysStartResponse--; +} + +core.int buildCounterSurveysStopResponse = 0; +buildSurveysStopResponse() { + var o = new api.SurveysStopResponse(); + buildCounterSurveysStopResponse++; + if (buildCounterSurveysStopResponse < 3) { + o.requestId = "foo"; + o.resource = buildSurvey(); + } + buildCounterSurveysStopResponse--; + return o; +} + +checkSurveysStopResponse(api.SurveysStopResponse o) { + buildCounterSurveysStopResponse++; + if (buildCounterSurveysStopResponse < 3) { + unittest.expect(o.requestId, unittest.equals('foo')); + checkSurvey(o.resource); + } + buildCounterSurveysStopResponse--; +} + +core.int buildCounterTokenPagination = 0; +buildTokenPagination() { + var o = new api.TokenPagination(); + buildCounterTokenPagination++; + if (buildCounterTokenPagination < 3) { + o.nextPageToken = "foo"; + o.previousPageToken = "foo"; + } + buildCounterTokenPagination--; + return o; +} + +checkTokenPagination(api.TokenPagination o) { + buildCounterTokenPagination++; + if (buildCounterTokenPagination < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.previousPageToken, unittest.equals('foo')); + } + buildCounterTokenPagination--; +} + + +main() { + unittest.group("obj-schema-FieldMask", () { + unittest.test("to-json--from-json", () { + var o = buildFieldMask(); + var od = new api.FieldMask.fromJson(o.toJson()); + checkFieldMask(od); + }); + }); + + + unittest.group("obj-schema-MobileAppPanel", () { + unittest.test("to-json--from-json", () { + var o = buildMobileAppPanel(); + var od = new api.MobileAppPanel.fromJson(o.toJson()); + checkMobileAppPanel(od); + }); + }); + + + unittest.group("obj-schema-MobileAppPanelsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildMobileAppPanelsListResponse(); + var od = new api.MobileAppPanelsListResponse.fromJson(o.toJson()); + checkMobileAppPanelsListResponse(od); + }); + }); + + + unittest.group("obj-schema-PageInfo", () { + unittest.test("to-json--from-json", () { + var o = buildPageInfo(); + var od = new api.PageInfo.fromJson(o.toJson()); + checkPageInfo(od); + }); + }); + + + unittest.group("obj-schema-ResultsGetRequest", () { + unittest.test("to-json--from-json", () { + var o = buildResultsGetRequest(); + var od = new api.ResultsGetRequest.fromJson(o.toJson()); + checkResultsGetRequest(od); + }); + }); + + + unittest.group("obj-schema-ResultsMask", () { + unittest.test("to-json--from-json", () { + var o = buildResultsMask(); + var od = new api.ResultsMask.fromJson(o.toJson()); + checkResultsMask(od); + }); + }); + + + unittest.group("obj-schema-Survey", () { + unittest.test("to-json--from-json", () { + var o = buildSurvey(); + var od = new api.Survey.fromJson(o.toJson()); + checkSurvey(od); + }); + }); + + + unittest.group("obj-schema-SurveyAudience", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyAudience(); + var od = new api.SurveyAudience.fromJson(o.toJson()); + checkSurveyAudience(od); + }); + }); + + + unittest.group("obj-schema-SurveyCost", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyCost(); + var od = new api.SurveyCost.fromJson(o.toJson()); + checkSurveyCost(od); + }); + }); + + + unittest.group("obj-schema-SurveyQuestion", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyQuestion(); + var od = new api.SurveyQuestion.fromJson(o.toJson()); + checkSurveyQuestion(od); + }); + }); + + + unittest.group("obj-schema-SurveyQuestionImage", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyQuestionImage(); + var od = new api.SurveyQuestionImage.fromJson(o.toJson()); + checkSurveyQuestionImage(od); + }); + }); + + + unittest.group("obj-schema-SurveyRejection", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyRejection(); + var od = new api.SurveyRejection.fromJson(o.toJson()); + checkSurveyRejection(od); + }); + }); + + + unittest.group("obj-schema-SurveyResults", () { + unittest.test("to-json--from-json", () { + var o = buildSurveyResults(); + var od = new api.SurveyResults.fromJson(o.toJson()); + checkSurveyResults(od); + }); + }); + + + unittest.group("obj-schema-SurveysDeleteResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysDeleteResponse(); + var od = new api.SurveysDeleteResponse.fromJson(o.toJson()); + checkSurveysDeleteResponse(od); + }); + }); + + + unittest.group("obj-schema-SurveysListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysListResponse(); + var od = new api.SurveysListResponse.fromJson(o.toJson()); + checkSurveysListResponse(od); + }); + }); + + + unittest.group("obj-schema-SurveysStartRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysStartRequest(); + var od = new api.SurveysStartRequest.fromJson(o.toJson()); + checkSurveysStartRequest(od); + }); + }); + + + unittest.group("obj-schema-SurveysStartResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysStartResponse(); + var od = new api.SurveysStartResponse.fromJson(o.toJson()); + checkSurveysStartResponse(od); + }); + }); + + + unittest.group("obj-schema-SurveysStopResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSurveysStopResponse(); + var od = new api.SurveysStopResponse.fromJson(o.toJson()); + checkSurveysStopResponse(od); + }); + }); + + + unittest.group("obj-schema-TokenPagination", () { + unittest.test("to-json--from-json", () { + var o = buildTokenPagination(); + var od = new api.TokenPagination.fromJson(o.toJson()); + checkTokenPagination(od); + }); + }); + + + unittest.group("resource-MobileapppanelsResourceApi", () { + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; + var arg_panelId = "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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("mobileAppPanels/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_panelId")); + + 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(buildMobileAppPanel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + checkMobileAppPanel(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; + var arg_maxResults = 42; + var arg_startIndex = 42; + var arg_token = "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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("mobileAppPanels")); + 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(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); + unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildMobileAppPanelsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.MobileAppPanelsListResponse response) { + checkMobileAppPanelsListResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.MobileapppanelsResourceApi res = new api.SurveysApi(mock).mobileapppanels; + var arg_request = buildMobileAppPanel(); + var arg_panelId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.MobileAppPanel.fromJson(json); + checkMobileAppPanel(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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("mobileAppPanels/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_panelId")); + + 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(buildMobileAppPanel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_panelId).then(unittest.expectAsync(((api.MobileAppPanel response) { + checkMobileAppPanel(response); + }))); + }); + + }); + + + unittest.group("resource-ResultsResourceApi", () { + unittest.test("method--get", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.ResultsResourceApi res = new api.SurveysApi(mock).results; + var arg_request = buildResultsGetRequest(); + var arg_surveyUrlId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ResultsGetRequest.fromJson(json); + checkResultsGetRequest(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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + index = path.indexOf("/results", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/results")); + 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(buildSurveyResults()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.SurveyResults response) { + checkSurveyResults(response); + }))); + }); + + }); + + + unittest.group("resource-SurveysResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_surveyUrlId = "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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + + 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(buildSurveysDeleteResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_surveyUrlId).then(unittest.expectAsync(((api.SurveysDeleteResponse response) { + checkSurveysDeleteResponse(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_surveyUrlId = "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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + + 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(buildSurvey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + checkSurvey(response); + }))); + }); + + unittest.test("method--insert", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_request = buildSurvey(); + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Survey.fromJson(json); + checkSurvey(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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("surveys")); + 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(buildSurvey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.insert(arg_request).then(unittest.expectAsync(((api.Survey response) { + checkSurvey(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_maxResults = 42; + var arg_startIndex = 42; + var arg_token = "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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("surveys")); + 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(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); + unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildSurveysListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(maxResults: arg_maxResults, startIndex: arg_startIndex, token: arg_token).then(unittest.expectAsync(((api.SurveysListResponse response) { + checkSurveysListResponse(response); + }))); + }); + + unittest.test("method--start", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_request = buildSurveysStartRequest(); + var arg_resourceId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.SurveysStartRequest.fromJson(json); + checkSurveysStartRequest(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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + index = path.indexOf("/start", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_resourceId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/start")); + 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(buildSurveysStartResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.start(arg_request, arg_resourceId).then(unittest.expectAsync(((api.SurveysStartResponse response) { + checkSurveysStartResponse(response); + }))); + }); + + unittest.test("method--stop", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_resourceId = "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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + index = path.indexOf("/stop", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_resourceId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/stop")); + pathOffset += 5; + + 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(buildSurveysStopResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.stop(arg_resourceId).then(unittest.expectAsync(((api.SurveysStopResponse response) { + checkSurveysStopResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.SurveysResourceApi res = new api.SurveysApi(mock).surveys; + var arg_request = buildSurvey(); + var arg_surveyUrlId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Survey.fromJson(json); + checkSurvey(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 + 11), unittest.equals("surveys/v2/")); + pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("surveys/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_surveyUrlId")); + + 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(buildSurvey()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_surveyUrlId).then(unittest.expectAsync(((api.Survey response) { + checkSurvey(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis/test/tagmanager/v1_test.dart b/generated/googleapis/test/tagmanager/v1_test.dart index 7ab270c..297f8f3 100644 --- a/generated/googleapis/test/tagmanager/v1_test.dart +++ b/generated/googleapis/test/tagmanager/v1_test.dart
@@ -76,14 +76,14 @@ buildCounterAccount--; } -buildUnnamed1822() { +buildUnnamed1837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1822(core.List<core.String> o) { +checkUnnamed1837(core.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 = buildUnnamed1822(); + o.permission = buildUnnamed1837(); } buildCounterAccountAccess--; return o; @@ -103,19 +103,19 @@ checkAccountAccess(api.AccountAccess o) { buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - checkUnnamed1822(o.permission); + checkUnnamed1837(o.permission); } buildCounterAccountAccess--; } -buildUnnamed1823() { +buildUnnamed1838() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1823(core.List<api.Parameter> o) { +checkUnnamed1838(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 = buildUnnamed1823(); + o.parameter = buildUnnamed1838(); o.type = "foo"; } buildCounterCondition--; @@ -136,46 +136,46 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed1823(o.parameter); + checkUnnamed1838(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed1824() { +buildUnnamed1839() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1824(core.List<core.String> o) { +checkUnnamed1839(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1825() { +buildUnnamed1840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1825(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')); } -buildUnnamed1826() { +buildUnnamed1841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1826(core.List<core.String> o) { +checkUnnamed1841(core.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 = buildUnnamed1824(); - o.enabledBuiltInVariable = buildUnnamed1825(); + o.domainName = buildUnnamed1839(); + o.enabledBuiltInVariable = buildUnnamed1840(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.publicId = "foo"; o.timeZoneCountryId = "foo"; o.timeZoneId = "foo"; - o.usageContext = buildUnnamed1826(); + o.usageContext = buildUnnamed1841(); } buildCounterContainer--; return o; @@ -207,27 +207,27 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1824(o.domainName); - checkUnnamed1825(o.enabledBuiltInVariable); + checkUnnamed1839(o.domainName); + checkUnnamed1840(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')); - checkUnnamed1826(o.usageContext); + checkUnnamed1841(o.usageContext); } buildCounterContainer--; } -buildUnnamed1827() { +buildUnnamed1842() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1827(core.List<core.String> o) { +checkUnnamed1842(core.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 = buildUnnamed1827(); + o.permission = buildUnnamed1842(); } buildCounterContainerAccess--; return o; @@ -249,84 +249,84 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1827(o.permission); + checkUnnamed1842(o.permission); } buildCounterContainerAccess--; } -buildUnnamed1828() { +buildUnnamed1843() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed1828(core.List<api.Folder> o) { +checkUnnamed1843(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed1829() { +buildUnnamed1844() { var o = new core.List<api.Macro>(); o.add(buildMacro()); o.add(buildMacro()); return o; } -checkUnnamed1829(core.List<api.Macro> o) { +checkUnnamed1844(core.List<api.Macro> o) { unittest.expect(o, unittest.hasLength(2)); checkMacro(o[0]); checkMacro(o[1]); } -buildUnnamed1830() { +buildUnnamed1845() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1830(core.List<api.Rule> o) { +checkUnnamed1845(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); } -buildUnnamed1831() { +buildUnnamed1846() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1831(core.List<api.Tag> o) { +checkUnnamed1846(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed1832() { +buildUnnamed1847() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1832(core.List<api.Trigger> o) { +checkUnnamed1847(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed1833() { +buildUnnamed1848() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1833(core.List<api.Variable> o) { +checkUnnamed1848(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 = buildUnnamed1828(); - o.macro = buildUnnamed1829(); + o.folder = buildUnnamed1843(); + o.macro = buildUnnamed1844(); o.name = "foo"; o.notes = "foo"; - o.rule = buildUnnamed1830(); - o.tag = buildUnnamed1831(); - o.trigger = buildUnnamed1832(); - o.variable = buildUnnamed1833(); + o.rule = buildUnnamed1845(); + o.tag = buildUnnamed1846(); + o.trigger = buildUnnamed1847(); + o.variable = buildUnnamed1848(); } 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')); - checkUnnamed1828(o.folder); - checkUnnamed1829(o.macro); + checkUnnamed1843(o.folder); + checkUnnamed1844(o.macro); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1830(o.rule); - checkUnnamed1831(o.tag); - checkUnnamed1832(o.trigger); - checkUnnamed1833(o.variable); + checkUnnamed1845(o.rule); + checkUnnamed1846(o.tag); + checkUnnamed1847(o.trigger); + checkUnnamed1848(o.variable); } buildCounterContainerVersion--; } @@ -526,40 +526,40 @@ buildCounterFolder--; } -buildUnnamed1834() { +buildUnnamed1849() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1834(core.List<api.Tag> o) { +checkUnnamed1849(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed1835() { +buildUnnamed1850() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1835(core.List<api.Trigger> o) { +checkUnnamed1850(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed1836() { +buildUnnamed1851() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1836(core.List<api.Variable> o) { +checkUnnamed1851(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 = buildUnnamed1834(); - o.trigger = buildUnnamed1835(); - o.variable = buildUnnamed1836(); + o.tag = buildUnnamed1849(); + o.trigger = buildUnnamed1850(); + o.variable = buildUnnamed1851(); } buildCounterFolderEntities--; return o; @@ -581,21 +581,21 @@ checkFolderEntities(api.FolderEntities o) { buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - checkUnnamed1834(o.tag); - checkUnnamed1835(o.trigger); - checkUnnamed1836(o.variable); + checkUnnamed1849(o.tag); + checkUnnamed1850(o.trigger); + checkUnnamed1851(o.variable); } buildCounterFolderEntities--; } -buildUnnamed1837() { +buildUnnamed1852() { var o = new core.List<api.UserAccess>(); o.add(buildUserAccess()); o.add(buildUserAccess()); return o; } -checkUnnamed1837(core.List<api.UserAccess> o) { +checkUnnamed1852(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 = buildUnnamed1837(); + o.userAccess = buildUnnamed1852(); } buildCounterListAccountUsersResponse--; return o; @@ -615,19 +615,19 @@ checkListAccountUsersResponse(api.ListAccountUsersResponse o) { buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - checkUnnamed1837(o.userAccess); + checkUnnamed1852(o.userAccess); } buildCounterListAccountUsersResponse--; } -buildUnnamed1838() { +buildUnnamed1853() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1838(core.List<api.Account> o) { +checkUnnamed1853(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 = buildUnnamed1838(); + o.accounts = buildUnnamed1853(); } buildCounterListAccountsResponse--; return o; @@ -647,32 +647,32 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed1838(o.accounts); + checkUnnamed1853(o.accounts); } buildCounterListAccountsResponse--; } -buildUnnamed1839() { +buildUnnamed1854() { var o = new core.List<api.ContainerVersion>(); o.add(buildContainerVersion()); o.add(buildContainerVersion()); return o; } -checkUnnamed1839(core.List<api.ContainerVersion> o) { +checkUnnamed1854(core.List<api.ContainerVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersion(o[0]); checkContainerVersion(o[1]); } -buildUnnamed1840() { +buildUnnamed1855() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed1840(core.List<api.ContainerVersionHeader> o) { +checkUnnamed1855(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 = buildUnnamed1839(); - o.containerVersionHeader = buildUnnamed1840(); + o.containerVersion = buildUnnamed1854(); + o.containerVersionHeader = buildUnnamed1855(); } buildCounterListContainerVersionsResponse--; return o; @@ -693,20 +693,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed1839(o.containerVersion); - checkUnnamed1840(o.containerVersionHeader); + checkUnnamed1854(o.containerVersion); + checkUnnamed1855(o.containerVersionHeader); } buildCounterListContainerVersionsResponse--; } -buildUnnamed1841() { +buildUnnamed1856() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed1841(core.List<api.Container> o) { +checkUnnamed1856(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 = buildUnnamed1841(); + o.containers = buildUnnamed1856(); } buildCounterListContainersResponse--; return o; @@ -726,19 +726,19 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed1841(o.containers); + checkUnnamed1856(o.containers); } buildCounterListContainersResponse--; } -buildUnnamed1842() { +buildUnnamed1857() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed1842(core.List<api.Environment> o) { +checkUnnamed1857(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 = buildUnnamed1842(); + o.environments = buildUnnamed1857(); } buildCounterListEnvironmentsResponse--; return o; @@ -758,19 +758,19 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed1842(o.environments); + checkUnnamed1857(o.environments); } buildCounterListEnvironmentsResponse--; } -buildUnnamed1843() { +buildUnnamed1858() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed1843(core.List<api.Folder> o) { +checkUnnamed1858(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 = buildUnnamed1843(); + o.folders = buildUnnamed1858(); } buildCounterListFoldersResponse--; return o; @@ -790,19 +790,19 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed1843(o.folders); + checkUnnamed1858(o.folders); } buildCounterListFoldersResponse--; } -buildUnnamed1844() { +buildUnnamed1859() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed1844(core.List<api.Tag> o) { +checkUnnamed1859(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 = buildUnnamed1844(); + o.tags = buildUnnamed1859(); } buildCounterListTagsResponse--; return o; @@ -822,19 +822,19 @@ checkListTagsResponse(api.ListTagsResponse o) { buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - checkUnnamed1844(o.tags); + checkUnnamed1859(o.tags); } buildCounterListTagsResponse--; } -buildUnnamed1845() { +buildUnnamed1860() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed1845(core.List<api.Trigger> o) { +checkUnnamed1860(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 = buildUnnamed1845(); + o.triggers = buildUnnamed1860(); } buildCounterListTriggersResponse--; return o; @@ -854,19 +854,19 @@ checkListTriggersResponse(api.ListTriggersResponse o) { buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - checkUnnamed1845(o.triggers); + checkUnnamed1860(o.triggers); } buildCounterListTriggersResponse--; } -buildUnnamed1846() { +buildUnnamed1861() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed1846(core.List<api.Variable> o) { +checkUnnamed1861(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 = buildUnnamed1846(); + o.variables = buildUnnamed1861(); } buildCounterListVariablesResponse--; return o; @@ -886,45 +886,45 @@ checkListVariablesResponse(api.ListVariablesResponse o) { buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - checkUnnamed1846(o.variables); + checkUnnamed1861(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed1847() { +buildUnnamed1862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1847(core.List<core.String> o) { +checkUnnamed1862(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1848() { +buildUnnamed1863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1848(core.List<core.String> o) { +checkUnnamed1863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1849() { +buildUnnamed1864() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1849(core.List<api.Parameter> o) { +checkUnnamed1864(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 = buildUnnamed1847(); - o.enablingRuleId = buildUnnamed1848(); + o.disablingRuleId = buildUnnamed1862(); + o.enablingRuleId = buildUnnamed1863(); o.fingerprint = "foo"; o.macroId = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1849(); + o.parameter = buildUnnamed1864(); 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')); - checkUnnamed1847(o.disablingRuleId); - checkUnnamed1848(o.enablingRuleId); + checkUnnamed1862(o.disablingRuleId); + checkUnnamed1863(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')); - checkUnnamed1849(o.parameter); + checkUnnamed1864(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--; } -buildUnnamed1850() { +buildUnnamed1865() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1850(core.List<api.Parameter> o) { +checkUnnamed1865(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed1851() { +buildUnnamed1866() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1851(core.List<api.Parameter> o) { +checkUnnamed1866(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 = buildUnnamed1850(); - o.map = buildUnnamed1851(); + o.list = buildUnnamed1865(); + o.map = buildUnnamed1866(); o.type = "foo"; o.value = "foo"; } @@ -1018,8 +1018,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1850(o.list); - checkUnnamed1851(o.map); + checkUnnamed1865(o.list); + checkUnnamed1866(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1047,14 +1047,14 @@ buildCounterPublishContainerVersionResponse--; } -buildUnnamed1852() { +buildUnnamed1867() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1852(core.List<api.Condition> o) { +checkUnnamed1867(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 = buildUnnamed1852(); + o.condition = buildUnnamed1867(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -1081,7 +1081,7 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1852(o.condition); + checkUnnamed1867(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--; } -buildUnnamed1853() { +buildUnnamed1868() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1853(core.List<core.String> o) { +checkUnnamed1868(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1854() { +buildUnnamed1869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1854(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')); } -buildUnnamed1855() { +buildUnnamed1870() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1855(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')); } -buildUnnamed1856() { +buildUnnamed1871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1856(core.List<core.String> o) { +checkUnnamed1871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1857() { +buildUnnamed1872() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1857(core.List<api.Parameter> o) { +checkUnnamed1872(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed1858() { +buildUnnamed1873() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed1858(core.List<api.SetupTag> o) { +checkUnnamed1873(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed1859() { +buildUnnamed1874() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed1859(core.List<api.TeardownTag> o) { +checkUnnamed1874(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 = buildUnnamed1853(); - o.blockingTriggerId = buildUnnamed1854(); + o.blockingRuleId = buildUnnamed1868(); + o.blockingTriggerId = buildUnnamed1869(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed1855(); - o.firingTriggerId = buildUnnamed1856(); + o.firingRuleId = buildUnnamed1870(); + o.firingTriggerId = buildUnnamed1871(); o.liveOnly = true; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1857(); + o.parameter = buildUnnamed1872(); o.parentFolderId = "foo"; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed1858(); + o.setupTag = buildUnnamed1873(); o.tagFiringOption = "foo"; o.tagId = "foo"; - o.teardownTag = buildUnnamed1859(); + o.teardownTag = buildUnnamed1874(); o.type = "foo"; } buildCounterTag--; @@ -1237,24 +1237,24 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1853(o.blockingRuleId); - checkUnnamed1854(o.blockingTriggerId); + checkUnnamed1868(o.blockingRuleId); + checkUnnamed1869(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1855(o.firingRuleId); - checkUnnamed1856(o.firingTriggerId); + checkUnnamed1870(o.firingRuleId); + checkUnnamed1871(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1857(o.parameter); + checkUnnamed1872(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')); - checkUnnamed1858(o.setupTag); + checkUnnamed1873(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); - checkUnnamed1859(o.teardownTag); + checkUnnamed1874(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); } buildCounterTag--; @@ -1281,40 +1281,40 @@ buildCounterTeardownTag--; } -buildUnnamed1860() { +buildUnnamed1875() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1860(core.List<api.Condition> o) { +checkUnnamed1875(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1861() { +buildUnnamed1876() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1861(core.List<api.Condition> o) { +checkUnnamed1876(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed1862() { +buildUnnamed1877() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed1862(core.List<api.Condition> o) { +checkUnnamed1877(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 = buildUnnamed1860(); + o.autoEventFilter = buildUnnamed1875(); o.checkValidation = buildParameter(); o.containerId = "foo"; - o.customEventFilter = buildUnnamed1861(); + o.customEventFilter = buildUnnamed1876(); o.enableAllVideos = buildParameter(); o.eventName = buildParameter(); - o.filter = buildUnnamed1862(); + o.filter = buildUnnamed1877(); o.fingerprint = "foo"; o.interval = buildParameter(); o.limit = buildParameter(); @@ -1353,13 +1353,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1860(o.autoEventFilter); + checkUnnamed1875(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed1861(o.customEventFilter); + checkUnnamed1876(o.customEventFilter); checkParameter(o.enableAllVideos); checkParameter(o.eventName); - checkUnnamed1862(o.filter); + checkUnnamed1877(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.interval); checkParameter(o.limit); @@ -1375,14 +1375,14 @@ buildCounterTrigger--; } -buildUnnamed1863() { +buildUnnamed1878() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed1863(core.List<api.ContainerAccess> o) { +checkUnnamed1878(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 = buildUnnamed1863(); + o.containerAccess = buildUnnamed1878(); o.emailAddress = "foo"; o.permissionId = "foo"; } @@ -1408,47 +1408,47 @@ if (buildCounterUserAccess < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1863(o.containerAccess); + checkUnnamed1878(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); } buildCounterUserAccess--; } -buildUnnamed1864() { +buildUnnamed1879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1864(core.List<core.String> o) { +checkUnnamed1879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1865() { +buildUnnamed1880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1865(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')); } -buildUnnamed1866() { +buildUnnamed1881() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed1866(core.List<api.Parameter> o) { +checkUnnamed1881(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 = buildUnnamed1864(); - o.enablingTriggerId = buildUnnamed1865(); + o.disablingTriggerId = buildUnnamed1879(); + o.enablingTriggerId = buildUnnamed1880(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed1866(); + o.parameter = buildUnnamed1881(); 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')); - checkUnnamed1864(o.disablingTriggerId); - checkUnnamed1865(o.enablingTriggerId); + checkUnnamed1879(o.disablingTriggerId); + checkUnnamed1880(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed1866(o.parameter); + checkUnnamed1881(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--; } -buildUnnamed1867() { +buildUnnamed1882() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1867(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')); } -buildUnnamed1868() { +buildUnnamed1883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1868(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')); } -buildUnnamed1869() { +buildUnnamed1884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1869(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')); @@ -3070,9 +3070,9 @@ var arg_accountId = "foo"; var arg_containerId = "foo"; var arg_folderId = "foo"; - var arg_tagId = buildUnnamed1867(); - var arg_triggerId = buildUnnamed1868(); - var arg_variableId = buildUnnamed1869(); + var arg_tagId = buildUnnamed1882(); + var arg_triggerId = buildUnnamed1883(); + var arg_variableId = buildUnnamed1884(); 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 c1fb853..d811703 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterTaskLinks--; } -buildUnnamed3369() { +buildUnnamed3182() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed3369(core.List<api.TaskLinks> o) { +checkUnnamed3182(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 = buildUnnamed3369(); + o.links = buildUnnamed3182(); 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')); - checkUnnamed3369(o.links); + checkUnnamed3182(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--; } -buildUnnamed3370() { +buildUnnamed3183() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed3370(core.List<api.TaskList> o) { +checkUnnamed3183(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 = buildUnnamed3370(); + o.items = buildUnnamed3183(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -194,21 +194,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3370(o.items); + checkUnnamed3183(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed3371() { +buildUnnamed3184() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed3371(core.List<api.Task> o) { +checkUnnamed3184(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 = buildUnnamed3371(); + o.items = buildUnnamed3184(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -232,7 +232,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3371(o.items); + checkUnnamed3184(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 a9e3eb1..6750a66 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); } -buildUnnamed873() { +buildUnnamed897() { var o = new core.List<api.DetectionsResource>(); o.add(buildDetectionsResource()); o.add(buildDetectionsResource()); return o; } -checkUnnamed873(core.List<api.DetectionsResource> o) { +checkUnnamed897(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 = buildUnnamed873(); + o.detections = buildUnnamed897(); } buildCounterDetectionsListResponse--; return o; @@ -78,7 +78,7 @@ checkDetectionsListResponse(api.DetectionsListResponse o) { buildCounterDetectionsListResponse++; if (buildCounterDetectionsListResponse < 3) { - checkUnnamed873(o.detections); + checkUnnamed897(o.detections); } buildCounterDetectionsListResponse--; } @@ -119,14 +119,14 @@ checkDetectionsResourceElement(o[1]); } -buildUnnamed874() { +buildUnnamed898() { var o = new core.List<api.LanguagesResource>(); o.add(buildLanguagesResource()); o.add(buildLanguagesResource()); return o; } -checkUnnamed874(core.List<api.LanguagesResource> o) { +checkUnnamed898(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 = buildUnnamed874(); + o.languages = buildUnnamed898(); } buildCounterLanguagesListResponse--; return o; @@ -146,7 +146,7 @@ checkLanguagesListResponse(api.LanguagesListResponse o) { buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { - checkUnnamed874(o.languages); + checkUnnamed898(o.languages); } buildCounterLanguagesListResponse--; } @@ -172,14 +172,14 @@ buildCounterLanguagesResource--; } -buildUnnamed875() { +buildUnnamed899() { var o = new core.List<api.TranslationsResource>(); o.add(buildTranslationsResource()); o.add(buildTranslationsResource()); return o; } -checkUnnamed875(core.List<api.TranslationsResource> o) { +checkUnnamed899(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 = buildUnnamed875(); + o.translations = buildUnnamed899(); } buildCounterTranslationsListResponse--; return o; @@ -199,7 +199,7 @@ checkTranslationsListResponse(api.TranslationsListResponse o) { buildCounterTranslationsListResponse++; if (buildCounterTranslationsListResponse < 3) { - checkUnnamed875(o.translations); + checkUnnamed899(o.translations); } buildCounterTranslationsListResponse--; } @@ -225,40 +225,40 @@ buildCounterTranslationsResource--; } -buildUnnamed876() { +buildUnnamed900() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed876(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')); } -buildUnnamed877() { +buildUnnamed901() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed877(core.List<core.String> o) { +checkUnnamed901(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed878() { +buildUnnamed902() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed878(core.List<core.String> o) { +checkUnnamed902(core.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 = buildUnnamed876(); + var arg_q = buildUnnamed900(); 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 = buildUnnamed877(); + var arg_q = buildUnnamed901(); var arg_target = "foo"; - var arg_cid = buildUnnamed878(); + var arg_cid = buildUnnamed902(); 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 888f17d..bbfddec 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); } -buildUnnamed898() { +buildUnnamed923() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed898(core.List<api.StringCount> o) { +checkUnnamed923(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed899() { +buildUnnamed924() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed899(core.List<api.StringCount> o) { +checkUnnamed924(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed900() { +buildUnnamed925() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed900(core.List<api.StringCount> o) { +checkUnnamed925(core.List<api.StringCount> o) { unittest.expect(o, unittest.hasLength(2)); checkStringCount(o[0]); checkStringCount(o[1]); } -buildUnnamed901() { +buildUnnamed926() { var o = new core.List<api.StringCount>(); o.add(buildStringCount()); o.add(buildStringCount()); return o; } -checkUnnamed901(core.List<api.StringCount> o) { +checkUnnamed926(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 = buildUnnamed898(); - o.countries = buildUnnamed899(); + o.browsers = buildUnnamed923(); + o.countries = buildUnnamed924(); o.longUrlClicks = "foo"; - o.platforms = buildUnnamed900(); - o.referrers = buildUnnamed901(); + o.platforms = buildUnnamed925(); + o.referrers = buildUnnamed926(); o.shortUrlClicks = "foo"; } buildCounterAnalyticsSnapshot--; @@ -122,11 +122,11 @@ checkAnalyticsSnapshot(api.AnalyticsSnapshot o) { buildCounterAnalyticsSnapshot++; if (buildCounterAnalyticsSnapshot < 3) { - checkUnnamed898(o.browsers); - checkUnnamed899(o.countries); + checkUnnamed923(o.browsers); + checkUnnamed924(o.countries); unittest.expect(o.longUrlClicks, unittest.equals('foo')); - checkUnnamed900(o.platforms); - checkUnnamed901(o.referrers); + checkUnnamed925(o.platforms); + checkUnnamed926(o.referrers); unittest.expect(o.shortUrlClicks, unittest.equals('foo')); } buildCounterAnalyticsSnapshot--; @@ -209,14 +209,14 @@ buildCounterUrl--; } -buildUnnamed902() { +buildUnnamed927() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed902(core.List<api.Url> o) { +checkUnnamed927(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 = buildUnnamed902(); + o.items = buildUnnamed927(); o.itemsPerPage = 42; o.kind = "foo"; o.nextPageToken = "foo"; @@ -240,7 +240,7 @@ checkUrlHistory(api.UrlHistory o) { buildCounterUrlHistory++; if (buildCounterUrlHistory < 3) { - checkUnnamed902(o.items); + checkUnnamed927(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 544621d..0f62af2 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); } -buildUnnamed1373() { +buildUnnamed1395() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed1373(core.List<api.Feature> o) { +checkUnnamed1395(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 = buildUnnamed1373(); + o.features = buildUnnamed1395(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -80,73 +80,73 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed1373(o.features); + checkUnnamed1395(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed1374() { +buildUnnamed1396() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed1374(core.List<api.FaceAnnotation> o) { +checkUnnamed1396(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed1375() { +buildUnnamed1397() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1375(core.List<api.EntityAnnotation> o) { +checkUnnamed1397(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1376() { +buildUnnamed1398() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1376(core.List<api.EntityAnnotation> o) { +checkUnnamed1398(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1377() { +buildUnnamed1399() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1377(core.List<api.EntityAnnotation> o) { +checkUnnamed1399(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed1378() { +buildUnnamed1400() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed1378(core.List<api.EntityAnnotation> o) { +checkUnnamed1400(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 = buildUnnamed1374(); + o.faceAnnotations = buildUnnamed1396(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed1375(); - o.landmarkAnnotations = buildUnnamed1376(); - o.logoAnnotations = buildUnnamed1377(); + o.labelAnnotations = buildUnnamed1397(); + o.landmarkAnnotations = buildUnnamed1398(); + o.logoAnnotations = buildUnnamed1399(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed1378(); + o.textAnnotations = buildUnnamed1400(); } buildCounterAnnotateImageResponse--; return o; @@ -174,25 +174,25 @@ buildCounterAnnotateImageResponse++; if (buildCounterAnnotateImageResponse < 3) { checkStatus(o.error); - checkUnnamed1374(o.faceAnnotations); + checkUnnamed1396(o.faceAnnotations); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed1375(o.labelAnnotations); - checkUnnamed1376(o.landmarkAnnotations); - checkUnnamed1377(o.logoAnnotations); + checkUnnamed1397(o.labelAnnotations); + checkUnnamed1398(o.landmarkAnnotations); + checkUnnamed1399(o.logoAnnotations); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed1378(o.textAnnotations); + checkUnnamed1400(o.textAnnotations); } buildCounterAnnotateImageResponse--; } -buildUnnamed1379() { +buildUnnamed1401() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed1379(core.List<api.AnnotateImageRequest> o) { +checkUnnamed1401(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 = buildUnnamed1379(); + o.requests = buildUnnamed1401(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -212,19 +212,19 @@ checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { - checkUnnamed1379(o.requests); + checkUnnamed1401(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed1380() { +buildUnnamed1402() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed1380(core.List<api.AnnotateImageResponse> o) { +checkUnnamed1402(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 = buildUnnamed1380(); + o.responses = buildUnnamed1402(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -244,19 +244,19 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed1380(o.responses); + checkUnnamed1402(o.responses); } buildCounterBatchAnnotateImagesResponse--; } -buildUnnamed1381() { +buildUnnamed1403() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed1381(core.List<api.Vertex> o) { +checkUnnamed1403(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 = buildUnnamed1381(); + o.vertices = buildUnnamed1403(); } buildCounterBoundingPoly--; return o; @@ -276,7 +276,7 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed1381(o.vertices); + checkUnnamed1403(o.vertices); } buildCounterBoundingPoly--; } @@ -329,14 +329,14 @@ buildCounterColorInfo--; } -buildUnnamed1382() { +buildUnnamed1404() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed1382(core.List<api.ColorInfo> o) { +checkUnnamed1404(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 = buildUnnamed1382(); + o.colors = buildUnnamed1404(); } buildCounterDominantColorsAnnotation--; return o; @@ -356,32 +356,32 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed1382(o.colors); + checkUnnamed1404(o.colors); } buildCounterDominantColorsAnnotation--; } -buildUnnamed1383() { +buildUnnamed1405() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed1383(core.List<api.LocationInfo> o) { +checkUnnamed1405(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed1384() { +buildUnnamed1406() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1384(core.List<api.Property> o) { +checkUnnamed1406(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 = buildUnnamed1383(); + o.locations = buildUnnamed1405(); o.mid = "foo"; - o.properties = buildUnnamed1384(); + o.properties = buildUnnamed1406(); 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')); - checkUnnamed1383(o.locations); + checkUnnamed1405(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed1384(o.properties); + checkUnnamed1406(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed1385() { +buildUnnamed1407() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed1385(core.List<api.Landmark> o) { +checkUnnamed1407(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 = buildUnnamed1385(); + o.landmarks = buildUnnamed1407(); 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)); - checkUnnamed1385(o.landmarks); + checkUnnamed1407(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--; } -buildUnnamed1386() { +buildUnnamed1408() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1386(core.List<core.String> o) { +checkUnnamed1408(core.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 = buildUnnamed1386(); + o.languageHints = buildUnnamed1408(); o.latLongRect = buildLatLongRect(); } buildCounterImageContext--; @@ -552,7 +552,7 @@ checkImageContext(api.ImageContext o) { buildCounterImageContext++; if (buildCounterImageContext < 3) { - checkUnnamed1386(o.languageHints); + checkUnnamed1408(o.languageHints); checkLatLongRect(o.latLongRect); } buildCounterImageContext--; @@ -747,30 +747,30 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed1387() { +buildUnnamed1409() { 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; } -checkUnnamed1387(core.Map<core.String, core.Object> o) { +checkUnnamed1409(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')); } -buildUnnamed1388() { +buildUnnamed1410() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1387()); - o.add(buildUnnamed1387()); + o.add(buildUnnamed1409()); + o.add(buildUnnamed1409()); return o; } -checkUnnamed1388(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1410(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1387(o[0]); - checkUnnamed1387(o[1]); + checkUnnamed1409(o[0]); + checkUnnamed1409(o[1]); } core.int buildCounterStatus = 0; @@ -779,7 +779,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1388(); + o.details = buildUnnamed1410(); o.message = "foo"; } buildCounterStatus--; @@ -790,7 +790,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1388(o.details); + checkUnnamed1410(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 dc371d7..17c3071 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); } -buildUnnamed1870() { +buildUnnamed1885() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1870(core.Map<core.String, core.String> o) { +checkUnnamed1885(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')); } -buildUnnamed1871() { +buildUnnamed1886() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1871(core.List<core.String> o) { +checkUnnamed1886(core.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() { +buildUnnamed1887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1872(core.List<core.String> o) { +checkUnnamed1887(core.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 = buildUnnamed1870(); + o.files = buildUnnamed1885(); o.kind = "foo"; o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1871(); - o.variants = buildUnnamed1872(); + o.subsets = buildUnnamed1886(); + o.variants = buildUnnamed1887(); 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')); - checkUnnamed1870(o.files); + checkUnnamed1885(o.files); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastModified, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1871(o.subsets); - checkUnnamed1872(o.variants); + checkUnnamed1886(o.subsets); + checkUnnamed1887(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1873() { +buildUnnamed1888() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1873(core.List<api.Webfont> o) { +checkUnnamed1888(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 = buildUnnamed1873(); + o.items = buildUnnamed1888(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +151,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1873(o.items); + checkUnnamed1888(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 a2960f7..0c48092 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); } -buildUnnamed797() { +buildUnnamed821() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed797(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')); @@ -72,7 +72,7 @@ o.clicks = 42.0; o.ctr = 42.0; o.impressions = 42.0; - o.keys = buildUnnamed797(); + o.keys = buildUnnamed821(); 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)); - checkUnnamed797(o.keys); + checkUnnamed821(o.keys); unittest.expect(o.position, unittest.equals(42.0)); } buildCounterApiDataRow--; @@ -114,14 +114,14 @@ buildCounterApiDimensionFilter--; } -buildUnnamed798() { +buildUnnamed822() { var o = new core.List<api.ApiDimensionFilter>(); o.add(buildApiDimensionFilter()); o.add(buildApiDimensionFilter()); return o; } -checkUnnamed798(core.List<api.ApiDimensionFilter> o) { +checkUnnamed822(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 = buildUnnamed798(); + o.filters = buildUnnamed822(); o.groupType = "foo"; } buildCounterApiDimensionFilterGroup--; @@ -142,33 +142,33 @@ checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { buildCounterApiDimensionFilterGroup++; if (buildCounterApiDimensionFilterGroup < 3) { - checkUnnamed798(o.filters); + checkUnnamed822(o.filters); unittest.expect(o.groupType, unittest.equals('foo')); } buildCounterApiDimensionFilterGroup--; } -buildUnnamed799() { +buildUnnamed823() { var o = new core.List<api.ApiDimensionFilterGroup>(); o.add(buildApiDimensionFilterGroup()); o.add(buildApiDimensionFilterGroup()); return o; } -checkUnnamed799(core.List<api.ApiDimensionFilterGroup> o) { +checkUnnamed823(core.List<api.ApiDimensionFilterGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkApiDimensionFilterGroup(o[0]); checkApiDimensionFilterGroup(o[1]); } -buildUnnamed800() { +buildUnnamed824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed800(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')); @@ -180,8 +180,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { o.aggregationType = "foo"; - o.dimensionFilterGroups = buildUnnamed799(); - o.dimensions = buildUnnamed800(); + o.dimensionFilterGroups = buildUnnamed823(); + o.dimensions = buildUnnamed824(); o.endDate = "foo"; o.rowLimit = 42; o.searchType = "foo"; @@ -196,8 +196,8 @@ buildCounterSearchAnalyticsQueryRequest++; if (buildCounterSearchAnalyticsQueryRequest < 3) { unittest.expect(o.aggregationType, unittest.equals('foo')); - checkUnnamed799(o.dimensionFilterGroups); - checkUnnamed800(o.dimensions); + checkUnnamed823(o.dimensionFilterGroups); + checkUnnamed824(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--; } -buildUnnamed801() { +buildUnnamed825() { var o = new core.List<api.ApiDataRow>(); o.add(buildApiDataRow()); o.add(buildApiDataRow()); return o; } -checkUnnamed801(core.List<api.ApiDataRow> o) { +checkUnnamed825(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 = buildUnnamed801(); + o.rows = buildUnnamed825(); } buildCounterSearchAnalyticsQueryResponse--; return o; @@ -236,19 +236,19 @@ buildCounterSearchAnalyticsQueryResponse++; if (buildCounterSearchAnalyticsQueryResponse < 3) { unittest.expect(o.responseAggregationType, unittest.equals('foo')); - checkUnnamed801(o.rows); + checkUnnamed825(o.rows); } buildCounterSearchAnalyticsQueryResponse--; } -buildUnnamed802() { +buildUnnamed826() { var o = new core.List<api.WmxSitemap>(); o.add(buildWmxSitemap()); o.add(buildWmxSitemap()); return o; } -checkUnnamed802(core.List<api.WmxSitemap> o) { +checkUnnamed826(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 = buildUnnamed802(); + o.sitemap = buildUnnamed826(); } buildCounterSitemapsListResponse--; return o; @@ -268,19 +268,19 @@ checkSitemapsListResponse(api.SitemapsListResponse o) { buildCounterSitemapsListResponse++; if (buildCounterSitemapsListResponse < 3) { - checkUnnamed802(o.sitemap); + checkUnnamed826(o.sitemap); } buildCounterSitemapsListResponse--; } -buildUnnamed803() { +buildUnnamed827() { var o = new core.List<api.WmxSite>(); o.add(buildWmxSite()); o.add(buildWmxSite()); return o; } -checkUnnamed803(core.List<api.WmxSite> o) { +checkUnnamed827(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 = buildUnnamed803(); + o.siteEntry = buildUnnamed827(); } buildCounterSitesListResponse--; return o; @@ -300,7 +300,7 @@ checkSitesListResponse(api.SitesListResponse o) { buildCounterSitesListResponse++; if (buildCounterSitesListResponse < 3) { - checkUnnamed803(o.siteEntry); + checkUnnamed827(o.siteEntry); } buildCounterSitesListResponse--; } @@ -326,14 +326,14 @@ buildCounterUrlCrawlErrorCount--; } -buildUnnamed804() { +buildUnnamed828() { var o = new core.List<api.UrlCrawlErrorCount>(); o.add(buildUrlCrawlErrorCount()); o.add(buildUrlCrawlErrorCount()); return o; } -checkUnnamed804(core.List<api.UrlCrawlErrorCount> o) { +checkUnnamed828(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 = buildUnnamed804(); + o.entries = buildUnnamed828(); o.platform = "foo"; } buildCounterUrlCrawlErrorCountsPerType--; @@ -356,20 +356,20 @@ buildCounterUrlCrawlErrorCountsPerType++; if (buildCounterUrlCrawlErrorCountsPerType < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed804(o.entries); + checkUnnamed828(o.entries); unittest.expect(o.platform, unittest.equals('foo')); } buildCounterUrlCrawlErrorCountsPerType--; } -buildUnnamed805() { +buildUnnamed829() { var o = new core.List<api.UrlCrawlErrorCountsPerType>(); o.add(buildUrlCrawlErrorCountsPerType()); o.add(buildUrlCrawlErrorCountsPerType()); return o; } -checkUnnamed805(core.List<api.UrlCrawlErrorCountsPerType> o) { +checkUnnamed829(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 = buildUnnamed805(); + o.countPerTypes = buildUnnamed829(); } buildCounterUrlCrawlErrorsCountsQueryResponse--; return o; @@ -389,7 +389,7 @@ checkUrlCrawlErrorsCountsQueryResponse(api.UrlCrawlErrorsCountsQueryResponse o) { buildCounterUrlCrawlErrorsCountsQueryResponse++; if (buildCounterUrlCrawlErrorsCountsQueryResponse < 3) { - checkUnnamed805(o.countPerTypes); + checkUnnamed829(o.countPerTypes); } buildCounterUrlCrawlErrorsCountsQueryResponse--; } @@ -421,14 +421,14 @@ buildCounterUrlCrawlErrorsSample--; } -buildUnnamed806() { +buildUnnamed830() { var o = new core.List<api.UrlCrawlErrorsSample>(); o.add(buildUrlCrawlErrorsSample()); o.add(buildUrlCrawlErrorsSample()); return o; } -checkUnnamed806(core.List<api.UrlCrawlErrorsSample> o) { +checkUnnamed830(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 = buildUnnamed806(); + o.urlCrawlErrorSample = buildUnnamed830(); } buildCounterUrlCrawlErrorsSamplesListResponse--; return o; @@ -448,32 +448,32 @@ checkUrlCrawlErrorsSamplesListResponse(api.UrlCrawlErrorsSamplesListResponse o) { buildCounterUrlCrawlErrorsSamplesListResponse++; if (buildCounterUrlCrawlErrorsSamplesListResponse < 3) { - checkUnnamed806(o.urlCrawlErrorSample); + checkUnnamed830(o.urlCrawlErrorSample); } buildCounterUrlCrawlErrorsSamplesListResponse--; } -buildUnnamed807() { +buildUnnamed831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed807(core.List<core.String> o) { +checkUnnamed831(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed808() { +buildUnnamed832() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed808(core.List<core.String> o) { +checkUnnamed832(core.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 = buildUnnamed807(); - o.linkedFromUrls = buildUnnamed808(); + o.containingSitemaps = buildUnnamed831(); + o.linkedFromUrls = buildUnnamed832(); } buildCounterUrlSampleDetails--; return o; @@ -494,8 +494,8 @@ checkUrlSampleDetails(api.UrlSampleDetails o) { buildCounterUrlSampleDetails++; if (buildCounterUrlSampleDetails < 3) { - checkUnnamed807(o.containingSitemaps); - checkUnnamed808(o.linkedFromUrls); + checkUnnamed831(o.containingSitemaps); + checkUnnamed832(o.linkedFromUrls); } buildCounterUrlSampleDetails--; } @@ -521,14 +521,14 @@ buildCounterWmxSite--; } -buildUnnamed809() { +buildUnnamed833() { var o = new core.List<api.WmxSitemapContent>(); o.add(buildWmxSitemapContent()); o.add(buildWmxSitemapContent()); return o; } -checkUnnamed809(core.List<api.WmxSitemapContent> o) { +checkUnnamed833(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 = buildUnnamed809(); + o.contents = buildUnnamed833(); o.errors = "foo"; o.isPending = true; o.isSitemapsIndex = true; @@ -556,7 +556,7 @@ checkWmxSitemap(api.WmxSitemap o) { buildCounterWmxSitemap++; if (buildCounterWmxSitemap < 3) { - checkUnnamed809(o.contents); + checkUnnamed833(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 b90b911..8dec852 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); } -buildUnnamed713() { +buildUnnamed737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed713(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')); @@ -70,7 +70,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed713(); + o.exception = buildUnnamed737(); } buildCounterAccessPolicy--; return o; @@ -80,7 +80,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed713(o.exception); + checkUnnamed737(o.exception); } buildCounterAccessPolicy--; } @@ -269,27 +269,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed714() { +buildUnnamed738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed714(core.List<core.String> o) { +checkUnnamed738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed715() { +buildUnnamed739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed715(core.List<core.String> o) { +checkUnnamed739(core.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 = buildUnnamed714(); - o.impressionUrl = buildUnnamed715(); + o.forecastingUrl = buildUnnamed738(); + o.impressionUrl = buildUnnamed739(); 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')); - checkUnnamed714(o.forecastingUrl); - checkUnnamed715(o.impressionUrl); + checkUnnamed738(o.forecastingUrl); + checkUnnamed739(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -420,14 +420,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed716() { +buildUnnamed740() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed716(core.List<api.Activity> o) { +checkUnnamed740(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 = buildUnnamed716(); + o.items = buildUnnamed740(); 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')); - checkUnnamed716(o.items); + checkUnnamed740(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -526,14 +526,14 @@ buildCounterCaption--; } -buildUnnamed717() { +buildUnnamed741() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed717(core.List<api.Caption> o) { +checkUnnamed741(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 = buildUnnamed717(); + o.items = buildUnnamed741(); 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')); - checkUnnamed717(o.items); + checkUnnamed741(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -636,14 +636,14 @@ buildCounterCdnSettings--; } -buildUnnamed718() { +buildUnnamed742() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed718(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed742(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 = buildUnnamed718(); + o.localizations = buildUnnamed742(); 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')); - checkUnnamed718(o.localizations); + checkUnnamed742(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -742,14 +742,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed719() { +buildUnnamed743() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed719(core.List<api.PropertyValue> o) { +checkUnnamed743(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 = buildUnnamed719(); + o.hints = buildUnnamed743(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -773,7 +773,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed719(o.hints); + checkUnnamed743(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -812,7 +812,6 @@ var o = new api.ChannelContentDetails(); buildCounterChannelContentDetails++; if (buildCounterChannelContentDetails < 3) { - o.googlePlusUserId = "foo"; o.relatedPlaylists = buildChannelContentDetailsRelatedPlaylists(); } buildCounterChannelContentDetails--; @@ -822,7 +821,6 @@ checkChannelContentDetails(api.ChannelContentDetails o) { buildCounterChannelContentDetails++; if (buildCounterChannelContentDetails < 3) { - unittest.expect(o.googlePlusUserId, unittest.equals('foo')); checkChannelContentDetailsRelatedPlaylists(o.relatedPlaylists); } buildCounterChannelContentDetails--; @@ -870,14 +868,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed720() { +buildUnnamed744() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed720(core.List<api.ChannelConversionPing> o) { +checkUnnamed744(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -888,7 +886,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed720(); + o.pings = buildUnnamed744(); } buildCounterChannelConversionPings--; return o; @@ -897,19 +895,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed720(o.pings); + checkUnnamed744(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed721() { +buildUnnamed745() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed721(core.List<api.Channel> o) { +checkUnnamed745(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -922,7 +920,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed721(); + o.items = buildUnnamed745(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -939,7 +937,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed721(o.items); + checkUnnamed745(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -996,14 +994,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed722() { +buildUnnamed746() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed722(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed746(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1018,7 +1016,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed722(); + o.localizations = buildUnnamed746(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1033,34 +1031,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed722(o.localizations); + checkUnnamed746(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed723() { +buildUnnamed747() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed723(core.List<core.String> o) { +checkUnnamed747(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed724() { +buildUnnamed748() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed724(core.List<core.String> o) { +checkUnnamed748(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1071,8 +1069,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed723(); - o.playlists = buildUnnamed724(); + o.channels = buildUnnamed747(); + o.playlists = buildUnnamed748(); } buildCounterChannelSectionContentDetails--; return o; @@ -1081,20 +1079,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed723(o.channels); - checkUnnamed724(o.playlists); + checkUnnamed747(o.channels); + checkUnnamed748(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed725() { +buildUnnamed749() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed725(core.List<api.ChannelSection> o) { +checkUnnamed749(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1107,7 +1105,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed725(); + o.items = buildUnnamed749(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1120,7 +1118,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed725(o.items); + checkUnnamed749(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1177,40 +1175,40 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed726() { +buildUnnamed750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed726(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')); } -buildUnnamed727() { +buildUnnamed751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed727(core.List<core.String> o) { +checkUnnamed751(core.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() { +buildUnnamed752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed728(core.List<core.String> o) { +checkUnnamed752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1221,9 +1219,9 @@ var o = new api.ChannelSectionTargeting(); buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed726(); - o.languages = buildUnnamed727(); - o.regions = buildUnnamed728(); + o.countries = buildUnnamed750(); + o.languages = buildUnnamed751(); + o.regions = buildUnnamed752(); } buildCounterChannelSectionTargeting--; return o; @@ -1232,21 +1230,21 @@ checkChannelSectionTargeting(api.ChannelSectionTargeting o) { buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed726(o.countries); - checkUnnamed727(o.languages); - checkUnnamed728(o.regions); + checkUnnamed750(o.countries); + checkUnnamed751(o.languages); + checkUnnamed752(o.regions); } buildCounterChannelSectionTargeting--; } -buildUnnamed729() { +buildUnnamed753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed729(core.List<core.String> o) { +checkUnnamed753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1262,7 +1260,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed729(); + o.featuredChannelsUrls = buildUnnamed753(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1284,7 +1282,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed729(o.featuredChannelsUrls); + checkUnnamed753(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1380,14 +1378,14 @@ buildCounterChannelStatus--; } -buildUnnamed730() { +buildUnnamed754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed730(core.List<core.String> o) { +checkUnnamed754(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1398,7 +1396,7 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicIds = buildUnnamed730(); + o.topicIds = buildUnnamed754(); } buildCounterChannelTopicDetails--; return o; @@ -1407,7 +1405,7 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed730(o.topicIds); + checkUnnamed754(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1437,14 +1435,14 @@ buildCounterComment--; } -buildUnnamed731() { +buildUnnamed755() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed731(core.List<api.Comment> o) { +checkUnnamed755(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1457,7 +1455,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed731(); + o.items = buildUnnamed755(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1473,7 +1471,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed731(o.items); + checkUnnamed755(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1491,7 +1489,6 @@ o.authorChannelId = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; o.authorChannelUrl = "foo"; o.authorDisplayName = "foo"; - o.authorGoogleplusProfileUrl = "foo"; o.authorProfileImageUrl = "foo"; o.canRate = true; o.channelId = "foo"; @@ -1515,7 +1512,6 @@ var casted1 = (o.authorChannelId) 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')); unittest.expect(o.authorChannelUrl, unittest.equals('foo')); unittest.expect(o.authorDisplayName, unittest.equals('foo')); - unittest.expect(o.authorGoogleplusProfileUrl, unittest.equals('foo')); unittest.expect(o.authorProfileImageUrl, unittest.equals('foo')); unittest.expect(o.canRate, unittest.isTrue); unittest.expect(o.channelId, unittest.equals('foo')); @@ -1559,14 +1555,14 @@ buildCounterCommentThread--; } -buildUnnamed732() { +buildUnnamed756() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed732(core.List<api.CommentThread> o) { +checkUnnamed756(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1579,7 +1575,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed732(); + o.items = buildUnnamed756(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1595,7 +1591,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed732(o.items); + checkUnnamed756(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1605,14 +1601,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed733() { +buildUnnamed757() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed733(core.List<api.Comment> o) { +checkUnnamed757(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1623,7 +1619,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed733(); + o.comments = buildUnnamed757(); } buildCounterCommentThreadReplies--; return o; @@ -1632,7 +1628,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed733(o.comments); + checkUnnamed757(o.comments); } buildCounterCommentThreadReplies--; } @@ -1666,27 +1662,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed734() { +buildUnnamed758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed734(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')); } -buildUnnamed735() { +buildUnnamed759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed735(core.List<core.String> o) { +checkUnnamed759(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1717,7 +1713,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed734(); + o.djctqRatingReasons = buildUnnamed758(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1726,7 +1722,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed735(); + o.fpbRatingReasons = buildUnnamed759(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1792,7 +1788,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed734(o.djctqRatingReasons); + checkUnnamed758(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1801,7 +1797,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed735(o.fpbRatingReasons); + checkUnnamed759(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1868,14 +1864,14 @@ buildCounterFanFundingEvent--; } -buildUnnamed736() { +buildUnnamed760() { var o = new core.List<api.FanFundingEvent>(); o.add(buildFanFundingEvent()); o.add(buildFanFundingEvent()); return o; } -checkUnnamed736(core.List<api.FanFundingEvent> o) { +checkUnnamed760(core.List<api.FanFundingEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkFanFundingEvent(o[0]); checkFanFundingEvent(o[1]); @@ -1888,7 +1884,7 @@ if (buildCounterFanFundingEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed736(); + o.items = buildUnnamed760(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1904,7 +1900,7 @@ if (buildCounterFanFundingEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed736(o.items); + checkUnnamed760(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1993,14 +1989,14 @@ buildCounterGuideCategory--; } -buildUnnamed737() { +buildUnnamed761() { var o = new core.List<api.GuideCategory>(); o.add(buildGuideCategory()); o.add(buildGuideCategory()); return o; } -checkUnnamed737(core.List<api.GuideCategory> o) { +checkUnnamed761(core.List<api.GuideCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkGuideCategory(o[0]); checkGuideCategory(o[1]); @@ -2013,7 +2009,7 @@ if (buildCounterGuideCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed737(); + o.items = buildUnnamed761(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2030,7 +2026,7 @@ if (buildCounterGuideCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed737(o.items); + checkUnnamed761(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2087,14 +2083,14 @@ buildCounterI18nLanguage--; } -buildUnnamed738() { +buildUnnamed762() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed738(core.List<api.I18nLanguage> o) { +checkUnnamed762(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2107,7 +2103,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed738(); + o.items = buildUnnamed762(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2120,7 +2116,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed738(o.items); + checkUnnamed762(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2173,14 +2169,14 @@ buildCounterI18nRegion--; } -buildUnnamed739() { +buildUnnamed763() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed739(core.List<api.I18nRegion> o) { +checkUnnamed763(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2193,7 +2189,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed739(); + o.items = buildUnnamed763(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2206,7 +2202,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed739(o.items); + checkUnnamed763(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2366,14 +2362,14 @@ buildCounterInvideoPosition--; } -buildUnnamed740() { +buildUnnamed764() { var o = new core.List<api.PromotedItem>(); o.add(buildPromotedItem()); o.add(buildPromotedItem()); return o; } -checkUnnamed740(core.List<api.PromotedItem> o) { +checkUnnamed764(core.List<api.PromotedItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotedItem(o[0]); checkPromotedItem(o[1]); @@ -2385,7 +2381,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed740(); + o.items = buildUnnamed764(); o.position = buildInvideoPosition(); o.useSmartTiming = true; } @@ -2397,7 +2393,7 @@ buildCounterInvideoPromotion++; if (buildCounterInvideoPromotion < 3) { checkInvideoTiming(o.defaultTiming); - checkUnnamed740(o.items); + checkUnnamed764(o.items); checkInvideoPosition(o.position); unittest.expect(o.useSmartTiming, unittest.isTrue); } @@ -2520,14 +2516,14 @@ buildCounterLiveBroadcastContentDetails--; } -buildUnnamed741() { +buildUnnamed765() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed741(core.List<api.LiveBroadcast> o) { +checkUnnamed765(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2540,7 +2536,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed741(); + o.items = buildUnnamed765(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2557,7 +2553,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed741(o.items); + checkUnnamed765(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2676,14 +2672,14 @@ buildCounterLiveBroadcastTopic--; } -buildUnnamed742() { +buildUnnamed766() { var o = new core.List<api.LiveBroadcastTopic>(); o.add(buildLiveBroadcastTopic()); o.add(buildLiveBroadcastTopic()); return o; } -checkUnnamed742(core.List<api.LiveBroadcastTopic> o) { +checkUnnamed766(core.List<api.LiveBroadcastTopic> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcastTopic(o[0]); checkLiveBroadcastTopic(o[1]); @@ -2694,7 +2690,7 @@ var o = new api.LiveBroadcastTopicDetails(); buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - o.topics = buildUnnamed742(); + o.topics = buildUnnamed766(); } buildCounterLiveBroadcastTopicDetails--; return o; @@ -2703,7 +2699,7 @@ checkLiveBroadcastTopicDetails(api.LiveBroadcastTopicDetails o) { buildCounterLiveBroadcastTopicDetails++; if (buildCounterLiveBroadcastTopicDetails < 3) { - checkUnnamed742(o.topics); + checkUnnamed766(o.topics); } buildCounterLiveBroadcastTopicDetails--; } @@ -2883,14 +2879,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed743() { +buildUnnamed767() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed743(core.List<api.LiveChatMessage> o) { +checkUnnamed767(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2903,7 +2899,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed743(); + o.items = buildUnnamed767(); o.kind = "foo"; o.nextPageToken = "foo"; o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2921,7 +2917,7 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed743(o.items); + checkUnnamed767(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"))); @@ -3024,14 +3020,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed744() { +buildUnnamed768() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed744(core.List<api.LiveChatModerator> o) { +checkUnnamed768(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -3044,7 +3040,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed744(); + o.items = buildUnnamed768(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3061,7 +3057,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed744(o.items); + checkUnnamed768(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3112,14 +3108,14 @@ buildCounterLiveChatPollClosedDetails--; } -buildUnnamed745() { +buildUnnamed769() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed745(core.List<api.LiveChatPollItem> o) { +checkUnnamed769(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3131,7 +3127,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed745(); + o.items = buildUnnamed769(); o.prompt = "foo"; } buildCounterLiveChatPollEditedDetails--; @@ -3142,7 +3138,7 @@ buildCounterLiveChatPollEditedDetails++; if (buildCounterLiveChatPollEditedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed745(o.items); + checkUnnamed769(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollEditedDetails--; @@ -3169,14 +3165,14 @@ buildCounterLiveChatPollItem--; } -buildUnnamed746() { +buildUnnamed770() { var o = new core.List<api.LiveChatPollItem>(); o.add(buildLiveChatPollItem()); o.add(buildLiveChatPollItem()); return o; } -checkUnnamed746(core.List<api.LiveChatPollItem> o) { +checkUnnamed770(core.List<api.LiveChatPollItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatPollItem(o[0]); checkLiveChatPollItem(o[1]); @@ -3188,7 +3184,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { o.id = "foo"; - o.items = buildUnnamed746(); + o.items = buildUnnamed770(); o.prompt = "foo"; } buildCounterLiveChatPollOpenedDetails--; @@ -3199,7 +3195,7 @@ buildCounterLiveChatPollOpenedDetails++; if (buildCounterLiveChatPollOpenedDetails < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed746(o.items); + checkUnnamed770(o.items); unittest.expect(o.prompt, unittest.equals('foo')); } buildCounterLiveChatPollOpenedDetails--; @@ -3345,14 +3341,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed747() { +buildUnnamed771() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed747(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed771(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3363,7 +3359,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed747(); + o.configurationIssues = buildUnnamed771(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3374,21 +3370,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed747(o.configurationIssues); + checkUnnamed771(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed748() { +buildUnnamed772() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed748(core.List<api.LiveStream> o) { +checkUnnamed772(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3401,7 +3397,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed748(); + o.items = buildUnnamed772(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3418,7 +3414,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed748(o.items); + checkUnnamed772(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3477,14 +3473,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed749() { +buildUnnamed773() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed749(core.List<api.LocalizedString> o) { +checkUnnamed773(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3497,7 +3493,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed749(); + o.localized = buildUnnamed773(); } buildCounterLocalizedProperty--; return o; @@ -3508,7 +3504,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed749(o.localized); + checkUnnamed773(o.localized); } buildCounterLocalizedProperty--; } @@ -3578,14 +3574,14 @@ buildCounterPageInfo--; } -buildUnnamed750() { +buildUnnamed774() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed750(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed774(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3600,7 +3596,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed750(); + o.localizations = buildUnnamed774(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3616,7 +3612,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed750(o.localizations); + checkUnnamed774(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3697,14 +3693,14 @@ buildCounterPlaylistItemContentDetails--; } -buildUnnamed751() { +buildUnnamed775() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed751(core.List<api.PlaylistItem> o) { +checkUnnamed775(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3717,7 +3713,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed751(); + o.items = buildUnnamed775(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3734,7 +3730,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed751(o.items); + checkUnnamed775(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3799,14 +3795,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed752() { +buildUnnamed776() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed752(core.List<api.Playlist> o) { +checkUnnamed776(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -3819,7 +3815,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed752(); + o.items = buildUnnamed776(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3836,7 +3832,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed752(o.items); + checkUnnamed776(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3887,14 +3883,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed753() { +buildUnnamed777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed753(core.List<core.String> o) { +checkUnnamed777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3911,7 +3907,7 @@ o.description = "foo"; o.localized = buildPlaylistLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed753(); + o.tags = buildUnnamed777(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -3928,7 +3924,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"))); - checkUnnamed753(o.tags); + checkUnnamed777(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4050,14 +4046,14 @@ buildCounterResourceId--; } -buildUnnamed754() { +buildUnnamed778() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed754(core.List<api.SearchResult> o) { +checkUnnamed778(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4070,7 +4066,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed754(); + o.items = buildUnnamed778(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4088,7 +4084,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed754(o.items); + checkUnnamed778(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4181,14 +4177,14 @@ buildCounterSponsor--; } -buildUnnamed755() { +buildUnnamed779() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed755(core.List<api.Sponsor> o) { +checkUnnamed779(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4201,7 +4197,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed755(); + o.items = buildUnnamed779(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4217,7 +4213,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed755(o.items); + checkUnnamed779(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4302,14 +4298,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed756() { +buildUnnamed780() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed756(core.List<api.Subscription> o) { +checkUnnamed780(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4322,7 +4318,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed756(); + o.items = buildUnnamed780(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4339,7 +4335,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed756(o.items); + checkUnnamed780(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4456,14 +4452,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed757() { +buildUnnamed781() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed757(core.List<api.ThumbnailDetails> o) { +checkUnnamed781(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4476,7 +4472,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed757(); + o.items = buildUnnamed781(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4489,7 +4485,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed757(o.items); + checkUnnamed781(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4513,14 +4509,14 @@ buildCounterTokenPagination--; } -buildUnnamed758() { +buildUnnamed782() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed758(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed782(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4538,7 +4534,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed758(); + o.localizations = buildUnnamed782(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4564,7 +4560,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed758(o.localizations); + checkUnnamed782(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -4631,14 +4627,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed759() { +buildUnnamed783() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed759(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed783(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -4651,7 +4647,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed759(); + o.items = buildUnnamed783(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4664,21 +4660,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed759(o.items); + checkUnnamed783(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed760() { +buildUnnamed784() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed760(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed784(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -4690,7 +4686,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed760(); + o.secondaryReasons = buildUnnamed784(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -4700,7 +4696,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed760(o.secondaryReasons); + checkUnnamed784(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -4774,14 +4770,14 @@ buildCounterVideoCategory--; } -buildUnnamed761() { +buildUnnamed785() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed761(core.List<api.VideoCategory> o) { +checkUnnamed785(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -4794,7 +4790,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed761(); + o.items = buildUnnamed785(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4811,7 +4807,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed761(o.items); + checkUnnamed785(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4856,6 +4852,7 @@ o.definition = "foo"; o.dimension = "foo"; o.duration = "foo"; + o.hasCustomThumbnail = true; o.licensedContent = true; o.projection = "foo"; o.regionRestriction = buildVideoContentDetailsRegionRestriction(); @@ -4873,6 +4870,7 @@ unittest.expect(o.definition, unittest.equals('foo')); unittest.expect(o.dimension, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals('foo')); + unittest.expect(o.hasCustomThumbnail, unittest.isTrue); unittest.expect(o.licensedContent, unittest.isTrue); unittest.expect(o.projection, unittest.equals('foo')); checkVideoContentDetailsRegionRestriction(o.regionRestriction); @@ -4880,27 +4878,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed762() { +buildUnnamed786() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed762(core.List<core.String> o) { +checkUnnamed786(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed763() { +buildUnnamed787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed763(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')); @@ -4911,8 +4909,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed762(); - o.blocked = buildUnnamed763(); + o.allowed = buildUnnamed786(); + o.blocked = buildUnnamed787(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -4921,33 +4919,33 @@ checkVideoContentDetailsRegionRestriction(api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed762(o.allowed); - checkUnnamed763(o.blocked); + checkUnnamed786(o.allowed); + checkUnnamed787(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed764() { +buildUnnamed788() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed764(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed788(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed765() { +buildUnnamed789() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed765(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed789(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -4958,7 +4956,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed764(); + o.audioStreams = buildUnnamed788(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -4966,8 +4964,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.recordingLocation = buildGeoPoint(); - o.videoStreams = buildUnnamed765(); + o.videoStreams = buildUnnamed789(); } buildCounterVideoFileDetails--; return o; @@ -4976,7 +4973,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed764(o.audioStreams); + checkUnnamed788(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -4984,8 +4981,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkGeoPoint(o.recordingLocation); - checkUnnamed765(o.videoStreams); + checkUnnamed789(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5048,14 +5044,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed766() { +buildUnnamed790() { var o = new core.List<api.VideoRating>(); o.add(buildVideoRating()); o.add(buildVideoRating()); return o; } -checkUnnamed766(core.List<api.VideoRating> o) { +checkUnnamed790(core.List<api.VideoRating> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoRating(o[0]); checkVideoRating(o[1]); @@ -5068,7 +5064,7 @@ if (buildCounterVideoGetRatingResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed766(); + o.items = buildUnnamed790(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5081,21 +5077,21 @@ if (buildCounterVideoGetRatingResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed766(o.items); + checkUnnamed790(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoGetRatingResponse--; } -buildUnnamed767() { +buildUnnamed791() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed767(core.List<api.Video> o) { +checkUnnamed791(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5108,7 +5104,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed767(); + o.items = buildUnnamed791(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5125,7 +5121,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed767(o.items); + checkUnnamed791(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5210,7 +5206,9 @@ var o = new api.VideoPlayer(); buildCounterVideoPlayer++; if (buildCounterVideoPlayer < 3) { + o.embedHeight = "foo"; o.embedHtml = "foo"; + o.embedWidth = "foo"; } buildCounterVideoPlayer--; return o; @@ -5219,7 +5217,9 @@ checkVideoPlayer(api.VideoPlayer o) { buildCounterVideoPlayer++; if (buildCounterVideoPlayer < 3) { + unittest.expect(o.embedHeight, unittest.equals('foo')); unittest.expect(o.embedHtml, unittest.equals('foo')); + unittest.expect(o.embedWidth, unittest.equals('foo')); } buildCounterVideoPlayer--; } @@ -5280,14 +5280,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed768() { +buildUnnamed792() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed768(core.List<core.String> o) { +checkUnnamed792(core.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 +5298,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed768(); + o.tags = buildUnnamed792(); } buildCounterVideoProjectDetails--; return o; @@ -5307,7 +5307,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed768(o.tags); + checkUnnamed792(o.tags); } buildCounterVideoProjectDetails--; } @@ -5356,14 +5356,14 @@ buildCounterVideoRecordingDetails--; } -buildUnnamed769() { +buildUnnamed793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed769(core.List<core.String> o) { +checkUnnamed793(core.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 +5383,7 @@ o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed769(); + o.tags = buildUnnamed793(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5403,7 +5403,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"))); - checkUnnamed769(o.tags); + checkUnnamed793(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5470,66 +5470,66 @@ buildCounterVideoStatus--; } -buildUnnamed770() { +buildUnnamed794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed770(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')); } -buildUnnamed771() { +buildUnnamed795() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed771(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')); } -buildUnnamed772() { +buildUnnamed796() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed772(core.List<core.String> o) { +checkUnnamed796(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed773() { +buildUnnamed797() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed773(core.List<core.String> o) { +checkUnnamed797(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed774() { +buildUnnamed798() { var o = new core.List<api.VideoSuggestionsTagSuggestion>(); o.add(buildVideoSuggestionsTagSuggestion()); o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed774(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed798(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoSuggestionsTagSuggestion(o[0]); checkVideoSuggestionsTagSuggestion(o[1]); @@ -5540,11 +5540,11 @@ var o = new api.VideoSuggestions(); buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed770(); - o.processingErrors = buildUnnamed771(); - o.processingHints = buildUnnamed772(); - o.processingWarnings = buildUnnamed773(); - o.tagSuggestions = buildUnnamed774(); + o.editorSuggestions = buildUnnamed794(); + o.processingErrors = buildUnnamed795(); + o.processingHints = buildUnnamed796(); + o.processingWarnings = buildUnnamed797(); + o.tagSuggestions = buildUnnamed798(); } buildCounterVideoSuggestions--; return o; @@ -5553,23 +5553,23 @@ checkVideoSuggestions(api.VideoSuggestions o) { buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - checkUnnamed770(o.editorSuggestions); - checkUnnamed771(o.processingErrors); - checkUnnamed772(o.processingHints); - checkUnnamed773(o.processingWarnings); - checkUnnamed774(o.tagSuggestions); + checkUnnamed794(o.editorSuggestions); + checkUnnamed795(o.processingErrors); + checkUnnamed796(o.processingHints); + checkUnnamed797(o.processingWarnings); + checkUnnamed798(o.tagSuggestions); } buildCounterVideoSuggestions--; } -buildUnnamed775() { +buildUnnamed799() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed775(core.List<core.String> o) { +checkUnnamed799(core.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 +5580,7 @@ var o = new api.VideoSuggestionsTagSuggestion(); buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed775(); + o.categoryRestricts = buildUnnamed799(); o.tag = "foo"; } buildCounterVideoSuggestionsTagSuggestion--; @@ -5590,33 +5590,33 @@ checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed775(o.categoryRestricts); + checkUnnamed799(o.categoryRestricts); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterVideoSuggestionsTagSuggestion--; } -buildUnnamed776() { +buildUnnamed800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed776(core.List<core.String> o) { +checkUnnamed800(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed777() { +buildUnnamed801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed777(core.List<core.String> o) { +checkUnnamed801(core.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 +5627,8 @@ var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed776(); - o.topicIds = buildUnnamed777(); + o.relevantTopicIds = buildUnnamed800(); + o.topicIds = buildUnnamed801(); } buildCounterVideoTopicDetails--; return o; @@ -5637,8 +5637,8 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed776(o.relevantTopicIds); - checkUnnamed777(o.topicIds); + checkUnnamed800(o.relevantTopicIds); + checkUnnamed801(o.topicIds); } buildCounterVideoTopicDetails--; } @@ -9760,6 +9760,7 @@ var mock = new HttpServerMock(); api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_id = "foo"; + var arg_onBehalfOfContentOwner = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -9789,6 +9790,7 @@ } } unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); var h = { @@ -9797,7 +9799,7 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.delete(arg_id).then(unittest.expectAsync((_) {})); + res.delete(arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync((_) {})); }); unittest.test("method--insert", () { @@ -9918,6 +9920,7 @@ api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_request = buildPlaylistItem(); var arg_part = "foo"; + var arg_onBehalfOfContentOwner = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.PlaylistItem.fromJson(json); checkPlaylistItem(obj); @@ -9950,6 +9953,7 @@ } } unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); var h = { @@ -9958,7 +9962,7 @@ var resp = convert.JSON.encode(buildPlaylistItem()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_part).then(unittest.expectAsync(((api.PlaylistItem response) { + res.update(arg_request, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner).then(unittest.expectAsync(((api.PlaylistItem response) { checkPlaylistItem(response); }))); }); @@ -10859,7 +10863,9 @@ var arg_hl = "foo"; var arg_id = "foo"; var arg_locale = "foo"; + var arg_maxHeight = 42; var arg_maxResults = 42; + var arg_maxWidth = 42; var arg_myRating = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_pageToken = "foo"; @@ -10898,7 +10904,9 @@ unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(core.int.parse(queryMap["maxHeight"].first), unittest.equals(arg_maxHeight)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["maxWidth"].first), unittest.equals(arg_maxWidth)); unittest.expect(queryMap["myRating"].first, unittest.equals(arg_myRating)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); @@ -10912,7 +10920,7 @@ var resp = convert.JSON.encode(buildVideoListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_locale, maxResults: arg_maxResults, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.VideoListResponse response) { + res.list(arg_part, chart: arg_chart, hl: arg_hl, id: arg_id, locale: arg_locale, maxHeight: arg_maxHeight, maxResults: arg_maxResults, maxWidth: arg_maxWidth, myRating: arg_myRating, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, regionCode: arg_regionCode, videoCategoryId: arg_videoCategoryId).then(unittest.expectAsync(((api.VideoListResponse response) { checkVideoListResponse(response); }))); });
diff --git a/generated/googleapis/test/youtubeanalytics/v1_test.dart b/generated/googleapis/test/youtubeanalytics/v1_test.dart index 4aeb888..25e8afb 100644 --- a/generated/googleapis/test/youtubeanalytics/v1_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v1_test.dart
@@ -74,14 +74,14 @@ buildCounterBatchReportOutputs--; } -buildUnnamed174() { +buildUnnamed189() { var o = new core.List<api.BatchReportOutputs>(); o.add(buildBatchReportOutputs()); o.add(buildBatchReportOutputs()); return o; } -checkUnnamed174(core.List<api.BatchReportOutputs> o) { +checkUnnamed189(core.List<api.BatchReportOutputs> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchReportOutputs(o[0]); checkBatchReportOutputs(o[1]); @@ -115,7 +115,7 @@ if (buildCounterBatchReport < 3) { o.id = "foo"; o.kind = "foo"; - o.outputs = buildUnnamed174(); + o.outputs = buildUnnamed189(); o.reportId = "foo"; o.timeSpan = buildBatchReportTimeSpan(); o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -129,7 +129,7 @@ if (buildCounterBatchReport < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed174(o.outputs); + 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"))); @@ -164,14 +164,14 @@ buildCounterBatchReportDefinition--; } -buildUnnamed175() { +buildUnnamed190() { var o = new core.List<api.BatchReportDefinition>(); o.add(buildBatchReportDefinition()); o.add(buildBatchReportDefinition()); return o; } -checkUnnamed175(core.List<api.BatchReportDefinition> o) { +checkUnnamed190(core.List<api.BatchReportDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchReportDefinition(o[0]); checkBatchReportDefinition(o[1]); @@ -182,7 +182,7 @@ var o = new api.BatchReportDefinitionList(); buildCounterBatchReportDefinitionList++; if (buildCounterBatchReportDefinitionList < 3) { - o.items = buildUnnamed175(); + o.items = buildUnnamed190(); o.kind = "foo"; } buildCounterBatchReportDefinitionList--; @@ -192,20 +192,20 @@ checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { buildCounterBatchReportDefinitionList++; if (buildCounterBatchReportDefinitionList < 3) { - checkUnnamed175(o.items); + checkUnnamed190(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBatchReportDefinitionList--; } -buildUnnamed176() { +buildUnnamed191() { var o = new core.List<api.BatchReport>(); o.add(buildBatchReport()); o.add(buildBatchReport()); return o; } -checkUnnamed176(core.List<api.BatchReport> o) { +checkUnnamed191(core.List<api.BatchReport> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchReport(o[0]); checkBatchReport(o[1]); @@ -216,7 +216,7 @@ var o = new api.BatchReportList(); buildCounterBatchReportList++; if (buildCounterBatchReportList < 3) { - o.items = buildUnnamed176(); + o.items = buildUnnamed191(); o.kind = "foo"; } buildCounterBatchReportList--; @@ -226,7 +226,7 @@ checkBatchReportList(api.BatchReportList o) { buildCounterBatchReportList++; if (buildCounterBatchReportList < 3) { - checkUnnamed176(o.items); + checkUnnamed191(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBatchReportList--; @@ -349,14 +349,14 @@ buildCounterGroupItem--; } -buildUnnamed177() { +buildUnnamed192() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed177(core.List<api.GroupItem> o) { +checkUnnamed192(core.List<api.GroupItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupItem(o[0]); checkGroupItem(o[1]); @@ -368,7 +368,7 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed177(); + o.items = buildUnnamed192(); o.kind = "foo"; } buildCounterGroupItemListResponse--; @@ -379,20 +379,20 @@ buildCounterGroupItemListResponse++; if (buildCounterGroupItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed177(o.items); + checkUnnamed192(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterGroupItemListResponse--; } -buildUnnamed178() { +buildUnnamed193() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed178(core.List<api.Group> o) { +checkUnnamed193(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -404,7 +404,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { o.etag = "foo"; - o.items = buildUnnamed178(); + o.items = buildUnnamed193(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -416,7 +416,7 @@ buildCounterGroupListResponse++; if (buildCounterGroupListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed178(o.items); + checkUnnamed193(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -446,43 +446,43 @@ buildCounterResultTableColumnHeaders--; } -buildUnnamed179() { +buildUnnamed194() { var o = new core.List<api.ResultTableColumnHeaders>(); o.add(buildResultTableColumnHeaders()); o.add(buildResultTableColumnHeaders()); return o; } -checkUnnamed179(core.List<api.ResultTableColumnHeaders> o) { +checkUnnamed194(core.List<api.ResultTableColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeaders(o[0]); checkResultTableColumnHeaders(o[1]); } -buildUnnamed180() { +buildUnnamed195() { 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; } -checkUnnamed180(core.List<core.Object> o) { +checkUnnamed195(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')); } -buildUnnamed181() { +buildUnnamed196() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed180()); - o.add(buildUnnamed180()); + o.add(buildUnnamed195()); + o.add(buildUnnamed195()); return o; } -checkUnnamed181(core.List<core.List<core.Object>> o) { +checkUnnamed196(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed180(o[0]); - checkUnnamed180(o[1]); + checkUnnamed195(o[0]); + checkUnnamed195(o[1]); } core.int buildCounterResultTable = 0; @@ -490,9 +490,9 @@ var o = new api.ResultTable(); buildCounterResultTable++; if (buildCounterResultTable < 3) { - o.columnHeaders = buildUnnamed179(); + o.columnHeaders = buildUnnamed194(); o.kind = "foo"; - o.rows = buildUnnamed181(); + o.rows = buildUnnamed196(); } buildCounterResultTable--; return o; @@ -501,9 +501,9 @@ checkResultTable(api.ResultTable o) { buildCounterResultTable++; if (buildCounterResultTable < 3) { - checkUnnamed179(o.columnHeaders); + checkUnnamed194(o.columnHeaders); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed181(o.rows); + checkUnnamed196(o.rows); } buildCounterResultTable--; }
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index b5652f9..85a5860 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -97,14 +97,14 @@ buildCounterJob--; } -buildUnnamed1166() { +buildUnnamed1192() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1166(core.List<api.Job> o) { +checkUnnamed1192(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 = buildUnnamed1166(); + o.jobs = buildUnnamed1192(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -125,20 +125,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1166(o.jobs); + checkUnnamed1192(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed1167() { +buildUnnamed1193() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed1167(core.List<api.ReportType> o) { +checkUnnamed1193(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 = buildUnnamed1167(); + o.reportTypes = buildUnnamed1193(); } buildCounterListReportTypesResponse--; return o; @@ -160,19 +160,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1167(o.reportTypes); + checkUnnamed1193(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed1168() { +buildUnnamed1194() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed1168(core.List<api.Report> o) { +checkUnnamed1194(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 = buildUnnamed1168(); + o.reports = buildUnnamed1194(); } buildCounterListReportsResponse--; return o; @@ -194,7 +194,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1168(o.reports); + checkUnnamed1194(o.reports); } buildCounterListReportsResponse--; }
diff --git a/generated/googleapis_beta/CHANGELOG.md b/generated/googleapis_beta/CHANGELOG.md index 4f27dce..f751d73 100644 --- a/generated/googleapis_beta/CHANGELOG.md +++ b/generated/googleapis_beta/CHANGELOG.md
@@ -1,3 +1,18 @@ +## 0.31.0 + +* [api-new] ml:v1beta1 +* [api-breaking] dataflow:v1b3: resource changes +* [api-breaking] dns:v2beta1: renamed resource +* [api-breaking] logging:v1beta1: added resources, method changes +* [api] appengine:v1beta4: schema/method changes +* [api] appengine:v1beta5: schema/method changes +* [api] cloudreporting:v1beta1: schema changes +* [api] cloudresourcemanager:v1beta1: schema/method changes +* [api] dataproc:v1beta1: schema/method changes +* [api] runtimeconfig:v1beta1: method changes +* [api] sqladmin:v1beta3: schema changes +* [api] sqladmin:v1beta4: schema changes + ## 0.30.1 * [api] datastore:v1beta3: schema changes
diff --git a/generated/googleapis_beta/README.md b/generated/googleapis_beta/README.md index 5eeb3e3..a172d17 100644 --- a/generated/googleapis_beta/README.md +++ b/generated/googleapis_beta/README.md
@@ -70,7 +70,7 @@ ####  Ad Exchange Buyer API II - adexchangebuyer2 v2beta1 -Accesses the latest features for managing Ad Exchange accounts and Real-Time Bidding configurations and auction metrics. +Accesses the latest features for managing Ad Exchange accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals. Official API documentation: https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/ @@ -119,7 +119,7 @@ ####  Google Cloud Dataproc API - dataproc v1beta1 -Manages Hadoop-based clusters and jobs on Google Cloud Platform. +An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. Official API documentation: https://cloud.google.com/dataproc/ @@ -160,12 +160,18 @@ Official API documentation: https://cloud.google.com/natural-language/ -####  Google Cloud Logging API - logging v2beta1 +####  Stackdriver Logging API - logging v2beta1 -Writes log entries and manages your logs, log sinks, and logs-based metrics. +Writes log entries and manages your Stackdriver Logging configuration. Official API documentation: https://cloud.google.com/logging/docs/ +####  Google Cloud Machine Learning - ml v1beta1 + +An API to enable creating and using machine learning models. + +Official API documentation: https://cloud.google.com/ml/ + ####  Google Proximity Beacon API - proximitybeacon v1beta1 Registers, manages, indexes, and searches beacons. @@ -186,7 +192,7 @@ ####  Google Compute Engine Instance Group Updater API - replicapoolupdater v1beta1 -Updates groups of Compute Engine instances. +[Deprecated. Please use compute.instanceGroupManagers.update method. replicapoolupdater API will be disabled after December 30th, 2016] Updates groups of Compute Engine instances. Official API documentation: https://cloud.google.com/compute/docs/instance-groups/manager/#applying_rolling_updates_using_the_updater_service
diff --git a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart index 0997df1..6d1c209 100644 --- a/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart +++ b/generated/googleapis_beta/lib/adexchangebuyer2/v2beta1.dart
@@ -15,8 +15,9 @@ const core.String USER_AGENT = 'dart-api-client adexchangebuyer2/v2beta1'; /** - * Accesses the latest features for managing Ad Exchange accounts and Real-Time - * Bidding configurations and auction metrics. + * Accesses the latest features for managing Ad Exchange accounts, Real-Time + * Bidding configurations and auction metrics, and Marketplace programmatic + * deals. */ class Adexchangebuyer2Api { /** Manage your Ad Exchange buyer account configuration */ @@ -687,7 +688,7 @@ /** * The role which is assigned to the client buyer. Each role implies a set of * permissions granted to the client. Must be one of `CLIENT_DEAL_VIEWER`, - * `CLIENT_DEAL_NEGOTIATOR`, or `CLIENT_DEAL_APPROVER`. + * `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. * Possible string values are: * - "CLIENT_ROLE_UNSPECIFIED" : A placeholder for an undefined client role. * - "CLIENT_DEAL_VIEWER" : Users associated with this client can see @@ -858,8 +859,8 @@ } /** - * An invitation for a new client user to get access to the AdExchange Buyer UI. - * + * An invitation for a new client user to get access to the Ad Exchange + * Buyer UI. * All fields are required unless otherwise specified. */ class ClientUserInvitation {
diff --git a/generated/googleapis_beta/lib/appengine/v1beta4.dart b/generated/googleapis_beta/lib/appengine/v1beta4.dart index a856232..e625ca8 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta4.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta4.dart
@@ -16,9 +16,15 @@ /** Provisions and manages App Engine applications. */ class AppengineApi { + /** View and manage your applications deployed on Google App Engine */ + static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.admin"; + /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services */ + static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"; + final commons.ApiRequester _requester; @@ -131,6 +137,56 @@ return _response.then((data) => new Application.fromJson(data)); } + /** + * Updates application fields. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [appsId] - Part of `name`. Name of the application to update. For example: + * "apps/myapp". + * + * [mask] - Standard field mask for the set of fields to be 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> patch(Application request, core.String appsId, {core.String mask}) { + 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 (appsId == null) { + throw new core.ArgumentError("Parameter appsId is required."); + } + if (mask != null) { + _queryParams["mask"] = [mask]; + } + + _url = 'v1beta4/apps/' + commons.Escaper.ecapeVariable('$appsId'); + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + } @@ -1586,14 +1642,28 @@ /** 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) + */ + core.String sshKey; DebugInstanceRequest(); DebugInstanceRequest.fromJson(core.Map _json) { + if (_json.containsKey("sshKey")) { + sshKey = _json["sshKey"]; + } } core.Map toJson() { var _json = new core.Map(); + if (sshKey != null) { + _json["sshKey"] = sshKey; + } return _json; } } @@ -1914,6 +1984,11 @@ */ core.String vmId; /** + * The IP address of this instance. Only applicable for instances in App + * 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 */ @@ -1970,6 +2045,9 @@ if (_json.containsKey("vmId")) { vmId = _json["vmId"]; } + if (_json.containsKey("vmIp")) { + vmIp = _json["vmIp"]; + } if (_json.containsKey("vmName")) { vmName = _json["vmName"]; } @@ -2019,6 +2097,9 @@ if (vmId != null) { _json["vmId"] = vmId; } + if (vmIp != null) { + _json["vmIp"] = vmIp; + } if (vmName != null) { _json["vmName"] = vmName; } @@ -2222,7 +2303,7 @@ * {"cloud.googleapis.com/region": "us-east1"} */ core.Map<core.String, core.String> labels; - /** The cononical 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 @@ -2494,7 +2575,7 @@ * 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 @@ -2639,6 +2720,67 @@ } /** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataExperimental { + /** Time that this operation completed. @OutputOnly */ + core.String endTime; + /** Time that this operation was created. @OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * `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 + */ + core.String target; + /** User who requested this operation. @OutputOnly */ + core.String user; + + OperationMetadataExperimental(); + + OperationMetadataExperimental.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ class OperationMetadataV1 { /** Time that this operation completed. @OutputOnly */ core.String endTime;
diff --git a/generated/googleapis_beta/lib/appengine/v1beta5.dart b/generated/googleapis_beta/lib/appengine/v1beta5.dart index 20800e2..8d6ec1b 100644 --- a/generated/googleapis_beta/lib/appengine/v1beta5.dart +++ b/generated/googleapis_beta/lib/appengine/v1beta5.dart
@@ -16,9 +16,15 @@ /** Provisions and manages App Engine applications. */ class AppengineApi { + /** View and manage your applications deployed on Google App Engine */ + static const AppengineAdminScope = "https://www.googleapis.com/auth/appengine.admin"; + /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + /** View your data across Google Cloud Platform services */ + static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only"; + final commons.ApiRequester _requester; @@ -132,6 +138,56 @@ return _response.then((data) => new Application.fromJson(data)); } + /** + * Updates application fields. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [appsId] - Part of `name`. Name of the application to update. Example: + * `apps/myapp`. + * + * [mask] - Standard field mask for the set of fields to be 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> patch(Application request, core.String appsId, {core.String mask}) { + 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 (appsId == null) { + throw new core.ArgumentError("Parameter appsId is required."); + } + if (mask != null) { + _queryParams["mask"] = [mask]; + } + + _url = 'v1beta5/apps/' + commons.Escaper.ecapeVariable('$appsId'); + + var _response = _requester.request(_url, + "PATCH", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Operation.fromJson(data)); + } + } @@ -1587,14 +1643,28 @@ /** 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) + */ + core.String sshKey; DebugInstanceRequest(); DebugInstanceRequest.fromJson(core.Map _json) { + if (_json.containsKey("sshKey")) { + sshKey = _json["sshKey"]; + } } core.Map toJson() { var _json = new core.Map(); + if (sshKey != null) { + _json["sshKey"] = sshKey; + } return _json; } } @@ -1915,6 +1985,11 @@ */ core.String vmId; /** + * The IP address of this instance. Only applicable for instances in App + * 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 */ @@ -1971,6 +2046,9 @@ if (_json.containsKey("vmId")) { vmId = _json["vmId"]; } + if (_json.containsKey("vmIp")) { + vmIp = _json["vmIp"]; + } if (_json.containsKey("vmName")) { vmName = _json["vmName"]; } @@ -2020,6 +2098,9 @@ if (vmId != null) { _json["vmId"] = vmId; } + if (vmIp != null) { + _json["vmIp"] = vmIp; + } if (vmName != null) { _json["vmName"] = vmName; } @@ -2223,7 +2304,7 @@ * {"cloud.googleapis.com/region": "us-east1"} */ core.Map<core.String, core.String> labels; - /** The cononical 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 @@ -2441,7 +2522,7 @@ * 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 @@ -2586,6 +2667,67 @@ } /** Metadata for the given google.longrunning.Operation. */ +class OperationMetadataExperimental { + /** Time that this operation completed. @OutputOnly */ + core.String endTime; + /** Time that this operation was created. @OutputOnly */ + core.String insertTime; + /** + * API method that initiated this operation. Example: + * `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 + */ + core.String target; + /** User who requested this operation. @OutputOnly */ + core.String user; + + OperationMetadataExperimental(); + + OperationMetadataExperimental.fromJson(core.Map _json) { + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("insertTime")) { + insertTime = _json["insertTime"]; + } + if (_json.containsKey("method")) { + method = _json["method"]; + } + if (_json.containsKey("target")) { + target = _json["target"]; + } + if (_json.containsKey("user")) { + user = _json["user"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (endTime != null) { + _json["endTime"] = endTime; + } + if (insertTime != null) { + _json["insertTime"] = insertTime; + } + if (method != null) { + _json["method"] = method; + } + if (target != null) { + _json["target"] = target; + } + if (user != null) { + _json["user"] = user; + } + return _json; + } +} + +/** Metadata for the given google.longrunning.Operation. */ class OperationMetadataV1 { /** Time that this operation completed. @OutputOnly */ core.String endTime;
diff --git a/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart b/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart index 44a0276..bd72739 100644 --- a/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart +++ b/generated/googleapis_beta/lib/clouderrorreporting/v1beta1.dart
@@ -54,7 +54,7 @@ * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [DeleteEventsResponse]. * @@ -108,7 +108,7 @@ * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * [timeRange_period] - Restricts the query to the specified time range. * Possible string values are: @@ -204,7 +204,7 @@ * [Google Cloud Platform project * ID](https://support.google.com/cloud/answer/6158840). * Example: `projects/my-project-123`. - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * Completes with a [ReportErrorEventResponse]. * @@ -262,7 +262,7 @@ * Platform project ID</a>. * * Example: <code>projects/my-project-123</code>. - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * [alignment] - [Optional] The alignment of the timed counts to be returned. * Default is `ALIGNMENT_EQUAL_AT_END`. @@ -292,8 +292,6 @@ * * [groupId] - [Optional] List all <code>ErrorGroupStats</code> with these * IDs. - * If not specified, all error group stats with a non-zero error count - * for the given selection criteria are returned. * * [serviceFilter_service] - [Optional] The exact value to match against * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). @@ -402,7 +400,7 @@ * this project. * * Example: <code>projects/my-project-123/groups/my-group</code> - * Value must have pattern "^projects/[^/] * / groups/[^/]*$". + * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * Completes with a [ErrorGroup]. * @@ -446,7 +444,7 @@ * * [name] - The group resource name. * Example: <code>projects/my-project-123/groups/my-groupid</code> - * Value must have pattern "^projects/[^/] * / groups/[^/]*$". + * Value must have pattern "^projects/[^/]+/groups/[^/]+$". * * Completes with a [ErrorGroup]. * @@ -658,19 +656,19 @@ } /** - * Data extracted for a specific group based on certain selection criteria, + * Data extracted for a specific group based on certain filter criteria, * such as a given time period and/or service filter. */ class ErrorGroupStats { /** - * Service contexts with a non-zero error count for the given selection + * Service contexts with a non-zero error count for the given filter * criteria. This list can be truncated if multiple services are affected. * Refer to `num_affected_services` for the total count. */ core.List<ServiceContext> affectedServices; /** * Approximate number of affected users in the given group that - * match the selection criteria. + * match the filter criteria. * Users are distinguished by data in the `ErrorContext` of the * individual error events, such as their login name or their remote * IP address in case of HTTP requests. @@ -685,24 +683,26 @@ core.String affectedUsersCount; /** * Approximate total number of events in the given group that match - * the selection criteria. + * the filter criteria. */ core.String count; /** - * Approximate first occurrence that was seen for this group and - * which matches the given selection criteria. + * Approximate first occurrence that was ever seen for this group + * and which matches the given filter criteria, ignoring the + * time_range that was specified in the request. */ core.String firstSeenTime; - /** Group data that is independent of the selection criteria. */ + /** Group data that is independent of the filter criteria. */ ErrorGroup group; /** - * Approximate last occurrence that was seen for this group - * and which matches the given selection criteria. + * Approximate last occurrence that was ever seen for this group and + * which matches the given filter criteria, ignoring the time_range + * that was specified in the request. */ core.String lastSeenTime; /** * The total number of services with a non-zero error count for the given - * selection criteria. + * filter criteria. */ core.int numAffectedServices; /** @@ -870,6 +870,10 @@ * request, to view the next page of results. */ core.String nextPageToken; + /** + * The timestamp specifies the start time to which the request was restricted. + */ + core.String timeRangeBegin; ListEventsResponse(); @@ -880,6 +884,9 @@ if (_json.containsKey("nextPageToken")) { nextPageToken = _json["nextPageToken"]; } + if (_json.containsKey("timeRangeBegin")) { + timeRangeBegin = _json["timeRangeBegin"]; + } } core.Map toJson() { @@ -890,6 +897,9 @@ if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } + if (timeRangeBegin != null) { + _json["timeRangeBegin"] = timeRangeBegin; + } return _json; } } @@ -904,6 +914,13 @@ * request, to view the next page of results. */ core.String nextPageToken; + /** + * The timestamp specifies the start time to which the request was restricted. + * The start time is set based on the requested time range. It may be adjusted + * to a later time if a project has exceeded the storage quota and older data + * has been deleted. + */ + core.String timeRangeBegin; ListGroupStatsResponse(); @@ -914,6 +931,9 @@ if (_json.containsKey("nextPageToken")) { nextPageToken = _json["nextPageToken"]; } + if (_json.containsKey("timeRangeBegin")) { + timeRangeBegin = _json["timeRangeBegin"]; + } } core.Map toJson() { @@ -924,6 +944,9 @@ if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } + if (timeRangeBegin != null) { + _json["timeRangeBegin"] = timeRangeBegin; + } return _json; } }
diff --git a/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart b/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart index f992424..e86a70f 100644 --- a/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart +++ b/generated/googleapis_beta/lib/cloudresourcemanager/v1beta1.dart
@@ -47,8 +47,8 @@ * * Request parameters: * - * [name] - The resource name of the Organization to fetch. Its format is - * "organizations/[organization_id]". For example, "organizations/1234". + * [name] - The resource name of the Organization to fetch, e.g. + * "organizations/1234". * Value must have pattern "^organizations/[^/]*$". * * [organizationId] - The id of the Organization resource to fetch. This field @@ -92,19 +92,15 @@ /** * Gets the access control policy for an Organization resource. May be empty * if no such policy or resource exists. The `resource` field should be the - * organization's resource name, e.g. "organizations/123". For backward - * compatibility, the resource provided may also be the organization_id. This - * will not be supported in v1. + * organization's resource name, e.g. "organizations/123". * * [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, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * 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]. @@ -206,18 +202,15 @@ /** * Sets the access control policy on an Organization resource. Replaces any * existing policy. The `resource` field should be the organization's resource - * name, e.g. "organizations/123". For backward compatibility, the resource - * provided may also be the organization_id. This will not be supported in v1. + * name, e.g. "organizations/123". * * [request] - The metadata request object. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * 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]. @@ -258,18 +251,15 @@ /** * Returns permissions that a caller has on the specified Organization. The * `resource` field should be the organization's resource name, e.g. - * "organizations/123". For backward compatibility, the resource provided may - * also be the organization_id. This will not be supported in v1. + * "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, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * 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]. @@ -373,6 +363,9 @@ * * Request parameters: * + * [useLegacyStack] - A safety hatch to opt out of the new reliable project + * creation process. + * * Completes with a [Project]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -381,7 +374,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<Project> create(Project request) { + async.Future<Project> create(Project request, {core.bool useLegacyStack}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -392,6 +385,9 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } + if (useLegacyStack != null) { + _queryParams["useLegacyStack"] = ["${useLegacyStack}"]; + } _url = 'v1beta1/projects'; @@ -551,10 +547,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * * Completes with a [Policy]. * @@ -668,27 +662,25 @@ * + Invitations to grant the owner role cannot be sent using * `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. + Members cannot be - * added to more than one role in the same policy. + 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. + * 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. * * [request] - The metadata request object. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * * Completes with a [Policy]. * @@ -733,10 +725,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * * Completes with a [TestIamPermissionsResponse]. * @@ -960,6 +950,98 @@ } } +/** 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. + */ + core.String destinationParent; + /** The display name of the folder. */ + core.String displayName; + /** + * The type of this operation. + * Possible string values are: + * - "OPERATION_TYPE_UNSPECIFIED" : A OPERATION_TYPE_UNSPECIFIED. + * - "CREATE" : A CREATE. + * - "MOVE" : A MOVE. + */ + core.String operationType; + /** + * The resource name of the folder's parent. Only applicable when the + * operation_type is MOVE. + */ + core.String sourceParent; + + FolderOperation(); + + FolderOperation.fromJson(core.Map _json) { + if (_json.containsKey("destinationParent")) { + destinationParent = _json["destinationParent"]; + } + if (_json.containsKey("displayName")) { + displayName = _json["displayName"]; + } + if (_json.containsKey("operationType")) { + operationType = _json["operationType"]; + } + if (_json.containsKey("sourceParent")) { + sourceParent = _json["sourceParent"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (destinationParent != null) { + _json["destinationParent"] = destinationParent; + } + if (displayName != null) { + _json["displayName"] = displayName; + } + if (operationType != null) { + _json["operationType"] = operationType; + } + if (sourceParent != null) { + _json["sourceParent"] = sourceParent; + } + return _json; + } +} + +/** A classification of the Folder Operation error. */ +class FolderOperationError { + /** + * 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. + */ + core.String errorMessageId; + + FolderOperationError(); + + FolderOperationError.fromJson(core.Map _json) { + if (_json.containsKey("errorMessageId")) { + errorMessageId = _json["errorMessageId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (errorMessageId != null) { + _json["errorMessageId"] = errorMessageId; + } + return _json; + } +} + /** The request sent to the GetAncestry method. */ class GetAncestryRequest { @@ -1108,8 +1190,9 @@ */ core.String creationTime; /** - * A friendly string to be used to refer to the Organization in the UI. This - * field is required. + * 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 */ core.String displayName; /** @@ -1390,6 +1473,52 @@ } /** + * A status object which is used as the `metadata` field for the Operation + * returned by CreateProject. It provides insight for when significant phases of + * Project creation have completed. + */ +class ProjectCreationStatus { + /** Creation time of the project creation workflow. */ + core.String createTime; + /** + * True if the project can be retrieved using GetProject. No other operations + * on the project are guaranteed to work until the project creation is + * complete. + */ + core.bool gettable; + /** True if the project creation process is complete. */ + core.bool ready; + + ProjectCreationStatus(); + + ProjectCreationStatus.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("gettable")) { + gettable = _json["gettable"]; + } + if (_json.containsKey("ready")) { + ready = _json["ready"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (gettable != null) { + _json["gettable"] = gettable; + } + if (ready != null) { + _json["ready"] = ready; + } + return _json; + } +} + +/** * 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 @@ -1461,7 +1590,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. + * information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ core.List<core.String> permissions;
diff --git a/generated/googleapis_beta/lib/dataflow/v1b3.dart b/generated/googleapis_beta/lib/dataflow/v1b3.dart index 314d661..95895b2 100644 --- a/generated/googleapis_beta/lib/dataflow/v1b3.dart +++ b/generated/googleapis_beta/lib/dataflow/v1b3.dart
@@ -39,6 +39,7 @@ final commons.ApiRequester _requester; ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); + ProjectsLocationsResourceApi get locations => new ProjectsLocationsResourceApi(_requester); ProjectsTemplatesResourceApi get templates => new ProjectsTemplatesResourceApi(_requester); ProjectsResourceApi(commons.ApiRequester client) : @@ -118,6 +119,8 @@ * * [replaceJobId] - DEPRECATED. This field is now on the Job message. * + * [location] - The location which contains this job. + * * Completes with a [Job]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -126,7 +129,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<Job> create(Job request, core.String projectId, {core.String view, core.String replaceJobId}) { + async.Future<Job> create(Job request, core.String projectId, {core.String view, core.String replaceJobId, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -146,6 +149,9 @@ if (replaceJobId != null) { _queryParams["replaceJobId"] = [replaceJobId]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs'; @@ -174,6 +180,8 @@ * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. * + * [location] - The location which contains this job. + * * Completes with a [Job]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -182,7 +190,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<Job> get(core.String projectId, core.String jobId, {core.String view}) { + async.Future<Job> get(core.String projectId, core.String jobId, {core.String view, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -199,6 +207,9 @@ if (view != null) { _queryParams["view"] = [view]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); @@ -224,6 +235,8 @@ * [startTime] - Return only metric data that has changed since this time. * Default is to return all information about all metrics for the job. * + * [location] - The location which contains the job specified by job_id. + * * Completes with a [JobMetrics]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -232,7 +245,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<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String startTime}) { + async.Future<JobMetrics> getMetrics(core.String projectId, core.String jobId, {core.String startTime, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -249,6 +262,9 @@ if (startTime != null) { _queryParams["startTime"] = [startTime]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/metrics'; @@ -289,6 +305,8 @@ * [pageToken] - Set this to the 'next_page_token' field of a previous * response to request additional results in a long list. * + * [location] - The location which contains this job. + * * Completes with a [ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -297,7 +315,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<ListJobsResponse> list(core.String projectId, {core.String filter, core.String view, core.int pageSize, core.String pageToken}) { + async.Future<ListJobsResponse> list(core.String projectId, {core.String filter, core.String view, core.int pageSize, core.String pageToken, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -320,6 +338,9 @@ if (pageToken != null) { _queryParams["pageToken"] = [pageToken]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs'; @@ -344,6 +365,8 @@ * * [jobId] - Identifies a single job. * + * [location] - The location which contains this job. + * * Completes with a [Job]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -352,7 +375,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<Job> update(Job request, core.String projectId, core.String jobId) { + async.Future<Job> update(Job request, core.String projectId, core.String jobId, {core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -369,6 +392,9 @@ if (jobId == null) { throw new core.ArgumentError("Parameter jobId is required."); } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); @@ -531,6 +557,8 @@ * [endTime] - Return only messages with timestamps < end_time. The default is * now (i.e. return up to the latest messages available). * + * [location] - The location which contains the job specified by job_id. + * * Completes with a [ListJobMessagesResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -539,7 +567,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<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String minimumImportance, core.int pageSize, core.String pageToken, core.String startTime, core.String endTime}) { + async.Future<ListJobMessagesResponse> list(core.String projectId, core.String jobId, {core.String minimumImportance, core.int pageSize, core.String pageToken, core.String startTime, core.String endTime, core.String location}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -568,6 +596,9 @@ if (endTime != null) { _queryParams["endTime"] = [endTime]; } + if (location != null) { + _queryParams["location"] = [location]; + } _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; @@ -691,6 +722,548 @@ } +class ProjectsLocationsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsJobsResourceApi get jobs => new ProjectsLocationsJobsResourceApi(_requester); + + ProjectsLocationsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class ProjectsLocationsJobsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsJobsMessagesResourceApi get messages => new ProjectsLocationsJobsMessagesResourceApi(_requester); + ProjectsLocationsJobsWorkItemsResourceApi get workItems => new ProjectsLocationsJobsWorkItemsResourceApi(_requester); + + ProjectsLocationsJobsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a dataflow job. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [projectId] - The project which owns the job. + * + * [location] - The location which contains this job. + * + * [view] - Level of information requested in response. + * Possible string values are: + * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. + * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. + * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. + * + * [replaceJobId] - DEPRECATED. This field is now on the Job message. + * + * Completes with a [Job]. + * + * 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<Job> create(Job request, core.String projectId, core.String location, {core.String view, core.String replaceJobId}) { + 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."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (view != null) { + _queryParams["view"] = [view]; + } + if (replaceJobId != null) { + _queryParams["replaceJobId"] = [replaceJobId]; + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Job.fromJson(data)); + } + + /** + * Gets the state of the specified dataflow job. + * + * Request parameters: + * + * [projectId] - The project which owns the job. + * + * [location] - The location which contains this job. + * + * [jobId] - Identifies a single job. + * + * [view] - Level of information requested in response. + * Possible string values are: + * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. + * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. + * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. + * + * Completes with a [Job]. + * + * 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<Job> get(core.String projectId, core.String location, core.String jobId, {core.String view}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (projectId == null) { + throw new core.ArgumentError("Parameter projectId is required."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (jobId == null) { + throw new core.ArgumentError("Parameter jobId is required."); + } + if (view != null) { + _queryParams["view"] = [view]; + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Job.fromJson(data)); + } + + /** + * Request the job status. + * + * Request parameters: + * + * [projectId] - A project id. + * + * [location] - The location which contains the job specified by job_id. + * + * [jobId] - The job to get messages for. + * + * [startTime] - Return only metric data that has changed since this time. + * Default is to return all information about all metrics for the job. + * + * Completes with a [JobMetrics]. + * + * 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<JobMetrics> getMetrics(core.String projectId, core.String location, core.String jobId, {core.String startTime}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (projectId == null) { + throw new core.ArgumentError("Parameter projectId is required."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (jobId == null) { + throw new core.ArgumentError("Parameter jobId is required."); + } + if (startTime != null) { + _queryParams["startTime"] = [startTime]; + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/metrics'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new JobMetrics.fromJson(data)); + } + + /** + * List the jobs of a project + * + * Request parameters: + * + * [projectId] - The project which owns the jobs. + * + * [location] - The location which contains this job. + * + * [filter] - The kind of filter to use. + * Possible string values are: + * - "UNKNOWN" : A UNKNOWN. + * - "ALL" : A ALL. + * - "TERMINATED" : A TERMINATED. + * - "ACTIVE" : A ACTIVE. + * + * [view] - Level of information requested in response. Default is SUMMARY. + * Possible string values are: + * - "JOB_VIEW_UNKNOWN" : A JOB_VIEW_UNKNOWN. + * - "JOB_VIEW_SUMMARY" : A JOB_VIEW_SUMMARY. + * - "JOB_VIEW_ALL" : A JOB_VIEW_ALL. + * + * [pageSize] - If there are many jobs, limit response to at most this many. + * The actual number of jobs returned will be the lesser of max_responses and + * an unspecified server-defined limit. + * + * [pageToken] - Set this to the 'next_page_token' field of a previous + * response to request additional results in a long list. + * + * Completes with a [ListJobsResponse]. + * + * 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<ListJobsResponse> list(core.String projectId, core.String location, {core.String filter, core.String view, 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 (projectId == null) { + throw new core.ArgumentError("Parameter projectId is required."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (view != null) { + _queryParams["view"] = [view]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListJobsResponse.fromJson(data)); + } + + /** + * Updates the state of an existing dataflow job. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [projectId] - The project which owns the job. + * + * [location] - The location which contains this job. + * + * [jobId] - Identifies a single job. + * + * Completes with a [Job]. + * + * 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<Job> update(Job request, core.String projectId, core.String location, core.String jobId) { + 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."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (jobId == null) { + throw new core.ArgumentError("Parameter jobId is required."); + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId'); + + var _response = _requester.request(_url, + "PUT", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new Job.fromJson(data)); + } + +} + + +class ProjectsLocationsJobsMessagesResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsJobsMessagesResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Request the job status. + * + * Request parameters: + * + * [projectId] - A project id. + * + * [location] - The location which contains the job specified by job_id. + * + * [jobId] - The job to get messages about. + * + * [minimumImportance] - Filter to only get messages with importance >= level + * Possible string values are: + * - "JOB_MESSAGE_IMPORTANCE_UNKNOWN" : A JOB_MESSAGE_IMPORTANCE_UNKNOWN. + * - "JOB_MESSAGE_DEBUG" : A JOB_MESSAGE_DEBUG. + * - "JOB_MESSAGE_DETAILED" : A JOB_MESSAGE_DETAILED. + * - "JOB_MESSAGE_BASIC" : A JOB_MESSAGE_BASIC. + * - "JOB_MESSAGE_WARNING" : A JOB_MESSAGE_WARNING. + * - "JOB_MESSAGE_ERROR" : A JOB_MESSAGE_ERROR. + * + * [pageSize] - If specified, determines the maximum number of messages to + * return. If unspecified, the service may choose an appropriate default, or + * may return an arbitrarily large number of results. + * + * [pageToken] - If supplied, this should be the value of next_page_token + * returned by an earlier call. This will cause the next page of results to be + * returned. + * + * [startTime] - If specified, return only messages with timestamps >= + * start_time. The default is the job creation time (i.e. beginning of + * messages). + * + * [endTime] - Return only messages with timestamps < end_time. The default is + * now (i.e. return up to the latest messages available). + * + * Completes with a [ListJobMessagesResponse]. + * + * 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<ListJobMessagesResponse> list(core.String projectId, core.String location, core.String jobId, {core.String minimumImportance, core.int pageSize, core.String pageToken, core.String startTime, core.String endTime}) { + var _url = null; + var _queryParams = new core.Map(); + var _uploadMedia = null; + var _uploadOptions = null; + var _downloadOptions = commons.DownloadOptions.Metadata; + var _body = null; + + if (projectId == null) { + throw new core.ArgumentError("Parameter projectId is required."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (jobId == null) { + throw new core.ArgumentError("Parameter jobId is required."); + } + if (minimumImportance != null) { + _queryParams["minimumImportance"] = [minimumImportance]; + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + if (startTime != null) { + _queryParams["startTime"] = [startTime]; + } + if (endTime != null) { + _queryParams["endTime"] = [endTime]; + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/messages'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ListJobMessagesResponse.fromJson(data)); + } + +} + + +class ProjectsLocationsJobsWorkItemsResourceApi { + final commons.ApiRequester _requester; + + ProjectsLocationsJobsWorkItemsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Leases a dataflow WorkItem to run. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [projectId] - Identifies the project this worker belongs to. + * + * [location] - The location which contains the WorkItem's job. + * + * [jobId] - Identifies the workflow job this worker belongs to. + * + * Completes with a [LeaseWorkItemResponse]. + * + * 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<LeaseWorkItemResponse> lease(LeaseWorkItemRequest request, core.String projectId, core.String location, core.String jobId) { + 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."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (jobId == null) { + throw new core.ArgumentError("Parameter jobId is required."); + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/workItems:lease'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new LeaseWorkItemResponse.fromJson(data)); + } + + /** + * Reports the status of dataflow WorkItems leased by a worker. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [projectId] - The project which owns the WorkItem's job. + * + * [location] - The location which contains the WorkItem's job. + * + * [jobId] - The job which the WorkItem is part of. + * + * Completes with a [ReportWorkItemStatusResponse]. + * + * 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<ReportWorkItemStatusResponse> reportStatus(ReportWorkItemStatusRequest request, core.String projectId, core.String location, core.String jobId) { + 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."); + } + if (location == null) { + throw new core.ArgumentError("Parameter location is required."); + } + if (jobId == null) { + throw new core.ArgumentError("Parameter jobId is required."); + } + + _url = 'v1b3/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/locations/' + commons.Escaper.ecapeVariable('$location') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/workItems:reportStatus'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new ReportWorkItemStatusResponse.fromJson(data)); + } + +} + + class ProjectsTemplatesResourceApi { final commons.ApiRequester _requester; @@ -1630,6 +2203,8 @@ * `String`, `bool` and `null` as well as `Map` and `List` values. */ core.Map<core.String, core.Object> sdkPipelineOptions; + /** Identity to run virtual machines as. Defaults to the default account. */ + core.String serviceAccountEmail; /** * The prefix of the resources the system should use for temporary storage. * The system will append the suffix "/temp-{JOBNAME} to this resource prefix, @@ -1680,6 +2255,9 @@ if (_json.containsKey("sdkPipelineOptions")) { sdkPipelineOptions = _json["sdkPipelineOptions"]; } + if (_json.containsKey("serviceAccountEmail")) { + serviceAccountEmail = _json["serviceAccountEmail"]; + } if (_json.containsKey("tempStoragePrefix")) { tempStoragePrefix = _json["tempStoragePrefix"]; } @@ -1711,6 +2289,9 @@ if (sdkPipelineOptions != null) { _json["sdkPipelineOptions"] = sdkPipelineOptions; } + if (serviceAccountEmail != null) { + _json["serviceAccountEmail"] = serviceAccountEmail; + } if (tempStoragePrefix != null) { _json["tempStoragePrefix"] = tempStoragePrefix; } @@ -1728,6 +2309,31 @@ } /** + * FailedLocation indicates which location failed to respond to a request for + * data. + */ +class FailedLocation { + /** The name of the failed location. */ + core.String name; + + FailedLocation(); + + FailedLocation.fromJson(core.Map _json) { + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** * An instruction that copies its inputs (zero or more) to its (single) output. */ class FlattenInstruction { @@ -2074,6 +2680,8 @@ * values are additionally constrained to be <= 128 bytes in size. */ core.Map<core.String, core.String> labels; + /** The location which contains this job. */ + core.String location; /** * The user-specified Dataflow job name. Only one Job with a given name may * exist in a project at any given time. If a caller attempts to create a Job @@ -2165,6 +2773,9 @@ if (_json.containsKey("labels")) { labels = _json["labels"]; } + if (_json.containsKey("location")) { + location = _json["location"]; + } if (_json.containsKey("name")) { name = _json["name"]; } @@ -2220,6 +2831,9 @@ if (labels != null) { _json["labels"] = labels; } + if (location != null) { + _json["location"] = location; + } if (name != null) { _json["name"] = name; } @@ -2518,6 +3132,8 @@ class LeaseWorkItemRequest { /** The current timestamp at the worker. */ core.String currentWorkerTime; + /** The location which contains the WorkItem's job. */ + core.String location; /** The initial lease period. */ core.String requestedLeaseDuration; /** Filter for WorkItem type. */ @@ -2539,6 +3155,9 @@ if (_json.containsKey("currentWorkerTime")) { currentWorkerTime = _json["currentWorkerTime"]; } + if (_json.containsKey("location")) { + location = _json["location"]; + } if (_json.containsKey("requestedLeaseDuration")) { requestedLeaseDuration = _json["requestedLeaseDuration"]; } @@ -2558,6 +3177,9 @@ if (currentWorkerTime != null) { _json["currentWorkerTime"] = currentWorkerTime; } + if (location != null) { + _json["location"] = location; + } if (requestedLeaseDuration != null) { _json["requestedLeaseDuration"] = requestedLeaseDuration; } @@ -2631,6 +3253,8 @@ * depending on the page size in the ListJobsRequest. */ class ListJobsResponse { + /** Zero or more messages describing locations that failed to respond. */ + core.List<FailedLocation> failedLocation; /** A subset of the requested job information. */ core.List<Job> jobs; /** Set if there may be more results than fit in this response. */ @@ -2639,6 +3263,9 @@ ListJobsResponse(); ListJobsResponse.fromJson(core.Map _json) { + if (_json.containsKey("failedLocation")) { + failedLocation = _json["failedLocation"].map((value) => new FailedLocation.fromJson(value)).toList(); + } if (_json.containsKey("jobs")) { jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); } @@ -2649,6 +3276,9 @@ core.Map toJson() { var _json = new core.Map(); + if (failedLocation != null) { + _json["failedLocation"] = failedLocation.map((value) => (value).toJson()).toList(); + } if (jobs != null) { _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); } @@ -3465,6 +4095,8 @@ class ReportWorkItemStatusRequest { /** The current timestamp at the worker. */ core.String currentWorkerTime; + /** The location which contains the WorkItem's job. */ + core.String location; /** * The order is unimportant, except that the order of the WorkItemServiceState * messages in the ReportWorkItemStatusResponse corresponds to the order of @@ -3484,6 +4116,9 @@ if (_json.containsKey("currentWorkerTime")) { currentWorkerTime = _json["currentWorkerTime"]; } + if (_json.containsKey("location")) { + location = _json["location"]; + } if (_json.containsKey("workItemStatuses")) { workItemStatuses = _json["workItemStatuses"].map((value) => new WorkItemStatus.fromJson(value)).toList(); } @@ -3497,6 +4132,9 @@ if (currentWorkerTime != null) { _json["currentWorkerTime"] = currentWorkerTime; } + if (location != null) { + _json["location"] = location; + } if (workItemStatuses != null) { _json["workItemStatuses"] = workItemStatuses.map((value) => (value).toJson()).toList(); }
diff --git a/generated/googleapis_beta/lib/dataproc/v1beta1.dart b/generated/googleapis_beta/lib/dataproc/v1beta1.dart index f6ec301..eb1c475 100644 --- a/generated/googleapis_beta/lib/dataproc/v1beta1.dart +++ b/generated/googleapis_beta/lib/dataproc/v1beta1.dart
@@ -14,7 +14,9 @@ const core.String USER_AGENT = 'dart-api-client dataproc/v1beta1'; -/** Manages Hadoop-based clusters and jobs on Google Cloud Platform. */ +/** + * An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. + */ class DataprocApi { /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; @@ -50,7 +52,7 @@ * Request parameters: * * [name] - The name of the operation resource to be cancelled. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Empty]. * @@ -96,7 +98,7 @@ * Request parameters: * * [name] - The name of the operation resource to be deleted. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Empty]. * @@ -138,7 +140,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^operations/.*$". + * Value must have pattern "^operations/.+$". * * Completes with a [Operation]. * @@ -444,6 +446,10 @@ * [projectId] - [Required] The ID of the Google Cloud Platform project that * the cluster belongs to. * + * [filter] - [Optional] A filter constraining which clusters to list. Valid + * filters contain label terms such as: labels.key1 = val1 AND (-labels.k2 = + * val2 OR labels.k3 = val3) + * * [pageSize] - The standard List page size. * * [pageToken] - The standard List page token. @@ -456,7 +462,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<ListClustersResponse> list(core.String projectId, {core.int pageSize, core.String pageToken}) { + async.Future<ListClustersResponse> list(core.String projectId, {core.String filter, core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -467,6 +473,9 @@ if (projectId == null) { throw new core.ArgumentError("Parameter projectId is required."); } + if (filter != null) { + _queryParams["filter"] = [filter]; + } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } @@ -729,6 +738,10 @@ * - "ACTIVE" : A ACTIVE. * - "NON_ACTIVE" : A NON_ACTIVE. * + * [filter] - [Optional] A filter constraining which jobs to list. Valid + * filters contain job state and label terms such as: labels.key1 = val1 AND + * (labels.k2 = val2 OR labels.k3 = val3) + * * Completes with a [ListJobsResponse]. * * Completes with a [commons.ApiRequestError] if the API endpoint returned an @@ -737,7 +750,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<ListJobsResponse> list(core.String projectId, {core.int pageSize, core.String pageToken, core.String clusterName, core.String jobStateMatcher}) { + async.Future<ListJobsResponse> list(core.String projectId, {core.int pageSize, core.String pageToken, core.String clusterName, core.String jobStateMatcher, core.String filter}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -760,6 +773,9 @@ if (jobStateMatcher != null) { _queryParams["jobStateMatcher"] = [jobStateMatcher]; } + if (filter != null) { + _queryParams["filter"] = [filter]; + } _url = 'v1beta1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/jobs'; @@ -871,6 +887,17 @@ */ ClusterConfiguration configuration; /** + * [Optional] The labels to associate with this cluster. Label keys must be + * between 1 and 63 characters long, and must conform to the following PCRE + * regular expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and + * 63 characters long, and must conform to the following PCRE regular + * expression: [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be + * associated with a given cluster. + */ + core.Map<core.String, core.String> labels; + /** Contains cluster daemon metrics such as HDFS and YARN stats. */ + ClusterMetrics metrics; + /** * [Required] The Google Cloud Platform project ID that the cluster belongs * to. */ @@ -892,6 +919,12 @@ if (_json.containsKey("configuration")) { configuration = new ClusterConfiguration.fromJson(_json["configuration"]); } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } + if (_json.containsKey("metrics")) { + metrics = new ClusterMetrics.fromJson(_json["metrics"]); + } if (_json.containsKey("projectId")) { projectId = _json["projectId"]; } @@ -914,6 +947,12 @@ if (configuration != null) { _json["configuration"] = (configuration).toJson(); } + if (labels != null) { + _json["labels"] = labels; + } + if (metrics != null) { + _json["metrics"] = (metrics).toJson(); + } if (projectId != null) { _json["projectId"] = projectId; } @@ -1023,14 +1062,46 @@ } } +/** Contains cluster daemon metrics, such as HDFS and YARN stats. */ +class ClusterMetrics { + /** The HDFS metrics. */ + core.Map<core.String, core.String> hdfsMetrics; + /** The YARN metrics. */ + core.Map<core.String, core.String> yarnMetrics; + + ClusterMetrics(); + + ClusterMetrics.fromJson(core.Map _json) { + if (_json.containsKey("hdfsMetrics")) { + hdfsMetrics = _json["hdfsMetrics"]; + } + if (_json.containsKey("yarnMetrics")) { + yarnMetrics = _json["yarnMetrics"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (hdfsMetrics != null) { + _json["hdfsMetrics"] = hdfsMetrics; + } + if (yarnMetrics != null) { + _json["yarnMetrics"] = yarnMetrics; + } + return _json; + } +} + /** Metadata describing the operation. */ class ClusterOperationMetadata { - /** Name of the cluster for the operation. */ + /** [Output-only] Name of the cluster for the operation. */ core.String clusterName; - /** Cluster UUId for the operation. */ + /** [Output-only] Cluster UUID for the operation. */ core.String clusterUuid; /** [Output-only] Short description of operation. */ core.String description; + /** [Output-only] labels associated with the operation */ + core.Map<core.String, core.String> labels; /** [Output-only] The operation type. */ core.String operationType; /** [Output-only] Current operation status. */ @@ -1050,6 +1121,9 @@ if (_json.containsKey("description")) { description = _json["description"]; } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("operationType")) { operationType = _json["operationType"]; } @@ -1072,6 +1146,9 @@ if (description != null) { _json["description"] = description; } + if (labels != null) { + _json["labels"] = labels; + } if (operationType != null) { _json["operationType"] = operationType; } @@ -1087,12 +1164,12 @@ /** The status of the operation. */ class ClusterOperationStatus { - /** A message containing any operation metadata details. */ + /** [Output-only]A message containing any operation metadata details. */ core.String details; - /** A message containing the detailed operation state. */ + /** [Output-only] A message containing the detailed operation state. */ core.String innerState; /** - * A message containing the operation state. + * [Output-only] A message containing the operation state. * Possible string values are: * - "UNKNOWN" : A UNKNOWN. * - "PENDING" : A PENDING. @@ -1100,7 +1177,7 @@ * - "DONE" : A DONE. */ core.String state; - /** The time this state was entered. */ + /** [Output-only] The time this state was entered. */ core.String stateStartTime; ClusterOperationStatus(); @@ -1227,8 +1304,8 @@ /** The location of diagnostic output. */ class DiagnoseClusterResults { /** - * [Output-only] The Google Cloud Storage URI of the diagnostic output. This - * is a plain text file with a summary of collected diagnostics. + * [Output-only] The Google Cloud Storage URI of the diagnostic output. The + * output report is a plain text file with a summary of collected diagnostics. */ core.String outputUri; @@ -1310,6 +1387,15 @@ * instances, applicable to all instances in the cluster. */ class GceClusterConfiguration { + /** + * If true, all instances in the cluser will only have internal IP addresses. + * By default, clusters are not restricted to internal IP addresses, and will + * have ephemeral external IP addresses assigned to each instance. This + * restriction can only be enabled for subnetwork enabled networks, and all + * off-cluster dependencies must be configured to be accessible without + * external IP addresses. + */ + core.bool internalIpOnly; /** The Google Compute Engine metadata entries to add to all instances. */ core.Map<core.String, core.String> metadata; /** @@ -1353,6 +1439,9 @@ GceClusterConfiguration(); GceClusterConfiguration.fromJson(core.Map _json) { + if (_json.containsKey("internalIpOnly")) { + internalIpOnly = _json["internalIpOnly"]; + } if (_json.containsKey("metadata")) { metadata = _json["metadata"]; } @@ -1375,6 +1464,9 @@ core.Map toJson() { var _json = new core.Map(); + if (internalIpOnly != null) { + _json["internalIpOnly"] = internalIpOnly; + } if (metadata != null) { _json["metadata"] = metadata; } @@ -1698,6 +1790,15 @@ * can be sent to the driver. */ core.bool interactive; + /** + * [Optional] The labels to associate with this job. Label keys must be + * between 1 and 63 characters long, and must conform to the following regular + * expression: \p{Ll}\p{Lo}{0,62} Label values must be between 1 and 63 + * characters long, and must conform to the following regular expression: + * [\p{Ll}\p{Lo}\p{N}_-]{0,63} No more than 64 labels can be associated with a + * given job. + */ + core.Map<core.String, core.String> labels; /** Job is a Pig job. */ PigJob pigJob; /** @@ -1752,6 +1853,9 @@ if (_json.containsKey("interactive")) { interactive = _json["interactive"]; } + if (_json.containsKey("labels")) { + labels = _json["labels"]; + } if (_json.containsKey("pigJob")) { pigJob = new PigJob.fromJson(_json["pigJob"]); } @@ -1804,6 +1908,9 @@ if (interactive != null) { _json["interactive"] = interactive; } + if (labels != null) { + _json["labels"] = labels; + } if (pigJob != null) { _json["pigJob"] = (pigJob).toJson(); } @@ -2165,7 +2272,7 @@ * 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
diff --git a/generated/googleapis_beta/lib/dfareporting/v2_5beta1.dart b/generated/googleapis_beta/lib/dfareporting/v2_5beta1.dart index 116af74..fec5372 100644 --- a/generated/googleapis_beta/lib/dfareporting/v2_5beta1.dart +++ b/generated/googleapis_beta/lib/dfareporting/v2_5beta1.dart
@@ -428,7 +428,8 @@ } /** - * Retrieves a list of account user profiles, possibly filtered. + * Retrieves a list of account user profiles, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -673,7 +674,8 @@ } /** - * Retrieves the list of accounts, possibly filtered. + * Retrieves the list of accounts, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -950,7 +952,7 @@ } /** - * Retrieves a list of ads, possibly filtered. + * Retrieves a list of ads, possibly filtered. This method supports paging. * * Request parameters: * @@ -1395,7 +1397,8 @@ } /** - * Retrieves a list of advertiser groups, possibly filtered. + * Retrieves a list of advertiser groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -1667,7 +1670,8 @@ } /** - * Retrieves a list of advertisers, possibly filtered. + * Retrieves a list of advertisers, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -1988,6 +1992,7 @@ /** * Retrieves the list of creative IDs associated with the specified campaign. + * This method supports paging. * * Request parameters: * @@ -2159,7 +2164,8 @@ } /** - * Retrieves a list of campaigns, possibly filtered. + * Retrieves a list of campaigns, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -2426,7 +2432,7 @@ } /** - * Retrieves a list of change logs. + * Retrieves a list of change logs. This method supports paging. * * Request parameters: * @@ -2506,6 +2512,7 @@ * - "OBJECT_REMARKETING_LIST" * - "OBJECT_RICHMEDIA_CREATIVE" * - "OBJECT_SD_SITE" + * - "OBJECT_SEARCH_LIFT_STUDY" * - "OBJECT_SIZE" * - "OBJECT_SUBACCOUNT" * - "OBJECT_TARGETING_TEMPLATE" @@ -2884,7 +2891,8 @@ } /** - * Retrieves a list of content categories, possibly filtered. + * Retrieves a list of content categories, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3433,7 +3441,8 @@ } /** - * Retrieves a list of creative field values, possibly filtered. + * Retrieves a list of creative field values, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -3760,7 +3769,8 @@ } /** - * Retrieves a list of creative fields, possibly filtered. + * Retrieves a list of creative fields, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4039,7 +4049,8 @@ } /** - * Retrieves a list of creative groups, possibly filtered. + * Retrieves a list of creative groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4323,7 +4334,8 @@ } /** - * Retrieves a list of creatives, possibly filtered. + * Retrieves a list of creatives, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -4669,7 +4681,8 @@ } /** - * Retrieves a list of directory site contacts, possibly filtered. + * Retrieves a list of directory site contacts, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -4854,7 +4867,8 @@ } /** - * Retrieves a list of directory sites, possibly filtered. + * Retrieves a list of directory sites, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -5840,7 +5854,8 @@ } /** - * Retrieves a list of floodlight activities, possibly filtered. + * Retrieves a list of floodlight activities, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -6163,7 +6178,8 @@ } /** - * Retrieves a list of floodlight activity groups, possibly filtered. + * Retrieves a list of floodlight activity groups, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -6617,7 +6633,8 @@ } /** - * Retrieves a list of inventory items, possibly filtered. + * Retrieves a list of inventory items, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7403,7 +7420,8 @@ } /** - * Retrieves a list of order documents, possibly filtered. + * Retrieves a list of order documents, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -7564,7 +7582,7 @@ } /** - * Retrieves a list of orders, possibly filtered. + * Retrieves a list of orders, possibly filtered. This method supports paging. * * Request parameters: * @@ -7751,7 +7769,8 @@ } /** - * Retrieves a list of placement groups, possibly filtered. + * Retrieves a list of placement groups, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8156,7 +8175,8 @@ } /** - * Retrieves a list of placement strategies, possibly filtered. + * Retrieves a list of placement strategies, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -8485,7 +8505,8 @@ } /** - * Retrieves a list of placements, possibly filtered. + * Retrieves a list of placements, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -8997,7 +9018,8 @@ } /** - * Retrieves a list of projects, possibly filtered. + * Retrieves a list of projects, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -9375,7 +9397,8 @@ } /** - * Retrieves a list of remarketing lists, possibly filtered. + * Retrieves a list of remarketing lists, possibly filtered. This method + * supports paging. * * Request parameters: * @@ -10225,7 +10248,7 @@ } /** - * Retrieves a list of sites, possibly filtered. + * Retrieves a list of sites, possibly filtered. This method supports paging. * * Request parameters: * @@ -10701,7 +10724,7 @@ } /** - * Gets a list of subaccounts, possibly filtered. + * Gets a list of subaccounts, possibly filtered. This method supports paging. * * Request parameters: * @@ -10929,7 +10952,8 @@ } /** - * Retrieves a list of targetable remarketing lists, possibly filtered. + * Retrieves a list of targetable remarketing lists, possibly filtered. This + * method supports paging. * * Request parameters: * @@ -11430,7 +11454,8 @@ } /** - * Retrieves a list of user roles, possibly filtered. + * Retrieves a list of user roles, possibly filtered. This method supports + * paging. * * Request parameters: * @@ -11640,6 +11665,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -11900,6 +11926,7 @@ * - "ACTIVE_ADS_TIER_300K" * - "ACTIVE_ADS_TIER_40K" * - "ACTIVE_ADS_TIER_500K" + * - "ACTIVE_ADS_TIER_750K" * - "ACTIVE_ADS_TIER_75K" */ core.String activeAdsLimitTier; @@ -12474,7 +12501,7 @@ * Account ID of this ad. This is a read-only field that can be left blank. */ core.String accountId; - /** Whether this ad is active. */ + /** 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; @@ -12483,7 +12510,7 @@ * auto-generated field. */ DimensionValue advertiserIdDimensionValue; - /** Whether this ad is archived. */ + /** 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 @@ -14726,7 +14753,10 @@ * "dfareporting#conversion". */ core.String kind; - /** Whether the user has Limit Ad Tracking set. */ + /** + * Whether Limit Ad Tracking is enabled. When set to true, the conversion will + * be used for reporting but not targeting. This will prevent remarketing. + */ core.bool limitAdTracking; /** * The mobile device ID. This field is mutually exclusive with encryptedUserId
diff --git a/generated/googleapis_beta/lib/dns/v2beta1.dart b/generated/googleapis_beta/lib/dns/v2beta1.dart index 0a60dba..76014df 100644 --- a/generated/googleapis_beta/lib/dns/v2beta1.dart +++ b/generated/googleapis_beta/lib/dns/v2beta1.dart
@@ -32,7 +32,7 @@ final commons.ApiRequester _requester; ChangesResourceApi get changes => new ChangesResourceApi(_requester); - DnskeysResourceApi get dnskeys => new DnskeysResourceApi(_requester); + DnsKeysResourceApi get dnsKeys => new DnsKeysResourceApi(_requester); ManagedZoneOperationsResourceApi get managedZoneOperations => new ManagedZoneOperationsResourceApi(_requester); ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_requester); ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); @@ -236,10 +236,10 @@ } -class DnskeysResourceApi { +class DnsKeysResourceApi { final commons.ApiRequester _requester; - DnskeysResourceApi(commons.ApiRequester client) : + DnsKeysResourceApi(commons.ApiRequester client) : _requester = client; /**
diff --git a/generated/googleapis_beta/lib/language/v1beta1.dart b/generated/googleapis_beta/lib/language/v1beta1.dart index 038dedf..d63adbf 100644 --- a/generated/googleapis_beta/lib/language/v1beta1.dart +++ b/generated/googleapis_beta/lib/language/v1beta1.dart
@@ -119,10 +119,8 @@ } /** - * Advanced API that analyzes the document and provides a full set of text - * annotations, including semantic, syntactic, and sentiment information. This - * API is intended for users who are familiar with machine learning and need - * in-depth text features to build upon. + * A convenience method that provides all the features that analyzeSentiment, + * analyzeEntities, and analyzeSyntax provide in one call. * * [request] - The metadata request object. * @@ -219,6 +217,7 @@ /** * 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; @@ -304,8 +303,8 @@ } /** - * The request message for the advanced text annotation API, which performs all - * the above plus syntactic analysis. + * 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. */ @@ -378,6 +377,7 @@ /** * 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; /** @@ -842,8 +842,9 @@ */ core.double magnitude; /** - * Polarity of the sentiment in the [-1.0, 1.0] range. Larger numbers - * represent more positive sentiments. + * DEPRECATED FIELD - This field is being deprecated in + * favor of score. Please refer to our documentation at + * https://cloud.google.com/natural-language/docs for more information. */ core.double polarity;
diff --git a/generated/googleapis_beta/lib/logging/v2beta1.dart b/generated/googleapis_beta/lib/logging/v2beta1.dart index 3c58bb0..65be54e 100644 --- a/generated/googleapis_beta/lib/logging/v2beta1.dart +++ b/generated/googleapis_beta/lib/logging/v2beta1.dart
@@ -14,9 +14,7 @@ const core.String USER_AGENT = 'dart-api-client logging/v2beta1'; -/** - * Writes log entries and manages your logs, log sinks, and logs-based metrics. - */ +/** Writes log entries and manages your Stackdriver Logging configuration. */ class LoggingApi { /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; @@ -36,8 +34,10 @@ final commons.ApiRequester _requester; + BillingAccountsResourceApi get billingAccounts => new BillingAccountsResourceApi(_requester); EntriesResourceApi get entries => new EntriesResourceApi(_requester); MonitoredResourceDescriptorsResourceApi get monitoredResourceDescriptors => new MonitoredResourceDescriptorsResourceApi(_requester); + OrganizationsResourceApi get organizations => new OrganizationsResourceApi(_requester); ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); LoggingApi(http.Client client, {core.String rootUrl: "https://logging.googleapis.com/", core.String servicePath: ""}) : @@ -45,6 +45,67 @@ } +class BillingAccountsResourceApi { + final commons.ApiRequester _requester; + + BillingAccountsLogsResourceApi get logs => new BillingAccountsLogsResourceApi(_requester); + + BillingAccountsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class BillingAccountsLogsResourceApi { + final commons.ApiRequester _requester; + + BillingAccountsLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a log and all its log entries. + * The log will reappear if it receives new entries. + * + * Request parameters: + * + * [logName] - Required. The resource name of the log to delete. Example: + * `"projects/my-project/logs/syslog"`. + * Value must have pattern "^billingAccounts/[^/]+/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 = 'v2beta1/' + 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)); + } + +} + + class EntriesResourceApi { final commons.ApiRequester _requester; @@ -52,9 +113,9 @@ _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 Cloud + * Logging. For ways to export log entries, see + * [Exporting Logs](/logging/docs/export). * * [request] - The metadata request object. * @@ -93,7 +154,7 @@ } /** - * Writes log entries to Cloud Logging. All log entries in Cloud Logging are + * Writes log entries to Stackdriver Logging. All log entries are * written by this method. * * [request] - The metadata request object. @@ -142,18 +203,20 @@ _requester = client; /** - * Lists monitored resource descriptors that are used by Cloud Logging. + * Lists the monitored resource descriptors used by Stackdriver Logging. * * Request parameters: * * [pageSize] - Optional. The maximum number of results to return from this - * request. You must check for presence of `nextPageToken` to determine if - * additional results are available, which you can retrieve by passing the - * `nextPageToken` value as the `pageToken` parameter in the next request. + * request. + * Non-positive values are ignored. The presence of `nextPageToken` in the + * response indicates that more results might be available. * - * [pageToken] - Optional. If the `pageToken` parameter is supplied, then the - * next page of results is retrieved. The `pageToken` parameter must be set to - * the value of the `nextPageToken` from the previous response. + * [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 [ListMonitoredResourceDescriptorsResponse]. * @@ -193,6 +256,67 @@ } +class OrganizationsResourceApi { + final commons.ApiRequester _requester; + + OrganizationsLogsResourceApi get logs => new OrganizationsLogsResourceApi(_requester); + + OrganizationsResourceApi(commons.ApiRequester client) : + _requester = client; +} + + +class OrganizationsLogsResourceApi { + final commons.ApiRequester _requester; + + OrganizationsLogsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Deletes a log and all its log entries. + * The log will reappear if it receives new entries. + * + * Request parameters: + * + * [logName] - Required. The resource name of the log to delete. Example: + * `"projects/my-project/logs/syslog"`. + * Value must have pattern "^organizations/[^/]+/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 = 'v2beta1/' + 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)); + } + +} + + class ProjectsResourceApi { final commons.ApiRequester _requester; @@ -212,14 +336,14 @@ _requester = client; /** - * Deletes a log and all its log entries. The log will reappear if it receives - * new entries. + * Deletes a log and all its log entries. + * The log will reappear if it receives new entries. * * Request parameters: * - * [logName] - Required. The resource name of the log to delete. Example: + * [logName] - Required. The resource name of the log to delete. Example: * `"projects/my-project/logs/syslog"`. - * Value must have pattern "^projects/[^/] * / logs/[^/]*$". + * Value must have pattern "^projects/[^/]+/logs/[^/]+$". * * Completes with a [Empty]. * @@ -269,10 +393,11 @@ * * Request parameters: * - * [projectName] - The resource name of the project in which to create the - * metric. Example: `"projects/my-project-id"`. The new metric must be - * provided in the request. - * Value must have pattern "^projects/[^/]*$". + * [parent] - The resource name of the project in which to create the metric. + * Example: `"projects/my-project-id"`. + * + * The new metric must be provided in the request. + * Value must have pattern "^projects/[^/]+$". * * Completes with a [LogMetric]. * @@ -282,7 +407,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<LogMetric> create(LogMetric request, core.String projectName) { + async.Future<LogMetric> create(LogMetric request, core.String parent) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -293,11 +418,11 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } - if (projectName == null) { - throw new core.ArgumentError("Parameter projectName is required."); + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); } - _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/metrics'; + _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics'; var _response = _requester.request(_url, "POST", @@ -314,9 +439,9 @@ * * Request parameters: * - * [metricName] - The resource name of the metric to delete. Example: - * `"projects/my-project-id/metrics/my-metric-id"`. - * Value must have pattern "^projects/[^/] * / metrics/[^/]*$". + * [metricName] - The resource name of the metric to delete. + * Example: `"projects/my-project-id/metrics/my-metric-id"`. + * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". * * Completes with a [Empty]. * @@ -355,9 +480,9 @@ * * Request parameters: * - * [metricName] - The resource name of the desired metric. Example: - * `"projects/my-project-id/metrics/my-metric-id"`. - * Value must have pattern "^projects/[^/] * / metrics/[^/]*$". + * [metricName] - The resource name of the desired metric. + * Example: `"projects/my-project-id/metrics/my-metric-id"`. + * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". * * Completes with a [LogMetric]. * @@ -396,19 +521,20 @@ * * Request parameters: * - * [projectName] - Required. The resource name of the project containing the - * metrics. Example: `"projects/my-project-id"`. - * Value must have pattern "^projects/[^/]*$". - * - * [pageToken] - Optional. If the `pageToken` parameter is supplied, then the - * next page of results is retrieved. The `pageToken` parameter must be set to - * the value of the `nextPageToken` from the previous response. The value of - * `projectName` must be the same as in the previous request. + * [parent] - Required. The resource name containing the metrics. + * Example: `"projects/my-project-id"`. + * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Optional. The maximum number of results to return from this - * request. You must check for presence of `nextPageToken` to determine if - * additional results are available, which you can retrieve by passing the - * `nextPageToken` value as the `pageToken` parameter in the next request. + * 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 [ListLogMetricsResponse]. * @@ -418,7 +544,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<ListLogMetricsResponse> list(core.String projectName, {core.String pageToken, core.int pageSize}) { + async.Future<ListLogMetricsResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -426,17 +552,17 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (projectName == null) { - throw new core.ArgumentError("Parameter projectName is required."); - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } - _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/metrics'; + _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/metrics'; var _response = _requester.request(_url, "GET", @@ -455,11 +581,13 @@ * * 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. - * Value must have pattern "^projects/[^/] * / metrics/[^/]*$". + * [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. + * Value must have pattern "^projects/[^/]+/metrics/[^/]+$". * * Completes with a [LogMetric]. * @@ -512,10 +640,17 @@ * * Request parameters: * - * [projectName] - The resource name of the project in which to create the - * sink. Example: `"projects/my-project-id"`. The new sink must be provided in - * the request. - * Value must have pattern "^projects/[^/]*$". + * [parent] - Required. The resource in which to create the sink. + * Example: `"projects/my-project-id"`. + * The new sink must be provided in the request. + * 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. * * Completes with a [LogSink]. * @@ -525,7 +660,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<LogSink> create(LogSink request, core.String projectName) { + async.Future<LogSink> create(LogSink request, core.String parent, {core.bool uniqueWriterIdentity}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -536,11 +671,14 @@ if (request != null) { _body = convert.JSON.encode((request).toJson()); } - if (projectName == null) { - throw new core.ArgumentError("Parameter projectName is required."); + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); + } + if (uniqueWriterIdentity != null) { + _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"]; } - _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/sinks'; + _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; var _response = _requester.request(_url, "POST", @@ -557,9 +695,12 @@ * * Request parameters: * - * [sinkName] - The resource name of the sink to delete. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. - * Value must have pattern "^projects/[^/] * / sinks/[^/]*$". + * [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. + * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". * * Completes with a [Empty]. * @@ -598,9 +739,9 @@ * * Request parameters: * - * [sinkName] - The resource name of the sink to return. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. - * Value must have pattern "^projects/[^/] * / sinks/[^/]*$". + * [sinkName] - Required. The resource name of the sink to return. + * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". * * Completes with a [LogSink]. * @@ -639,19 +780,20 @@ * * Request parameters: * - * [projectName] - Required. The resource name of the project containing the - * sinks. Example: `"projects/my-logging-project"`. - * Value must have pattern "^projects/[^/]*$". - * - * [pageToken] - Optional. If the `pageToken` parameter is supplied, then the - * next page of results is retrieved. The `pageToken` parameter must be set to - * the value of the `nextPageToken` from the previous response. The value of - * `projectName` must be the same as in the previous request. + * [parent] - Required. The resource name where this sink was created. + * Example: `"projects/my-logging-project"`. + * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Optional. The maximum number of results to return from this - * request. You must check for presence of `nextPageToken` to determine if - * additional results are available, which you can retrieve by passing the - * `nextPageToken` value as the `pageToken` parameter in the next request. + * 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]. * @@ -661,7 +803,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<ListSinksResponse> list(core.String projectName, {core.String pageToken, core.int pageSize}) { + async.Future<ListSinksResponse> list(core.String parent, {core.int pageSize, core.String pageToken}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -669,17 +811,17 @@ var _downloadOptions = commons.DownloadOptions.Metadata; var _body = null; - if (projectName == null) { - throw new core.ArgumentError("Parameter projectName is required."); - } - if (pageToken != null) { - _queryParams["pageToken"] = [pageToken]; + if (parent == null) { + throw new core.ArgumentError("Parameter parent is required."); } if (pageSize != null) { _queryParams["pageSize"] = ["${pageSize}"]; } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } - _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$projectName') + '/sinks'; + _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/sinks'; var _response = _requester.request(_url, "GET", @@ -692,17 +834,24 @@ } /** - * Creates or updates a sink. + * Updates or creates a sink. * * [request] - The metadata request object. * * Request parameters: * - * [sinkName] - The resource name of the sink to update. Example: - * `"projects/my-project-id/sinks/my-sink-id"`. The updated sink must be - * provided in the request and have the same name that is specified in - * `sinkName`. If the sink does not exist, it is created. - * Value must have pattern "^projects/[^/] * / sinks/[^/]*$". + * [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"`. + * 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. * * Completes with a [LogSink]. * @@ -712,7 +861,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<LogSink> update(LogSink request, core.String sinkName) { + async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool uniqueWriterIdentity}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -726,6 +875,9 @@ if (sinkName == null) { throw new core.ArgumentError("Parameter sinkName is required."); } + if (uniqueWriterIdentity != null) { + _queryParams["uniqueWriterIdentity"] = ["${uniqueWriterIdentity}"]; + } _url = 'v2beta1/' + commons.Escaper.ecapeVariableReserved('$sinkName'); @@ -745,10 +897,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 { @@ -763,7 +919,11 @@ } } -/** A common proto for logging HTTP requests. */ +/** + * 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 { /** * The number of HTTP response bytes inserted into cache. Set only when a @@ -771,8 +931,8 @@ */ 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. */ @@ -784,13 +944,19 @@ */ core.bool cacheValidatedWithOriginServer; /** - * The referer URL of the request, as defined in [HTTP/1.1 Header Field + * The request processing latency on the server, from the time the request was + * received until the response was sent. + */ + 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). */ 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"`. */ @@ -801,9 +967,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; /** @@ -812,12 +978,19 @@ */ core.String responseSize; /** - * The response code indicating the status of response. Examples: 200, 404. + * The IP address (IPv4 or IPv6) of the origin server that the request was + * sent to. + */ + core.String serverIp; + /** + * 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; @@ -836,6 +1009,9 @@ if (_json.containsKey("cacheValidatedWithOriginServer")) { cacheValidatedWithOriginServer = _json["cacheValidatedWithOriginServer"]; } + if (_json.containsKey("latency")) { + latency = _json["latency"]; + } if (_json.containsKey("referer")) { referer = _json["referer"]; } @@ -854,6 +1030,9 @@ if (_json.containsKey("responseSize")) { responseSize = _json["responseSize"]; } + if (_json.containsKey("serverIp")) { + serverIp = _json["serverIp"]; + } if (_json.containsKey("status")) { status = _json["status"]; } @@ -876,6 +1055,9 @@ if (cacheValidatedWithOriginServer != null) { _json["cacheValidatedWithOriginServer"] = cacheValidatedWithOriginServer; } + if (latency != null) { + _json["latency"] = latency; + } if (referer != null) { _json["referer"] = referer; } @@ -894,6 +1076,9 @@ if (responseSize != null) { _json["responseSize"] = responseSize; } + if (serverIp != null) { + _json["serverIp"] = serverIp; + } if (status != null) { _json["status"] = status; } @@ -913,9 +1098,9 @@ /** * The type of data that can be assigned to the label. * Possible string values are: - * - "STRING" : A STRING. - * - "BOOL" : A BOOL. - * - "INT64" : A INT64. + * - "STRING" : A variable-length string. This is the default. + * - "BOOL" : Boolean; true or false. + * - "INT64" : A 64-bit signed integer. */ core.String valueType; @@ -951,46 +1136,47 @@ /** The parameters to `ListLogEntries`. */ class ListLogEntriesRequest { /** - * Optional. An [advanced logs filter](/logging/docs/view/advanced_filters). - * The filter is compared against all log entries in the projects specified by - * `projectIds`. Only entries that match the filter are retrieved. An empty - * filter matches all log entries. + * 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. */ core.String filter; /** - * Optional. How the results should be sorted. Presently, the only permitted + * 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 + * 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. You - * must check for presence of `nextPageToken` to determine if additional - * results are available, which you can retrieve by passing the - * `nextPageToken` value as the `pageToken` parameter in the next request. + * 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. */ core.int pageSize; /** - * Optional. If the `pageToken` parameter is supplied, then the next page of - * results is retrieved. The `pageToken` parameter must be set to the value of - * the `nextPageToken` from the previous response. The values of `projectIds`, - * `filter`, and `orderBy` must be the same as in the previous request. + * 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. */ core.String pageToken; /** - * Optional. If true, read access to all projects is not required and results - * will be returned for the subset of projects for which read access is - * permitted (empty subset is permitted). - */ - core.bool partialSuccess; - /** - * Required. One or more project IDs or project numbers from which to retrieve - * log entries. Examples of a project ID: `"my-project-1A"`, `"1234567890"`. + * 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. */ 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. + */ + core.List<core.String> resourceNames; ListLogEntriesRequest(); @@ -1007,12 +1193,12 @@ if (_json.containsKey("pageToken")) { pageToken = _json["pageToken"]; } - if (_json.containsKey("partialSuccess")) { - partialSuccess = _json["partialSuccess"]; - } if (_json.containsKey("projectIds")) { projectIds = _json["projectIds"]; } + if (_json.containsKey("resourceNames")) { + resourceNames = _json["resourceNames"]; + } } core.Map toJson() { @@ -1029,12 +1215,12 @@ if (pageToken != null) { _json["pageToken"] = pageToken; } - if (partialSuccess != null) { - _json["partialSuccess"] = partialSuccess; - } if (projectIds != null) { _json["projectIds"] = projectIds; } + if (resourceNames != null) { + _json["resourceNames"] = resourceNames; + } return _json; } } @@ -1044,16 +1230,11 @@ /** A list of log entries. */ core.List<LogEntry> entries; /** - * If there are more results than were returned, then `nextPageToken` is - * included in the response. 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 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`. */ core.String nextPageToken; - /** - * If partial_success is true, contains the project ids that had errors and - * the associated errors. - */ - core.Map<core.String, Status> projectIdErrors; ListLogEntriesResponse(); @@ -1064,9 +1245,6 @@ if (_json.containsKey("nextPageToken")) { nextPageToken = _json["nextPageToken"]; } - if (_json.containsKey("projectIdErrors")) { - projectIdErrors = commons.mapMap(_json["projectIdErrors"], (item) => new Status.fromJson(item)); - } } core.Map toJson() { @@ -1077,9 +1255,6 @@ if (nextPageToken != null) { _json["nextPageToken"] = nextPageToken; } - if (projectIdErrors != null) { - _json["projectIdErrors"] = commons.mapMap(projectIdErrors, (item) => (item).toJson()); - } return _json; } } @@ -1089,9 +1264,9 @@ /** A list of logs-based metrics. */ core.List<LogMetric> metrics; /** - * If there are more results than were returned, then `nextPageToken` is - * included in the response. 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 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`. */ core.String nextPageToken; @@ -1121,9 +1296,9 @@ /** Result returned from ListMonitoredResourceDescriptors. */ class ListMonitoredResourceDescriptorsResponse { /** - * If there are more results than were returned, then `nextPageToken` is - * included in the response. 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 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`. */ core.String nextPageToken; /** A list of resource descriptors. */ @@ -1155,9 +1330,9 @@ /** Result returned from `ListSinks`. */ class ListSinksResponse { /** - * If there are more results than were returned, then `nextPageToken` is - * included in the response. 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 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`. */ core.String nextPageToken; /** A list of sinks. */ @@ -1189,20 +1364,21 @@ /** 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 log with the same - * ID as duplicates which can be removed. If omitted, Cloud 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. @@ -1214,15 +1390,17 @@ */ 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/ - * /logs/"`. Examples: `"projects/my-projectid/logs/syslog"`, - * `"projects/1234567890/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. 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. */ core.String logName; /** @@ -1231,40 +1409,44 @@ */ LogEntryOperation operation; /** - * The log entry payload, represented as a protocol buffer. You can only use - * `protoPayload` values that belong to a set of approved types. + * 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`. * Possible string values are: - * - "DEFAULT" : A DEFAULT. - * - "DEBUG" : A DEBUG. - * - "INFO" : A INFO. - * - "NOTICE" : A NOTICE. - * - "WARNING" : A WARNING. - * - "ERROR" : A ERROR. - * - "CRITICAL" : A CRITICAL. - * - "ALERT" : A ALERT. - * - "EMERGENCY" : A EMERGENCY. + * - "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. + * - "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. + * - "ALERT" : (700) A person must take an action immediately. + * - "EMERGENCY" : (800) One or more systems are unusable. */ core.String severity; /** 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 - * omitted, Cloud Logging will use the time the log entry is written. + * 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; @@ -1355,8 +1537,8 @@ */ core.bool first; /** - * Required. 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; /** @@ -1364,9 +1546,9 @@ */ core.bool last; /** - * Required. 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; @@ -1412,15 +1594,18 @@ /** * Severity of this log entry. * Possible string values are: - * - "DEFAULT" : A DEFAULT. - * - "DEBUG" : A DEBUG. - * - "INFO" : A INFO. - * - "NOTICE" : A NOTICE. - * - "WARNING" : A WARNING. - * - "ERROR" : A ERROR. - * - "CRITICAL" : A CRITICAL. - * - "ALERT" : A ALERT. - * - "EMERGENCY" : A EMERGENCY. + * - "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. + * - "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. + * - "ALERT" : (700) A person must take an action immediately. + * - "EMERGENCY" : (800) One or more systems are unusable. */ core.String severity; /** Where in the source code this log message was written. */ @@ -1464,26 +1649,39 @@ } /** - * 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. */ class LogMetric { - /** A description of this metric, which is used in documentation. */ + /** + * Optional. A description of this metric, which is used in documentation. + */ core.String description; /** - * An [advanced logs filter](/logging/docs/view/advanced_filters). Example: - * `"logName:syslog AND severity>=ERROR"`. + * Required. An [advanced logs filter](/logging/docs/view/advanced_filters). + * Example: `"resource.type=gae_app AND severity>=ERROR"`. */ core.String filter; /** * Required. The client-assigned metric identifier. Example: - * `"severe_errors"`. Metric identifiers are limited to 1000 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. + * `"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. */ 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. + * Possible string values are: + * - "V2" : Stackdriver Logging API v2. + * - "V1" : Stackdriver Logging API v1. + */ + core.String version; LogMetric(); @@ -1497,6 +1695,9 @@ if (_json.containsKey("name")) { name = _json["name"]; } + if (_json.containsKey("version")) { + version = _json["version"]; + } } core.Map toJson() { @@ -1510,45 +1711,82 @@ if (name != null) { _json["name"] = name; } + if (version != null) { + _json["version"] = version; + } return _json; } } -/** Describes a sink used to export log entries outside Cloud Logging. */ +/** + * 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`. + */ class LogSink { /** - * The export destination. See [Exporting Logs With - * Sinks](/logging/docs/api/tasks/exporting-logs). Examples: - * `"storage.googleapis.com/a-bucket"`, - * `"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`. + * 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" */ core.String destination; /** - * An [advanced logs filter](/logging/docs/view/advanced_filters). Only log - * entries matching that 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 - * Cloud Logging. Example (V2 format): - * `"logName=projects/my-projectid/logs/syslog AND severity>=ERROR"`. + * 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`. + */ + 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 */ core.String filter; /** - * Required. The client-assigned sink identifier. Example: - * `"my-severe-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 `_-.`. + * 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. */ core.String name; /** - * 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 when it - * was written to Cloud Logging. + * 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. * Possible string values are: - * - "VERSION_FORMAT_UNSPECIFIED" : A VERSION_FORMAT_UNSPECIFIED. - * - "V2" : A V2. - * - "V1" : A V1. + * - "VERSION_FORMAT_UNSPECIFIED" : An unspecified version format 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`. + */ + 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. + */ + core.String writerIdentity; LogSink(); @@ -1556,6 +1794,9 @@ if (_json.containsKey("destination")) { destination = _json["destination"]; } + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } if (_json.containsKey("filter")) { filter = _json["filter"]; } @@ -1565,6 +1806,12 @@ if (_json.containsKey("outputVersionFormat")) { outputVersionFormat = _json["outputVersionFormat"]; } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("writerIdentity")) { + writerIdentity = _json["writerIdentity"]; + } } core.Map toJson() { @@ -1572,6 +1819,9 @@ if (destination != null) { _json["destination"] = destination; } + if (endTime != null) { + _json["endTime"] = endTime; + } if (filter != null) { _json["filter"] = filter; } @@ -1581,6 +1831,12 @@ if (outputVersionFormat != null) { _json["outputVersionFormat"] = outputVersionFormat; } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (writerIdentity != null) { + _json["writerIdentity"] = writerIdentity; + } return _json; } } @@ -1589,13 +1845,16 @@ * 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": - * "my-instance", "zone": "us-central1-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 { /** @@ -1605,9 +1864,9 @@ */ 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; @@ -1636,12 +1895,14 @@ /** * 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 { /** @@ -1651,7 +1912,9 @@ core.String description; /** * Optional. A concise name for the monitored resource type that might be - * displayed in user interfaces. For example, `"Google Cloud SQL Database"`. + * displayed in user interfaces. It should be a Title Cased Noun Phrase, + * without any article or other determiners. For example, + * `"Google Cloud SQL Database"`. */ core.String displayName; /** @@ -1662,16 +1925,17 @@ 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. */ core.String type; @@ -1732,7 +1996,7 @@ /** Whether this request is finished or active. */ core.bool finished; /** - * Whether this is the first RequestLog entry for this request. If an active + * 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. */ @@ -1766,12 +2030,14 @@ /** 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. */ @@ -1780,14 +2046,14 @@ 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 + * would be "/app?name=val". The fragment identifier, which is identified by * the `#` character, is not included. */ core.String resource; @@ -2075,13 +2341,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; @@ -2108,119 +2374,51 @@ } } -/** - * 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; - } -} - /** The parameters to WriteLogEntries. */ class WriteLogEntriesRequest { /** - * Required. The log entries to write. The log entries must have values for - * all required fields. + * 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 + * calling this method for each individual log entry. */ core.List<LogEntry> entries; /** - * Optional. User-defined `key:value` items that are added to the `labels` - * field of each log entry in `entries`, except when a log entry specifies its - * own `key:value` item with the same key. Example: `{ "size": "large", - * "color":"red" }` + * 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 for those log entries in `entries` - * that do not specify their own `logName`. Example: - * `"projects/my-project/logs/syslog"`. See LogEntry. + * 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. */ 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 for those log entries in `entries` - * that do not specify their own `resource`. + * 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" }} + * + * See LogEntry. */ MonitoredResource resource; @@ -2265,7 +2463,10 @@ } } -/** Result returned from WriteLogEntries. empty */ +/** + * Result returned from WriteLogEntries. + * empty + */ class WriteLogEntriesResponse { WriteLogEntriesResponse();
diff --git a/generated/googleapis_beta/lib/ml/v1beta1.dart b/generated/googleapis_beta/lib/ml/v1beta1.dart new file mode 100644 index 0000000..045150b --- /dev/null +++ b/generated/googleapis_beta/lib/ml/v1beta1.dart
@@ -0,0 +1,2664 @@ +// This is a generated file (see the discoveryapis_generator project). + +library googleapis_beta.ml.v1beta1; + +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 ml/v1beta1'; + +/** An API to enable creating and using machine learning models. */ +class MlApi { + /** View and manage your data across Google Cloud Platform services */ + static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"; + + + final commons.ApiRequester _requester; + + ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); + + MlApi(http.Client client, {core.String rootUrl: "https://ml.googleapis.com/", core.String servicePath: ""}) : + _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); +} + + +class ProjectsResourceApi { + final commons.ApiRequester _requester; + + ProjectsJobsResourceApi get jobs => new ProjectsJobsResourceApi(_requester); + ProjectsModelsResourceApi get models => new ProjectsModelsResourceApi(_requester); + ProjectsOperationsResourceApi get operations => new ProjectsOperationsResourceApi(_requester); + + ProjectsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Get the service account information associated with your project. You need + * this information in order to grant the service account persmissions for + * the Google Cloud Storage location where you put your model training code + * for training the model with Google Cloud Machine Learning. + * + * Request parameters: + * + * [name] - Required. The project name. + * + * Authorization: requires `Viewer` role on the specified project. + * Value must have pattern "^projects/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1GetConfigResponse]. + * + * 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<GoogleCloudMlV1beta1GetConfigResponse> getConfig(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':getConfig'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1GetConfigResponse.fromJson(data)); + } + + /** + * Performs prediction on the data in the request. + * + * Responses are very similar to requests. There are two top-level fields, + * each of which are JSON lists: + * + * <dl> + * <dt>predictions</dt> + * <dd>The list of predictions, one per instance in the request.</dd> + * <dt>error</dt> + * <dd>An error message returned instead of a prediction list if any + * instance produced an error.</dd> + * </dl> + * + * If the call is successful, the response body will contain one prediction + * entry per instance in the request body. If prediction fails for any + * instance, the response body will contain no predictions and will contian + * a single error entry instead. + * + * Even though there is one prediction per instance, the format of a + * prediction is not directly related to the format of an instance. + * Predictions take whatever format is specified in the outputs collection + * defined in the model. The collection of predictions is returned in a JSON + * list. Each member of the list can be a simple value, a list, or a JSON + * object of any complexity. If your model has more than one output tensor, + * each prediction will be a JSON object containing a name/value pair for each + * output. The names identify the output aliases in the graph. + * + * The following examples show some possible responses: + * + * A simple set of predictions for three input instances, where each + * prediction is an integer value: + * <pre> + * {"predictions": [5, 4, 3]} + * </pre> + * A more complex set of predictions, each containing two named values that + * correspond to output tensors, named **label** and **scores** respectively. + * The value of **label** is the predicted category ("car" or "beach") and + * **scores** contains a list of probabilities for that instance across the + * possible categories. + * <pre> + * {"predictions": [{"label": "beach", "scores": [0.1, 0.9]}, + * {"label": "car", "scores": [0.75, 0.25]}]} + * </pre> + * A response when there is an error processing an input instance: + * <pre> + * {"error": "Divide by zero"} + * </pre> + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - Required. The resource name of a model or a version. + * + * Authorization: requires `Viewer` role on the parent project. + * Value must have pattern "^projects/.+$". + * + * Completes with a [GoogleApiHttpBody]. + * + * 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<GoogleApiHttpBody> predict(GoogleCloudMlV1beta1PredictRequest 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 = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':predict'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleApiHttpBody.fromJson(data)); + } + +} + + +class ProjectsJobsResourceApi { + final commons.ApiRequester _requester; + + ProjectsJobsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Cancels a running job. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - Required. The name of the job to cancel. + * + * Authorization: requires `Editor` role on the parent project. + * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". + * + * Completes with a [GoogleProtobufEmpty]. + * + * 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<GoogleProtobufEmpty> cancel(GoogleCloudMlV1beta1CancelJobRequest 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 = 'v1beta1/' + 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 GoogleProtobufEmpty.fromJson(data)); + } + + /** + * Creates a training or a batch prediction job. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - Required. The project name. + * + * Authorization: requires `Editor` role on the specified project. + * Value must have pattern "^projects/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1Job]. + * + * 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<GoogleCloudMlV1beta1Job> create(GoogleCloudMlV1beta1Job request, core.String parent) { + 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."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1Job.fromJson(data)); + } + + /** + * Describes a job. + * + * Request parameters: + * + * [name] - Required. The name of the job to get the description of. + * + * Authorization: requires `Viewer` role on the parent project. + * Value must have pattern "^projects/[^/]+/jobs/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1Job]. + * + * 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<GoogleCloudMlV1beta1Job> get(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1Job.fromJson(data)); + } + + /** + * Lists the jobs in the project. + * + * Request parameters: + * + * [parent] - Required. The name of the project for which to list jobs. + * + * Authorization: requires `Viewer` role on the specified project. + * Value must have pattern "^projects/[^/]+$". + * + * [pageSize] - Optional. The number of jobs to retrieve per "page" of + * results. If there + * are more remaining results than this number, the response message will + * contain a valid value in the `next_page_token` field. + * + * The default value is 20, and the maximum page size is 100. + * + * [filter] - Optional. Specifies the subset of jobs to retrieve. + * + * [pageToken] - Optional. A page token to request the next page of results. + * + * You get the token from the `next_page_token` field of the response from + * the previous call. + * + * Completes with a [GoogleCloudMlV1beta1ListJobsResponse]. + * + * 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<GoogleCloudMlV1beta1ListJobsResponse> list(core.String parent, {core.int pageSize, core.String filter, 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 (filter != null) { + _queryParams["filter"] = [filter]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/jobs'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1ListJobsResponse.fromJson(data)); + } + +} + + +class ProjectsModelsResourceApi { + final commons.ApiRequester _requester; + + ProjectsModelsVersionsResourceApi get versions => new ProjectsModelsVersionsResourceApi(_requester); + + ProjectsModelsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a model which will later contain one or more versions. + * + * You must add at least one version before you can request predictions from + * the model. Add versions by calling + * [projects.models.versions.create](/ml/reference/rest/v1beta1/projects.models.versions/create). + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - Required. The project name. + * + * Authorization: requires `Editor` role on the specified project. + * Value must have pattern "^projects/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1Model]. + * + * 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<GoogleCloudMlV1beta1Model> create(GoogleCloudMlV1beta1Model request, core.String parent) { + 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."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1Model.fromJson(data)); + } + + /** + * Deletes a model. + * + * You can only delete a model if there are no versions in it. You can delete + * versions by calling + * [projects.models.versions.delete](/ml/reference/rest/v1beta1/projects.models.versions/delete). + * + * Request parameters: + * + * [name] - Required. The name of the model. + * + * Authorization: requires `Editor` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+$". + * + * Completes with a [GoogleLongrunningOperation]. + * + * 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<GoogleLongrunningOperation> delete(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleLongrunningOperation.fromJson(data)); + } + + /** + * Gets information about a model, including its name, the description (if + * set), and the default version (if at least one version of the model has + * been deployed). + * + * Request parameters: + * + * [name] - Required. The name of the model. + * + * Authorization: requires `Viewer` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1Model]. + * + * 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<GoogleCloudMlV1beta1Model> get(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1Model.fromJson(data)); + } + + /** + * Lists the models in a project. + * + * Each project can contain multiple models, and each model can have multiple + * versions. + * + * Request parameters: + * + * [parent] - Required. The name of the project whose models are to be listed. + * + * Authorization: requires `Viewer` role on the specified project. + * Value must have pattern "^projects/[^/]+$". + * + * [pageSize] - Optional. The number of models to retrieve per "page" of + * results. If there + * are more remaining results than this number, the response message will + * contain a valid value in the `next_page_token` field. + * + * The default value is 20, and the maximum page size is 100. + * + * [pageToken] - Optional. A page token to request the next page of results. + * + * You get the token from the `next_page_token` field of the response from + * the previous call. + * + * Completes with a [GoogleCloudMlV1beta1ListModelsResponse]. + * + * 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<GoogleCloudMlV1beta1ListModelsResponse> 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 = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/models'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1ListModelsResponse.fromJson(data)); + } + +} + + +class ProjectsModelsVersionsResourceApi { + final commons.ApiRequester _requester; + + ProjectsModelsVersionsResourceApi(commons.ApiRequester client) : + _requester = client; + + /** + * Creates a new version of a model from a trained TensorFlow model. + * + * If the version created in the cloud by this call is the first deployed + * version of the specified model, it will be made the default version of the + * model. When you add a version to a model that already has one or more + * versions, the default version does not automatically change. If you want a + * new version to be the default, you must call + * [projects.models.versions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefault). + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [parent] - Required. The name of the model. + * + * Authorization: requires `Editor` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+$". + * + * Completes with a [GoogleLongrunningOperation]. + * + * 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<GoogleLongrunningOperation> create(GoogleCloudMlV1beta1Version request, core.String parent) { + 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."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleLongrunningOperation.fromJson(data)); + } + + /** + * Deletes a model version. + * + * Each model can have multiple versions deployed and in use at any given + * time. Use this method to remove a single version. + * + * Note: You cannot delete the version that is set as the default version + * of the model unless it is the only remaining version. + * + * Request parameters: + * + * [name] - Required. The name of the version. You can get the names of all + * the + * versions of a model by calling + * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.versions/list). + * + * Authorization: requires `Editor` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". + * + * Completes with a [GoogleLongrunningOperation]. + * + * 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<GoogleLongrunningOperation> delete(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleLongrunningOperation.fromJson(data)); + } + + /** + * Gets information about a model version. + * + * Models can have multiple versions. You can call + * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.versions/list) + * to get the same information that this method returns for all of the + * versions of a model. + * + * Request parameters: + * + * [name] - Required. The name of the version. + * + * Authorization: requires `Viewer` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1Version]. + * + * 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<GoogleCloudMlV1beta1Version> get(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1Version.fromJson(data)); + } + + /** + * Gets basic information about all the versions of a model. + * + * If you expect that a model has a lot of versions, or if you need to handle + * only a limited number of results at a time, you can request that the list + * be retrieved in batches (called pages): + * + * Request parameters: + * + * [parent] - Required. The name of the model for which to list the version. + * + * Authorization: requires `Viewer` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+$". + * + * [pageSize] - Optional. The number of versions to retrieve per "page" of + * results. If + * there are more remaining results than this number, the response message + * will contain a valid value in the `next_page_token` field. + * + * The default value is 20, and the maximum page size is 100. + * + * [pageToken] - Optional. A page token to request the next page of results. + * + * You get the token from the `next_page_token` field of the response from + * the previous call. + * + * Completes with a [GoogleCloudMlV1beta1ListVersionsResponse]. + * + * 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<GoogleCloudMlV1beta1ListVersionsResponse> 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 = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/versions'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1ListVersionsResponse.fromJson(data)); + } + + /** + * Designates a version to be the default for the model. + * + * The default version is used for prediction requests made against the model + * that don't specify a version. + * + * The first version to be created for a model is automatically set as the + * default. You must make any subsequent changes to the default version + * setting manually using this method. + * + * [request] - The metadata request object. + * + * Request parameters: + * + * [name] - Required. The name of the version to make the default for the + * model. You + * can get the names of all the versions of a model by calling + * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.versions/list). + * + * Authorization: requires `Editor` role on the parent project. + * Value must have pattern "^projects/[^/]+/models/[^/]+/versions/[^/]+$". + * + * Completes with a [GoogleCloudMlV1beta1Version]. + * + * 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<GoogleCloudMlV1beta1Version> setDefault(GoogleCloudMlV1beta1SetDefaultVersionRequest 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 = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + ':setDefault'; + + var _response = _requester.request(_url, + "POST", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleCloudMlV1beta1Version.fromJson(data)); + } + +} + + +class ProjectsOperationsResourceApi { + final commons.ApiRequester _requester; + + ProjectsOperationsResourceApi(commons.ApiRequester client) : + _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 parameters: + * + * [name] - The name of the operation resource to be cancelled. + * Value must have pattern "^projects/[^/]+/operations/[^/]+$". + * + * Completes with a [GoogleProtobufEmpty]. + * + * 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<GoogleProtobufEmpty> cancel(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + 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 GoogleProtobufEmpty.fromJson(data)); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * Request parameters: + * + * [name] - The name of the operation resource to be deleted. + * Value must have pattern "^projects/[^/]+/operations/[^/]+$". + * + * Completes with a [GoogleProtobufEmpty]. + * + * 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<GoogleProtobufEmpty> delete(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "DELETE", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleProtobufEmpty.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. + * + * Request parameters: + * + * [name] - The name of the operation resource. + * Value must have pattern "^projects/[^/]+/operations/[^/]+$". + * + * Completes with a [GoogleLongrunningOperation]. + * + * 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<GoogleLongrunningOperation> get(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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name'); + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleLongrunningOperation.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: + * + * [name] - The name of the operation collection. + * Value must have pattern "^projects/[^/]+$". + * + * [pageSize] - The standard list page size. + * + * [filter] - The standard list filter. + * + * [pageToken] - The standard list page token. + * + * Completes with a [GoogleLongrunningListOperationsResponse]. + * + * 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<GoogleLongrunningListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, 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 (name == null) { + throw new core.ArgumentError("Parameter name is required."); + } + if (pageSize != null) { + _queryParams["pageSize"] = ["${pageSize}"]; + } + if (filter != null) { + _queryParams["filter"] = [filter]; + } + if (pageToken != null) { + _queryParams["pageToken"] = [pageToken]; + } + + _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$name') + '/operations'; + + var _response = _requester.request(_url, + "GET", + body: _body, + queryParams: _queryParams, + uploadOptions: _uploadOptions, + uploadMedia: _uploadMedia, + downloadOptions: _downloadOptions); + return _response.then((data) => new GoogleLongrunningListOperationsResponse.fromJson(data)); + } + +} + + + +/** + * Message that represents an arbitrary HTTP body. It should only be used for + * payload formats that can't be represented as JSON, such as raw binary or + * an HTML page. + * + * + * This message can be used both in streaming and non-streaming API methods in + * the request as well as the response. + * + * It can be used as a top-level request field, which is convenient if one + * wants to extract parameters from either the URL or HTTP template into the + * request fields and also want access to the raw HTTP body. + * + * Example: + * + * message GetResourceRequest { + * // A unique request id. + * string request_id = 1; + * + * // The raw HTTP body is bound to this field. + * google.api.HttpBody http_body = 2; + * } + * + * service ResourceService { + * rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); + * rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); + * } + * + * Example with streaming methods: + * + * service CaldavService { + * rpc GetCalendar(stream google.api.HttpBody) + * returns (stream google.api.HttpBody); + * rpc UpdateCalendar(stream google.api.HttpBody) + * returns (stream google.api.HttpBody); + * } + * + * Use of this type only changes how the request and response bodies are + * handled, all other features will continue to work unchanged. + */ +class GoogleApiHttpBody { + /** + * The HTTP Content-Type string representing the content type of the body. + */ + core.String contentType; + /** HTTP body binary data. */ + core.String data; + core.List<core.int> get dataAsBytes { + return convert.BASE64.decode(data); + } + + void set dataAsBytes(core.List<core.int> _bytes) { + data = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); + } + + GoogleApiHttpBody(); + + GoogleApiHttpBody.fromJson(core.Map _json) { + if (_json.containsKey("contentType")) { + contentType = _json["contentType"]; + } + if (_json.containsKey("data")) { + data = _json["data"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (contentType != null) { + _json["contentType"] = contentType; + } + if (data != null) { + _json["data"] = data; + } + return _json; + } +} + +/** An observed value of a metric. */ +class GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric { + /** The objective value at this training step. */ + core.double objectiveValue; + /** The global training step for this metric. */ + core.String trainingStep; + + GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(); + + GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(core.Map _json) { + if (_json.containsKey("objectiveValue")) { + objectiveValue = _json["objectiveValue"]; + } + if (_json.containsKey("trainingStep")) { + trainingStep = _json["trainingStep"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (objectiveValue != null) { + _json["objectiveValue"] = objectiveValue; + } + if (trainingStep != null) { + _json["trainingStep"] = trainingStep; + } + return _json; + } +} + +/** Request message for the CancelJob method. */ +class GoogleCloudMlV1beta1CancelJobRequest { + + GoogleCloudMlV1beta1CancelJobRequest(); + + GoogleCloudMlV1beta1CancelJobRequest.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + +/** Returns service account information associated with a project. */ +class GoogleCloudMlV1beta1GetConfigResponse { + /** The service account Cloud ML uses to access resources in the project. */ + core.String serviceAccount; + /** The project number for `service_account`. */ + core.String serviceAccountProject; + + GoogleCloudMlV1beta1GetConfigResponse(); + + GoogleCloudMlV1beta1GetConfigResponse.fromJson(core.Map _json) { + if (_json.containsKey("serviceAccount")) { + serviceAccount = _json["serviceAccount"]; + } + if (_json.containsKey("serviceAccountProject")) { + serviceAccountProject = _json["serviceAccountProject"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (serviceAccount != null) { + _json["serviceAccount"] = serviceAccount; + } + if (serviceAccountProject != null) { + _json["serviceAccountProject"] = serviceAccountProject; + } + return _json; + } +} + +/** + * Represents the result of a single hyperparameter tuning trial from a + * training job. The TrainingOutput object that is returned on successful + * completion of a training job with hyperparameter tuning includes a list + * of HyperparameterOutput objects, one for each successful trial. + */ +class GoogleCloudMlV1beta1HyperparameterOutput { + /** All recorded object metrics for this trial. */ + core.List<GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric> allMetrics; + /** The final objective metric seen for this trial. */ + GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric finalMetric; + /** The hyperparameters given to this trial. */ + core.Map<core.String, core.String> hyperparameters; + /** The trial id for these results. */ + core.String trialId; + + GoogleCloudMlV1beta1HyperparameterOutput(); + + GoogleCloudMlV1beta1HyperparameterOutput.fromJson(core.Map _json) { + if (_json.containsKey("allMetrics")) { + allMetrics = _json["allMetrics"].map((value) => new GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(value)).toList(); + } + if (_json.containsKey("finalMetric")) { + finalMetric = new GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(_json["finalMetric"]); + } + if (_json.containsKey("hyperparameters")) { + hyperparameters = _json["hyperparameters"]; + } + if (_json.containsKey("trialId")) { + trialId = _json["trialId"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (allMetrics != null) { + _json["allMetrics"] = allMetrics.map((value) => (value).toJson()).toList(); + } + if (finalMetric != null) { + _json["finalMetric"] = (finalMetric).toJson(); + } + if (hyperparameters != null) { + _json["hyperparameters"] = hyperparameters; + } + if (trialId != null) { + _json["trialId"] = trialId; + } + return _json; + } +} + +/** Represents a set of hyperparameters to optimize. */ +class GoogleCloudMlV1beta1HyperparameterSpec { + /** + * Required. The type of goal to use for tuning. Available types are + * `MAXIMIZE` and `MINIMIZE`. + * + * Defaults to `MAXIMIZE`. + * Possible string values are: + * - "GOAL_TYPE_UNSPECIFIED" : Goal Type will default to maximize. + * - "MAXIMIZE" : Maximize the goal metric. + * - "MINIMIZE" : Minimize the goal metric. + */ + core.String goal; + /** + * Optional. The number of training trials to run concurrently. + * You can reduce the time it takes to perform hyperparameter tuning by adding + * trials in parallel. However, each trail only benefits from the information + * gained in completed trials. That means that a trial does not get access to + * the results of trials running at the same time, which could reduce the + * quality of the overall optimization. + * + * Each trial will use the same scale tier and machine types. + * + * Defaults to one. + */ + core.int maxParallelTrials; + /** + * Optional. How many training trials should be attempted to optimize + * the specified hyperparameters. + * + * Defaults to one. + */ + core.int maxTrials; + /** Required. The set of parameters to tune. */ + core.List<GoogleCloudMlV1beta1ParameterSpec> params; + + GoogleCloudMlV1beta1HyperparameterSpec(); + + GoogleCloudMlV1beta1HyperparameterSpec.fromJson(core.Map _json) { + if (_json.containsKey("goal")) { + goal = _json["goal"]; + } + if (_json.containsKey("maxParallelTrials")) { + maxParallelTrials = _json["maxParallelTrials"]; + } + if (_json.containsKey("maxTrials")) { + maxTrials = _json["maxTrials"]; + } + if (_json.containsKey("params")) { + params = _json["params"].map((value) => new GoogleCloudMlV1beta1ParameterSpec.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (goal != null) { + _json["goal"] = goal; + } + if (maxParallelTrials != null) { + _json["maxParallelTrials"] = maxParallelTrials; + } + if (maxTrials != null) { + _json["maxTrials"] = maxTrials; + } + if (params != null) { + _json["params"] = params.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** Represents a training or prediction job. */ +class GoogleCloudMlV1beta1Job { + /** Output only. When the job was created. */ + core.String createTime; + /** Output only. When the job processing was completed. */ + core.String endTime; + /** Output only. The details of a failure or a cancellation. */ + core.String errorMessage; + /** Required. The user-specified id of the job. */ + core.String jobId; + /** Input parameters to create a prediction job. */ + GoogleCloudMlV1beta1PredictionInput predictionInput; + /** The current prediction job result. */ + GoogleCloudMlV1beta1PredictionOutput predictionOutput; + /** Output only. When the job processing was started. */ + core.String startTime; + /** + * Output only. The detailed state of a job. + * Possible string values are: + * - "STATE_UNSPECIFIED" : The job state is unspecified. + * - "QUEUED" : The job has been just created and processing has not yet + * begun. + * - "PREPARING" : The service is preparing to run the job. + * - "RUNNING" : The job is in progress. + * - "SUCCEEDED" : The job completed successfully. + * - "FAILED" : The job failed. + * `error_message` should contain the details of the failure. + * - "CANCELLING" : The job is being cancelled. + * `error_message` should describe the reason for the cancellation. + * - "CANCELLED" : The job has been cancelled. + * `error_message` should describe the reason for the cancellation. + */ + core.String state; + /** Input parameters to create a training job. */ + GoogleCloudMlV1beta1TrainingInput trainingInput; + /** The current training job result. */ + GoogleCloudMlV1beta1TrainingOutput trainingOutput; + + GoogleCloudMlV1beta1Job(); + + GoogleCloudMlV1beta1Job.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("errorMessage")) { + errorMessage = _json["errorMessage"]; + } + if (_json.containsKey("jobId")) { + jobId = _json["jobId"]; + } + if (_json.containsKey("predictionInput")) { + predictionInput = new GoogleCloudMlV1beta1PredictionInput.fromJson(_json["predictionInput"]); + } + if (_json.containsKey("predictionOutput")) { + predictionOutput = new GoogleCloudMlV1beta1PredictionOutput.fromJson(_json["predictionOutput"]); + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("state")) { + state = _json["state"]; + } + if (_json.containsKey("trainingInput")) { + trainingInput = new GoogleCloudMlV1beta1TrainingInput.fromJson(_json["trainingInput"]); + } + if (_json.containsKey("trainingOutput")) { + trainingOutput = new GoogleCloudMlV1beta1TrainingOutput.fromJson(_json["trainingOutput"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (endTime != null) { + _json["endTime"] = endTime; + } + if (errorMessage != null) { + _json["errorMessage"] = errorMessage; + } + if (jobId != null) { + _json["jobId"] = jobId; + } + if (predictionInput != null) { + _json["predictionInput"] = (predictionInput).toJson(); + } + if (predictionOutput != null) { + _json["predictionOutput"] = (predictionOutput).toJson(); + } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (state != null) { + _json["state"] = state; + } + if (trainingInput != null) { + _json["trainingInput"] = (trainingInput).toJson(); + } + if (trainingOutput != null) { + _json["trainingOutput"] = (trainingOutput).toJson(); + } + return _json; + } +} + +/** Response message for the ListJobs method. */ +class GoogleCloudMlV1beta1ListJobsResponse { + /** The list of jobs. */ + core.List<GoogleCloudMlV1beta1Job> jobs; + /** + * Optional. Pass this token as the `page_token` field of the request for a + * subsequent call. + */ + core.String nextPageToken; + + GoogleCloudMlV1beta1ListJobsResponse(); + + GoogleCloudMlV1beta1ListJobsResponse.fromJson(core.Map _json) { + if (_json.containsKey("jobs")) { + jobs = _json["jobs"].map((value) => new GoogleCloudMlV1beta1Job.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (jobs != null) { + _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Response message for the ListModels method. */ +class GoogleCloudMlV1beta1ListModelsResponse { + /** The list of models. */ + core.List<GoogleCloudMlV1beta1Model> models; + /** + * Optional. Pass this token as the `page_token` field of the request for a + * subsequent call. + */ + core.String nextPageToken; + + GoogleCloudMlV1beta1ListModelsResponse(); + + GoogleCloudMlV1beta1ListModelsResponse.fromJson(core.Map _json) { + if (_json.containsKey("models")) { + models = _json["models"].map((value) => new GoogleCloudMlV1beta1Model.fromJson(value)).toList(); + } + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (models != null) { + _json["models"] = models.map((value) => (value).toJson()).toList(); + } + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + return _json; + } +} + +/** Response message for the ListVersions method. */ +class GoogleCloudMlV1beta1ListVersionsResponse { + /** + * Optional. Pass this token as the `page_token` field of the request for a + * subsequent call. + */ + core.String nextPageToken; + /** The list of versions. */ + core.List<GoogleCloudMlV1beta1Version> versions; + + GoogleCloudMlV1beta1ListVersionsResponse(); + + GoogleCloudMlV1beta1ListVersionsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("versions")) { + versions = _json["versions"].map((value) => new GoogleCloudMlV1beta1Version.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (versions != null) { + _json["versions"] = versions.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * Represents a machine learning solution. + * + * A model can have multiple versions, each of which is a deployed, trained + * model ready to receive prediction requests. The model itself is just a + * container. + */ +class GoogleCloudMlV1beta1Model { + /** + * Output only. The default version of the model. This version will be used to + * handle prediction requests that do not specify a version. + * + * You can change the default version by calling + * [projects.methods.versions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefault). + */ + GoogleCloudMlV1beta1Version defaultVersion; + /** Optional. The description specified for the model when it was created. */ + core.String description; + /** + * Required. The name specified for the model when it was created. + * + * The model name must be unique within the project it is created in. + */ + core.String name; + + GoogleCloudMlV1beta1Model(); + + GoogleCloudMlV1beta1Model.fromJson(core.Map _json) { + if (_json.containsKey("defaultVersion")) { + defaultVersion = new GoogleCloudMlV1beta1Version.fromJson(_json["defaultVersion"]); + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (defaultVersion != null) { + _json["defaultVersion"] = (defaultVersion).toJson(); + } + if (description != null) { + _json["description"] = description; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** Represents the metadata of the long-running operation. */ +class GoogleCloudMlV1beta1OperationMetadata { + /** The time the operation was submitted. */ + core.String createTime; + /** The time operation processing completed. */ + core.String endTime; + /** Indicates whether a request to cancel this operation has been made. */ + core.bool isCancellationRequested; + /** Contains the name of the model associated with the operation. */ + core.String modelName; + /** + * The operation type. + * Possible string values are: + * - "OPERATION_TYPE_UNSPECIFIED" : Unspecified operation type. + * - "CREATE_VERSION" : An operation to create a new version. + * - "DELETE_VERSION" : An operation to delete an existing version. + * - "DELETE_MODEL" : An operation to delete an existing model. + */ + core.String operationType; + /** The time operation processing started. */ + core.String startTime; + /** Contains the version associated with the operation. */ + GoogleCloudMlV1beta1Version version; + + GoogleCloudMlV1beta1OperationMetadata(); + + GoogleCloudMlV1beta1OperationMetadata.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("endTime")) { + endTime = _json["endTime"]; + } + if (_json.containsKey("isCancellationRequested")) { + isCancellationRequested = _json["isCancellationRequested"]; + } + if (_json.containsKey("modelName")) { + modelName = _json["modelName"]; + } + if (_json.containsKey("operationType")) { + operationType = _json["operationType"]; + } + if (_json.containsKey("startTime")) { + startTime = _json["startTime"]; + } + if (_json.containsKey("version")) { + version = new GoogleCloudMlV1beta1Version.fromJson(_json["version"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (endTime != null) { + _json["endTime"] = endTime; + } + if (isCancellationRequested != null) { + _json["isCancellationRequested"] = isCancellationRequested; + } + if (modelName != null) { + _json["modelName"] = modelName; + } + if (operationType != null) { + _json["operationType"] = operationType; + } + if (startTime != null) { + _json["startTime"] = startTime; + } + if (version != null) { + _json["version"] = (version).toJson(); + } + return _json; + } +} + +/** Represents a single hyperparameter to optimize. */ +class GoogleCloudMlV1beta1ParameterSpec { + /** Required if type is `CATEGORICAL`. The list of possible categories. */ + core.List<core.String> categoricalValues; + /** + * Required if type is `DISCRETE`. + * A list of feasible points. + * The list should be in strictly increasing order. For instance, this + * parameter might have possible settings of 1.5, 2.5, and 4.0. This list + * should not contain more than 1,000 values. + */ + core.List<core.double> discreteValues; + /** + * Required if typeis `DOUBLE` or `INTEGER`. This field + * should be unset if type is `CATEGORICAL`. This value should be integers if + * type is `INTEGER`. + */ + core.double maxValue; + /** + * Required if type is `DOUBLE` or `INTEGER`. This field + * should be unset if type is `CATEGORICAL`. This value should be integers if + * type is INTEGER. + */ + core.double minValue; + /** + * Required. The parameter name must be unique amongst all ParameterConfigs in + * a HyperparameterSpec message. E.g., "learning_rate". + */ + core.String parameterName; + /** + * Optional. How the parameter should be scaled to the hypercube. + * Leave unset for categorical parameters. + * Some kind of scaling is strongly recommended for real or integral + * parameters (e.g., `UNIT_LINEAR_SCALE`). + * Possible string values are: + * - "NONE" : By default, no scaling is applied. + * - "UNIT_LINEAR_SCALE" : Scales the feasible space to (0, 1) linearly. + * - "UNIT_LOG_SCALE" : Scales the feasible space logarithmically to (0, 1). + * The entire feasible + * space must be strictly positive. + * - "UNIT_REVERSE_LOG_SCALE" : Scales the feasible space "reverse" + * logarithmically to (0, 1). The result + * is that values close to the top of the feasible space are spread out more + * than points near the bottom. The entire feasible space must be strictly + * positive. + */ + core.String scaleType; + /** + * Required. The type of the parameter. + * Possible string values are: + * - "PARAMETER_TYPE_UNSPECIFIED" : You must specify a valid type. Using this + * unspecified type will result in + * an error. + * - "DOUBLE" : Type for real-valued parameters. + * - "INTEGER" : Type for integral parameters. + * - "CATEGORICAL" : The parameter is categorical, with a value chosen from + * the categories + * field. + * - "DISCRETE" : The parameter is real valued, with a fixed set of feasible + * points. If + * `type==DISCRETE`, feasible_points must be provided, and + * {`min_value`, `max_value`} will be ignored. + */ + core.String type; + + GoogleCloudMlV1beta1ParameterSpec(); + + GoogleCloudMlV1beta1ParameterSpec.fromJson(core.Map _json) { + if (_json.containsKey("categoricalValues")) { + categoricalValues = _json["categoricalValues"]; + } + if (_json.containsKey("discreteValues")) { + discreteValues = _json["discreteValues"]; + } + if (_json.containsKey("maxValue")) { + maxValue = _json["maxValue"]; + } + if (_json.containsKey("minValue")) { + minValue = _json["minValue"]; + } + if (_json.containsKey("parameterName")) { + parameterName = _json["parameterName"]; + } + if (_json.containsKey("scaleType")) { + scaleType = _json["scaleType"]; + } + if (_json.containsKey("type")) { + type = _json["type"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (categoricalValues != null) { + _json["categoricalValues"] = categoricalValues; + } + if (discreteValues != null) { + _json["discreteValues"] = discreteValues; + } + if (maxValue != null) { + _json["maxValue"] = maxValue; + } + if (minValue != null) { + _json["minValue"] = minValue; + } + if (parameterName != null) { + _json["parameterName"] = parameterName; + } + if (scaleType != null) { + _json["scaleType"] = scaleType; + } + if (type != null) { + _json["type"] = type; + } + return _json; + } +} + +/** + * Request for predictions to be issued against a trained model. + * + * The body of the request is a single JSON object with a single top-level + * field: + * + * <dl> + * <dt>instances</dt> + * <dd>A JSON array containing values representing the instances to use for + * prediction.</dd> + * </dl> + * + * The structure of each element of the instances list is determined by your + * model's input definition. Instances can include named inputs or can contain + * only unlabeled values. + * + * Most data does not include named inputs. Some instances will be simple + * JSON values (boolean, number, or string). However, instances are often lists + * of simple values, or complex nested lists. Here are some examples of request + * bodies: + * + * CSV data with each row encoded as a string value: + * <pre> + * {"instances": ["1.0,true,\\"x\\"", "-2.0,false,\\"y\\""]} + * </pre> + * Plain text: + * <pre> + * {"instances": ["the quick brown fox", "la bruja le dio"]} + * </pre> + * Sentences encoded as lists of words (vectors of strings): + * <pre> + * {"instances": [["the","quick","brown"], ["la","bruja","le"]]} + * </pre> + * Floating point scalar values: + * <pre> + * {"instances": [0.0, 1.1, 2.2]} + * </pre> + * Vectors of integers: + * <pre> + * {"instances": [[0, 1, 2], [3, 4, 5],...]} + * </pre> + * Tensors (in this case, two-dimensional tensors): + * <pre> + * {"instances": [[[0, 1, 2], [3, 4, 5]], ...]} + * </pre> + * Images represented as a three-dimensional list. In this encoding scheme the + * first two dimensions represent the rows and columns of the image, and the + * third contains the R, G, and B values for each pixel. + * <pre> + * {"instances": [[[[138, 30, 66], [130, 20, 56], ...]]]]} + * </pre> + * Data must be encoded as UTF-8. If your data uses another character encoding, + * you must base64 encode the data and mark it as binary. To mark a JSON string + * as binary, replace it with an object with a single attribute named `b`: + * <pre>{"b": "..."} </pre> + * For example: + * + * Two Serialized tf.Examples (fake data, for illustrative purposes only): + * <pre> + * {"instances": [{"b64": "X5ad6u"}, {"b64": "IA9j4nx"}]} + * </pre> + * Two JPEG image byte strings (fake data, for illustrative purposes only): + * <pre> + * {"instances": [{"b64": "ASa8asdf"}, {"b64": "JLK7ljk3"}]} + * </pre> + * If your data includes named references, format each instance as a JSON object + * with the named references as the keys: + * + * JSON input data to be preprocessed: + * <pre> + * {"instances": [{"a": 1.0, "b": true, "c": "x"}, + * {"a": -2.0, "b": false, "c": "y"}]} + * </pre> + * Some models have an underlying TensorFlow graph that accepts multiple input + * tensors. In this case, you should use the names of JSON name/value pairs to + * identify the input tensors, as shown in the following exmaples: + * + * For a graph with input tensor aliases "tag" (string) and "image" + * (base64-encoded string): + * <pre> + * {"instances": [{"tag": "beach", "image": {"b64": "ASa8asdf"}}, + * {"tag": "car", "image": {"b64": "JLK7ljk3"}}]} + * </pre> + * For a graph with input tensor aliases "tag" (string) and "image" + * (3-dimensional array of 8-bit ints): + * <pre> + * {"instances": [{"tag": "beach", "image": [[[263, 1, 10], [262, 2, 11], + * ...]]}, + * {"tag": "car", "image": [[[10, 11, 24], [23, 10, 15], ...]]}]} + * </pre> + * If the call is successful, the response body will contain one prediction + * entry per instance in the request body. If prediction fails for any + * instance, the response body will contain no predictions and will contian + * a single error entry instead. + */ +class GoogleCloudMlV1beta1PredictRequest { + /** + * + * Required. The prediction request body. + */ + GoogleApiHttpBody httpBody; + + GoogleCloudMlV1beta1PredictRequest(); + + GoogleCloudMlV1beta1PredictRequest.fromJson(core.Map _json) { + if (_json.containsKey("httpBody")) { + httpBody = new GoogleApiHttpBody.fromJson(_json["httpBody"]); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (httpBody != null) { + _json["httpBody"] = (httpBody).toJson(); + } + return _json; + } +} + +/** Represents input parameters for a prediction job. */ +class GoogleCloudMlV1beta1PredictionInput { + /** + * Required. The format of the input data files. + * Possible string values are: + * - "DATA_FORMAT_UNSPECIFIED" : Unspecified format. + * - "TEXT" : The source file is a text file with instances separated by the + * new-line character. + * - "TF_RECORD" : The source file is a TFRecord file. + * - "TF_RECORD_GZIP" : The source file is a GZIP-compressed TFRecord file. + */ + core.String dataFormat; + /** + * Required. The Google Cloud Storage location of the input data files. + * May contain wildcards. + */ + core.List<core.String> inputPaths; + /** + * Optional. The maximum number of workers to be used for parallel processing. + * Defaults to 10 if not specified. + */ + core.String maxWorkerCount; + /** + * Use this field if you want to use the default version for the specified + * model. The string must use the following format: + * + * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>[YOUR_MODEL]</var>"` + */ + core.String modelName; + /** Required. The output Google Cloud Storage location. */ + core.String outputPath; + /** + * Required. The Google Compute Engine region to run the prediction job in. + */ + core.String region; + /** + * Use this field if you want to specify a version of the model to use. The + * string is formatted the same way as `model_version`, with the addition + * of the version information: + * + * `"projects/<var>[YOUR_PROJECT]</var>/models/<var>YOUR_MODEL/versions/<var>[YOUR_VERSION]</var>"` + */ + core.String versionName; + + GoogleCloudMlV1beta1PredictionInput(); + + GoogleCloudMlV1beta1PredictionInput.fromJson(core.Map _json) { + if (_json.containsKey("dataFormat")) { + dataFormat = _json["dataFormat"]; + } + if (_json.containsKey("inputPaths")) { + inputPaths = _json["inputPaths"]; + } + if (_json.containsKey("maxWorkerCount")) { + maxWorkerCount = _json["maxWorkerCount"]; + } + if (_json.containsKey("modelName")) { + modelName = _json["modelName"]; + } + if (_json.containsKey("outputPath")) { + outputPath = _json["outputPath"]; + } + if (_json.containsKey("region")) { + region = _json["region"]; + } + if (_json.containsKey("versionName")) { + versionName = _json["versionName"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (dataFormat != null) { + _json["dataFormat"] = dataFormat; + } + if (inputPaths != null) { + _json["inputPaths"] = inputPaths; + } + if (maxWorkerCount != null) { + _json["maxWorkerCount"] = maxWorkerCount; + } + if (modelName != null) { + _json["modelName"] = modelName; + } + if (outputPath != null) { + _json["outputPath"] = outputPath; + } + if (region != null) { + _json["region"] = region; + } + if (versionName != null) { + _json["versionName"] = versionName; + } + return _json; + } +} + +/** Represents results of a prediction job. */ +class GoogleCloudMlV1beta1PredictionOutput { + /** The number of data instances which resulted in errors. */ + core.String errorCount; + /** + * The output Google Cloud Storage location provided at the job creation time. + */ + core.String outputPath; + /** The number of generated predictions. */ + core.String predictionCount; + + GoogleCloudMlV1beta1PredictionOutput(); + + GoogleCloudMlV1beta1PredictionOutput.fromJson(core.Map _json) { + if (_json.containsKey("errorCount")) { + errorCount = _json["errorCount"]; + } + if (_json.containsKey("outputPath")) { + outputPath = _json["outputPath"]; + } + if (_json.containsKey("predictionCount")) { + predictionCount = _json["predictionCount"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (errorCount != null) { + _json["errorCount"] = errorCount; + } + if (outputPath != null) { + _json["outputPath"] = outputPath; + } + if (predictionCount != null) { + _json["predictionCount"] = predictionCount; + } + return _json; + } +} + +/** Request message for the SetDefaultVersion request. */ +class GoogleCloudMlV1beta1SetDefaultVersionRequest { + + GoogleCloudMlV1beta1SetDefaultVersionRequest(); + + GoogleCloudMlV1beta1SetDefaultVersionRequest.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + return _json; + } +} + +/** Represents input parameters for a training job. */ +class GoogleCloudMlV1beta1TrainingInput { + /** Optional. Command line arguments to pass to the program. */ + core.List<core.String> args; + /** Optional. The set of Hyperparameters to tune. */ + GoogleCloudMlV1beta1HyperparameterSpec hyperparameters; + /** + * Optional. Specifies the type of virtual machine to use for your training + * job's master worker. + * + * The following types are supported: + * + * <dl> + * <dt>standard</dt> + * <dd> + * A basic machine configuration suitable for training simple models with + * small to moderate datasets. + * </dd> + * <dt>large_model</dt> + * <dd> + * A machine with a lot of memory, specially suited for parameter servers + * when your model is large (having many hidden layers or layers with very + * large numbers of nodes). + * </dd> + * <dt>complex_model_s</dt> + * <dd> + * A machine suitable for the master and workers of the cluster when your + * model requires more computation than the standard machine can handle + * satisfactorily. + * </dd> + * <dt>complex_model_m</dt> + * <dd> + * A machine with roughly twice the number of cores and roughly double the + * memory of <code suppresswarning="true">complex_model_s</code>. + * </dd> + * <dt>complex_model_l</dt> + * <dd> + * A machine with roughly twice the number of cores and roughly double the + * memory of <code suppresswarning="true">complex_model_m</code>. + * </dd> + * </dl> + * + * You must set this value when `scaleTier` is set to `CUSTOM`. + */ + core.String masterType; + /** + * Required. The Google Cloud Storage location of the packages with + * the training program and any additional dependencies. + */ + core.List<core.String> packageUris; + /** + * Optional. The number of parameter server replicas to use for the training + * job. Each replica in the cluster will be of the type specified in + * `parameter_server_type`. + * + * This value can only be used when `scale_tier` is set to `CUSTOM`.If you + * set this value, you must also set `parameter_server_type`. + */ + core.String parameterServerCount; + /** + * Optional. Specifies the type of virtual machine to use for your training + * job's parameter server. + * + * The supported values are the same as those described in the entry for + * `master_type`. + * + * This value must be present when `scaleTier` is set to `CUSTOM` and + * `parameter_server_count` is greater than zero. + */ + core.String parameterServerType; + /** Required. The Python module name to run after installing the packages. */ + core.String pythonModule; + /** Required. The Google Compute Engine region to run the training job in. */ + core.String region; + /** + * Required. Specifies the machine types, the number of replicas for workers + * and parameter servers. + * Possible string values are: + * - "BASIC" : A single worker instance. This tier is suitable for learning + * how to use + * Cloud ML, and for experimenting with new models using small datasets. + * - "STANDARD_1" : Many workers and a few parameter servers. + * - "PREMIUM_1" : A large number of workers with many parameter servers. + * - "CUSTOM" : The CUSTOM tier is not a set tier, but rather enables you to + * use your + * own cluster specification. When you use this tier, set values to + * configure your processing cluster according to these guidelines: + * + * * You _must_ set `TrainingInput.masterType` to specify the type + * of machine to use for your master node. This is the only required + * setting. + * + * * You _may_ set `TrainingInput.workerCount` to specify the number of + * workers to use. If you specify one or more workers, you _must_ also + * set `TrainingInput.workerType` to specify the type of machine to use + * for your worker nodes. + * + * * You _may_ set `TrainingInput.parameterServerCount` to specify the + * number of parameter servers to use. If you specify one or more + * parameter servers, you _must_ also set + * `TrainingInput.parameterServerType` to specify the type of machine to + * use for your parameter servers. + * + * Note that all of your workers must use the same machine type, which can + * be different from your parameter server type and master type. Your + * parameter servers must likewise use the same machine type, which can be + * different from your worker type and master type. + */ + core.String scaleTier; + /** + * Optional. The number of worker replicas to use for the training job. Each + * replica in the cluster will be of the type specified in `worker_type`. + * + * This value can only be used when `scale_tier` is set to `CUSTOM`. If you + * set this value, you must also set `worker_type`. + */ + core.String workerCount; + /** + * Optional. Specifies the type of virtual machine to use for your training + * job's worker nodes. + * + * The supported values are the same as those described in the entry for + * `masterType`. + * + * This value must be present when `scaleTier` is set to `CUSTOM` and + * `workerCount` is greater than zero. + */ + core.String workerType; + + GoogleCloudMlV1beta1TrainingInput(); + + GoogleCloudMlV1beta1TrainingInput.fromJson(core.Map _json) { + if (_json.containsKey("args")) { + args = _json["args"]; + } + if (_json.containsKey("hyperparameters")) { + hyperparameters = new GoogleCloudMlV1beta1HyperparameterSpec.fromJson(_json["hyperparameters"]); + } + if (_json.containsKey("masterType")) { + masterType = _json["masterType"]; + } + if (_json.containsKey("packageUris")) { + packageUris = _json["packageUris"]; + } + if (_json.containsKey("parameterServerCount")) { + parameterServerCount = _json["parameterServerCount"]; + } + if (_json.containsKey("parameterServerType")) { + parameterServerType = _json["parameterServerType"]; + } + if (_json.containsKey("pythonModule")) { + pythonModule = _json["pythonModule"]; + } + if (_json.containsKey("region")) { + region = _json["region"]; + } + if (_json.containsKey("scaleTier")) { + scaleTier = _json["scaleTier"]; + } + if (_json.containsKey("workerCount")) { + workerCount = _json["workerCount"]; + } + if (_json.containsKey("workerType")) { + workerType = _json["workerType"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (args != null) { + _json["args"] = args; + } + if (hyperparameters != null) { + _json["hyperparameters"] = (hyperparameters).toJson(); + } + if (masterType != null) { + _json["masterType"] = masterType; + } + if (packageUris != null) { + _json["packageUris"] = packageUris; + } + if (parameterServerCount != null) { + _json["parameterServerCount"] = parameterServerCount; + } + if (parameterServerType != null) { + _json["parameterServerType"] = parameterServerType; + } + if (pythonModule != null) { + _json["pythonModule"] = pythonModule; + } + if (region != null) { + _json["region"] = region; + } + if (scaleTier != null) { + _json["scaleTier"] = scaleTier; + } + if (workerCount != null) { + _json["workerCount"] = workerCount; + } + if (workerType != null) { + _json["workerType"] = workerType; + } + return _json; + } +} + +/** Represents results of a training job. */ +class GoogleCloudMlV1beta1TrainingOutput { + /** + * The number of hyperparameter tuning trials that completed successfully. + */ + core.String completedTrialCount; + /** Results for individual Hyperparameter trials. */ + core.List<GoogleCloudMlV1beta1HyperparameterOutput> trials; + + GoogleCloudMlV1beta1TrainingOutput(); + + GoogleCloudMlV1beta1TrainingOutput.fromJson(core.Map _json) { + if (_json.containsKey("completedTrialCount")) { + completedTrialCount = _json["completedTrialCount"]; + } + if (_json.containsKey("trials")) { + trials = _json["trials"].map((value) => new GoogleCloudMlV1beta1HyperparameterOutput.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (completedTrialCount != null) { + _json["completedTrialCount"] = completedTrialCount; + } + if (trials != null) { + _json["trials"] = trials.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * Represents a version of the model. + * + * Each version is a trained model deployed in the cloud, ready to handle + * prediction requests. A model can have multiple versions. You can get + * information about all of the versions of a given model by calling + * [projects.models.versions.list](/ml/reference/rest/v1beta1/projects.models.versions/list). + */ +class GoogleCloudMlV1beta1Version { + /** Output only. The time the version was created. */ + core.String createTime; + /** + * Required. The Google Cloud Storage location of the trained model used to + * create the version. See the + * [overview of model deployment](/ml/docs/concepts/deployment-overview) for + * more informaiton. + * + * When passing Version to + * [projects.models.versions.create](/ml/reference/rest/v1beta1/projects.models.versions/create) + * the model service uses the specified location as the source of the model. + * Once deployed, the model version is hosted by the prediction service, so + * this location is useful only as a historical record. + */ + core.String deploymentUri; + /** + * Optional. The description specified for the version when it was created. + */ + core.String description; + /** + * Output only. If true, this version will be used to handle prediction + * requests that do not specify a version. + * + * You can change the default version by calling + * [projects.methods.versions.setDefault](/ml/reference/rest/v1beta1/projects.models.versions/setDefault). + */ + core.bool isDefault; + /** Output only. The time the version was last used for prediction. */ + core.String lastUseTime; + /** + * Required.The name specified for the version when it was created. + * + * The version name must be unique within the model it is created in. + */ + core.String name; + + GoogleCloudMlV1beta1Version(); + + GoogleCloudMlV1beta1Version.fromJson(core.Map _json) { + if (_json.containsKey("createTime")) { + createTime = _json["createTime"]; + } + if (_json.containsKey("deploymentUri")) { + deploymentUri = _json["deploymentUri"]; + } + if (_json.containsKey("description")) { + description = _json["description"]; + } + if (_json.containsKey("isDefault")) { + isDefault = _json["isDefault"]; + } + if (_json.containsKey("lastUseTime")) { + lastUseTime = _json["lastUseTime"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (createTime != null) { + _json["createTime"] = createTime; + } + if (deploymentUri != null) { + _json["deploymentUri"] = deploymentUri; + } + if (description != null) { + _json["description"] = description; + } + if (isDefault != null) { + _json["isDefault"] = isDefault; + } + if (lastUseTime != null) { + _json["lastUseTime"] = lastUseTime; + } + if (name != null) { + _json["name"] = name; + } + return _json; + } +} + +/** The response message for Operations.ListOperations. */ +class GoogleLongrunningListOperationsResponse { + /** The standard List next-page token. */ + core.String nextPageToken; + /** A list of operations that matches the specified filter in the request. */ + core.List<GoogleLongrunningOperation> operations; + + GoogleLongrunningListOperationsResponse(); + + GoogleLongrunningListOperationsResponse.fromJson(core.Map _json) { + if (_json.containsKey("nextPageToken")) { + nextPageToken = _json["nextPageToken"]; + } + if (_json.containsKey("operations")) { + operations = _json["operations"].map((value) => new GoogleLongrunningOperation.fromJson(value)).toList(); + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (nextPageToken != null) { + _json["nextPageToken"] = nextPageToken; + } + if (operations != null) { + _json["operations"] = operations.map((value) => (value).toJson()).toList(); + } + return _json; + } +} + +/** + * This resource represents a long-running operation that is the result of a + * network API call. + */ +class GoogleLongrunningOperation { + /** + * 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 or cancellation. */ + GoogleRpcStatus 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 + * long-running operation should document the metadata type, if any. + * + * 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> 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`. + */ + 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`. + * + * 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> response; + + GoogleLongrunningOperation(); + + GoogleLongrunningOperation.fromJson(core.Map _json) { + if (_json.containsKey("done")) { + done = _json["done"]; + } + if (_json.containsKey("error")) { + error = new GoogleRpcStatus.fromJson(_json["error"]); + } + if (_json.containsKey("metadata")) { + metadata = _json["metadata"]; + } + if (_json.containsKey("name")) { + name = _json["name"]; + } + if (_json.containsKey("response")) { + response = _json["response"]; + } + } + + core.Map toJson() { + var _json = new core.Map(); + if (done != null) { + _json["done"] = done; + } + if (error != null) { + _json["error"] = (error).toJson(); + } + if (metadata != null) { + _json["metadata"] = metadata; + } + if (name != null) { + _json["name"] = name; + } + if (response != null) { + _json["response"] = response; + } + 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 + * 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 GoogleProtobufEmpty { + + GoogleProtobufEmpty(); + + GoogleProtobufEmpty.fromJson(core.Map _json) { + } + + core.Map toJson() { + var _json = new core.Map(); + 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 GoogleRpcStatus { + /** 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; + + GoogleRpcStatus(); + + GoogleRpcStatus.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; + } +}
diff --git a/generated/googleapis_beta/lib/pubsub/v1beta2.dart b/generated/googleapis_beta/lib/pubsub/v1beta2.dart index ab145f9..7bc3555 100644 --- a/generated/googleapis_beta/lib/pubsub/v1beta2.dart +++ b/generated/googleapis_beta/lib/pubsub/v1beta2.dart
@@ -105,7 +105,7 @@ * exists, returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, * returns `NOT_FOUND`. If the name is not provided in the request, the server * will assign a random name for this subscription on the same project as the - * topic. + * topic. Note that for REST API requests, you must specify a name. * * [request] - The metadata request object. * @@ -239,16 +239,14 @@ } /** - * Gets the access control policy for a `resource`. Returns an empty policy if + * Gets the access control policy for a resource. Returns an empty policy if * the resource exists and does not have a policy set. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". * * Completes with a [Policy]. @@ -339,7 +337,8 @@ * Modifies the ack deadline for a specific message. This method is useful to * indicate that more time is needed to process a message by the subscriber, * or to make the message available for redelivery if the processing was - * interrupted. + * interrupted. Note that this does not modify the subscription-level + * `ackDeadlineSeconds` used for subsequent messages. * * [request] - The metadata request object. * @@ -489,10 +488,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". * * Completes with a [Policy]. @@ -538,10 +535,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / subscriptions/[^/]*$". * * Completes with a [TestIamPermissionsResponse]. @@ -725,16 +720,14 @@ } /** - * Gets the access control policy for a `resource`. Returns an empty policy if + * Gets the access control policy for a resource. Returns an empty policy if * the resource exists and does not have a policy set. * * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `getIamPolicy` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / topics/[^/]*$". * * Completes with a [Policy]. @@ -877,10 +870,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy is being - * specified. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `setIamPolicy` documentation. + * specified. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / topics/[^/]*$". * * Completes with a [Policy]. @@ -926,10 +917,8 @@ * Request parameters: * * [resource] - REQUIRED: The resource for which the policy detail is being - * requested. `resource` is usually specified as a path, such as `projects / * - * project * / zones / * zone * / disks / * disk*`. The format for the path - * specified in this value is resource specific and is specified in the - * `testIamPermissions` documentation. + * requested. `resource` is usually specified as a path. For example, a + * Project resource is specified as `projects/{project}`. * Value must have pattern "^projects/[^/] * / topics/[^/]*$". * * Completes with a [TestIamPermissionsResponse]. @@ -1427,7 +1416,7 @@ core.Map<core.String, core.String> attributes; /** * The message payload. For JSON requests, the value of this field must be - * base64-encoded. + * [base64-encoded](https://tools.ietf.org/html/rfc4648). */ core.String data; core.List<core.int> get dataAsBytes { @@ -1666,10 +1655,11 @@ * (on a best-effort basis). For pull subscriptions, this value is used as the * initial value for the ack deadline. To override this value for a given * message, call `ModifyAckDeadline` with the corresponding `ack_id` if using - * pull. For push delivery, this value is also used to set the request timeout - * for the call to the push endpoint. If the subscriber never acknowledges the - * message, the Pub/Sub system will eventually redeliver the message. If this - * parameter is not set, the default value of 10 seconds is used. + * pull. The maximum custom deadline you can specify is 600 seconds (10 + * minutes). For push delivery, this value is also used to set the request + * timeout for the call to the push endpoint. If the subscriber never + * acknowledges the message, the Pub/Sub system will eventually redeliver the + * message. If this parameter is 0, a default value of 10 seconds is used. */ core.int ackDeadlineSeconds; /** @@ -1734,7 +1724,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. + * information see [IAM + * Overview](https://cloud.google.com/iam/docs/overview#permissions). */ core.List<core.String> permissions;
diff --git a/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart b/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart index ee4ffc7..c20a44a 100644 --- a/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart +++ b/generated/googleapis_beta/lib/replicapoolupdater/v1beta1.dart
@@ -14,7 +14,11 @@ const core.String USER_AGENT = 'dart-api-client replicapoolupdater/v1beta1'; -/** Updates groups of Compute Engine instances. */ +/** + * [Deprecated. Please use compute.instanceGroupManagers.update method. + * replicapoolupdater API will be disabled after December 30th, 2016] Updates + * groups of Compute Engine instances. + */ class ReplicapoolupdaterApi { /** View and manage your data across Google Cloud Platform services */ static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
diff --git a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart index bd6e464..8eb336f 100644 --- a/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart +++ b/generated/googleapis_beta/lib/runtimeconfig/v1beta1.dart
@@ -66,7 +66,16 @@ * [parent] - The [project * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) * for this request, in the format `projects/[PROJECT_ID]`. - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". + * + * [requestId] - An optional unique request_id. If server receives two Create + * requests with + * the same request_id then second request will be ignored and the resource + * stored in the backend will be returned. Empty request_id fields are + * ignored. + * It is responsibility of the client to ensure uniqueness of the request_id + * strings. + * The strings are limited to 64 characters. * * Completes with a [RuntimeConfig]. * @@ -76,7 +85,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<RuntimeConfig> create(RuntimeConfig request, core.String parent) { + async.Future<RuntimeConfig> create(RuntimeConfig request, core.String parent, {core.String requestId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -90,6 +99,9 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/configs'; @@ -111,7 +123,7 @@ * [name] - The RuntimeConfig resource to delete, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". * * Completes with a [Empty]. * @@ -153,7 +165,7 @@ * [name] - The name of the RuntimeConfig resource to retrieve, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". * * Completes with a [RuntimeConfig]. * @@ -195,7 +207,7 @@ * [parent] - The [project * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848) * for this request, in the format `projects/[PROJECT_ID]`. - * Value must have pattern "^projects/[^/]*$". + * Value must have pattern "^projects/[^/]+$". * * [pageSize] - Specifies the number of results to return per page. If there * are fewer @@ -253,7 +265,7 @@ * [name] - The name of the RuntimeConfig resource to update, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". * * Completes with a [RuntimeConfig]. * @@ -307,8 +319,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * operations/.*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$". * * Completes with a [Operation]. * @@ -370,7 +381,16 @@ * The configuration must exist beforehand; the path must by in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". + * + * [requestId] - An optional unique request_id. If server receives two Create + * requests with + * the same request_id then second request will be ignored and the resource + * stored in the backend will be returned. Empty request_id fields are + * ignored. + * It is responsibility of the client to ensure uniqueness of the request_id + * strings. + * The strings are limited to 64 characters. * * Completes with a [Variable]. * @@ -380,7 +400,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<Variable> create(Variable request, core.String parent) { + async.Future<Variable> create(Variable request, core.String parent, {core.String requestId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -394,6 +414,9 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/variables'; @@ -420,8 +443,7 @@ * [name] - The name of the variable to delete, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * variables/.*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". * * [recursive] - Set to `true` to recursively delete multiple variables with * the same @@ -470,8 +492,7 @@ * [name] - The name of the variable to return, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * variables/.*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". * * Completes with a [Variable]. * @@ -517,7 +538,7 @@ * The configuration must exist beforehand; the path must by in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". * * [pageSize] - Specifies the number of results to return per page. If there * are fewer @@ -582,8 +603,7 @@ * [name] - The name of the variable to update, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * variables/.*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". * * Completes with a [Variable]. * @@ -645,8 +665,7 @@ * [name] - The name of the variable to watch, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * variables/.*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". * * Completes with a [Variable]. * @@ -707,7 +726,16 @@ * The configuration must exist beforehand; the path must by in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". + * + * [requestId] - An optional unique request_id. If server receives two Create + * requests with + * the same request_id then second request will be ignored and information + * stored in the backend will be returned. Empty request_id fields are + * ignored. + * It is responsibility of the client to ensure uniqueness of the request_id + * strings. + * The strings are limited to 64 characters. * * Completes with a [Operation]. * @@ -717,7 +745,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> create(Waiter request, core.String parent) { + async.Future<Operation> create(Waiter request, core.String parent, {core.String requestId}) { var _url = null; var _queryParams = new core.Map(); var _uploadMedia = null; @@ -731,6 +759,9 @@ if (parent == null) { throw new core.ArgumentError("Parameter parent is required."); } + if (requestId != null) { + _queryParams["requestId"] = [requestId]; + } _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/waiters'; @@ -752,8 +783,7 @@ * [name] - The Waiter resource to delete, in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * waiters/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". * * Completes with a [Empty]. * @@ -797,8 +827,7 @@ * format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/] * / - * waiters/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". * * Completes with a [Waiter]. * @@ -842,7 +871,7 @@ * The configuration must exist beforehand; the path must by in the format: * * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` - * Value must have pattern "^projects/[^/] * / configs/[^/]*$". + * Value must have pattern "^projects/[^/]+/configs/[^/]+$". * * [pageSize] - Specifies the number of results to return per page. If there * are fewer @@ -1119,7 +1148,7 @@ * 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
diff --git a/generated/googleapis_beta/lib/speech/v1beta1.dart b/generated/googleapis_beta/lib/speech/v1beta1.dart index 4554427..1b790bc 100644 --- a/generated/googleapis_beta/lib/speech/v1beta1.dart +++ b/generated/googleapis_beta/lib/speech/v1beta1.dart
@@ -43,14 +43,17 @@ * `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. + * 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 "^[^/]*$". + * Value must have pattern "^[^/]+$". * * Completes with a [Empty]. * @@ -96,7 +99,7 @@ * Request parameters: * * [name] - The name of the operation resource to be deleted. - * Value must have pattern "^[^/]*$". + * Value must have pattern "^[^/]+$". * * Completes with a [Empty]. * @@ -138,7 +141,7 @@ * Request parameters: * * [name] - The name of the operation resource. - * Value must have pattern "^[^/]*$". + * Value must have pattern "^[^/]+$". * * Completes with a [Operation]. * @@ -240,7 +243,7 @@ _requester = client; /** - * Perform asynchronous speech-recognition: receive results via the + * Performs asynchronous speech recognition: receive results via the * google.longrunning.Operations interface. Returns either an * `Operation.error` or an `Operation.response` which contains * an `AsyncRecognizeResponse` message. @@ -282,7 +285,7 @@ } /** - * Perform synchronous speech-recognition: receive results after all audio + * Performs synchronous speech recognition: receive results after all audio * has been sent and processed. * * [request] - The metadata request object. @@ -440,7 +443,7 @@ * 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 @@ -577,7 +580,8 @@ * Possible string values are: * - "ENCODING_UNSPECIFIED" : Not specified. Will return result * google.rpc.Code.INVALID_ARGUMENT. - * - "LINEAR16" : Uncompressed 16-bit signed little-endian samples. + * - "LINEAR16" : Uncompressed 16-bit signed little-endian samples (Linear + * PCM). * This is the only encoding that may be used by `AsyncRecognize`. * - "FLAC" : This is the recommended encoding for `SyncRecognize` and * `StreamingRecognize` because it uses lossless compression; therefore @@ -585,7 +589,7 @@ * * The stream FLAC (Free Lossless Audio Codec) encoding is specified at: * http://flac.sourceforge.net/documentation.html. - * Only 16-bit samples are supported. + * 16-bit and 24-bit samples are supported. * Not all fields in STREAMINFO are supported. * - "MULAW" : 8-bit samples that compand 14-bit audio samples using G.711 * PCMU/mu-law. @@ -599,8 +603,7 @@ * [Optional] The language of the supplied audio as a BCP-47 language tag. * Example: "en-GB" https://www.rfc-editor.org/rfc/bcp/bcp47.txt * If omitted, defaults to "en-US". See - * [Language - * Support](https://cloud.google.com/speech/docs/best-practices#language_support) + * [Language Support](https://cloud.google.com/speech/docs/languages) * for a list of the currently supported language codes. */ core.String languageCode;
diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta3.dart b/generated/googleapis_beta/lib/sqladmin/v1beta3.dart index 932b0cc..55b06e5 100644 --- a/generated/googleapis_beta/lib/sqladmin/v1beta3.dart +++ b/generated/googleapis_beta/lib/sqladmin/v1beta3.dart
@@ -1598,6 +1598,8 @@ /** A Cloud SQL instance resource. */ class DatabaseInstance { + /** Connection name of the Cloud SQL instance used in connection strings. */ + core.String connectionName; /** The current disk usage of the instance in bytes. */ core.String currentDiskSize; /** @@ -1662,6 +1664,9 @@ DatabaseInstance(); DatabaseInstance.fromJson(core.Map _json) { + if (_json.containsKey("connectionName")) { + connectionName = _json["connectionName"]; + } if (_json.containsKey("currentDiskSize")) { currentDiskSize = _json["currentDiskSize"]; } @@ -1717,6 +1722,9 @@ core.Map toJson() { var _json = new core.Map(); + if (connectionName != null) { + _json["connectionName"] = connectionName; + } if (currentDiskSize != null) { _json["currentDiskSize"] = currentDiskSize; }
diff --git a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart index 2cfabc1..e491b17 100644 --- a/generated/googleapis_beta/lib/sqladmin/v1beta4.dart +++ b/generated/googleapis_beta/lib/sqladmin/v1beta4.dart
@@ -148,7 +148,8 @@ } /** - * Creates a new backup run on demand. + * Creates a new backup run on demand. This method is applicable only to + * Second Generation instances. * * [request] - The metadata request object. * @@ -2551,6 +2552,8 @@ * EXTERNAL: A MySQL server that is not managed by Google. */ core.String backendType; + /** Connection name of the Cloud SQL instance used in connection strings. */ + core.String connectionName; /** * The current disk usage of the instance in bytes. This property has been * deprecated. Users should use the @@ -2653,6 +2656,9 @@ if (_json.containsKey("backendType")) { backendType = _json["backendType"]; } + if (_json.containsKey("connectionName")) { + connectionName = _json["connectionName"]; + } if (_json.containsKey("currentDiskSize")) { currentDiskSize = _json["currentDiskSize"]; } @@ -2726,6 +2732,9 @@ if (backendType != null) { _json["backendType"] = backendType; } + if (connectionName != null) { + _json["connectionName"] = connectionName; + } if (currentDiskSize != null) { _json["currentDiskSize"] = currentDiskSize; }
diff --git a/generated/googleapis_beta/pubspec.yaml b/generated/googleapis_beta/pubspec.yaml index 340bcc4..3ac18c4 100644 --- a/generated/googleapis_beta/pubspec.yaml +++ b/generated/googleapis_beta/pubspec.yaml
@@ -1,7 +1,7 @@ name: googleapis_beta -version: 0.30.1 +version: 0.31.0 author: Dart Team <misc@dartlang.org> -description: "Auto-generated client libraries for accessing the following APIs:adexchangebuyer2:v2beta1, appengine:v1beta4, appengine:v1beta5, clouderrorreporting:v1beta1, cloudmonitoring:v2beta2, cloudresourcemanager:v1beta1, clouduseraccounts:beta, dataflow:v1b3, dataproc:v1beta1, datastore:v1beta2, datastore:v1beta3, dfareporting:v2.5beta1, dns:v2beta1, genomics:v1beta2, language:v1beta1, logging:v2beta1, proximitybeacon:v1beta1, pubsub:v1beta2, replicapool:v1beta2, replicapoolupdater:v1beta1, resourceviews:v1beta1, resourceviews:v1beta2, runtimeconfig:v1beta1, speech:v1beta1, sqladmin:v1beta3, sqladmin:v1beta4, taskqueue:v1beta2, toolresults:v1beta3" +description: "Auto-generated client libraries for accessing the following APIs:adexchangebuyer2:v2beta1, appengine:v1beta4, appengine:v1beta5, clouderrorreporting:v1beta1, cloudmonitoring:v2beta2, cloudresourcemanager:v1beta1, clouduseraccounts:beta, dataflow:v1b3, dataproc:v1beta1, datastore:v1beta2, datastore:v1beta3, dfareporting:v2.5beta1, dns:v2beta1, genomics:v1beta2, language:v1beta1, logging:v2beta1, ml:v1beta1, proximitybeacon:v1beta1, pubsub:v1beta2, replicapool:v1beta2, replicapoolupdater:v1beta1, resourceviews:v1beta1, resourceviews:v1beta2, runtimeconfig:v1beta1, speech:v1beta1, sqladmin:v1beta3, sqladmin:v1beta4, taskqueue:v1beta2, toolresults:v1beta3" homepage: http://www.dartlang.org/googleapis/ environment: sdk: '>=1.14.0 <2.0.0'
diff --git a/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart b/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart index c2ad47a..d4dcaf7 100644 --- a/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart +++ b/generated/googleapis_beta/test/adexchangebuyer2/v2beta1_test.dart
@@ -132,14 +132,14 @@ buildCounterClientUserInvitation--; } -buildUnnamed4220() { +buildUnnamed4055() { var o = new core.List<api.ClientUserInvitation>(); o.add(buildClientUserInvitation()); o.add(buildClientUserInvitation()); return o; } -checkUnnamed4220(core.List<api.ClientUserInvitation> o) { +checkUnnamed4055(core.List<api.ClientUserInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkClientUserInvitation(o[0]); checkClientUserInvitation(o[1]); @@ -150,7 +150,7 @@ var o = new api.ListClientUserInvitationsResponse(); buildCounterListClientUserInvitationsResponse++; if (buildCounterListClientUserInvitationsResponse < 3) { - o.invitations = buildUnnamed4220(); + o.invitations = buildUnnamed4055(); o.nextPageToken = "foo"; } buildCounterListClientUserInvitationsResponse--; @@ -160,20 +160,20 @@ checkListClientUserInvitationsResponse(api.ListClientUserInvitationsResponse o) { buildCounterListClientUserInvitationsResponse++; if (buildCounterListClientUserInvitationsResponse < 3) { - checkUnnamed4220(o.invitations); + checkUnnamed4055(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClientUserInvitationsResponse--; } -buildUnnamed4221() { +buildUnnamed4056() { var o = new core.List<api.ClientUser>(); o.add(buildClientUser()); o.add(buildClientUser()); return o; } -checkUnnamed4221(core.List<api.ClientUser> o) { +checkUnnamed4056(core.List<api.ClientUser> o) { unittest.expect(o, unittest.hasLength(2)); checkClientUser(o[0]); checkClientUser(o[1]); @@ -185,7 +185,7 @@ buildCounterListClientUsersResponse++; if (buildCounterListClientUsersResponse < 3) { o.nextPageToken = "foo"; - o.users = buildUnnamed4221(); + o.users = buildUnnamed4056(); } buildCounterListClientUsersResponse--; return o; @@ -195,19 +195,19 @@ buildCounterListClientUsersResponse++; if (buildCounterListClientUsersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4221(o.users); + checkUnnamed4056(o.users); } buildCounterListClientUsersResponse--; } -buildUnnamed4222() { +buildUnnamed4057() { var o = new core.List<api.Client>(); o.add(buildClient()); o.add(buildClient()); return o; } -checkUnnamed4222(core.List<api.Client> o) { +checkUnnamed4057(core.List<api.Client> o) { unittest.expect(o, unittest.hasLength(2)); checkClient(o[0]); checkClient(o[1]); @@ -218,7 +218,7 @@ var o = new api.ListClientsResponse(); buildCounterListClientsResponse++; if (buildCounterListClientsResponse < 3) { - o.clients = buildUnnamed4222(); + o.clients = buildUnnamed4057(); o.nextPageToken = "foo"; } buildCounterListClientsResponse--; @@ -228,7 +228,7 @@ checkListClientsResponse(api.ListClientsResponse o) { buildCounterListClientsResponse++; if (buildCounterListClientsResponse < 3) { - checkUnnamed4222(o.clients); + checkUnnamed4057(o.clients); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClientsResponse--;
diff --git a/generated/googleapis_beta/test/appengine/v1beta4_test.dart b/generated/googleapis_beta/test/appengine/v1beta4_test.dart index 5f410b2..cb33dff 100644 --- a/generated/googleapis_beta/test/appengine/v1beta4_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta4_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed4189() { +buildUnnamed4024() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed4189(core.List<api.UrlDispatchRule> o) { +checkUnnamed4024(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 = buildUnnamed4189(); + o.dispatchRules = buildUnnamed4024(); o.id = "foo"; o.location = "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')); - checkUnnamed4189(o.dispatchRules); + checkUnnamed4024(o.dispatchRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -252,6 +252,7 @@ var o = new api.DebugInstanceRequest(); buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + o.sshKey = "foo"; } buildCounterDebugInstanceRequest--; return o; @@ -260,31 +261,32 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) { buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + unittest.expect(o.sshKey, unittest.equals('foo')); } buildCounterDebugInstanceRequest--; } -buildUnnamed4190() { +buildUnnamed4025() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed4190(core.Map<core.String, api.FileInfo> o) { +checkUnnamed4025(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); } -buildUnnamed4191() { +buildUnnamed4026() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed4191(core.List<api.SourceReference> o) { +checkUnnamed4026(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -296,8 +298,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed4190(); - o.sourceReferences = buildUnnamed4191(); + o.files = buildUnnamed4025(); + o.sourceReferences = buildUnnamed4026(); } buildCounterDeployment--; return o; @@ -307,8 +309,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed4190(o.files); - checkUnnamed4191(o.sourceReferences); + checkUnnamed4025(o.files); + checkUnnamed4026(o.sourceReferences); } buildCounterDeployment--; } @@ -431,6 +433,7 @@ o.requests = 42; o.startTimestamp = "foo"; o.vmId = "foo"; + o.vmIp = "foo"; o.vmName = "foo"; o.vmStatus = "foo"; o.vmUnlocked = true; @@ -454,6 +457,7 @@ unittest.expect(o.requests, unittest.equals(42)); unittest.expect(o.startTimestamp, unittest.equals('foo')); unittest.expect(o.vmId, unittest.equals('foo')); + unittest.expect(o.vmIp, unittest.equals('foo')); unittest.expect(o.vmName, unittest.equals('foo')); unittest.expect(o.vmStatus, unittest.equals('foo')); unittest.expect(o.vmUnlocked, unittest.isTrue); @@ -483,14 +487,14 @@ buildCounterLibrary--; } -buildUnnamed4192() { +buildUnnamed4027() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed4192(core.List<api.Instance> o) { +checkUnnamed4027(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -501,7 +505,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed4192(); + o.instances = buildUnnamed4027(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -511,20 +515,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed4192(o.instances); + checkUnnamed4027(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed4193() { +buildUnnamed4028() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed4193(core.List<api.Location> o) { +checkUnnamed4028(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -535,7 +539,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed4193(); + o.locations = buildUnnamed4028(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -545,20 +549,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed4193(o.locations); + checkUnnamed4028(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed4194() { +buildUnnamed4029() { var o = new core.List<api.Module>(); o.add(buildModule()); o.add(buildModule()); return o; } -checkUnnamed4194(core.List<api.Module> o) { +checkUnnamed4029(core.List<api.Module> o) { unittest.expect(o, unittest.hasLength(2)); checkModule(o[0]); checkModule(o[1]); @@ -569,7 +573,7 @@ var o = new api.ListModulesResponse(); buildCounterListModulesResponse++; if (buildCounterListModulesResponse < 3) { - o.modules = buildUnnamed4194(); + o.modules = buildUnnamed4029(); o.nextPageToken = "foo"; } buildCounterListModulesResponse--; @@ -579,20 +583,20 @@ checkListModulesResponse(api.ListModulesResponse o) { buildCounterListModulesResponse++; if (buildCounterListModulesResponse < 3) { - checkUnnamed4194(o.modules); + checkUnnamed4029(o.modules); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListModulesResponse--; } -buildUnnamed4195() { +buildUnnamed4030() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4195(core.List<api.Operation> o) { +checkUnnamed4030(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -604,7 +608,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4195(); + o.operations = buildUnnamed4030(); } buildCounterListOperationsResponse--; return o; @@ -614,19 +618,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4195(o.operations); + checkUnnamed4030(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4196() { +buildUnnamed4031() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed4196(core.List<api.Version> o) { +checkUnnamed4031(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -638,7 +642,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed4196(); + o.versions = buildUnnamed4031(); } buildCounterListVersionsResponse--; return o; @@ -648,32 +652,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4196(o.versions); + checkUnnamed4031(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed4197() { +buildUnnamed4032() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4197(core.Map<core.String, core.String> o) { +checkUnnamed4032(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')); } -buildUnnamed4198() { +buildUnnamed4033() { 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; } -checkUnnamed4198(core.Map<core.String, core.Object> o) { +checkUnnamed4033(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')); @@ -684,9 +688,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed4197(); + o.labels = buildUnnamed4032(); o.locationId = "foo"; - o.metadata = buildUnnamed4198(); + o.metadata = buildUnnamed4033(); o.name = "foo"; } buildCounterLocation--; @@ -696,9 +700,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed4197(o.labels); + checkUnnamed4032(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed4198(o.metadata); + checkUnnamed4033(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -767,14 +771,14 @@ buildCounterModule--; } -buildUnnamed4199() { +buildUnnamed4034() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4199(core.List<core.String> o) { +checkUnnamed4034(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -785,7 +789,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed4199(); + o.forwardedPorts = buildUnnamed4034(); o.instanceTag = "foo"; o.name = "foo"; } @@ -796,7 +800,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed4199(o.forwardedPorts); + checkUnnamed4034(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -828,27 +832,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed4200() { +buildUnnamed4035() { 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; } -checkUnnamed4200(core.Map<core.String, core.Object> o) { +checkUnnamed4035(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')); } -buildUnnamed4201() { +buildUnnamed4036() { 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; } -checkUnnamed4201(core.Map<core.String, core.Object> o) { +checkUnnamed4036(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')); @@ -861,9 +865,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4200(); + o.metadata = buildUnnamed4035(); o.name = "foo"; - o.response = buildUnnamed4201(); + o.response = buildUnnamed4036(); } buildCounterOperation--; return o; @@ -874,9 +878,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4200(o.metadata); + checkUnnamed4035(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4201(o.response); + checkUnnamed4036(o.response); } buildCounterOperation--; } @@ -910,6 +914,33 @@ buildCounterOperationMetadata--; } +core.int buildCounterOperationMetadataExperimental = 0; +buildOperationMetadataExperimental() { + var o = new api.OperationMetadataExperimental(); + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + o.endTime = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + } + buildCounterOperationMetadataExperimental--; + return o; +} + +checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + unittest.expect(o.endTime, 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')); + } + buildCounterOperationMetadataExperimental--; +} + core.int buildCounterOperationMetadataV1 = 0; buildOperationMetadataV1() { var o = new api.OperationMetadataV1(); @@ -1048,14 +1079,14 @@ buildCounterSourceReference--; } -buildUnnamed4202() { +buildUnnamed4037() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4202(core.Map<core.String, core.String> o) { +checkUnnamed4037(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')); @@ -1069,7 +1100,7 @@ o.applicationReadable = true; o.directory = "foo"; o.expiration = "foo"; - o.httpHeaders = buildUnnamed4202(); + o.httpHeaders = buildUnnamed4037(); o.mimeType = "foo"; o.requireMatchingFile = true; } @@ -1083,21 +1114,21 @@ unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.directory, unittest.equals('foo')); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed4202(o.httpHeaders); + checkUnnamed4037(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); } buildCounterStaticDirectoryHandler--; } -buildUnnamed4203() { +buildUnnamed4038() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4203(core.Map<core.String, core.String> o) { +checkUnnamed4038(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')); @@ -1110,7 +1141,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed4203(); + o.httpHeaders = buildUnnamed4038(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1125,7 +1156,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed4203(o.httpHeaders); + checkUnnamed4038(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1134,30 +1165,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed4204() { +buildUnnamed4039() { 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; } -checkUnnamed4204(core.Map<core.String, core.Object> o) { +checkUnnamed4039(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')); } -buildUnnamed4205() { +buildUnnamed4040() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4204()); - o.add(buildUnnamed4204()); + o.add(buildUnnamed4039()); + o.add(buildUnnamed4039()); return o; } -checkUnnamed4205(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4040(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4204(o[0]); - checkUnnamed4204(o[1]); + checkUnnamed4039(o[0]); + checkUnnamed4039(o[1]); } core.int buildCounterStatus = 0; @@ -1166,7 +1197,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4205(); + o.details = buildUnnamed4040(); o.message = "foo"; } buildCounterStatus--; @@ -1177,20 +1208,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4205(o.details); + checkUnnamed4040(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed4206() { +buildUnnamed4041() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed4206(core.Map<core.String, core.double> o) { +checkUnnamed4041(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)); @@ -1201,7 +1232,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed4206(); + o.allocations = buildUnnamed4041(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1211,7 +1242,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed4206(o.allocations); + checkUnnamed4041(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1275,79 +1306,79 @@ buildCounterUrlMap--; } -buildUnnamed4207() { +buildUnnamed4042() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4207(core.Map<core.String, core.String> o) { +checkUnnamed4042(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')); } -buildUnnamed4208() { +buildUnnamed4043() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4208(core.Map<core.String, core.String> o) { +checkUnnamed4043(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')); } -buildUnnamed4209() { +buildUnnamed4044() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed4209(core.List<api.ErrorHandler> o) { +checkUnnamed4044(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed4210() { +buildUnnamed4045() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed4210(core.List<api.UrlMap> o) { +checkUnnamed4045(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed4211() { +buildUnnamed4046() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4211(core.List<core.String> o) { +checkUnnamed4046(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4212() { +buildUnnamed4047() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed4212(core.List<api.Library> o) { +checkUnnamed4047(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1361,20 +1392,20 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed4207(); + o.betaSettings = buildUnnamed4042(); o.creationTime = "foo"; o.defaultExpiration = "foo"; o.deployer = "foo"; o.deployment = buildDeployment(); o.env = "foo"; - o.envVariables = buildUnnamed4208(); - o.errorHandlers = buildUnnamed4209(); - o.handlers = buildUnnamed4210(); + o.envVariables = buildUnnamed4043(); + o.errorHandlers = buildUnnamed4044(); + o.handlers = buildUnnamed4045(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed4211(); + o.inboundServices = buildUnnamed4046(); o.instanceClass = "foo"; - o.libraries = buildUnnamed4212(); + o.libraries = buildUnnamed4047(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1395,20 +1426,20 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed4207(o.betaSettings); + checkUnnamed4042(o.betaSettings); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); unittest.expect(o.deployer, unittest.equals('foo')); checkDeployment(o.deployment); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed4208(o.envVariables); - checkUnnamed4209(o.errorHandlers); - checkUnnamed4210(o.handlers); + checkUnnamed4043(o.envVariables); + checkUnnamed4044(o.errorHandlers); + checkUnnamed4045(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4211(o.inboundServices); + checkUnnamed4046(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed4212(o.libraries); + checkUnnamed4047(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -1676,6 +1707,15 @@ }); + unittest.group("obj-schema-OperationMetadataExperimental", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataExperimental(); + var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); + checkOperationMetadataExperimental(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1(); @@ -1890,6 +1930,59 @@ }))); }); + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.AppsResourceApi res = new api.AppengineApi(mock).apps; + var arg_request = buildApplication(); + var arg_appsId = "foo"; + var arg_mask = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Application.fromJson(json); + checkApplication(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 + 13), unittest.equals("v1beta4/apps/")); + pathOffset += 13; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_appsId")); + + 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["mask"].first, unittest.equals(arg_mask)); + + + 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_appsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + });
diff --git a/generated/googleapis_beta/test/appengine/v1beta5_test.dart b/generated/googleapis_beta/test/appengine/v1beta5_test.dart index 506fa90..cf19d39 100644 --- a/generated/googleapis_beta/test/appengine/v1beta5_test.dart +++ b/generated/googleapis_beta/test/appengine/v1beta5_test.dart
@@ -97,14 +97,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed4166() { +buildUnnamed4001() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed4166(core.List<api.UrlDispatchRule> o) { +checkUnnamed4001(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 = buildUnnamed4166(); + o.dispatchRules = buildUnnamed4001(); o.id = "foo"; o.location = "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')); - checkUnnamed4166(o.dispatchRules); + checkUnnamed4001(o.dispatchRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -252,6 +252,7 @@ var o = new api.DebugInstanceRequest(); buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + o.sshKey = "foo"; } buildCounterDebugInstanceRequest--; return o; @@ -260,31 +261,32 @@ checkDebugInstanceRequest(api.DebugInstanceRequest o) { buildCounterDebugInstanceRequest++; if (buildCounterDebugInstanceRequest < 3) { + unittest.expect(o.sshKey, unittest.equals('foo')); } buildCounterDebugInstanceRequest--; } -buildUnnamed4167() { +buildUnnamed4002() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed4167(core.Map<core.String, api.FileInfo> o) { +checkUnnamed4002(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); } -buildUnnamed4168() { +buildUnnamed4003() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed4168(core.List<api.SourceReference> o) { +checkUnnamed4003(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -296,8 +298,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { o.container = buildContainerInfo(); - o.files = buildUnnamed4167(); - o.sourceReferences = buildUnnamed4168(); + o.files = buildUnnamed4002(); + o.sourceReferences = buildUnnamed4003(); } buildCounterDeployment--; return o; @@ -307,8 +309,8 @@ buildCounterDeployment++; if (buildCounterDeployment < 3) { checkContainerInfo(o.container); - checkUnnamed4167(o.files); - checkUnnamed4168(o.sourceReferences); + checkUnnamed4002(o.files); + checkUnnamed4003(o.sourceReferences); } buildCounterDeployment--; } @@ -431,6 +433,7 @@ o.requests = 42; o.startTimestamp = "foo"; o.vmId = "foo"; + o.vmIp = "foo"; o.vmName = "foo"; o.vmStatus = "foo"; o.vmUnlocked = true; @@ -454,6 +457,7 @@ unittest.expect(o.requests, unittest.equals(42)); unittest.expect(o.startTimestamp, unittest.equals('foo')); unittest.expect(o.vmId, unittest.equals('foo')); + unittest.expect(o.vmIp, unittest.equals('foo')); unittest.expect(o.vmName, unittest.equals('foo')); unittest.expect(o.vmStatus, unittest.equals('foo')); unittest.expect(o.vmUnlocked, unittest.isTrue); @@ -483,14 +487,14 @@ buildCounterLibrary--; } -buildUnnamed4169() { +buildUnnamed4004() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed4169(core.List<api.Instance> o) { +checkUnnamed4004(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -501,7 +505,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed4169(); + o.instances = buildUnnamed4004(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -511,20 +515,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed4169(o.instances); + checkUnnamed4004(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed4170() { +buildUnnamed4005() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed4170(core.List<api.Location> o) { +checkUnnamed4005(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -535,7 +539,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed4170(); + o.locations = buildUnnamed4005(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -545,20 +549,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed4170(o.locations); + checkUnnamed4005(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed4171() { +buildUnnamed4006() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4171(core.List<api.Operation> o) { +checkUnnamed4006(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -570,7 +574,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4171(); + o.operations = buildUnnamed4006(); } buildCounterListOperationsResponse--; return o; @@ -580,19 +584,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4171(o.operations); + checkUnnamed4006(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4172() { +buildUnnamed4007() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed4172(core.List<api.Service> o) { +checkUnnamed4007(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -604,7 +608,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed4172(); + o.services = buildUnnamed4007(); } buildCounterListServicesResponse--; return o; @@ -614,19 +618,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4172(o.services); + checkUnnamed4007(o.services); } buildCounterListServicesResponse--; } -buildUnnamed4173() { +buildUnnamed4008() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed4173(core.List<api.Version> o) { +checkUnnamed4008(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -638,7 +642,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed4173(); + o.versions = buildUnnamed4008(); } buildCounterListVersionsResponse--; return o; @@ -648,32 +652,32 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4173(o.versions); + checkUnnamed4008(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed4174() { +buildUnnamed4009() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4174(core.Map<core.String, core.String> o) { +checkUnnamed4009(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')); } -buildUnnamed4175() { +buildUnnamed4010() { 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; } -checkUnnamed4175(core.Map<core.String, core.Object> o) { +checkUnnamed4010(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')); @@ -684,9 +688,9 @@ var o = new api.Location(); buildCounterLocation++; if (buildCounterLocation < 3) { - o.labels = buildUnnamed4174(); + o.labels = buildUnnamed4009(); o.locationId = "foo"; - o.metadata = buildUnnamed4175(); + o.metadata = buildUnnamed4010(); o.name = "foo"; } buildCounterLocation--; @@ -696,9 +700,9 @@ checkLocation(api.Location o) { buildCounterLocation++; if (buildCounterLocation < 3) { - checkUnnamed4174(o.labels); + checkUnnamed4009(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed4175(o.metadata); + checkUnnamed4010(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -744,14 +748,14 @@ buildCounterManualScaling--; } -buildUnnamed4176() { +buildUnnamed4011() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4176(core.List<core.String> o) { +checkUnnamed4011(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -762,7 +766,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed4176(); + o.forwardedPorts = buildUnnamed4011(); o.instanceTag = "foo"; o.name = "foo"; } @@ -773,7 +777,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed4176(o.forwardedPorts); + checkUnnamed4011(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -805,27 +809,27 @@ buildCounterNetworkUtilization--; } -buildUnnamed4177() { +buildUnnamed4012() { 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; } -checkUnnamed4177(core.Map<core.String, core.Object> o) { +checkUnnamed4012(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')); } -buildUnnamed4178() { +buildUnnamed4013() { 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; } -checkUnnamed4178(core.Map<core.String, core.Object> o) { +checkUnnamed4013(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')); @@ -838,9 +842,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4177(); + o.metadata = buildUnnamed4012(); o.name = "foo"; - o.response = buildUnnamed4178(); + o.response = buildUnnamed4013(); } buildCounterOperation--; return o; @@ -851,9 +855,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4177(o.metadata); + checkUnnamed4012(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4178(o.response); + checkUnnamed4013(o.response); } buildCounterOperation--; } @@ -887,6 +891,33 @@ buildCounterOperationMetadata--; } +core.int buildCounterOperationMetadataExperimental = 0; +buildOperationMetadataExperimental() { + var o = new api.OperationMetadataExperimental(); + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + o.endTime = "foo"; + o.insertTime = "foo"; + o.method = "foo"; + o.target = "foo"; + o.user = "foo"; + } + buildCounterOperationMetadataExperimental--; + return o; +} + +checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { + buildCounterOperationMetadataExperimental++; + if (buildCounterOperationMetadataExperimental < 3) { + unittest.expect(o.endTime, 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')); + } + buildCounterOperationMetadataExperimental--; +} + core.int buildCounterOperationMetadataV1 = 0; buildOperationMetadataV1() { var o = new api.OperationMetadataV1(); @@ -1048,14 +1079,14 @@ buildCounterSourceReference--; } -buildUnnamed4179() { +buildUnnamed4014() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4179(core.Map<core.String, core.String> o) { +checkUnnamed4014(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')); @@ -1068,7 +1099,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed4179(); + o.httpHeaders = buildUnnamed4014(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1083,7 +1114,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed4179(o.httpHeaders); + checkUnnamed4014(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1092,30 +1123,30 @@ buildCounterStaticFilesHandler--; } -buildUnnamed4180() { +buildUnnamed4015() { 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; } -checkUnnamed4180(core.Map<core.String, core.Object> o) { +checkUnnamed4015(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')); } -buildUnnamed4181() { +buildUnnamed4016() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4180()); - o.add(buildUnnamed4180()); + o.add(buildUnnamed4015()); + o.add(buildUnnamed4015()); return o; } -checkUnnamed4181(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4016(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4180(o[0]); - checkUnnamed4180(o[1]); + checkUnnamed4015(o[0]); + checkUnnamed4015(o[1]); } core.int buildCounterStatus = 0; @@ -1124,7 +1155,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4181(); + o.details = buildUnnamed4016(); o.message = "foo"; } buildCounterStatus--; @@ -1135,20 +1166,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4181(o.details); + checkUnnamed4016(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed4182() { +buildUnnamed4017() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed4182(core.Map<core.String, core.double> o) { +checkUnnamed4017(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)); @@ -1159,7 +1190,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed4182(); + o.allocations = buildUnnamed4017(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -1169,7 +1200,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed4182(o.allocations); + checkUnnamed4017(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -1231,79 +1262,79 @@ buildCounterUrlMap--; } -buildUnnamed4183() { +buildUnnamed4018() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4183(core.Map<core.String, core.String> o) { +checkUnnamed4018(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')); } -buildUnnamed4184() { +buildUnnamed4019() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4184(core.Map<core.String, core.String> o) { +checkUnnamed4019(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')); } -buildUnnamed4185() { +buildUnnamed4020() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed4185(core.List<api.ErrorHandler> o) { +checkUnnamed4020(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed4186() { +buildUnnamed4021() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed4186(core.List<api.UrlMap> o) { +checkUnnamed4021(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed4187() { +buildUnnamed4022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4187(core.List<core.String> o) { +checkUnnamed4022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4188() { +buildUnnamed4023() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed4188(core.List<api.Library> o) { +checkUnnamed4023(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); @@ -1317,21 +1348,21 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed4183(); + o.betaSettings = buildUnnamed4018(); o.creationTime = "foo"; o.defaultExpiration = "foo"; o.deployer = "foo"; o.deployment = buildDeployment(); o.diskUsageBytes = "foo"; o.env = "foo"; - o.envVariables = buildUnnamed4184(); - o.errorHandlers = buildUnnamed4185(); - o.handlers = buildUnnamed4186(); + o.envVariables = buildUnnamed4019(); + o.errorHandlers = buildUnnamed4020(); + o.handlers = buildUnnamed4021(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed4187(); + o.inboundServices = buildUnnamed4022(); o.instanceClass = "foo"; - o.libraries = buildUnnamed4188(); + o.libraries = buildUnnamed4023(); o.manualScaling = buildManualScaling(); o.name = "foo"; o.network = buildNetwork(); @@ -1352,21 +1383,21 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed4183(o.betaSettings); + checkUnnamed4018(o.betaSettings); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); unittest.expect(o.deployer, unittest.equals('foo')); checkDeployment(o.deployment); unittest.expect(o.diskUsageBytes, unittest.equals('foo')); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed4184(o.envVariables); - checkUnnamed4185(o.errorHandlers); - checkUnnamed4186(o.handlers); + checkUnnamed4019(o.envVariables); + checkUnnamed4020(o.errorHandlers); + checkUnnamed4021(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4187(o.inboundServices); + checkUnnamed4022(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed4188(o.libraries); + checkUnnamed4023(o.libraries); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); checkNetwork(o.network); @@ -1625,6 +1656,15 @@ }); + unittest.group("obj-schema-OperationMetadataExperimental", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadataExperimental(); + var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); + checkOperationMetadataExperimental(od); + }); + }); + + unittest.group("obj-schema-OperationMetadataV1", () { unittest.test("to-json--from-json", () { var o = buildOperationMetadataV1(); @@ -1839,6 +1879,59 @@ }))); }); + unittest.test("method--patch", () { + + var mock = new HttpServerMock(); + api.AppsResourceApi res = new api.AppengineApi(mock).apps; + var arg_request = buildApplication(); + var arg_appsId = "foo"; + var arg_mask = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Application.fromJson(json); + checkApplication(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 + 13), unittest.equals("v1beta5/apps/")); + pathOffset += 13; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_appsId")); + + 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["mask"].first, unittest.equals(arg_mask)); + + + 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_appsId, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { + checkOperation(response); + }))); + }); + });
diff --git a/generated/googleapis_beta/test/clouderrorreporting/v1beta1_test.dart b/generated/googleapis_beta/test/clouderrorreporting/v1beta1_test.dart index b332809..c8684d1 100644 --- a/generated/googleapis_beta/test/clouderrorreporting/v1beta1_test.dart +++ b/generated/googleapis_beta/test/clouderrorreporting/v1beta1_test.dart
@@ -116,14 +116,14 @@ buildCounterErrorEvent--; } -buildUnnamed3745() { +buildUnnamed3582() { var o = new core.List<api.TrackingIssue>(); o.add(buildTrackingIssue()); o.add(buildTrackingIssue()); return o; } -checkUnnamed3745(core.List<api.TrackingIssue> o) { +checkUnnamed3582(core.List<api.TrackingIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkTrackingIssue(o[0]); checkTrackingIssue(o[1]); @@ -136,7 +136,7 @@ if (buildCounterErrorGroup < 3) { o.groupId = "foo"; o.name = "foo"; - o.trackingIssues = buildUnnamed3745(); + o.trackingIssues = buildUnnamed3582(); } buildCounterErrorGroup--; return o; @@ -147,32 +147,32 @@ if (buildCounterErrorGroup < 3) { unittest.expect(o.groupId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3745(o.trackingIssues); + checkUnnamed3582(o.trackingIssues); } buildCounterErrorGroup--; } -buildUnnamed3746() { +buildUnnamed3583() { var o = new core.List<api.ServiceContext>(); o.add(buildServiceContext()); o.add(buildServiceContext()); return o; } -checkUnnamed3746(core.List<api.ServiceContext> o) { +checkUnnamed3583(core.List<api.ServiceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceContext(o[0]); checkServiceContext(o[1]); } -buildUnnamed3747() { +buildUnnamed3584() { var o = new core.List<api.TimedCount>(); o.add(buildTimedCount()); o.add(buildTimedCount()); return o; } -checkUnnamed3747(core.List<api.TimedCount> o) { +checkUnnamed3584(core.List<api.TimedCount> o) { unittest.expect(o, unittest.hasLength(2)); checkTimedCount(o[0]); checkTimedCount(o[1]); @@ -183,7 +183,7 @@ var o = new api.ErrorGroupStats(); buildCounterErrorGroupStats++; if (buildCounterErrorGroupStats < 3) { - o.affectedServices = buildUnnamed3746(); + o.affectedServices = buildUnnamed3583(); o.affectedUsersCount = "foo"; o.count = "foo"; o.firstSeenTime = "foo"; @@ -191,7 +191,7 @@ o.lastSeenTime = "foo"; o.numAffectedServices = 42; o.representative = buildErrorEvent(); - o.timedCounts = buildUnnamed3747(); + o.timedCounts = buildUnnamed3584(); } buildCounterErrorGroupStats--; return o; @@ -200,7 +200,7 @@ checkErrorGroupStats(api.ErrorGroupStats o) { buildCounterErrorGroupStats++; if (buildCounterErrorGroupStats < 3) { - checkUnnamed3746(o.affectedServices); + checkUnnamed3583(o.affectedServices); unittest.expect(o.affectedUsersCount, unittest.equals('foo')); unittest.expect(o.count, unittest.equals('foo')); unittest.expect(o.firstSeenTime, unittest.equals('foo')); @@ -208,7 +208,7 @@ unittest.expect(o.lastSeenTime, unittest.equals('foo')); unittest.expect(o.numAffectedServices, unittest.equals(42)); checkErrorEvent(o.representative); - checkUnnamed3747(o.timedCounts); + checkUnnamed3584(o.timedCounts); } buildCounterErrorGroupStats--; } @@ -242,14 +242,14 @@ buildCounterHttpRequestContext--; } -buildUnnamed3748() { +buildUnnamed3585() { var o = new core.List<api.ErrorEvent>(); o.add(buildErrorEvent()); o.add(buildErrorEvent()); return o; } -checkUnnamed3748(core.List<api.ErrorEvent> o) { +checkUnnamed3585(core.List<api.ErrorEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorEvent(o[0]); checkErrorEvent(o[1]); @@ -260,8 +260,9 @@ var o = new api.ListEventsResponse(); buildCounterListEventsResponse++; if (buildCounterListEventsResponse < 3) { - o.errorEvents = buildUnnamed3748(); + o.errorEvents = buildUnnamed3585(); o.nextPageToken = "foo"; + o.timeRangeBegin = "foo"; } buildCounterListEventsResponse--; return o; @@ -270,20 +271,21 @@ checkListEventsResponse(api.ListEventsResponse o) { buildCounterListEventsResponse++; if (buildCounterListEventsResponse < 3) { - checkUnnamed3748(o.errorEvents); + checkUnnamed3585(o.errorEvents); unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.timeRangeBegin, unittest.equals('foo')); } buildCounterListEventsResponse--; } -buildUnnamed3749() { +buildUnnamed3586() { var o = new core.List<api.ErrorGroupStats>(); o.add(buildErrorGroupStats()); o.add(buildErrorGroupStats()); return o; } -checkUnnamed3749(core.List<api.ErrorGroupStats> o) { +checkUnnamed3586(core.List<api.ErrorGroupStats> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorGroupStats(o[0]); checkErrorGroupStats(o[1]); @@ -294,8 +296,9 @@ var o = new api.ListGroupStatsResponse(); buildCounterListGroupStatsResponse++; if (buildCounterListGroupStatsResponse < 3) { - o.errorGroupStats = buildUnnamed3749(); + o.errorGroupStats = buildUnnamed3586(); o.nextPageToken = "foo"; + o.timeRangeBegin = "foo"; } buildCounterListGroupStatsResponse--; return o; @@ -304,8 +307,9 @@ checkListGroupStatsResponse(api.ListGroupStatsResponse o) { buildCounterListGroupStatsResponse++; if (buildCounterListGroupStatsResponse < 3) { - checkUnnamed3749(o.errorGroupStats); + checkUnnamed3586(o.errorGroupStats); unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.timeRangeBegin, unittest.equals('foo')); } buildCounterListGroupStatsResponse--; } @@ -438,14 +442,14 @@ buildCounterTrackingIssue--; } -buildUnnamed3750() { +buildUnnamed3587() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3750(core.List<core.String> o) { +checkUnnamed3587(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -747,7 +751,7 @@ var arg_alignment = "foo"; var arg_timeRange_period = "foo"; var arg_order = "foo"; - var arg_groupId = buildUnnamed3750(); + var arg_groupId = buildUnnamed3587(); var arg_serviceFilter_service = "foo"; var arg_alignmentTime = "foo"; var arg_serviceFilter_version = "foo";
diff --git a/generated/googleapis_beta/test/cloudmonitoring/v2beta2_test.dart b/generated/googleapis_beta/test/cloudmonitoring/v2beta2_test.dart index 52062f9..3849864 100644 --- a/generated/googleapis_beta/test/cloudmonitoring/v2beta2_test.dart +++ b/generated/googleapis_beta/test/cloudmonitoring/v2beta2_test.dart
@@ -89,14 +89,14 @@ buildCounterListMetricDescriptorsRequest--; } -buildUnnamed4104() { +buildUnnamed3941() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed4104(core.List<api.MetricDescriptor> o) { +checkUnnamed3941(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); @@ -108,7 +108,7 @@ buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { o.kind = "foo"; - o.metrics = buildUnnamed4104(); + o.metrics = buildUnnamed3941(); o.nextPageToken = "foo"; } buildCounterListMetricDescriptorsResponse--; @@ -119,7 +119,7 @@ buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4104(o.metrics); + checkUnnamed3941(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMetricDescriptorsResponse--; @@ -144,14 +144,14 @@ buildCounterListTimeseriesDescriptorsRequest--; } -buildUnnamed4105() { +buildUnnamed3942() { var o = new core.List<api.TimeseriesDescriptor>(); o.add(buildTimeseriesDescriptor()); o.add(buildTimeseriesDescriptor()); return o; } -checkUnnamed4105(core.List<api.TimeseriesDescriptor> o) { +checkUnnamed3942(core.List<api.TimeseriesDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeseriesDescriptor(o[0]); checkTimeseriesDescriptor(o[1]); @@ -165,7 +165,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.oldest = core.DateTime.parse("2002-02-27T14:01:02"); - o.timeseries = buildUnnamed4105(); + o.timeseries = buildUnnamed3942(); o.youngest = core.DateTime.parse("2002-02-27T14:01:02"); } buildCounterListTimeseriesDescriptorsResponse--; @@ -178,7 +178,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.oldest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed4105(o.timeseries); + checkUnnamed3942(o.timeseries); unittest.expect(o.youngest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } buildCounterListTimeseriesDescriptorsResponse--; @@ -203,14 +203,14 @@ buildCounterListTimeseriesRequest--; } -buildUnnamed4106() { +buildUnnamed3943() { var o = new core.List<api.Timeseries>(); o.add(buildTimeseries()); o.add(buildTimeseries()); return o; } -checkUnnamed4106(core.List<api.Timeseries> o) { +checkUnnamed3943(core.List<api.Timeseries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeseries(o[0]); checkTimeseries(o[1]); @@ -224,7 +224,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.oldest = core.DateTime.parse("2002-02-27T14:01:02"); - o.timeseries = buildUnnamed4106(); + o.timeseries = buildUnnamed3943(); o.youngest = core.DateTime.parse("2002-02-27T14:01:02"); } buildCounterListTimeseriesResponse--; @@ -237,20 +237,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.oldest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed4106(o.timeseries); + checkUnnamed3943(o.timeseries); unittest.expect(o.youngest, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } buildCounterListTimeseriesResponse--; } -buildUnnamed4107() { +buildUnnamed3944() { var o = new core.List<api.MetricDescriptorLabelDescriptor>(); o.add(buildMetricDescriptorLabelDescriptor()); o.add(buildMetricDescriptorLabelDescriptor()); return o; } -checkUnnamed4107(core.List<api.MetricDescriptorLabelDescriptor> o) { +checkUnnamed3944(core.List<api.MetricDescriptorLabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptorLabelDescriptor(o[0]); checkMetricDescriptorLabelDescriptor(o[1]); @@ -262,7 +262,7 @@ buildCounterMetricDescriptor++; if (buildCounterMetricDescriptor < 3) { o.description = "foo"; - o.labels = buildUnnamed4107(); + o.labels = buildUnnamed3944(); o.name = "foo"; o.project = "foo"; o.typeDescriptor = buildMetricDescriptorTypeDescriptor(); @@ -275,7 +275,7 @@ buildCounterMetricDescriptor++; if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed4107(o.labels); + checkUnnamed3944(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.project, unittest.equals('foo')); checkMetricDescriptorTypeDescriptor(o.typeDescriptor); @@ -356,14 +356,14 @@ buildCounterPoint--; } -buildUnnamed4108() { +buildUnnamed3945() { var o = new core.List<api.PointDistributionBucket>(); o.add(buildPointDistributionBucket()); o.add(buildPointDistributionBucket()); return o; } -checkUnnamed4108(core.List<api.PointDistributionBucket> o) { +checkUnnamed3945(core.List<api.PointDistributionBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkPointDistributionBucket(o[0]); checkPointDistributionBucket(o[1]); @@ -374,7 +374,7 @@ var o = new api.PointDistribution(); buildCounterPointDistribution++; if (buildCounterPointDistribution < 3) { - o.buckets = buildUnnamed4108(); + o.buckets = buildUnnamed3945(); o.overflowBucket = buildPointDistributionOverflowBucket(); o.underflowBucket = buildPointDistributionUnderflowBucket(); } @@ -385,7 +385,7 @@ checkPointDistribution(api.PointDistribution o) { buildCounterPointDistribution++; if (buildCounterPointDistribution < 3) { - checkUnnamed4108(o.buckets); + checkUnnamed3945(o.buckets); checkPointDistributionOverflowBucket(o.overflowBucket); checkPointDistributionUnderflowBucket(o.underflowBucket); } @@ -457,14 +457,14 @@ buildCounterPointDistributionUnderflowBucket--; } -buildUnnamed4109() { +buildUnnamed3946() { var o = new core.List<api.Point>(); o.add(buildPoint()); o.add(buildPoint()); return o; } -checkUnnamed4109(core.List<api.Point> o) { +checkUnnamed3946(core.List<api.Point> o) { unittest.expect(o, unittest.hasLength(2)); checkPoint(o[0]); checkPoint(o[1]); @@ -475,7 +475,7 @@ var o = new api.Timeseries(); buildCounterTimeseries++; if (buildCounterTimeseries < 3) { - o.points = buildUnnamed4109(); + o.points = buildUnnamed3946(); o.timeseriesDesc = buildTimeseriesDescriptor(); } buildCounterTimeseries--; @@ -485,20 +485,20 @@ checkTimeseries(api.Timeseries o) { buildCounterTimeseries++; if (buildCounterTimeseries < 3) { - checkUnnamed4109(o.points); + checkUnnamed3946(o.points); checkTimeseriesDescriptor(o.timeseriesDesc); } buildCounterTimeseries--; } -buildUnnamed4110() { +buildUnnamed3947() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4110(core.Map<core.String, core.String> o) { +checkUnnamed3947(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')); @@ -509,7 +509,7 @@ var o = new api.TimeseriesDescriptor(); buildCounterTimeseriesDescriptor++; if (buildCounterTimeseriesDescriptor < 3) { - o.labels = buildUnnamed4110(); + o.labels = buildUnnamed3947(); o.metric = "foo"; o.project = "foo"; } @@ -520,7 +520,7 @@ checkTimeseriesDescriptor(api.TimeseriesDescriptor o) { buildCounterTimeseriesDescriptor++; if (buildCounterTimeseriesDescriptor < 3) { - checkUnnamed4110(o.labels); + checkUnnamed3947(o.labels); unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.project, unittest.equals('foo')); } @@ -569,27 +569,27 @@ buildCounterTimeseriesPoint--; } -buildUnnamed4111() { +buildUnnamed3948() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4111(core.Map<core.String, core.String> o) { +checkUnnamed3948(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')); } -buildUnnamed4112() { +buildUnnamed3949() { var o = new core.List<api.TimeseriesPoint>(); o.add(buildTimeseriesPoint()); o.add(buildTimeseriesPoint()); return o; } -checkUnnamed4112(core.List<api.TimeseriesPoint> o) { +checkUnnamed3949(core.List<api.TimeseriesPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeseriesPoint(o[0]); checkTimeseriesPoint(o[1]); @@ -600,8 +600,8 @@ var o = new api.WriteTimeseriesRequest(); buildCounterWriteTimeseriesRequest++; if (buildCounterWriteTimeseriesRequest < 3) { - o.commonLabels = buildUnnamed4111(); - o.timeseries = buildUnnamed4112(); + o.commonLabels = buildUnnamed3948(); + o.timeseries = buildUnnamed3949(); } buildCounterWriteTimeseriesRequest--; return o; @@ -610,8 +610,8 @@ checkWriteTimeseriesRequest(api.WriteTimeseriesRequest o) { buildCounterWriteTimeseriesRequest++; if (buildCounterWriteTimeseriesRequest < 3) { - checkUnnamed4111(o.commonLabels); - checkUnnamed4112(o.timeseries); + checkUnnamed3948(o.commonLabels); + checkUnnamed3949(o.timeseries); } buildCounterWriteTimeseriesRequest--; } @@ -635,27 +635,27 @@ buildCounterWriteTimeseriesResponse--; } -buildUnnamed4113() { +buildUnnamed3950() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4113(core.List<core.String> o) { +checkUnnamed3950(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4114() { +buildUnnamed3951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4114(core.List<core.String> o) { +checkUnnamed3951(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1008,7 +1008,7 @@ var arg_youngest = "foo"; var arg_aggregator = "foo"; var arg_count = 42; - var arg_labels = buildUnnamed4113(); + var arg_labels = buildUnnamed3950(); var arg_oldest = "foo"; var arg_pageToken = "foo"; var arg_timespan = "foo"; @@ -1121,7 +1121,7 @@ var arg_youngest = "foo"; var arg_aggregator = "foo"; var arg_count = 42; - var arg_labels = buildUnnamed4114(); + var arg_labels = buildUnnamed3951(); var arg_oldest = "foo"; var arg_pageToken = "foo"; var arg_timespan = "foo";
diff --git a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart index f68cc03..bd4c9e8 100644 --- a/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart +++ b/generated/googleapis_beta/test/cloudresourcemanager/v1beta1_test.dart
@@ -70,14 +70,14 @@ buildCounterAncestor--; } -buildUnnamed4096() { +buildUnnamed3933() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4096(core.List<core.String> o) { +checkUnnamed3933(core.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 = buildUnnamed4096(); + o.members = buildUnnamed3933(); o.role = "foo"; } buildCounterBinding--; @@ -98,7 +98,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed4096(o.members); + checkUnnamed3933(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -121,6 +121,50 @@ buildCounterEmpty--; } +core.int buildCounterFolderOperation = 0; +buildFolderOperation() { + var o = new api.FolderOperation(); + buildCounterFolderOperation++; + if (buildCounterFolderOperation < 3) { + o.destinationParent = "foo"; + o.displayName = "foo"; + o.operationType = "foo"; + o.sourceParent = "foo"; + } + buildCounterFolderOperation--; + return o; +} + +checkFolderOperation(api.FolderOperation o) { + buildCounterFolderOperation++; + if (buildCounterFolderOperation < 3) { + unittest.expect(o.destinationParent, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.operationType, unittest.equals('foo')); + unittest.expect(o.sourceParent, unittest.equals('foo')); + } + buildCounterFolderOperation--; +} + +core.int buildCounterFolderOperationError = 0; +buildFolderOperationError() { + var o = new api.FolderOperationError(); + buildCounterFolderOperationError++; + if (buildCounterFolderOperationError < 3) { + o.errorMessageId = "foo"; + } + buildCounterFolderOperationError--; + return o; +} + +checkFolderOperationError(api.FolderOperationError o) { + buildCounterFolderOperationError++; + if (buildCounterFolderOperationError < 3) { + unittest.expect(o.errorMessageId, unittest.equals('foo')); + } + buildCounterFolderOperationError--; +} + core.int buildCounterGetAncestryRequest = 0; buildGetAncestryRequest() { var o = new api.GetAncestryRequest(); @@ -138,14 +182,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed4097() { +buildUnnamed3934() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed4097(core.List<api.Ancestor> o) { +checkUnnamed3934(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -156,7 +200,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed4097(); + o.ancestor = buildUnnamed3934(); } buildCounterGetAncestryResponse--; return o; @@ -165,7 +209,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed4097(o.ancestor); + checkUnnamed3934(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -187,14 +231,14 @@ buildCounterGetIamPolicyRequest--; } -buildUnnamed4098() { +buildUnnamed3935() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed4098(core.List<api.Organization> o) { +checkUnnamed3935(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -206,7 +250,7 @@ buildCounterListOrganizationsResponse++; if (buildCounterListOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed4098(); + o.organizations = buildUnnamed3935(); } buildCounterListOrganizationsResponse--; return o; @@ -216,19 +260,19 @@ buildCounterListOrganizationsResponse++; if (buildCounterListOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4098(o.organizations); + checkUnnamed3935(o.organizations); } buildCounterListOrganizationsResponse--; } -buildUnnamed4099() { +buildUnnamed3936() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed4099(core.List<api.Project> o) { +checkUnnamed3936(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -240,7 +284,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed4099(); + o.projects = buildUnnamed3936(); } buildCounterListProjectsResponse--; return o; @@ -250,7 +294,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4099(o.projects); + checkUnnamed3936(o.projects); } buildCounterListProjectsResponse--; } @@ -303,14 +347,14 @@ buildCounterOrganizationOwner--; } -buildUnnamed4100() { +buildUnnamed3937() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed4100(core.List<api.Binding> o) { +checkUnnamed3937(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -321,7 +365,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed4100(); + o.bindings = buildUnnamed3937(); o.etag = "foo"; o.version = 42; } @@ -332,21 +376,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed4100(o.bindings); + checkUnnamed3937(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed4101() { +buildUnnamed3938() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4101(core.Map<core.String, core.String> o) { +checkUnnamed3938(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')); @@ -358,7 +402,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed4101(); + o.labels = buildUnnamed3938(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -373,7 +417,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed4101(o.labels); + checkUnnamed3938(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -383,6 +427,29 @@ buildCounterProject--; } +core.int buildCounterProjectCreationStatus = 0; +buildProjectCreationStatus() { + var o = new api.ProjectCreationStatus(); + buildCounterProjectCreationStatus++; + if (buildCounterProjectCreationStatus < 3) { + o.createTime = "foo"; + o.gettable = true; + o.ready = true; + } + buildCounterProjectCreationStatus--; + return o; +} + +checkProjectCreationStatus(api.ProjectCreationStatus o) { + buildCounterProjectCreationStatus++; + if (buildCounterProjectCreationStatus < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.gettable, unittest.isTrue); + unittest.expect(o.ready, unittest.isTrue); + } + buildCounterProjectCreationStatus--; +} + core.int buildCounterResourceId = 0; buildResourceId() { var o = new api.ResourceId(); @@ -423,14 +490,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed4102() { +buildUnnamed3939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4102(core.List<core.String> o) { +checkUnnamed3939(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -441,7 +508,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed4102(); + o.permissions = buildUnnamed3939(); } buildCounterTestIamPermissionsRequest--; return o; @@ -450,19 +517,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed4102(o.permissions); + checkUnnamed3939(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed4103() { +buildUnnamed3940() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4103(core.List<core.String> o) { +checkUnnamed3940(core.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 +540,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed4103(); + o.permissions = buildUnnamed3940(); } buildCounterTestIamPermissionsResponse--; return o; @@ -482,7 +549,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed4103(o.permissions); + checkUnnamed3940(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -533,6 +600,24 @@ }); + unittest.group("obj-schema-FolderOperation", () { + unittest.test("to-json--from-json", () { + var o = buildFolderOperation(); + var od = new api.FolderOperation.fromJson(o.toJson()); + checkFolderOperation(od); + }); + }); + + + unittest.group("obj-schema-FolderOperationError", () { + unittest.test("to-json--from-json", () { + var o = buildFolderOperationError(); + var od = new api.FolderOperationError.fromJson(o.toJson()); + checkFolderOperationError(od); + }); + }); + + unittest.group("obj-schema-GetAncestryRequest", () { unittest.test("to-json--from-json", () { var o = buildGetAncestryRequest(); @@ -614,6 +699,15 @@ }); + unittest.group("obj-schema-ProjectCreationStatus", () { + unittest.test("to-json--from-json", () { + var o = buildProjectCreationStatus(); + var od = new api.ProjectCreationStatus.fromJson(o.toJson()); + checkProjectCreationStatus(od); + }); + }); + + unittest.group("obj-schema-ResourceId", () { unittest.test("to-json--from-json", () { var o = buildResourceId(); @@ -961,6 +1055,7 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_request = buildProject(); + var arg_useLegacyStack = true; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Project.fromJson(json); checkProject(obj); @@ -990,6 +1085,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["useLegacyStack"].first, unittest.equals("$arg_useLegacyStack")); var h = { @@ -998,7 +1094,7 @@ var resp = convert.JSON.encode(buildProject()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request).then(unittest.expectAsync(((api.Project response) { + res.create(arg_request, useLegacyStack: arg_useLegacyStack).then(unittest.expectAsync(((api.Project response) { checkProject(response); }))); });
diff --git a/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart b/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart index ffc92a6..f97b1d9 100644 --- a/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart +++ b/generated/googleapis_beta/test/clouduseraccounts/beta_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3722() { +buildUnnamed3559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3722(core.List<core.String> o) { +checkUnnamed3559(core.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.AuthorizedKeysView(); buildCounterAuthorizedKeysView++; if (buildCounterAuthorizedKeysView < 3) { - o.keys = buildUnnamed3722(); + o.keys = buildUnnamed3559(); o.sudoer = true; } buildCounterAuthorizedKeysView--; @@ -79,20 +79,20 @@ checkAuthorizedKeysView(api.AuthorizedKeysView o) { buildCounterAuthorizedKeysView++; if (buildCounterAuthorizedKeysView < 3) { - checkUnnamed3722(o.keys); + checkUnnamed3559(o.keys); unittest.expect(o.sudoer, unittest.isTrue); } buildCounterAuthorizedKeysView--; } -buildUnnamed3723() { +buildUnnamed3560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3723(core.List<core.String> o) { +checkUnnamed3560(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -107,7 +107,7 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.members = buildUnnamed3723(); + o.members = buildUnnamed3560(); o.name = "foo"; o.selfLink = "foo"; } @@ -122,21 +122,21 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3723(o.members); + checkUnnamed3560(o.members); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterGroup--; } -buildUnnamed3724() { +buildUnnamed3561() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed3724(core.List<api.Group> o) { +checkUnnamed3561(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -148,7 +148,7 @@ buildCounterGroupList++; if (buildCounterGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed3724(); + o.items = buildUnnamed3561(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -161,7 +161,7 @@ buildCounterGroupList++; if (buildCounterGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3724(o.items); + checkUnnamed3561(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -169,14 +169,14 @@ buildCounterGroupList--; } -buildUnnamed3725() { +buildUnnamed3562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3725(core.List<core.String> o) { +checkUnnamed3562(core.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 @@ var o = new api.GroupsAddMemberRequest(); buildCounterGroupsAddMemberRequest++; if (buildCounterGroupsAddMemberRequest < 3) { - o.users = buildUnnamed3725(); + o.users = buildUnnamed3562(); } buildCounterGroupsAddMemberRequest--; return o; @@ -196,19 +196,19 @@ checkGroupsAddMemberRequest(api.GroupsAddMemberRequest o) { buildCounterGroupsAddMemberRequest++; if (buildCounterGroupsAddMemberRequest < 3) { - checkUnnamed3725(o.users); + checkUnnamed3562(o.users); } buildCounterGroupsAddMemberRequest--; } -buildUnnamed3726() { +buildUnnamed3563() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3726(core.List<core.String> o) { +checkUnnamed3563(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -219,7 +219,7 @@ var o = new api.GroupsRemoveMemberRequest(); buildCounterGroupsRemoveMemberRequest++; if (buildCounterGroupsRemoveMemberRequest < 3) { - o.users = buildUnnamed3726(); + o.users = buildUnnamed3563(); } buildCounterGroupsRemoveMemberRequest--; return o; @@ -228,32 +228,32 @@ checkGroupsRemoveMemberRequest(api.GroupsRemoveMemberRequest o) { buildCounterGroupsRemoveMemberRequest++; if (buildCounterGroupsRemoveMemberRequest < 3) { - checkUnnamed3726(o.users); + checkUnnamed3563(o.users); } buildCounterGroupsRemoveMemberRequest--; } -buildUnnamed3727() { +buildUnnamed3564() { var o = new core.List<api.LinuxGroupView>(); o.add(buildLinuxGroupView()); o.add(buildLinuxGroupView()); return o; } -checkUnnamed3727(core.List<api.LinuxGroupView> o) { +checkUnnamed3564(core.List<api.LinuxGroupView> o) { unittest.expect(o, unittest.hasLength(2)); checkLinuxGroupView(o[0]); checkLinuxGroupView(o[1]); } -buildUnnamed3728() { +buildUnnamed3565() { var o = new core.List<api.LinuxUserView>(); o.add(buildLinuxUserView()); o.add(buildLinuxUserView()); return o; } -checkUnnamed3728(core.List<api.LinuxUserView> o) { +checkUnnamed3565(core.List<api.LinuxUserView> o) { unittest.expect(o, unittest.hasLength(2)); checkLinuxUserView(o[0]); checkLinuxUserView(o[1]); @@ -264,9 +264,9 @@ var o = new api.LinuxAccountViews(); buildCounterLinuxAccountViews++; if (buildCounterLinuxAccountViews < 3) { - o.groupViews = buildUnnamed3727(); + o.groupViews = buildUnnamed3564(); o.kind = "foo"; - o.userViews = buildUnnamed3728(); + o.userViews = buildUnnamed3565(); } buildCounterLinuxAccountViews--; return o; @@ -275,9 +275,9 @@ checkLinuxAccountViews(api.LinuxAccountViews o) { buildCounterLinuxAccountViews++; if (buildCounterLinuxAccountViews < 3) { - checkUnnamed3727(o.groupViews); + checkUnnamed3564(o.groupViews); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3728(o.userViews); + checkUnnamed3565(o.userViews); } buildCounterLinuxAccountViews--; } @@ -320,14 +320,14 @@ buildCounterLinuxGetLinuxAccountViewsResponse--; } -buildUnnamed3729() { +buildUnnamed3566() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3729(core.List<core.String> o) { +checkUnnamed3566(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -340,7 +340,7 @@ if (buildCounterLinuxGroupView < 3) { o.gid = 42; o.groupName = "foo"; - o.members = buildUnnamed3729(); + o.members = buildUnnamed3566(); } buildCounterLinuxGroupView--; return o; @@ -351,7 +351,7 @@ if (buildCounterLinuxGroupView < 3) { unittest.expect(o.gid, unittest.equals(42)); unittest.expect(o.groupName, unittest.equals('foo')); - checkUnnamed3729(o.members); + checkUnnamed3566(o.members); } buildCounterLinuxGroupView--; } @@ -408,14 +408,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3730() { +buildUnnamed3567() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3730(core.List<api.OperationErrorErrors> o) { +checkUnnamed3567(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -426,7 +426,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3730(); + o.errors = buildUnnamed3567(); } buildCounterOperationError--; return o; @@ -435,7 +435,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3730(o.errors); + checkUnnamed3567(o.errors); } buildCounterOperationError--; } @@ -461,14 +461,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3731() { +buildUnnamed3568() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3731(core.List<api.OperationWarningsData> o) { +checkUnnamed3568(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -480,7 +480,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3731(); + o.data = buildUnnamed3568(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -491,20 +491,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3731(o.data); + checkUnnamed3568(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3732() { +buildUnnamed3569() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3732(core.List<api.OperationWarnings> o) { +checkUnnamed3569(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -536,7 +536,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3732(); + o.warnings = buildUnnamed3569(); o.zone = "foo"; } buildCounterOperation--; @@ -567,20 +567,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3732(o.warnings); + checkUnnamed3569(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3733() { +buildUnnamed3570() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3733(core.List<api.Operation> o) { +checkUnnamed3570(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -592,7 +592,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3733(); + o.items = buildUnnamed3570(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -605,7 +605,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3733(o.items); + checkUnnamed3570(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -640,27 +640,27 @@ buildCounterPublicKey--; } -buildUnnamed3734() { +buildUnnamed3571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3734(core.List<core.String> o) { +checkUnnamed3571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3735() { +buildUnnamed3572() { var o = new core.List<api.PublicKey>(); o.add(buildPublicKey()); o.add(buildPublicKey()); return o; } -checkUnnamed3735(core.List<api.PublicKey> o) { +checkUnnamed3572(core.List<api.PublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkPublicKey(o[0]); checkPublicKey(o[1]); @@ -673,12 +673,12 @@ if (buildCounterUser < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.groups = buildUnnamed3734(); + o.groups = buildUnnamed3571(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; o.owner = "foo"; - o.publicKeys = buildUnnamed3735(); + o.publicKeys = buildUnnamed3572(); o.selfLink = "foo"; } buildCounterUser--; @@ -690,25 +690,25 @@ if (buildCounterUser < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3734(o.groups); + checkUnnamed3571(o.groups); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.owner, unittest.equals('foo')); - checkUnnamed3735(o.publicKeys); + checkUnnamed3572(o.publicKeys); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterUser--; } -buildUnnamed3736() { +buildUnnamed3573() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed3736(core.List<api.User> o) { +checkUnnamed3573(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -720,7 +720,7 @@ buildCounterUserList++; if (buildCounterUserList < 3) { o.id = "foo"; - o.items = buildUnnamed3736(); + o.items = buildUnnamed3573(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -733,7 +733,7 @@ buildCounterUserList++; if (buildCounterUserList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3736(o.items); + checkUnnamed3573(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_beta/test/dataflow/v1b3_test.dart b/generated/googleapis_beta/test/dataflow/v1b3_test.dart index 6cfde79..9089288 100644 --- a/generated/googleapis_beta/test/dataflow/v1b3_test.dart +++ b/generated/googleapis_beta/test/dataflow/v1b3_test.dart
@@ -141,53 +141,53 @@ buildCounterAutoscalingSettings--; } -buildUnnamed3540() { +buildUnnamed3354() { var o = new core.List<api.StreamLocation>(); o.add(buildStreamLocation()); o.add(buildStreamLocation()); return o; } -checkUnnamed3540(core.List<api.StreamLocation> o) { +checkUnnamed3354(core.List<api.StreamLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamLocation(o[0]); checkStreamLocation(o[1]); } -buildUnnamed3541() { +buildUnnamed3355() { var o = new core.List<api.KeyRangeLocation>(); o.add(buildKeyRangeLocation()); o.add(buildKeyRangeLocation()); return o; } -checkUnnamed3541(core.List<api.KeyRangeLocation> o) { +checkUnnamed3355(core.List<api.KeyRangeLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRangeLocation(o[0]); checkKeyRangeLocation(o[1]); } -buildUnnamed3542() { +buildUnnamed3356() { var o = new core.List<api.StreamLocation>(); o.add(buildStreamLocation()); o.add(buildStreamLocation()); return o; } -checkUnnamed3542(core.List<api.StreamLocation> o) { +checkUnnamed3356(core.List<api.StreamLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamLocation(o[0]); checkStreamLocation(o[1]); } -buildUnnamed3543() { +buildUnnamed3357() { var o = new core.List<api.StateFamilyConfig>(); o.add(buildStateFamilyConfig()); o.add(buildStateFamilyConfig()); return o; } -checkUnnamed3543(core.List<api.StateFamilyConfig> o) { +checkUnnamed3357(core.List<api.StateFamilyConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStateFamilyConfig(o[0]); checkStateFamilyConfig(o[1]); @@ -199,10 +199,10 @@ buildCounterComputationTopology++; if (buildCounterComputationTopology < 3) { o.computationId = "foo"; - o.inputs = buildUnnamed3540(); - o.keyRanges = buildUnnamed3541(); - o.outputs = buildUnnamed3542(); - o.stateFamilies = buildUnnamed3543(); + o.inputs = buildUnnamed3354(); + o.keyRanges = buildUnnamed3355(); + o.outputs = buildUnnamed3356(); + o.stateFamilies = buildUnnamed3357(); o.systemStageName = "foo"; o.userStageName = "foo"; } @@ -214,10 +214,10 @@ buildCounterComputationTopology++; if (buildCounterComputationTopology < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3540(o.inputs); - checkUnnamed3541(o.keyRanges); - checkUnnamed3542(o.outputs); - checkUnnamed3543(o.stateFamilies); + checkUnnamed3354(o.inputs); + checkUnnamed3355(o.keyRanges); + checkUnnamed3356(o.outputs); + checkUnnamed3357(o.stateFamilies); unittest.expect(o.systemStageName, unittest.equals('foo')); unittest.expect(o.userStageName, unittest.equals('foo')); } @@ -367,14 +367,14 @@ buildCounterCounterUpdate--; } -buildUnnamed3544() { +buildUnnamed3358() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3544(core.Map<core.String, core.String> o) { +checkUnnamed3358(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')); @@ -386,7 +386,7 @@ buildCounterCreateJobFromTemplateRequest++; if (buildCounterCreateJobFromTemplateRequest < 3) { o.gcsPath = "foo"; - o.parameters = buildUnnamed3544(); + o.parameters = buildUnnamed3358(); } buildCounterCreateJobFromTemplateRequest--; return o; @@ -396,7 +396,7 @@ buildCounterCreateJobFromTemplateRequest++; if (buildCounterCreateJobFromTemplateRequest < 3) { unittest.expect(o.gcsPath, unittest.equals('foo')); - checkUnnamed3544(o.parameters); + checkUnnamed3358(o.parameters); } buildCounterCreateJobFromTemplateRequest--; } @@ -420,14 +420,14 @@ buildCounterCustomSourceLocation--; } -buildUnnamed3545() { +buildUnnamed3359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3545(core.List<core.String> o) { +checkUnnamed3359(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -438,7 +438,7 @@ var o = new api.DataDiskAssignment(); buildCounterDataDiskAssignment++; if (buildCounterDataDiskAssignment < 3) { - o.dataDisks = buildUnnamed3545(); + o.dataDisks = buildUnnamed3359(); o.vmInstance = "foo"; } buildCounterDataDiskAssignment--; @@ -448,7 +448,7 @@ checkDataDiskAssignment(api.DataDiskAssignment o) { buildCounterDataDiskAssignment++; if (buildCounterDataDiskAssignment < 3) { - checkUnnamed3545(o.dataDisks); + checkUnnamed3359(o.dataDisks); unittest.expect(o.vmInstance, unittest.equals('foo')); } buildCounterDataDiskAssignment--; @@ -519,79 +519,79 @@ buildCounterDynamicSourceSplit--; } -buildUnnamed3546() { +buildUnnamed3360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3546(core.List<core.String> o) { +checkUnnamed3360(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3547() { +buildUnnamed3361() { 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; } -checkUnnamed3547(core.Map<core.String, core.Object> o) { +checkUnnamed3361(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o["x"]) 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')); var casted3 = (o["y"]) 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')); } -buildUnnamed3548() { +buildUnnamed3362() { 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; } -checkUnnamed3548(core.Map<core.String, core.Object> o) { +checkUnnamed3362(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')); } -buildUnnamed3549() { +buildUnnamed3363() { 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; } -checkUnnamed3549(core.Map<core.String, core.Object> o) { +checkUnnamed3363(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')); } -buildUnnamed3550() { +buildUnnamed3364() { 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; } -checkUnnamed3550(core.Map<core.String, core.Object> o) { +checkUnnamed3364(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')); } -buildUnnamed3551() { +buildUnnamed3365() { var o = new core.List<api.WorkerPool>(); o.add(buildWorkerPool()); o.add(buildWorkerPool()); return o; } -checkUnnamed3551(core.List<api.WorkerPool> o) { +checkUnnamed3365(core.List<api.WorkerPool> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerPool(o[0]); checkWorkerPool(o[1]); @@ -604,13 +604,14 @@ if (buildCounterEnvironment < 3) { o.clusterManagerApiService = "foo"; o.dataset = "foo"; - o.experiments = buildUnnamed3546(); - o.internalExperiments = buildUnnamed3547(); - o.sdkPipelineOptions = buildUnnamed3548(); + o.experiments = buildUnnamed3360(); + o.internalExperiments = buildUnnamed3361(); + o.sdkPipelineOptions = buildUnnamed3362(); + o.serviceAccountEmail = "foo"; o.tempStoragePrefix = "foo"; - o.userAgent = buildUnnamed3549(); - o.version = buildUnnamed3550(); - o.workerPools = buildUnnamed3551(); + o.userAgent = buildUnnamed3363(); + o.version = buildUnnamed3364(); + o.workerPools = buildUnnamed3365(); } buildCounterEnvironment--; return o; @@ -621,25 +622,45 @@ if (buildCounterEnvironment < 3) { unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); unittest.expect(o.dataset, unittest.equals('foo')); - checkUnnamed3546(o.experiments); - checkUnnamed3547(o.internalExperiments); - checkUnnamed3548(o.sdkPipelineOptions); + checkUnnamed3360(o.experiments); + checkUnnamed3361(o.internalExperiments); + checkUnnamed3362(o.sdkPipelineOptions); + unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); - checkUnnamed3549(o.userAgent); - checkUnnamed3550(o.version); - checkUnnamed3551(o.workerPools); + checkUnnamed3363(o.userAgent); + checkUnnamed3364(o.version); + checkUnnamed3365(o.workerPools); } buildCounterEnvironment--; } -buildUnnamed3552() { +core.int buildCounterFailedLocation = 0; +buildFailedLocation() { + var o = new api.FailedLocation(); + buildCounterFailedLocation++; + if (buildCounterFailedLocation < 3) { + o.name = "foo"; + } + buildCounterFailedLocation--; + return o; +} + +checkFailedLocation(api.FailedLocation o) { + buildCounterFailedLocation++; + if (buildCounterFailedLocation < 3) { + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterFailedLocation--; +} + +buildUnnamed3366() { var o = new core.List<api.InstructionInput>(); o.add(buildInstructionInput()); o.add(buildInstructionInput()); return o; } -checkUnnamed3552(core.List<api.InstructionInput> o) { +checkUnnamed3366(core.List<api.InstructionInput> o) { unittest.expect(o, unittest.hasLength(2)); checkInstructionInput(o[0]); checkInstructionInput(o[1]); @@ -650,7 +671,7 @@ var o = new api.FlattenInstruction(); buildCounterFlattenInstruction++; if (buildCounterFlattenInstruction < 3) { - o.inputs = buildUnnamed3552(); + o.inputs = buildUnnamed3366(); } buildCounterFlattenInstruction--; return o; @@ -659,19 +680,19 @@ checkFlattenInstruction(api.FlattenInstruction o) { buildCounterFlattenInstruction++; if (buildCounterFlattenInstruction < 3) { - checkUnnamed3552(o.inputs); + checkUnnamed3366(o.inputs); } buildCounterFlattenInstruction--; } -buildUnnamed3553() { +buildUnnamed3367() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3553(core.List<core.double> o) { +checkUnnamed3367(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)); @@ -682,7 +703,7 @@ var o = new api.FloatingPointList(); buildCounterFloatingPointList++; if (buildCounterFloatingPointList < 3) { - o.elements = buildUnnamed3553(); + o.elements = buildUnnamed3367(); } buildCounterFloatingPointList--; return o; @@ -691,7 +712,7 @@ checkFloatingPointList(api.FloatingPointList o) { buildCounterFloatingPointList++; if (buildCounterFloatingPointList < 3) { - checkUnnamed3553(o.elements); + checkUnnamed3367(o.elements); } buildCounterFloatingPointList--; } @@ -778,14 +799,14 @@ buildCounterInstructionInput--; } -buildUnnamed3554() { +buildUnnamed3368() { 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; } -checkUnnamed3554(core.Map<core.String, core.Object> o) { +checkUnnamed3368(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted10 = (o["x"]) 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')); var casted11 = (o["y"]) 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')); @@ -796,7 +817,7 @@ var o = new api.InstructionOutput(); buildCounterInstructionOutput++; if (buildCounterInstructionOutput < 3) { - o.codec = buildUnnamed3554(); + o.codec = buildUnnamed3368(); o.name = "foo"; o.onlyCountKeyBytes = true; o.onlyCountValueBytes = true; @@ -810,7 +831,7 @@ checkInstructionOutput(api.InstructionOutput o) { buildCounterInstructionOutput++; if (buildCounterInstructionOutput < 3) { - checkUnnamed3554(o.codec); + checkUnnamed3368(o.codec); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); unittest.expect(o.onlyCountValueBytes, unittest.isTrue); @@ -820,14 +841,14 @@ buildCounterInstructionOutput--; } -buildUnnamed3555() { +buildUnnamed3369() { var o = new core.List<api.SplitInt64>(); o.add(buildSplitInt64()); o.add(buildSplitInt64()); return o; } -checkUnnamed3555(core.List<api.SplitInt64> o) { +checkUnnamed3369(core.List<api.SplitInt64> o) { unittest.expect(o, unittest.hasLength(2)); checkSplitInt64(o[0]); checkSplitInt64(o[1]); @@ -838,7 +859,7 @@ var o = new api.IntegerList(); buildCounterIntegerList++; if (buildCounterIntegerList < 3) { - o.elements = buildUnnamed3555(); + o.elements = buildUnnamed3369(); } buildCounterIntegerList--; return o; @@ -847,7 +868,7 @@ checkIntegerList(api.IntegerList o) { buildCounterIntegerList++; if (buildCounterIntegerList < 3) { - checkUnnamed3555(o.elements); + checkUnnamed3369(o.elements); } buildCounterIntegerList--; } @@ -873,53 +894,53 @@ buildCounterIntegerMean--; } -buildUnnamed3556() { +buildUnnamed3370() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3556(core.Map<core.String, core.String> o) { +checkUnnamed3370(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')); } -buildUnnamed3557() { +buildUnnamed3371() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed3557(core.List<api.Step> o) { +checkUnnamed3371(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); } -buildUnnamed3558() { +buildUnnamed3372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3558(core.List<core.String> o) { +checkUnnamed3372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3559() { +buildUnnamed3373() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3559(core.Map<core.String, core.String> o) { +checkUnnamed3373(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')); @@ -937,15 +958,16 @@ o.environment = buildEnvironment(); o.executionInfo = buildJobExecutionInfo(); o.id = "foo"; - o.labels = buildUnnamed3556(); + o.labels = buildUnnamed3370(); + o.location = "foo"; o.name = "foo"; o.projectId = "foo"; o.replaceJobId = "foo"; o.replacedByJobId = "foo"; o.requestedState = "foo"; - o.steps = buildUnnamed3557(); - o.tempFiles = buildUnnamed3558(); - o.transformNameMapping = buildUnnamed3559(); + o.steps = buildUnnamed3371(); + o.tempFiles = buildUnnamed3372(); + o.transformNameMapping = buildUnnamed3373(); o.type = "foo"; } buildCounterJob--; @@ -962,28 +984,29 @@ checkEnvironment(o.environment); checkJobExecutionInfo(o.executionInfo); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3556(o.labels); + checkUnnamed3370(o.labels); + unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.replaceJobId, unittest.equals('foo')); unittest.expect(o.replacedByJobId, unittest.equals('foo')); unittest.expect(o.requestedState, unittest.equals('foo')); - checkUnnamed3557(o.steps); - checkUnnamed3558(o.tempFiles); - checkUnnamed3559(o.transformNameMapping); + checkUnnamed3371(o.steps); + checkUnnamed3372(o.tempFiles); + checkUnnamed3373(o.transformNameMapping); unittest.expect(o.type, unittest.equals('foo')); } buildCounterJob--; } -buildUnnamed3560() { +buildUnnamed3374() { var o = new core.Map<core.String, api.JobExecutionStageInfo>(); o["x"] = buildJobExecutionStageInfo(); o["y"] = buildJobExecutionStageInfo(); return o; } -checkUnnamed3560(core.Map<core.String, api.JobExecutionStageInfo> o) { +checkUnnamed3374(core.Map<core.String, api.JobExecutionStageInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkJobExecutionStageInfo(o["x"]); checkJobExecutionStageInfo(o["y"]); @@ -994,7 +1017,7 @@ var o = new api.JobExecutionInfo(); buildCounterJobExecutionInfo++; if (buildCounterJobExecutionInfo < 3) { - o.stages = buildUnnamed3560(); + o.stages = buildUnnamed3374(); } buildCounterJobExecutionInfo--; return o; @@ -1003,19 +1026,19 @@ checkJobExecutionInfo(api.JobExecutionInfo o) { buildCounterJobExecutionInfo++; if (buildCounterJobExecutionInfo < 3) { - checkUnnamed3560(o.stages); + checkUnnamed3374(o.stages); } buildCounterJobExecutionInfo--; } -buildUnnamed3561() { +buildUnnamed3375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3561(core.List<core.String> o) { +checkUnnamed3375(core.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,7 +1049,7 @@ var o = new api.JobExecutionStageInfo(); buildCounterJobExecutionStageInfo++; if (buildCounterJobExecutionStageInfo < 3) { - o.stepName = buildUnnamed3561(); + o.stepName = buildUnnamed3375(); } buildCounterJobExecutionStageInfo--; return o; @@ -1035,7 +1058,7 @@ checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { buildCounterJobExecutionStageInfo++; if (buildCounterJobExecutionStageInfo < 3) { - checkUnnamed3561(o.stepName); + checkUnnamed3375(o.stepName); } buildCounterJobExecutionStageInfo--; } @@ -1065,14 +1088,14 @@ buildCounterJobMessage--; } -buildUnnamed3562() { +buildUnnamed3376() { var o = new core.List<api.MetricUpdate>(); o.add(buildMetricUpdate()); o.add(buildMetricUpdate()); return o; } -checkUnnamed3562(core.List<api.MetricUpdate> o) { +checkUnnamed3376(core.List<api.MetricUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricUpdate(o[0]); checkMetricUpdate(o[1]); @@ -1084,7 +1107,7 @@ buildCounterJobMetrics++; if (buildCounterJobMetrics < 3) { o.metricTime = "foo"; - o.metrics = buildUnnamed3562(); + o.metrics = buildUnnamed3376(); } buildCounterJobMetrics--; return o; @@ -1094,7 +1117,7 @@ buildCounterJobMetrics++; if (buildCounterJobMetrics < 3) { unittest.expect(o.metricTime, unittest.equals('foo')); - checkUnnamed3562(o.metrics); + checkUnnamed3376(o.metrics); } buildCounterJobMetrics--; } @@ -1149,27 +1172,27 @@ buildCounterKeyRangeLocation--; } -buildUnnamed3563() { +buildUnnamed3377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3563(core.List<core.String> o) { +checkUnnamed3377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3564() { +buildUnnamed3378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3564(core.List<core.String> o) { +checkUnnamed3378(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1181,9 +1204,10 @@ buildCounterLeaseWorkItemRequest++; if (buildCounterLeaseWorkItemRequest < 3) { o.currentWorkerTime = "foo"; + o.location = "foo"; o.requestedLeaseDuration = "foo"; - o.workItemTypes = buildUnnamed3563(); - o.workerCapabilities = buildUnnamed3564(); + o.workItemTypes = buildUnnamed3377(); + o.workerCapabilities = buildUnnamed3378(); o.workerId = "foo"; } buildCounterLeaseWorkItemRequest--; @@ -1194,22 +1218,23 @@ buildCounterLeaseWorkItemRequest++; if (buildCounterLeaseWorkItemRequest < 3) { unittest.expect(o.currentWorkerTime, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); - checkUnnamed3563(o.workItemTypes); - checkUnnamed3564(o.workerCapabilities); + checkUnnamed3377(o.workItemTypes); + checkUnnamed3378(o.workerCapabilities); unittest.expect(o.workerId, unittest.equals('foo')); } buildCounterLeaseWorkItemRequest--; } -buildUnnamed3565() { +buildUnnamed3379() { var o = new core.List<api.WorkItem>(); o.add(buildWorkItem()); o.add(buildWorkItem()); return o; } -checkUnnamed3565(core.List<api.WorkItem> o) { +checkUnnamed3379(core.List<api.WorkItem> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItem(o[0]); checkWorkItem(o[1]); @@ -1220,7 +1245,7 @@ var o = new api.LeaseWorkItemResponse(); buildCounterLeaseWorkItemResponse++; if (buildCounterLeaseWorkItemResponse < 3) { - o.workItems = buildUnnamed3565(); + o.workItems = buildUnnamed3379(); } buildCounterLeaseWorkItemResponse--; return o; @@ -1229,19 +1254,19 @@ checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { buildCounterLeaseWorkItemResponse++; if (buildCounterLeaseWorkItemResponse < 3) { - checkUnnamed3565(o.workItems); + checkUnnamed3379(o.workItems); } buildCounterLeaseWorkItemResponse--; } -buildUnnamed3566() { +buildUnnamed3380() { var o = new core.List<api.JobMessage>(); o.add(buildJobMessage()); o.add(buildJobMessage()); return o; } -checkUnnamed3566(core.List<api.JobMessage> o) { +checkUnnamed3380(core.List<api.JobMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkJobMessage(o[0]); checkJobMessage(o[1]); @@ -1252,7 +1277,7 @@ var o = new api.ListJobMessagesResponse(); buildCounterListJobMessagesResponse++; if (buildCounterListJobMessagesResponse < 3) { - o.jobMessages = buildUnnamed3566(); + o.jobMessages = buildUnnamed3380(); o.nextPageToken = "foo"; } buildCounterListJobMessagesResponse--; @@ -1262,20 +1287,33 @@ checkListJobMessagesResponse(api.ListJobMessagesResponse o) { buildCounterListJobMessagesResponse++; if (buildCounterListJobMessagesResponse < 3) { - checkUnnamed3566(o.jobMessages); + checkUnnamed3380(o.jobMessages); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobMessagesResponse--; } -buildUnnamed3567() { +buildUnnamed3381() { + var o = new core.List<api.FailedLocation>(); + o.add(buildFailedLocation()); + o.add(buildFailedLocation()); + return o; +} + +checkUnnamed3381(core.List<api.FailedLocation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFailedLocation(o[0]); + checkFailedLocation(o[1]); +} + +buildUnnamed3382() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3567(core.List<api.Job> o) { +checkUnnamed3382(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1286,7 +1324,8 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed3567(); + o.failedLocation = buildUnnamed3381(); + o.jobs = buildUnnamed3382(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -1296,20 +1335,21 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3567(o.jobs); + checkUnnamed3381(o.failedLocation); + checkUnnamed3382(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed3568() { +buildUnnamed3383() { var o = new core.List<api.ParallelInstruction>(); o.add(buildParallelInstruction()); o.add(buildParallelInstruction()); return o; } -checkUnnamed3568(core.List<api.ParallelInstruction> o) { +checkUnnamed3383(core.List<api.ParallelInstruction> o) { unittest.expect(o, unittest.hasLength(2)); checkParallelInstruction(o[0]); checkParallelInstruction(o[1]); @@ -1320,7 +1360,7 @@ var o = new api.MapTask(); buildCounterMapTask++; if (buildCounterMapTask < 3) { - o.instructions = buildUnnamed3568(); + o.instructions = buildUnnamed3383(); o.stageName = "foo"; o.systemName = "foo"; } @@ -1331,7 +1371,7 @@ checkMapTask(api.MapTask o) { buildCounterMapTask++; if (buildCounterMapTask < 3) { - checkUnnamed3568(o.instructions); + checkUnnamed3383(o.instructions); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); } @@ -1359,14 +1399,14 @@ buildCounterMetricShortId--; } -buildUnnamed3569() { +buildUnnamed3384() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3569(core.Map<core.String, core.String> o) { +checkUnnamed3384(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')); @@ -1377,7 +1417,7 @@ var o = new api.MetricStructuredName(); buildCounterMetricStructuredName++; if (buildCounterMetricStructuredName < 3) { - o.context = buildUnnamed3569(); + o.context = buildUnnamed3384(); o.name = "foo"; o.origin = "foo"; } @@ -1388,7 +1428,7 @@ checkMetricStructuredName(api.MetricStructuredName o) { buildCounterMetricStructuredName++; if (buildCounterMetricStructuredName < 3) { - checkUnnamed3569(o.context); + checkUnnamed3384(o.context); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.origin, unittest.equals('foo')); } @@ -1510,40 +1550,40 @@ buildCounterPackage--; } -buildUnnamed3570() { +buildUnnamed3385() { var o = new core.List<api.MultiOutputInfo>(); o.add(buildMultiOutputInfo()); o.add(buildMultiOutputInfo()); return o; } -checkUnnamed3570(core.List<api.MultiOutputInfo> o) { +checkUnnamed3385(core.List<api.MultiOutputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkMultiOutputInfo(o[0]); checkMultiOutputInfo(o[1]); } -buildUnnamed3571() { +buildUnnamed3386() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3571(core.List<api.SideInputInfo> o) { +checkUnnamed3386(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3572() { +buildUnnamed3387() { 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; } -checkUnnamed3572(core.Map<core.String, core.Object> o) { +checkUnnamed3387(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o["x"]) 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["y"]) 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')); @@ -1555,10 +1595,10 @@ buildCounterParDoInstruction++; if (buildCounterParDoInstruction < 3) { o.input = buildInstructionInput(); - o.multiOutputInfos = buildUnnamed3570(); + o.multiOutputInfos = buildUnnamed3385(); o.numOutputs = 42; - o.sideInputs = buildUnnamed3571(); - o.userFn = buildUnnamed3572(); + o.sideInputs = buildUnnamed3386(); + o.userFn = buildUnnamed3387(); } buildCounterParDoInstruction--; return o; @@ -1568,22 +1608,22 @@ buildCounterParDoInstruction++; if (buildCounterParDoInstruction < 3) { checkInstructionInput(o.input); - checkUnnamed3570(o.multiOutputInfos); + checkUnnamed3385(o.multiOutputInfos); unittest.expect(o.numOutputs, unittest.equals(42)); - checkUnnamed3571(o.sideInputs); - checkUnnamed3572(o.userFn); + checkUnnamed3386(o.sideInputs); + checkUnnamed3387(o.userFn); } buildCounterParDoInstruction--; } -buildUnnamed3573() { +buildUnnamed3388() { var o = new core.List<api.InstructionOutput>(); o.add(buildInstructionOutput()); o.add(buildInstructionOutput()); return o; } -checkUnnamed3573(core.List<api.InstructionOutput> o) { +checkUnnamed3388(core.List<api.InstructionOutput> o) { unittest.expect(o, unittest.hasLength(2)); checkInstructionOutput(o[0]); checkInstructionOutput(o[1]); @@ -1597,7 +1637,7 @@ o.flatten = buildFlattenInstruction(); o.name = "foo"; o.originalName = "foo"; - o.outputs = buildUnnamed3573(); + o.outputs = buildUnnamed3388(); o.parDo = buildParDoInstruction(); o.partialGroupByKey = buildPartialGroupByKeyInstruction(); o.read = buildReadInstruction(); @@ -1614,7 +1654,7 @@ checkFlattenInstruction(o.flatten); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalName, unittest.equals('foo')); - checkUnnamed3573(o.outputs); + checkUnnamed3388(o.outputs); checkParDoInstruction(o.parDo); checkPartialGroupByKeyInstruction(o.partialGroupByKey); checkReadInstruction(o.read); @@ -1624,40 +1664,40 @@ buildCounterParallelInstruction--; } -buildUnnamed3574() { +buildUnnamed3389() { 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; } -checkUnnamed3574(core.Map<core.String, core.Object> o) { +checkUnnamed3389(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o["x"]) 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["y"]) 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')); } -buildUnnamed3575() { +buildUnnamed3390() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3575(core.List<api.SideInputInfo> o) { +checkUnnamed3390(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3576() { +buildUnnamed3391() { 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; } -checkUnnamed3576(core.Map<core.String, core.Object> o) { +checkUnnamed3391(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')); @@ -1669,11 +1709,11 @@ buildCounterPartialGroupByKeyInstruction++; if (buildCounterPartialGroupByKeyInstruction < 3) { o.input = buildInstructionInput(); - o.inputElementCodec = buildUnnamed3574(); + o.inputElementCodec = buildUnnamed3389(); o.originalCombineValuesInputStoreName = "foo"; o.originalCombineValuesStepName = "foo"; - o.sideInputs = buildUnnamed3575(); - o.valueCombiningFn = buildUnnamed3576(); + o.sideInputs = buildUnnamed3390(); + o.valueCombiningFn = buildUnnamed3391(); } buildCounterPartialGroupByKeyInstruction--; return o; @@ -1683,11 +1723,11 @@ buildCounterPartialGroupByKeyInstruction++; if (buildCounterPartialGroupByKeyInstruction < 3) { checkInstructionInput(o.input); - checkUnnamed3574(o.inputElementCodec); + checkUnnamed3389(o.inputElementCodec); unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo')); unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); - checkUnnamed3575(o.sideInputs); - checkUnnamed3576(o.valueCombiningFn); + checkUnnamed3390(o.sideInputs); + checkUnnamed3391(o.valueCombiningFn); } buildCounterPartialGroupByKeyInstruction--; } @@ -1769,14 +1809,14 @@ buildCounterReadInstruction--; } -buildUnnamed3577() { +buildUnnamed3392() { var o = new core.List<api.WorkItemStatus>(); o.add(buildWorkItemStatus()); o.add(buildWorkItemStatus()); return o; } -checkUnnamed3577(core.List<api.WorkItemStatus> o) { +checkUnnamed3392(core.List<api.WorkItemStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItemStatus(o[0]); checkWorkItemStatus(o[1]); @@ -1788,7 +1828,8 @@ buildCounterReportWorkItemStatusRequest++; if (buildCounterReportWorkItemStatusRequest < 3) { o.currentWorkerTime = "foo"; - o.workItemStatuses = buildUnnamed3577(); + o.location = "foo"; + o.workItemStatuses = buildUnnamed3392(); o.workerId = "foo"; } buildCounterReportWorkItemStatusRequest--; @@ -1799,20 +1840,21 @@ buildCounterReportWorkItemStatusRequest++; if (buildCounterReportWorkItemStatusRequest < 3) { unittest.expect(o.currentWorkerTime, unittest.equals('foo')); - checkUnnamed3577(o.workItemStatuses); + unittest.expect(o.location, unittest.equals('foo')); + checkUnnamed3392(o.workItemStatuses); unittest.expect(o.workerId, unittest.equals('foo')); } buildCounterReportWorkItemStatusRequest--; } -buildUnnamed3578() { +buildUnnamed3393() { var o = new core.List<api.WorkItemServiceState>(); o.add(buildWorkItemServiceState()); o.add(buildWorkItemServiceState()); return o; } -checkUnnamed3578(core.List<api.WorkItemServiceState> o) { +checkUnnamed3393(core.List<api.WorkItemServiceState> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkItemServiceState(o[0]); checkWorkItemServiceState(o[1]); @@ -1823,7 +1865,7 @@ var o = new api.ReportWorkItemStatusResponse(); buildCounterReportWorkItemStatusResponse++; if (buildCounterReportWorkItemStatusResponse < 3) { - o.workItemServiceStates = buildUnnamed3578(); + o.workItemServiceStates = buildUnnamed3393(); } buildCounterReportWorkItemStatusResponse--; return o; @@ -1832,7 +1874,7 @@ checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { buildCounterReportWorkItemStatusResponse++; if (buildCounterReportWorkItemStatusResponse < 3) { - checkUnnamed3578(o.workItemServiceStates); + checkUnnamed3393(o.workItemServiceStates); } buildCounterReportWorkItemStatusResponse--; } @@ -1898,14 +1940,14 @@ buildCounterSendDebugCaptureResponse--; } -buildUnnamed3579() { +buildUnnamed3394() { var o = new core.List<api.WorkerMessage>(); o.add(buildWorkerMessage()); o.add(buildWorkerMessage()); return o; } -checkUnnamed3579(core.List<api.WorkerMessage> o) { +checkUnnamed3394(core.List<api.WorkerMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerMessage(o[0]); checkWorkerMessage(o[1]); @@ -1916,7 +1958,7 @@ var o = new api.SendWorkerMessagesRequest(); buildCounterSendWorkerMessagesRequest++; if (buildCounterSendWorkerMessagesRequest < 3) { - o.workerMessages = buildUnnamed3579(); + o.workerMessages = buildUnnamed3394(); } buildCounterSendWorkerMessagesRequest--; return o; @@ -1925,19 +1967,19 @@ checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { buildCounterSendWorkerMessagesRequest++; if (buildCounterSendWorkerMessagesRequest < 3) { - checkUnnamed3579(o.workerMessages); + checkUnnamed3394(o.workerMessages); } buildCounterSendWorkerMessagesRequest--; } -buildUnnamed3580() { +buildUnnamed3395() { var o = new core.List<api.WorkerMessageResponse>(); o.add(buildWorkerMessageResponse()); o.add(buildWorkerMessageResponse()); return o; } -checkUnnamed3580(core.List<api.WorkerMessageResponse> o) { +checkUnnamed3395(core.List<api.WorkerMessageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkerMessageResponse(o[0]); checkWorkerMessageResponse(o[1]); @@ -1948,7 +1990,7 @@ var o = new api.SendWorkerMessagesResponse(); buildCounterSendWorkerMessagesResponse++; if (buildCounterSendWorkerMessagesResponse < 3) { - o.workerMessageResponses = buildUnnamed3580(); + o.workerMessageResponses = buildUnnamed3395(); } buildCounterSendWorkerMessagesResponse--; return o; @@ -1957,45 +1999,45 @@ checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { buildCounterSendWorkerMessagesResponse++; if (buildCounterSendWorkerMessagesResponse < 3) { - checkUnnamed3580(o.workerMessageResponses); + checkUnnamed3395(o.workerMessageResponses); } buildCounterSendWorkerMessagesResponse--; } -buildUnnamed3581() { +buildUnnamed3396() { var o = new core.List<api.SideInputInfo>(); o.add(buildSideInputInfo()); o.add(buildSideInputInfo()); return o; } -checkUnnamed3581(core.List<api.SideInputInfo> o) { +checkUnnamed3396(core.List<api.SideInputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSideInputInfo(o[0]); checkSideInputInfo(o[1]); } -buildUnnamed3582() { +buildUnnamed3397() { var o = new core.List<api.SeqMapTaskOutputInfo>(); o.add(buildSeqMapTaskOutputInfo()); o.add(buildSeqMapTaskOutputInfo()); return o; } -checkUnnamed3582(core.List<api.SeqMapTaskOutputInfo> o) { +checkUnnamed3397(core.List<api.SeqMapTaskOutputInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSeqMapTaskOutputInfo(o[0]); checkSeqMapTaskOutputInfo(o[1]); } -buildUnnamed3583() { +buildUnnamed3398() { 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; } -checkUnnamed3583(core.Map<core.String, core.Object> o) { +checkUnnamed3398(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o["x"]) 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["y"]) 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')); @@ -2006,12 +2048,12 @@ var o = new api.SeqMapTask(); buildCounterSeqMapTask++; if (buildCounterSeqMapTask < 3) { - o.inputs = buildUnnamed3581(); + o.inputs = buildUnnamed3396(); o.name = "foo"; - o.outputInfos = buildUnnamed3582(); + o.outputInfos = buildUnnamed3397(); o.stageName = "foo"; o.systemName = "foo"; - o.userFn = buildUnnamed3583(); + o.userFn = buildUnnamed3398(); } buildCounterSeqMapTask--; return o; @@ -2020,12 +2062,12 @@ checkSeqMapTask(api.SeqMapTask o) { buildCounterSeqMapTask++; if (buildCounterSeqMapTask < 3) { - checkUnnamed3581(o.inputs); + checkUnnamed3396(o.inputs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3582(o.outputInfos); + checkUnnamed3397(o.outputInfos); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); - checkUnnamed3583(o.userFn); + checkUnnamed3398(o.userFn); } buildCounterSeqMapTask--; } @@ -2072,27 +2114,27 @@ buildCounterShellTask--; } -buildUnnamed3584() { +buildUnnamed3399() { 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; } -checkUnnamed3584(core.Map<core.String, core.Object> o) { +checkUnnamed3399(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o["x"]) 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["y"]) 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')); } -buildUnnamed3585() { +buildUnnamed3400() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed3585(core.List<api.Source> o) { +checkUnnamed3400(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -2103,8 +2145,8 @@ var o = new api.SideInputInfo(); buildCounterSideInputInfo++; if (buildCounterSideInputInfo < 3) { - o.kind = buildUnnamed3584(); - o.sources = buildUnnamed3585(); + o.kind = buildUnnamed3399(); + o.sources = buildUnnamed3400(); o.tag = "foo"; } buildCounterSideInputInfo--; @@ -2114,34 +2156,34 @@ checkSideInputInfo(api.SideInputInfo o) { buildCounterSideInputInfo++; if (buildCounterSideInputInfo < 3) { - checkUnnamed3584(o.kind); - checkUnnamed3585(o.sources); + checkUnnamed3399(o.kind); + checkUnnamed3400(o.sources); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterSideInputInfo--; } -buildUnnamed3586() { +buildUnnamed3401() { 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; } -checkUnnamed3586(core.Map<core.String, core.Object> o) { +checkUnnamed3401(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o["x"]) 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["y"]) 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')); } -buildUnnamed3587() { +buildUnnamed3402() { 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; } -checkUnnamed3587(core.Map<core.String, core.Object> o) { +checkUnnamed3402(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["string"], unittest.equals('foo')); var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLength(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["string"], unittest.equals('foo')); @@ -2152,8 +2194,8 @@ var o = new api.Sink(); buildCounterSink++; if (buildCounterSink < 3) { - o.codec = buildUnnamed3586(); - o.spec = buildUnnamed3587(); + o.codec = buildUnnamed3401(); + o.spec = buildUnnamed3402(); } buildCounterSink--; return o; @@ -2162,59 +2204,59 @@ checkSink(api.Sink o) { buildCounterSink++; if (buildCounterSink < 3) { - checkUnnamed3586(o.codec); - checkUnnamed3587(o.spec); + checkUnnamed3401(o.codec); + checkUnnamed3402(o.spec); } buildCounterSink--; } -buildUnnamed3588() { +buildUnnamed3403() { 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; } -checkUnnamed3588(core.Map<core.String, core.Object> o) { +checkUnnamed3403(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest.expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["string"], unittest.equals('foo')); var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLength(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest.expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["string"], unittest.equals('foo')); } -buildUnnamed3589() { +buildUnnamed3404() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3588()); - o.add(buildUnnamed3588()); + o.add(buildUnnamed3403()); + o.add(buildUnnamed3403()); return o; } -checkUnnamed3589(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3404(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3588(o[0]); - checkUnnamed3588(o[1]); + checkUnnamed3403(o[0]); + checkUnnamed3403(o[1]); } -buildUnnamed3590() { +buildUnnamed3405() { 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; } -checkUnnamed3590(core.Map<core.String, core.Object> o) { +checkUnnamed3405(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLength(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest.expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["string"], unittest.equals('foo')); var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLength(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest.expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["string"], unittest.equals('foo')); } -buildUnnamed3591() { +buildUnnamed3406() { 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; } -checkUnnamed3591(core.Map<core.String, core.Object> o) { +checkUnnamed3406(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLength(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest.expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["string"], unittest.equals('foo')); var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLength(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest.expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["string"], unittest.equals('foo')); @@ -2225,11 +2267,11 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.baseSpecs = buildUnnamed3589(); - o.codec = buildUnnamed3590(); + o.baseSpecs = buildUnnamed3404(); + o.codec = buildUnnamed3405(); o.doesNotNeedSplitting = true; o.metadata = buildSourceMetadata(); - o.spec = buildUnnamed3591(); + o.spec = buildUnnamed3406(); } buildCounterSource--; return o; @@ -2238,11 +2280,11 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed3589(o.baseSpecs); - checkUnnamed3590(o.codec); + checkUnnamed3404(o.baseSpecs); + checkUnnamed3405(o.codec); unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); checkSourceMetadata(o.metadata); - checkUnnamed3591(o.spec); + checkUnnamed3406(o.spec); } buildCounterSource--; } @@ -2417,27 +2459,27 @@ buildCounterSourceSplitRequest--; } -buildUnnamed3592() { +buildUnnamed3407() { var o = new core.List<api.DerivedSource>(); o.add(buildDerivedSource()); o.add(buildDerivedSource()); return o; } -checkUnnamed3592(core.List<api.DerivedSource> o) { +checkUnnamed3407(core.List<api.DerivedSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDerivedSource(o[0]); checkDerivedSource(o[1]); } -buildUnnamed3593() { +buildUnnamed3408() { var o = new core.List<api.SourceSplitShard>(); o.add(buildSourceSplitShard()); o.add(buildSourceSplitShard()); return o; } -checkUnnamed3593(core.List<api.SourceSplitShard> o) { +checkUnnamed3408(core.List<api.SourceSplitShard> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceSplitShard(o[0]); checkSourceSplitShard(o[1]); @@ -2448,9 +2490,9 @@ var o = new api.SourceSplitResponse(); buildCounterSourceSplitResponse++; if (buildCounterSourceSplitResponse < 3) { - o.bundles = buildUnnamed3592(); + o.bundles = buildUnnamed3407(); o.outcome = "foo"; - o.shards = buildUnnamed3593(); + o.shards = buildUnnamed3408(); } buildCounterSourceSplitResponse--; return o; @@ -2459,9 +2501,9 @@ checkSourceSplitResponse(api.SourceSplitResponse o) { buildCounterSourceSplitResponse++; if (buildCounterSourceSplitResponse < 3) { - checkUnnamed3592(o.bundles); + checkUnnamed3407(o.bundles); unittest.expect(o.outcome, unittest.equals('foo')); - checkUnnamed3593(o.shards); + checkUnnamed3408(o.shards); } buildCounterSourceSplitResponse--; } @@ -2529,30 +2571,30 @@ buildCounterStateFamilyConfig--; } -buildUnnamed3594() { +buildUnnamed3409() { 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; } -checkUnnamed3594(core.Map<core.String, core.Object> o) { +checkUnnamed3409(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLength(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest.expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["string"], unittest.equals('foo')); var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLength(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest.expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["string"], unittest.equals('foo')); } -buildUnnamed3595() { +buildUnnamed3410() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3594()); - o.add(buildUnnamed3594()); + o.add(buildUnnamed3409()); + o.add(buildUnnamed3409()); return o; } -checkUnnamed3595(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3410(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3594(o[0]); - checkUnnamed3594(o[1]); + checkUnnamed3409(o[0]); + checkUnnamed3409(o[1]); } core.int buildCounterStatus = 0; @@ -2561,7 +2603,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3595(); + o.details = buildUnnamed3410(); o.message = "foo"; } buildCounterStatus--; @@ -2572,20 +2614,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3595(o.details); + checkUnnamed3410(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3596() { +buildUnnamed3411() { 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; } -checkUnnamed3596(core.Map<core.String, core.Object> o) { +checkUnnamed3411(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLength(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest.expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["string"], unittest.equals('foo')); var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLength(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest.expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["string"], unittest.equals('foo')); @@ -2598,7 +2640,7 @@ if (buildCounterStep < 3) { o.kind = "foo"; o.name = "foo"; - o.properties = buildUnnamed3596(); + o.properties = buildUnnamed3411(); } buildCounterStep--; return o; @@ -2609,7 +2651,7 @@ if (buildCounterStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3596(o.properties); + checkUnnamed3411(o.properties); } buildCounterStep--; } @@ -2639,14 +2681,14 @@ buildCounterStreamLocation--; } -buildUnnamed3597() { +buildUnnamed3412() { var o = new core.List<api.ParallelInstruction>(); o.add(buildParallelInstruction()); o.add(buildParallelInstruction()); return o; } -checkUnnamed3597(core.List<api.ParallelInstruction> o) { +checkUnnamed3412(core.List<api.ParallelInstruction> o) { unittest.expect(o, unittest.hasLength(2)); checkParallelInstruction(o[0]); checkParallelInstruction(o[1]); @@ -2658,7 +2700,7 @@ buildCounterStreamingComputationConfig++; if (buildCounterStreamingComputationConfig < 3) { o.computationId = "foo"; - o.instructions = buildUnnamed3597(); + o.instructions = buildUnnamed3412(); o.stageName = "foo"; o.systemName = "foo"; } @@ -2670,21 +2712,21 @@ buildCounterStreamingComputationConfig++; if (buildCounterStreamingComputationConfig < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3597(o.instructions); + checkUnnamed3412(o.instructions); unittest.expect(o.stageName, unittest.equals('foo')); unittest.expect(o.systemName, unittest.equals('foo')); } buildCounterStreamingComputationConfig--; } -buildUnnamed3598() { +buildUnnamed3413() { var o = new core.List<api.KeyRangeDataDiskAssignment>(); o.add(buildKeyRangeDataDiskAssignment()); o.add(buildKeyRangeDataDiskAssignment()); return o; } -checkUnnamed3598(core.List<api.KeyRangeDataDiskAssignment> o) { +checkUnnamed3413(core.List<api.KeyRangeDataDiskAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRangeDataDiskAssignment(o[0]); checkKeyRangeDataDiskAssignment(o[1]); @@ -2696,7 +2738,7 @@ buildCounterStreamingComputationRanges++; if (buildCounterStreamingComputationRanges < 3) { o.computationId = "foo"; - o.rangeAssignments = buildUnnamed3598(); + o.rangeAssignments = buildUnnamed3413(); } buildCounterStreamingComputationRanges--; return o; @@ -2706,32 +2748,32 @@ buildCounterStreamingComputationRanges++; if (buildCounterStreamingComputationRanges < 3) { unittest.expect(o.computationId, unittest.equals('foo')); - checkUnnamed3598(o.rangeAssignments); + checkUnnamed3413(o.rangeAssignments); } buildCounterStreamingComputationRanges--; } -buildUnnamed3599() { +buildUnnamed3414() { var o = new core.List<api.StreamingComputationRanges>(); o.add(buildStreamingComputationRanges()); o.add(buildStreamingComputationRanges()); return o; } -checkUnnamed3599(core.List<api.StreamingComputationRanges> o) { +checkUnnamed3414(core.List<api.StreamingComputationRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamingComputationRanges(o[0]); checkStreamingComputationRanges(o[1]); } -buildUnnamed3600() { +buildUnnamed3415() { var o = new core.List<api.MountedDataDisk>(); o.add(buildMountedDataDisk()); o.add(buildMountedDataDisk()); return o; } -checkUnnamed3600(core.List<api.MountedDataDisk> o) { +checkUnnamed3415(core.List<api.MountedDataDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkMountedDataDisk(o[0]); checkMountedDataDisk(o[1]); @@ -2742,8 +2784,8 @@ var o = new api.StreamingComputationTask(); buildCounterStreamingComputationTask++; if (buildCounterStreamingComputationTask < 3) { - o.computationRanges = buildUnnamed3599(); - o.dataDisks = buildUnnamed3600(); + o.computationRanges = buildUnnamed3414(); + o.dataDisks = buildUnnamed3415(); o.taskType = "foo"; } buildCounterStreamingComputationTask--; @@ -2753,34 +2795,34 @@ checkStreamingComputationTask(api.StreamingComputationTask o) { buildCounterStreamingComputationTask++; if (buildCounterStreamingComputationTask < 3) { - checkUnnamed3599(o.computationRanges); - checkUnnamed3600(o.dataDisks); + checkUnnamed3414(o.computationRanges); + checkUnnamed3415(o.dataDisks); unittest.expect(o.taskType, unittest.equals('foo')); } buildCounterStreamingComputationTask--; } -buildUnnamed3601() { +buildUnnamed3416() { var o = new core.List<api.StreamingComputationConfig>(); o.add(buildStreamingComputationConfig()); o.add(buildStreamingComputationConfig()); return o; } -checkUnnamed3601(core.List<api.StreamingComputationConfig> o) { +checkUnnamed3416(core.List<api.StreamingComputationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamingComputationConfig(o[0]); checkStreamingComputationConfig(o[1]); } -buildUnnamed3602() { +buildUnnamed3417() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3602(core.Map<core.String, core.String> o) { +checkUnnamed3417(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')); @@ -2791,8 +2833,8 @@ var o = new api.StreamingConfigTask(); buildCounterStreamingConfigTask++; if (buildCounterStreamingConfigTask < 3) { - o.streamingComputationConfigs = buildUnnamed3601(); - o.userStepToStateFamilyNameMap = buildUnnamed3602(); + o.streamingComputationConfigs = buildUnnamed3416(); + o.userStepToStateFamilyNameMap = buildUnnamed3417(); } buildCounterStreamingConfigTask--; return o; @@ -2801,8 +2843,8 @@ checkStreamingConfigTask(api.StreamingConfigTask o) { buildCounterStreamingConfigTask++; if (buildCounterStreamingConfigTask < 3) { - checkUnnamed3601(o.streamingComputationConfigs); - checkUnnamed3602(o.userStepToStateFamilyNameMap); + checkUnnamed3416(o.streamingComputationConfigs); + checkUnnamed3417(o.userStepToStateFamilyNameMap); } buildCounterStreamingConfigTask--; } @@ -2872,14 +2914,14 @@ buildCounterStreamingStageLocation--; } -buildUnnamed3603() { +buildUnnamed3418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3603(core.List<core.String> o) { +checkUnnamed3418(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2890,7 +2932,7 @@ var o = new api.StringList(); buildCounterStringList++; if (buildCounterStringList < 3) { - o.elements = buildUnnamed3603(); + o.elements = buildUnnamed3418(); } buildCounterStringList--; return o; @@ -2899,19 +2941,19 @@ checkStringList(api.StringList o) { buildCounterStringList++; if (buildCounterStringList < 3) { - checkUnnamed3603(o.elements); + checkUnnamed3418(o.elements); } buildCounterStringList--; } -buildUnnamed3604() { +buildUnnamed3419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3604(core.List<core.String> o) { +checkUnnamed3419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2933,7 +2975,7 @@ o.logDir = "foo"; o.logToSerialconsole = true; o.logUploadLocation = "foo"; - o.oauthScopes = buildUnnamed3604(); + o.oauthScopes = buildUnnamed3419(); o.parallelWorkerSettings = buildWorkerSettings(); o.streamingWorkerMainClass = "foo"; o.taskGroup = "foo"; @@ -2960,7 +3002,7 @@ unittest.expect(o.logDir, unittest.equals('foo')); unittest.expect(o.logToSerialconsole, unittest.isTrue); unittest.expect(o.logUploadLocation, unittest.equals('foo')); - checkUnnamed3604(o.oauthScopes); + checkUnnamed3419(o.oauthScopes); checkWorkerSettings(o.parallelWorkerSettings); unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); unittest.expect(o.taskGroup, unittest.equals('foo')); @@ -2972,40 +3014,40 @@ buildCounterTaskRunnerSettings--; } -buildUnnamed3605() { +buildUnnamed3420() { var o = new core.List<api.ComputationTopology>(); o.add(buildComputationTopology()); o.add(buildComputationTopology()); return o; } -checkUnnamed3605(core.List<api.ComputationTopology> o) { +checkUnnamed3420(core.List<api.ComputationTopology> o) { unittest.expect(o, unittest.hasLength(2)); checkComputationTopology(o[0]); checkComputationTopology(o[1]); } -buildUnnamed3606() { +buildUnnamed3421() { var o = new core.List<api.DataDiskAssignment>(); o.add(buildDataDiskAssignment()); o.add(buildDataDiskAssignment()); return o; } -checkUnnamed3606(core.List<api.DataDiskAssignment> o) { +checkUnnamed3421(core.List<api.DataDiskAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDataDiskAssignment(o[0]); checkDataDiskAssignment(o[1]); } -buildUnnamed3607() { +buildUnnamed3422() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3607(core.Map<core.String, core.String> o) { +checkUnnamed3422(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')); @@ -3016,11 +3058,11 @@ var o = new api.TopologyConfig(); buildCounterTopologyConfig++; if (buildCounterTopologyConfig < 3) { - o.computations = buildUnnamed3605(); - o.dataDiskAssignments = buildUnnamed3606(); + o.computations = buildUnnamed3420(); + o.dataDiskAssignments = buildUnnamed3421(); o.forwardingKeyBits = 42; o.persistentStateVersion = 42; - o.userStageToComputationNameMap = buildUnnamed3607(); + o.userStageToComputationNameMap = buildUnnamed3422(); } buildCounterTopologyConfig--; return o; @@ -3029,23 +3071,23 @@ checkTopologyConfig(api.TopologyConfig o) { buildCounterTopologyConfig++; if (buildCounterTopologyConfig < 3) { - checkUnnamed3605(o.computations); - checkUnnamed3606(o.dataDiskAssignments); + checkUnnamed3420(o.computations); + checkUnnamed3421(o.dataDiskAssignments); unittest.expect(o.forwardingKeyBits, unittest.equals(42)); unittest.expect(o.persistentStateVersion, unittest.equals(42)); - checkUnnamed3607(o.userStageToComputationNameMap); + checkUnnamed3422(o.userStageToComputationNameMap); } buildCounterTopologyConfig--; } -buildUnnamed3608() { +buildUnnamed3423() { var o = new core.List<api.Package>(); o.add(buildPackage()); o.add(buildPackage()); return o; } -checkUnnamed3608(core.List<api.Package> o) { +checkUnnamed3423(core.List<api.Package> o) { unittest.expect(o, unittest.hasLength(2)); checkPackage(o[0]); checkPackage(o[1]); @@ -3062,7 +3104,7 @@ o.jobId = "foo"; o.leaseExpireTime = "foo"; o.mapTask = buildMapTask(); - o.packages = buildUnnamed3608(); + o.packages = buildUnnamed3423(); o.projectId = "foo"; o.reportStatusInterval = "foo"; o.seqMapTask = buildSeqMapTask(); @@ -3085,7 +3127,7 @@ unittest.expect(o.jobId, unittest.equals('foo')); unittest.expect(o.leaseExpireTime, unittest.equals('foo')); checkMapTask(o.mapTask); - checkUnnamed3608(o.packages); + checkUnnamed3423(o.packages); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.reportStatusInterval, unittest.equals('foo')); checkSeqMapTask(o.seqMapTask); @@ -3098,27 +3140,27 @@ buildCounterWorkItem--; } -buildUnnamed3609() { +buildUnnamed3424() { 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; } -checkUnnamed3609(core.Map<core.String, core.Object> o) { +checkUnnamed3424(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLength(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest.expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["string"], unittest.equals('foo')); var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLength(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest.expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["string"], unittest.equals('foo')); } -buildUnnamed3610() { +buildUnnamed3425() { var o = new core.List<api.MetricShortId>(); o.add(buildMetricShortId()); o.add(buildMetricShortId()); return o; } -checkUnnamed3610(core.List<api.MetricShortId> o) { +checkUnnamed3425(core.List<api.MetricShortId> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricShortId(o[0]); checkMetricShortId(o[1]); @@ -3129,9 +3171,9 @@ var o = new api.WorkItemServiceState(); buildCounterWorkItemServiceState++; if (buildCounterWorkItemServiceState < 3) { - o.harnessData = buildUnnamed3609(); + o.harnessData = buildUnnamed3424(); o.leaseExpireTime = "foo"; - o.metricShortId = buildUnnamed3610(); + o.metricShortId = buildUnnamed3425(); o.nextReportIndex = "foo"; o.reportStatusInterval = "foo"; o.splitRequest = buildApproximateSplitRequest(); @@ -3145,9 +3187,9 @@ checkWorkItemServiceState(api.WorkItemServiceState o) { buildCounterWorkItemServiceState++; if (buildCounterWorkItemServiceState < 3) { - checkUnnamed3609(o.harnessData); + checkUnnamed3424(o.harnessData); unittest.expect(o.leaseExpireTime, unittest.equals('foo')); - checkUnnamed3610(o.metricShortId); + checkUnnamed3425(o.metricShortId); unittest.expect(o.nextReportIndex, unittest.equals('foo')); unittest.expect(o.reportStatusInterval, unittest.equals('foo')); checkApproximateSplitRequest(o.splitRequest); @@ -3157,40 +3199,40 @@ buildCounterWorkItemServiceState--; } -buildUnnamed3611() { +buildUnnamed3426() { var o = new core.List<api.CounterUpdate>(); o.add(buildCounterUpdate()); o.add(buildCounterUpdate()); return o; } -checkUnnamed3611(core.List<api.CounterUpdate> o) { +checkUnnamed3426(core.List<api.CounterUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkCounterUpdate(o[0]); checkCounterUpdate(o[1]); } -buildUnnamed3612() { +buildUnnamed3427() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed3612(core.List<api.Status> o) { +checkUnnamed3427(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); } -buildUnnamed3613() { +buildUnnamed3428() { var o = new core.List<api.MetricUpdate>(); o.add(buildMetricUpdate()); o.add(buildMetricUpdate()); return o; } -checkUnnamed3613(core.List<api.MetricUpdate> o) { +checkUnnamed3428(core.List<api.MetricUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricUpdate(o[0]); checkMetricUpdate(o[1]); @@ -3202,10 +3244,10 @@ buildCounterWorkItemStatus++; if (buildCounterWorkItemStatus < 3) { o.completed = true; - o.counterUpdates = buildUnnamed3611(); + o.counterUpdates = buildUnnamed3426(); o.dynamicSourceSplit = buildDynamicSourceSplit(); - o.errors = buildUnnamed3612(); - o.metricUpdates = buildUnnamed3613(); + o.errors = buildUnnamed3427(); + o.metricUpdates = buildUnnamed3428(); o.progress = buildApproximateProgress(); o.reportIndex = "foo"; o.reportedProgress = buildApproximateReportedProgress(); @@ -3223,10 +3265,10 @@ buildCounterWorkItemStatus++; if (buildCounterWorkItemStatus < 3) { unittest.expect(o.completed, unittest.isTrue); - checkUnnamed3611(o.counterUpdates); + checkUnnamed3426(o.counterUpdates); checkDynamicSourceSplit(o.dynamicSourceSplit); - checkUnnamed3612(o.errors); - checkUnnamed3613(o.metricUpdates); + checkUnnamed3427(o.errors); + checkUnnamed3428(o.metricUpdates); checkApproximateProgress(o.progress); unittest.expect(o.reportIndex, unittest.equals('foo')); checkApproximateReportedProgress(o.reportedProgress); @@ -3239,30 +3281,30 @@ buildCounterWorkItemStatus--; } -buildUnnamed3614() { +buildUnnamed3429() { 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; } -checkUnnamed3614(core.Map<core.String, core.Object> o) { +checkUnnamed3429(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLength(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest.expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["string"], unittest.equals('foo')); var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLength(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest.expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["string"], unittest.equals('foo')); } -buildUnnamed3615() { +buildUnnamed3430() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3614()); - o.add(buildUnnamed3614()); + o.add(buildUnnamed3429()); + o.add(buildUnnamed3429()); return o; } -checkUnnamed3615(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3430(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3614(o[0]); - checkUnnamed3614(o[1]); + checkUnnamed3429(o[0]); + checkUnnamed3429(o[1]); } core.int buildCounterWorkerHealthReport = 0; @@ -3270,7 +3312,7 @@ var o = new api.WorkerHealthReport(); buildCounterWorkerHealthReport++; if (buildCounterWorkerHealthReport < 3) { - o.pods = buildUnnamed3615(); + o.pods = buildUnnamed3430(); o.reportInterval = "foo"; o.vmIsHealthy = true; o.vmStartupTime = "foo"; @@ -3282,7 +3324,7 @@ checkWorkerHealthReport(api.WorkerHealthReport o) { buildCounterWorkerHealthReport++; if (buildCounterWorkerHealthReport < 3) { - checkUnnamed3615(o.pods); + checkUnnamed3430(o.pods); unittest.expect(o.reportInterval, unittest.equals('foo')); unittest.expect(o.vmIsHealthy, unittest.isTrue); unittest.expect(o.vmStartupTime, unittest.equals('foo')); @@ -3309,14 +3351,14 @@ buildCounterWorkerHealthReportResponse--; } -buildUnnamed3616() { +buildUnnamed3431() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3616(core.Map<core.String, core.String> o) { +checkUnnamed3431(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')); @@ -3327,7 +3369,7 @@ var o = new api.WorkerMessage(); buildCounterWorkerMessage++; if (buildCounterWorkerMessage < 3) { - o.labels = buildUnnamed3616(); + o.labels = buildUnnamed3431(); o.time = "foo"; o.workerHealthReport = buildWorkerHealthReport(); o.workerMessageCode = buildWorkerMessageCode(); @@ -3339,7 +3381,7 @@ checkWorkerMessage(api.WorkerMessage o) { buildCounterWorkerMessage++; if (buildCounterWorkerMessage < 3) { - checkUnnamed3616(o.labels); + checkUnnamed3431(o.labels); unittest.expect(o.time, unittest.equals('foo')); checkWorkerHealthReport(o.workerHealthReport); checkWorkerMessageCode(o.workerMessageCode); @@ -3347,14 +3389,14 @@ buildCounterWorkerMessage--; } -buildUnnamed3617() { +buildUnnamed3432() { 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; } -checkUnnamed3617(core.Map<core.String, core.Object> o) { +checkUnnamed3432(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLength(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest.expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["string"], unittest.equals('foo')); var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLength(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest.expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["string"], unittest.equals('foo')); @@ -3366,7 +3408,7 @@ buildCounterWorkerMessageCode++; if (buildCounterWorkerMessageCode < 3) { o.code = "foo"; - o.parameters = buildUnnamed3617(); + o.parameters = buildUnnamed3432(); } buildCounterWorkerMessageCode--; return o; @@ -3376,7 +3418,7 @@ buildCounterWorkerMessageCode++; if (buildCounterWorkerMessageCode < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3617(o.parameters); + checkUnnamed3432(o.parameters); } buildCounterWorkerMessageCode--; } @@ -3400,53 +3442,53 @@ buildCounterWorkerMessageResponse--; } -buildUnnamed3618() { +buildUnnamed3433() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed3618(core.List<api.Disk> o) { +checkUnnamed3433(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); } -buildUnnamed3619() { +buildUnnamed3434() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3619(core.Map<core.String, core.String> o) { +checkUnnamed3434(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')); } -buildUnnamed3620() { +buildUnnamed3435() { var o = new core.List<api.Package>(); o.add(buildPackage()); o.add(buildPackage()); return o; } -checkUnnamed3620(core.List<api.Package> o) { +checkUnnamed3435(core.List<api.Package> o) { unittest.expect(o, unittest.hasLength(2)); checkPackage(o[0]); checkPackage(o[1]); } -buildUnnamed3621() { +buildUnnamed3436() { 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; } -checkUnnamed3621(core.Map<core.String, core.Object> o) { +checkUnnamed3436(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLength(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest.expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["string"], unittest.equals('foo')); var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLength(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest.expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["string"], unittest.equals('foo')); @@ -3458,7 +3500,7 @@ buildCounterWorkerPool++; if (buildCounterWorkerPool < 3) { o.autoscalingSettings = buildAutoscalingSettings(); - o.dataDisks = buildUnnamed3618(); + o.dataDisks = buildUnnamed3433(); o.defaultPackageSet = "foo"; o.diskSizeGb = 42; o.diskSourceImage = "foo"; @@ -3466,13 +3508,13 @@ o.ipConfiguration = "foo"; o.kind = "foo"; o.machineType = "foo"; - o.metadata = buildUnnamed3619(); + o.metadata = buildUnnamed3434(); o.network = "foo"; o.numThreadsPerWorker = 42; o.numWorkers = 42; o.onHostMaintenance = "foo"; - o.packages = buildUnnamed3620(); - o.poolArgs = buildUnnamed3621(); + o.packages = buildUnnamed3435(); + o.poolArgs = buildUnnamed3436(); o.subnetwork = "foo"; o.taskrunnerSettings = buildTaskRunnerSettings(); o.teardownPolicy = "foo"; @@ -3487,7 +3529,7 @@ buildCounterWorkerPool++; if (buildCounterWorkerPool < 3) { checkAutoscalingSettings(o.autoscalingSettings); - checkUnnamed3618(o.dataDisks); + checkUnnamed3433(o.dataDisks); unittest.expect(o.defaultPackageSet, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.diskSourceImage, unittest.equals('foo')); @@ -3495,13 +3537,13 @@ unittest.expect(o.ipConfiguration, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed3619(o.metadata); + checkUnnamed3434(o.metadata); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); unittest.expect(o.numWorkers, unittest.equals(42)); unittest.expect(o.onHostMaintenance, unittest.equals('foo')); - checkUnnamed3620(o.packages); - checkUnnamed3621(o.poolArgs); + checkUnnamed3435(o.packages); + checkUnnamed3436(o.poolArgs); unittest.expect(o.subnetwork, unittest.equals('foo')); checkTaskRunnerSettings(o.taskrunnerSettings); unittest.expect(o.teardownPolicy, unittest.equals('foo')); @@ -3716,6 +3758,15 @@ }); + unittest.group("obj-schema-FailedLocation", () { + unittest.test("to-json--from-json", () { + var o = buildFailedLocation(); + var od = new api.FailedLocation.fromJson(o.toJson()); + checkFailedLocation(od); + }); + }); + + unittest.group("obj-schema-FlattenInstruction", () { unittest.test("to-json--from-json", () { var o = buildFlattenInstruction(); @@ -4531,6 +4582,7 @@ var arg_projectId = "foo"; var arg_view = "foo"; var arg_replaceJobId = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -4569,6 +4621,7 @@ } unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_replaceJobId)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -4577,7 +4630,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectId, view: arg_view, replaceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) { + res.create(arg_request, arg_projectId, view: arg_view, replaceJobId: arg_replaceJobId, location: arg_location).then(unittest.expectAsync(((api.Job response) { checkJob(response); }))); }); @@ -4589,6 +4642,7 @@ var arg_projectId = "foo"; var arg_jobId = "foo"; var arg_view = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4626,6 +4680,7 @@ } } unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -4634,7 +4689,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.get(arg_projectId, arg_jobId, view: arg_view).then(unittest.expectAsync(((api.Job response) { + res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).then(unittest.expectAsync(((api.Job response) { checkJob(response); }))); }); @@ -4646,6 +4701,7 @@ var arg_projectId = "foo"; var arg_jobId = "foo"; var arg_startTime = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4687,6 +4743,7 @@ } } unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -4695,7 +4752,7 @@ var resp = convert.JSON.encode(buildJobMetrics()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime).then(unittest.expectAsync(((api.JobMetrics response) { + res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime, location: arg_location).then(unittest.expectAsync(((api.JobMetrics response) { checkJobMetrics(response); }))); }); @@ -4709,6 +4766,7 @@ var arg_view = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -4746,6 +4804,7 @@ unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -4754,7 +4813,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, filter: arg_filter, view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, filter: arg_filter, view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken, location: arg_location).then(unittest.expectAsync(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); }); @@ -4766,6 +4825,7 @@ var arg_request = buildJob(); var arg_projectId = "foo"; var arg_jobId = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Job.fromJson(json); checkJob(obj); @@ -4805,6 +4865,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -4813,7 +4874,7 @@ var resp = convert.JSON.encode(buildJob()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync(((api.Job response) { + res.update(arg_request, arg_projectId, arg_jobId, location: arg_location).then(unittest.expectAsync(((api.Job response) { checkJob(response); }))); }); @@ -4963,6 +5024,7 @@ var arg_pageToken = "foo"; var arg_startTime = "foo"; var arg_endTime = "foo"; + var arg_location = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -5008,6 +5070,7 @@ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); + unittest.expect(queryMap["location"].first, unittest.equals(arg_location)); var h = { @@ -5016,7 +5079,7 @@ var resp = convert.JSON.encode(buildListJobMessagesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportance, pageSize: arg_pageSize, pageToken: arg_pageToken, startTime: arg_startTime, endTime: arg_endTime).then(unittest.expectAsync(((api.ListJobMessagesResponse response) { + res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportance, pageSize: arg_pageSize, pageToken: arg_pageToken, startTime: arg_startTime, endTime: arg_endTime, location: arg_location).then(unittest.expectAsync(((api.ListJobMessagesResponse response) { checkListJobMessagesResponse(response); }))); }); @@ -5154,6 +5217,572 @@ }); + unittest.group("resource-ProjectsLocationsJobsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs; + var arg_request = buildJob(); + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_view = "foo"; + var arg_replaceJobId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Job.fromJson(json); + checkJob(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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/jobs")); + pathOffset += 5; + + 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["view"].first, unittest.equals(arg_view)); + unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_replaceJobId)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildJob()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_projectId, arg_location, view: arg_view, replaceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) { + checkJob(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs; + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_jobId = "foo"; + var arg_view = "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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); + pathOffset += 6; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_jobId")); + + 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["view"].first, unittest.equals(arg_view)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildJob()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unittest.expectAsync(((api.Job response) { + checkJob(response); + }))); + }); + + unittest.test("method--getMetrics", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs; + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_jobId = "foo"; + var arg_startTime = "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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); + pathOffset += 6; + index = path.indexOf("/metrics", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_jobId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("/metrics")); + 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(queryMap["startTime"].first, unittest.equals(arg_startTime)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildJobMetrics()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_startTime).then(unittest.expectAsync(((api.JobMetrics response) { + checkJobMetrics(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs; + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_filter = "foo"; + var arg_view = "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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("/jobs")); + pathOffset += 5; + + 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(queryMap["view"].first, unittest.equals(arg_view)); + 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(buildListJobsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_projectId, arg_location, filter: arg_filter, view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListJobsResponse response) { + checkListJobsResponse(response); + }))); + }); + + unittest.test("method--update", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs; + var arg_request = buildJob(); + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_jobId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.Job.fromJson(json); + checkJob(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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); + pathOffset += 6; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_jobId")); + + 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(buildJob()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.Job response) { + checkJob(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(mock).projects.locations.jobs.messages; + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_jobId = "foo"; + var arg_minimumImportance = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_startTime = "foo"; + var arg_endTime = "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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); + pathOffset += 6; + index = path.indexOf("/messages", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_jobId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/messages")); + 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["minimumImportance"].first, unittest.equals(arg_minimumImportance)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildListJobMessagesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_projectId, arg_location, arg_jobId, minimumImportance: arg_minimumImportance, pageSize: arg_pageSize, pageToken: arg_pageToken, startTime: arg_startTime, endTime: arg_endTime).then(unittest.expectAsync(((api.ListJobMessagesResponse response) { + checkListJobMessagesResponse(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { + unittest.test("method--lease", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs.workItems; + var arg_request = buildLeaseWorkItemRequest(); + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_jobId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.LeaseWorkItemRequest.fromJson(json); + checkLeaseWorkItemRequest(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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); + pathOffset += 6; + index = path.indexOf("/workItems:lease", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_jobId")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/workItems:lease")); + 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(buildLeaseWorkItemResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.LeaseWorkItemResponse response) { + checkLeaseWorkItemResponse(response); + }))); + }); + + unittest.test("method--reportStatus", () { + + var mock = new HttpServerMock(); + api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).projects.locations.jobs.workItems; + var arg_request = buildReportWorkItemStatusRequest(); + var arg_projectId = "foo"; + var arg_location = "foo"; + var arg_jobId = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.ReportWorkItemStatusRequest.fromJson(json); + checkReportWorkItemStatusRequest(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 + 14), unittest.equals("v1b3/projects/")); + pathOffset += 14; + index = path.indexOf("/locations/", 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 + 11), unittest.equals("/locations/")); + pathOffset += 11; + index = path.indexOf("/jobs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_location")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/jobs/")); + pathOffset += 6; + index = path.indexOf("/workItems:reportStatus", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_jobId")); + unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("/workItems:reportStatus")); + pathOffset += 23; + + 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(buildReportWorkItemStatusResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then(unittest.expectAsync(((api.ReportWorkItemStatusResponse response) { + checkReportWorkItemStatusResponse(response); + }))); + }); + + }); + + unittest.group("resource-ProjectsTemplatesResourceApi", () { unittest.test("method--create", () {
diff --git a/generated/googleapis_beta/test/dataproc/v1beta1_test.dart b/generated/googleapis_beta/test/dataproc/v1beta1_test.dart index 6126105..76222b9 100644 --- a/generated/googleapis_beta/test/dataproc/v1beta1_test.dart +++ b/generated/googleapis_beta/test/dataproc/v1beta1_test.dart
@@ -85,14 +85,27 @@ buildCounterCancelOperationRequest--; } -buildUnnamed3649() { +buildUnnamed3481() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3481(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')); +} + +buildUnnamed3482() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed3649(core.List<api.ClusterStatus> o) { +checkUnnamed3482(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -106,9 +119,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.configuration = buildClusterConfiguration(); + o.labels = buildUnnamed3481(); + o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed3649(); + o.statusHistory = buildUnnamed3482(); } buildCounterCluster--; return o; @@ -120,21 +135,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfiguration(o.configuration); + checkUnnamed3481(o.labels); + checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed3649(o.statusHistory); + checkUnnamed3482(o.statusHistory); } buildCounterCluster--; } -buildUnnamed3650() { +buildUnnamed3483() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed3650(core.List<api.NodeInitializationAction> o) { +checkUnnamed3483(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -147,7 +164,7 @@ if (buildCounterClusterConfiguration < 3) { o.configurationBucket = "foo"; o.gceClusterConfiguration = buildGceClusterConfiguration(); - o.initializationActions = buildUnnamed3650(); + o.initializationActions = buildUnnamed3483(); o.masterConfiguration = buildInstanceGroupConfiguration(); o.secondaryWorkerConfiguration = buildInstanceGroupConfiguration(); o.softwareConfiguration = buildSoftwareConfiguration(); @@ -162,7 +179,7 @@ if (buildCounterClusterConfiguration < 3) { unittest.expect(o.configurationBucket, unittest.equals('foo')); checkGceClusterConfiguration(o.gceClusterConfiguration); - checkUnnamed3650(o.initializationActions); + checkUnnamed3483(o.initializationActions); checkInstanceGroupConfiguration(o.masterConfiguration); checkInstanceGroupConfiguration(o.secondaryWorkerConfiguration); checkSoftwareConfiguration(o.softwareConfiguration); @@ -171,14 +188,74 @@ buildCounterClusterConfiguration--; } -buildUnnamed3651() { +buildUnnamed3484() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3484(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')); +} + +buildUnnamed3485() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3485(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 buildCounterClusterMetrics = 0; +buildClusterMetrics() { + var o = new api.ClusterMetrics(); + buildCounterClusterMetrics++; + if (buildCounterClusterMetrics < 3) { + o.hdfsMetrics = buildUnnamed3484(); + o.yarnMetrics = buildUnnamed3485(); + } + buildCounterClusterMetrics--; + return o; +} + +checkClusterMetrics(api.ClusterMetrics o) { + buildCounterClusterMetrics++; + if (buildCounterClusterMetrics < 3) { + checkUnnamed3484(o.hdfsMetrics); + checkUnnamed3485(o.yarnMetrics); + } + buildCounterClusterMetrics--; +} + +buildUnnamed3486() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3486(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')); +} + +buildUnnamed3487() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed3651(core.List<api.ClusterOperationStatus> o) { +checkUnnamed3487(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); @@ -192,9 +269,10 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; + o.labels = buildUnnamed3486(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed3651(); + o.statusHistory = buildUnnamed3487(); } buildCounterClusterOperationMetadata--; return o; @@ -206,9 +284,10 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed3486(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed3651(o.statusHistory); + checkUnnamed3487(o.statusHistory); } buildCounterClusterOperationMetadata--; } @@ -354,40 +433,40 @@ buildCounterEmpty--; } -buildUnnamed3652() { +buildUnnamed3488() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3652(core.Map<core.String, core.String> o) { +checkUnnamed3488(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')); } -buildUnnamed3653() { +buildUnnamed3489() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3653(core.List<core.String> o) { +checkUnnamed3489(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3654() { +buildUnnamed3490() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3654(core.List<core.String> o) { +checkUnnamed3490(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -398,11 +477,12 @@ var o = new api.GceClusterConfiguration(); buildCounterGceClusterConfiguration++; if (buildCounterGceClusterConfiguration < 3) { - o.metadata = buildUnnamed3652(); + o.internalIpOnly = true; + o.metadata = buildUnnamed3488(); o.networkUri = "foo"; - o.serviceAccountScopes = buildUnnamed3653(); + o.serviceAccountScopes = buildUnnamed3489(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed3654(); + o.tags = buildUnnamed3490(); o.zoneUri = "foo"; } buildCounterGceClusterConfiguration--; @@ -412,76 +492,77 @@ checkGceClusterConfiguration(api.GceClusterConfiguration o) { buildCounterGceClusterConfiguration++; if (buildCounterGceClusterConfiguration < 3) { - checkUnnamed3652(o.metadata); + unittest.expect(o.internalIpOnly, unittest.isTrue); + checkUnnamed3488(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); - checkUnnamed3653(o.serviceAccountScopes); + checkUnnamed3489(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed3654(o.tags); + checkUnnamed3490(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfiguration--; } -buildUnnamed3655() { +buildUnnamed3491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3655(core.List<core.String> o) { +checkUnnamed3491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3656() { +buildUnnamed3492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3656(core.List<core.String> o) { +checkUnnamed3492(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3657() { +buildUnnamed3493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3657(core.List<core.String> o) { +checkUnnamed3493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3658() { +buildUnnamed3494() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3658(core.List<core.String> o) { +checkUnnamed3494(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3659() { +buildUnnamed3495() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3659(core.Map<core.String, core.String> o) { +checkUnnamed3495(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')); @@ -492,14 +573,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed3655(); - o.args = buildUnnamed3656(); - o.fileUris = buildUnnamed3657(); - o.jarFileUris = buildUnnamed3658(); + o.archiveUris = buildUnnamed3491(); + o.args = buildUnnamed3492(); + o.fileUris = buildUnnamed3493(); + o.jarFileUris = buildUnnamed3494(); o.loggingConfiguration = buildLoggingConfiguration(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed3659(); + o.properties = buildUnnamed3495(); } buildCounterHadoopJob--; return o; @@ -508,52 +589,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed3655(o.archiveUris); - checkUnnamed3656(o.args); - checkUnnamed3657(o.fileUris); - checkUnnamed3658(o.jarFileUris); + checkUnnamed3491(o.archiveUris); + checkUnnamed3492(o.args); + checkUnnamed3493(o.fileUris); + checkUnnamed3494(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed3659(o.properties); + checkUnnamed3495(o.properties); } buildCounterHadoopJob--; } -buildUnnamed3660() { +buildUnnamed3496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3660(core.List<core.String> o) { +checkUnnamed3496(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3661() { +buildUnnamed3497() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3661(core.Map<core.String, core.String> o) { +checkUnnamed3497(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')); } -buildUnnamed3662() { +buildUnnamed3498() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3662(core.Map<core.String, core.String> o) { +checkUnnamed3498(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')); @@ -565,11 +646,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed3660(); - o.properties = buildUnnamed3661(); + o.jarFileUris = buildUnnamed3496(); + o.properties = buildUnnamed3497(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3662(); + o.scriptVariables = buildUnnamed3498(); } buildCounterHiveJob--; return o; @@ -579,23 +660,23 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed3660(o.jarFileUris); - checkUnnamed3661(o.properties); + checkUnnamed3496(o.jarFileUris); + checkUnnamed3497(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed3662(o.scriptVariables); + checkUnnamed3498(o.scriptVariables); } buildCounterHiveJob--; } -buildUnnamed3663() { +buildUnnamed3499() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3663(core.List<core.String> o) { +checkUnnamed3499(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -608,7 +689,7 @@ if (buildCounterInstanceGroupConfiguration < 3) { o.diskConfiguration = buildDiskConfiguration(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed3663(); + o.instanceNames = buildUnnamed3499(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfiguration = buildManagedGroupConfiguration(); @@ -623,7 +704,7 @@ if (buildCounterInstanceGroupConfiguration < 3) { checkDiskConfiguration(o.diskConfiguration); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed3663(o.instanceNames); + checkUnnamed3499(o.instanceNames); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfiguration(o.managedGroupConfiguration); @@ -632,27 +713,40 @@ buildCounterInstanceGroupConfiguration--; } -buildUnnamed3664() { +buildUnnamed3500() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3500(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')); +} + +buildUnnamed3501() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed3664(core.List<api.JobStatus> o) { +checkUnnamed3501(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed3665() { +buildUnnamed3502() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed3665(core.List<api.YarnApplication> o) { +checkUnnamed3502(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -669,6 +763,7 @@ o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); o.interactive = true; + o.labels = buildUnnamed3500(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.pysparkJob = buildPySparkJob(); @@ -676,9 +771,9 @@ o.sparkJob = buildSparkJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed3664(); + o.statusHistory = buildUnnamed3501(); o.submittedBy = "foo"; - o.yarnApplications = buildUnnamed3665(); + o.yarnApplications = buildUnnamed3502(); } buildCounterJob--; return o; @@ -693,6 +788,7 @@ checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); unittest.expect(o.interactive, unittest.isTrue); + checkUnnamed3500(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPySparkJob(o.pysparkJob); @@ -700,9 +796,9 @@ checkSparkJob(o.sparkJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed3664(o.statusHistory); + checkUnnamed3501(o.statusHistory); unittest.expect(o.submittedBy, unittest.equals('foo')); - checkUnnamed3665(o.yarnApplications); + checkUnnamed3502(o.yarnApplications); } buildCounterJob--; } @@ -772,14 +868,14 @@ buildCounterJobStatus--; } -buildUnnamed3666() { +buildUnnamed3503() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed3666(core.List<api.Cluster> o) { +checkUnnamed3503(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -790,7 +886,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed3666(); + o.clusters = buildUnnamed3503(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -800,20 +896,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed3666(o.clusters); + checkUnnamed3503(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed3667() { +buildUnnamed3504() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3667(core.List<api.Job> o) { +checkUnnamed3504(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -824,7 +920,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed3667(); + o.jobs = buildUnnamed3504(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -834,20 +930,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3667(o.jobs); + checkUnnamed3504(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed3668() { +buildUnnamed3505() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3668(core.List<api.Operation> o) { +checkUnnamed3505(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -859,7 +955,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3668(); + o.operations = buildUnnamed3505(); } buildCounterListOperationsResponse--; return o; @@ -869,19 +965,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3668(o.operations); + checkUnnamed3505(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3669() { +buildUnnamed3506() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3669(core.Map<core.String, core.String> o) { +checkUnnamed3506(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')); @@ -892,7 +988,7 @@ var o = new api.LoggingConfiguration(); buildCounterLoggingConfiguration++; if (buildCounterLoggingConfiguration < 3) { - o.driverLogLevels = buildUnnamed3669(); + o.driverLogLevels = buildUnnamed3506(); } buildCounterLoggingConfiguration--; return o; @@ -901,7 +997,7 @@ checkLoggingConfiguration(api.LoggingConfiguration o) { buildCounterLoggingConfiguration++; if (buildCounterLoggingConfiguration < 3) { - checkUnnamed3669(o.driverLogLevels); + checkUnnamed3506(o.driverLogLevels); } buildCounterLoggingConfiguration--; } @@ -948,27 +1044,27 @@ buildCounterNodeInitializationAction--; } -buildUnnamed3670() { +buildUnnamed3507() { 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; } -checkUnnamed3670(core.Map<core.String, core.Object> o) { +checkUnnamed3507(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')); } -buildUnnamed3671() { +buildUnnamed3508() { 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; } -checkUnnamed3671(core.Map<core.String, core.Object> o) { +checkUnnamed3508(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')); @@ -981,9 +1077,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3670(); + o.metadata = buildUnnamed3507(); o.name = "foo"; - o.response = buildUnnamed3671(); + o.response = buildUnnamed3508(); } buildCounterOperation--; return o; @@ -994,21 +1090,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3670(o.metadata); + checkUnnamed3507(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3671(o.response); + checkUnnamed3508(o.response); } buildCounterOperation--; } -buildUnnamed3672() { +buildUnnamed3509() { var o = new core.List<api.OperationStatus>(); o.add(buildOperationStatus()); o.add(buildOperationStatus()); return o; } -checkUnnamed3672(core.List<api.OperationStatus> o) { +checkUnnamed3509(core.List<api.OperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationStatus(o[0]); checkOperationStatus(o[1]); @@ -1030,7 +1126,7 @@ o.startTime = "foo"; o.state = "foo"; o.status = buildOperationStatus(); - o.statusHistory = buildUnnamed3672(); + o.statusHistory = buildUnnamed3509(); } buildCounterOperationMetadata--; return o; @@ -1050,7 +1146,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); checkOperationStatus(o.status); - checkUnnamed3672(o.statusHistory); + checkUnnamed3509(o.statusHistory); } buildCounterOperationMetadata--; } @@ -1080,40 +1176,40 @@ buildCounterOperationStatus--; } -buildUnnamed3673() { +buildUnnamed3510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3673(core.List<core.String> o) { +checkUnnamed3510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3674() { +buildUnnamed3511() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3674(core.Map<core.String, core.String> o) { +checkUnnamed3511(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')); } -buildUnnamed3675() { +buildUnnamed3512() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3675(core.Map<core.String, core.String> o) { +checkUnnamed3512(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')); @@ -1125,12 +1221,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed3673(); + o.jarFileUris = buildUnnamed3510(); o.loggingConfiguration = buildLoggingConfiguration(); - o.properties = buildUnnamed3674(); + o.properties = buildUnnamed3511(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3675(); + o.scriptVariables = buildUnnamed3512(); } buildCounterPigJob--; return o; @@ -1140,89 +1236,89 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed3673(o.jarFileUris); + checkUnnamed3510(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); - checkUnnamed3674(o.properties); + checkUnnamed3511(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed3675(o.scriptVariables); + checkUnnamed3512(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed3676() { +buildUnnamed3513() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3676(core.List<core.String> o) { +checkUnnamed3513(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3677() { +buildUnnamed3514() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3677(core.List<core.String> o) { +checkUnnamed3514(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3678() { +buildUnnamed3515() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3678(core.List<core.String> o) { +checkUnnamed3515(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3679() { +buildUnnamed3516() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3679(core.List<core.String> o) { +checkUnnamed3516(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3680() { +buildUnnamed3517() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3680(core.Map<core.String, core.String> o) { +checkUnnamed3517(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')); } -buildUnnamed3681() { +buildUnnamed3518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3681(core.List<core.String> o) { +checkUnnamed3518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1233,14 +1329,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed3676(); - o.args = buildUnnamed3677(); - o.fileUris = buildUnnamed3678(); - o.jarFileUris = buildUnnamed3679(); + o.archiveUris = buildUnnamed3513(); + o.args = buildUnnamed3514(); + o.fileUris = buildUnnamed3515(); + o.jarFileUris = buildUnnamed3516(); o.loggingConfiguration = buildLoggingConfiguration(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed3680(); - o.pythonFileUris = buildUnnamed3681(); + o.properties = buildUnnamed3517(); + o.pythonFileUris = buildUnnamed3518(); } buildCounterPySparkJob--; return o; @@ -1249,26 +1345,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed3676(o.archiveUris); - checkUnnamed3677(o.args); - checkUnnamed3678(o.fileUris); - checkUnnamed3679(o.jarFileUris); + checkUnnamed3513(o.archiveUris); + checkUnnamed3514(o.args); + checkUnnamed3515(o.fileUris); + checkUnnamed3516(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed3680(o.properties); - checkUnnamed3681(o.pythonFileUris); + checkUnnamed3517(o.properties); + checkUnnamed3518(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed3682() { +buildUnnamed3519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3682(core.List<core.String> o) { +checkUnnamed3519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1279,7 +1375,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed3682(); + o.queries = buildUnnamed3519(); } buildCounterQueryList--; return o; @@ -1288,19 +1384,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed3682(o.queries); + checkUnnamed3519(o.queries); } buildCounterQueryList--; } -buildUnnamed3683() { +buildUnnamed3520() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3683(core.Map<core.String, core.String> o) { +checkUnnamed3520(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')); @@ -1312,7 +1408,7 @@ buildCounterSoftwareConfiguration++; if (buildCounterSoftwareConfiguration < 3) { o.imageVersion = "foo"; - o.properties = buildUnnamed3683(); + o.properties = buildUnnamed3520(); } buildCounterSoftwareConfiguration--; return o; @@ -1322,71 +1418,71 @@ buildCounterSoftwareConfiguration++; if (buildCounterSoftwareConfiguration < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed3683(o.properties); + checkUnnamed3520(o.properties); } buildCounterSoftwareConfiguration--; } -buildUnnamed3684() { +buildUnnamed3521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3684(core.List<core.String> o) { +checkUnnamed3521(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3685() { +buildUnnamed3522() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3685(core.List<core.String> o) { +checkUnnamed3522(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3686() { +buildUnnamed3523() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3686(core.List<core.String> o) { +checkUnnamed3523(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3687() { +buildUnnamed3524() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3687(core.List<core.String> o) { +checkUnnamed3524(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3688() { +buildUnnamed3525() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3688(core.Map<core.String, core.String> o) { +checkUnnamed3525(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')); @@ -1397,14 +1493,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed3684(); - o.args = buildUnnamed3685(); - o.fileUris = buildUnnamed3686(); - o.jarFileUris = buildUnnamed3687(); + o.archiveUris = buildUnnamed3521(); + o.args = buildUnnamed3522(); + o.fileUris = buildUnnamed3523(); + o.jarFileUris = buildUnnamed3524(); o.loggingConfiguration = buildLoggingConfiguration(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed3688(); + o.properties = buildUnnamed3525(); } buildCounterSparkJob--; return o; @@ -1413,52 +1509,52 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed3684(o.archiveUris); - checkUnnamed3685(o.args); - checkUnnamed3686(o.fileUris); - checkUnnamed3687(o.jarFileUris); + checkUnnamed3521(o.archiveUris); + checkUnnamed3522(o.args); + checkUnnamed3523(o.fileUris); + checkUnnamed3524(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed3688(o.properties); + checkUnnamed3525(o.properties); } buildCounterSparkJob--; } -buildUnnamed3689() { +buildUnnamed3526() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3689(core.List<core.String> o) { +checkUnnamed3526(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3690() { +buildUnnamed3527() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3690(core.Map<core.String, core.String> o) { +checkUnnamed3527(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')); } -buildUnnamed3691() { +buildUnnamed3528() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3691(core.Map<core.String, core.String> o) { +checkUnnamed3528(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')); @@ -1469,12 +1565,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed3689(); + o.jarFileUris = buildUnnamed3526(); o.loggingConfiguration = buildLoggingConfiguration(); - o.properties = buildUnnamed3690(); + o.properties = buildUnnamed3527(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed3691(); + o.scriptVariables = buildUnnamed3528(); } buildCounterSparkSqlJob--; return o; @@ -1483,40 +1579,40 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed3689(o.jarFileUris); + checkUnnamed3526(o.jarFileUris); checkLoggingConfiguration(o.loggingConfiguration); - checkUnnamed3690(o.properties); + checkUnnamed3527(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed3691(o.scriptVariables); + checkUnnamed3528(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed3692() { +buildUnnamed3529() { 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; } -checkUnnamed3692(core.Map<core.String, core.Object> o) { +checkUnnamed3529(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')); } -buildUnnamed3693() { +buildUnnamed3530() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3692()); - o.add(buildUnnamed3692()); + o.add(buildUnnamed3529()); + o.add(buildUnnamed3529()); return o; } -checkUnnamed3693(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3530(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3692(o[0]); - checkUnnamed3692(o[1]); + checkUnnamed3529(o[0]); + checkUnnamed3529(o[1]); } core.int buildCounterStatus = 0; @@ -1525,7 +1621,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3693(); + o.details = buildUnnamed3530(); o.message = "foo"; } buildCounterStatus--; @@ -1536,7 +1632,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3693(o.details); + checkUnnamed3530(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1624,6 +1720,15 @@ }); + unittest.group("obj-schema-ClusterMetrics", () { + unittest.test("to-json--from-json", () { + var o = buildClusterMetrics(); + var od = new api.ClusterMetrics.fromJson(o.toJson()); + checkClusterMetrics(od); + }); + }); + + unittest.group("obj-schema-ClusterOperationMetadata", () { unittest.test("to-json--from-json", () { var o = buildClusterOperationMetadata(); @@ -2358,6 +2463,7 @@ var mock = new HttpServerMock(); api.ProjectsClustersResourceApi res = new api.DataprocApi(mock).projects.clusters; var arg_projectId = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { @@ -2393,6 +2499,7 @@ 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)); @@ -2403,7 +2510,7 @@ var resp = convert.JSON.encode(buildListClustersResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { + res.list(arg_projectId, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListClustersResponse response) { checkListClustersResponse(response); }))); }); @@ -2655,6 +2762,7 @@ var arg_pageToken = "foo"; var arg_clusterName = "foo"; var arg_jobStateMatcher = "foo"; + var arg_filter = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var path = (req.url).path; var pathOffset = 0; @@ -2692,6 +2800,7 @@ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["clusterName"].first, unittest.equals(arg_clusterName)); unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_jobStateMatcher)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); var h = { @@ -2700,7 +2809,7 @@ var resp = convert.JSON.encode(buildListJobsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher).then(unittest.expectAsync(((api.ListJobsResponse response) { + res.list(arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken, clusterName: arg_clusterName, jobStateMatcher: arg_jobStateMatcher, filter: arg_filter).then(unittest.expectAsync(((api.ListJobsResponse response) { checkListJobsResponse(response); }))); });
diff --git a/generated/googleapis_beta/test/datastore/v1beta2_test.dart b/generated/googleapis_beta/test/datastore/v1beta2_test.dart index aee9114..c832e3f 100644 --- a/generated/googleapis_beta/test/datastore/v1beta2_test.dart +++ b/generated/googleapis_beta/test/datastore/v1beta2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4223() { +buildUnnamed4058() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4223(core.List<api.Key> o) { +checkUnnamed4058(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 = buildUnnamed4223(); + o.keys = buildUnnamed4058(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed4223(o.keys); + checkUnnamed4058(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed4224() { +buildUnnamed4059() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4224(core.List<api.Key> o) { +checkUnnamed4059(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -102,7 +102,7 @@ buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { o.header = buildResponseHeader(); - o.keys = buildUnnamed4224(); + o.keys = buildUnnamed4059(); } buildCounterAllocateIdsResponse--; return o; @@ -112,7 +112,7 @@ buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { checkResponseHeader(o.header); - checkUnnamed4224(o.keys); + checkUnnamed4059(o.keys); } buildCounterAllocateIdsResponse--; } @@ -203,14 +203,14 @@ buildCounterCommitResponse--; } -buildUnnamed4225() { +buildUnnamed4060() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed4225(core.List<api.Filter> o) { +checkUnnamed4060(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -221,7 +221,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed4225(); + o.filters = buildUnnamed4060(); o.operator = "foo"; } buildCounterCompositeFilter--; @@ -231,20 +231,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed4225(o.filters); + checkUnnamed4060(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed4226() { +buildUnnamed4061() { var o = new core.Map<core.String, api.Property>(); o["x"] = buildProperty(); o["y"] = buildProperty(); return o; } -checkUnnamed4226(core.Map<core.String, api.Property> o) { +checkUnnamed4061(core.Map<core.String, api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o["x"]); checkProperty(o["y"]); @@ -256,7 +256,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed4226(); + o.properties = buildUnnamed4061(); } buildCounterEntity--; return o; @@ -266,7 +266,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed4226(o.properties); + checkUnnamed4061(o.properties); } buildCounterEntity--; } @@ -311,27 +311,27 @@ buildCounterFilter--; } -buildUnnamed4227() { +buildUnnamed4062() { var o = new core.List<api.GqlQueryArg>(); o.add(buildGqlQueryArg()); o.add(buildGqlQueryArg()); return o; } -checkUnnamed4227(core.List<api.GqlQueryArg> o) { +checkUnnamed4062(core.List<api.GqlQueryArg> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryArg(o[0]); checkGqlQueryArg(o[1]); } -buildUnnamed4228() { +buildUnnamed4063() { var o = new core.List<api.GqlQueryArg>(); o.add(buildGqlQueryArg()); o.add(buildGqlQueryArg()); return o; } -checkUnnamed4228(core.List<api.GqlQueryArg> o) { +checkUnnamed4063(core.List<api.GqlQueryArg> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryArg(o[0]); checkGqlQueryArg(o[1]); @@ -343,8 +343,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiteral = true; - o.nameArgs = buildUnnamed4227(); - o.numberArgs = buildUnnamed4228(); + o.nameArgs = buildUnnamed4062(); + o.numberArgs = buildUnnamed4063(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -355,8 +355,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiteral, unittest.isTrue); - checkUnnamed4227(o.nameArgs); - checkUnnamed4228(o.numberArgs); + checkUnnamed4062(o.nameArgs); + checkUnnamed4063(o.numberArgs); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -385,14 +385,14 @@ buildCounterGqlQueryArg--; } -buildUnnamed4229() { +buildUnnamed4064() { var o = new core.List<api.KeyPathElement>(); o.add(buildKeyPathElement()); o.add(buildKeyPathElement()); return o; } -checkUnnamed4229(core.List<api.KeyPathElement> o) { +checkUnnamed4064(core.List<api.KeyPathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyPathElement(o[0]); checkKeyPathElement(o[1]); @@ -404,7 +404,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed4229(); + o.path = buildUnnamed4064(); } buildCounterKey--; return o; @@ -414,7 +414,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed4229(o.path); + checkUnnamed4064(o.path); } buildCounterKey--; } @@ -461,14 +461,14 @@ buildCounterKindExpression--; } -buildUnnamed4230() { +buildUnnamed4065() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4230(core.List<api.Key> o) { +checkUnnamed4065(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -479,7 +479,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed4230(); + o.keys = buildUnnamed4065(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -489,46 +489,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed4230(o.keys); + checkUnnamed4065(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed4231() { +buildUnnamed4066() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4231(core.List<api.Key> o) { +checkUnnamed4066(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed4232() { +buildUnnamed4067() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4232(core.List<api.EntityResult> o) { +checkUnnamed4067(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed4233() { +buildUnnamed4068() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4233(core.List<api.EntityResult> o) { +checkUnnamed4068(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -539,10 +539,10 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed4231(); - o.found = buildUnnamed4232(); + o.deferred = buildUnnamed4066(); + o.found = buildUnnamed4067(); o.header = buildResponseHeader(); - o.missing = buildUnnamed4233(); + o.missing = buildUnnamed4068(); } buildCounterLookupResponse--; return o; @@ -551,74 +551,74 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed4231(o.deferred); - checkUnnamed4232(o.found); + checkUnnamed4066(o.deferred); + checkUnnamed4067(o.found); checkResponseHeader(o.header); - checkUnnamed4233(o.missing); + checkUnnamed4068(o.missing); } buildCounterLookupResponse--; } -buildUnnamed4234() { +buildUnnamed4069() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4234(core.List<api.Key> o) { +checkUnnamed4069(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed4235() { +buildUnnamed4070() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed4235(core.List<api.Entity> o) { +checkUnnamed4070(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed4236() { +buildUnnamed4071() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed4236(core.List<api.Entity> o) { +checkUnnamed4071(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed4237() { +buildUnnamed4072() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed4237(core.List<api.Entity> o) { +checkUnnamed4072(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed4238() { +buildUnnamed4073() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed4238(core.List<api.Entity> o) { +checkUnnamed4073(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -629,12 +629,12 @@ var o = new api.Mutation(); buildCounterMutation++; if (buildCounterMutation < 3) { - o.delete = buildUnnamed4234(); + o.delete = buildUnnamed4069(); o.force = true; - o.insert = buildUnnamed4235(); - o.insertAutoId = buildUnnamed4236(); - o.update = buildUnnamed4237(); - o.upsert = buildUnnamed4238(); + o.insert = buildUnnamed4070(); + o.insertAutoId = buildUnnamed4071(); + o.update = buildUnnamed4072(); + o.upsert = buildUnnamed4073(); } buildCounterMutation--; return o; @@ -643,24 +643,24 @@ checkMutation(api.Mutation o) { buildCounterMutation++; if (buildCounterMutation < 3) { - checkUnnamed4234(o.delete); + checkUnnamed4069(o.delete); unittest.expect(o.force, unittest.isTrue); - checkUnnamed4235(o.insert); - checkUnnamed4236(o.insertAutoId); - checkUnnamed4237(o.update); - checkUnnamed4238(o.upsert); + checkUnnamed4070(o.insert); + checkUnnamed4071(o.insertAutoId); + checkUnnamed4072(o.update); + checkUnnamed4073(o.upsert); } buildCounterMutation--; } -buildUnnamed4239() { +buildUnnamed4074() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4239(core.List<api.Key> o) { +checkUnnamed4074(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -672,7 +672,7 @@ buildCounterMutationResult++; if (buildCounterMutationResult < 3) { o.indexUpdates = 42; - o.insertAutoIdKeys = buildUnnamed4239(); + o.insertAutoIdKeys = buildUnnamed4074(); } buildCounterMutationResult--; return o; @@ -682,7 +682,7 @@ buildCounterMutationResult++; if (buildCounterMutationResult < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed4239(o.insertAutoIdKeys); + checkUnnamed4074(o.insertAutoIdKeys); } buildCounterMutationResult--; } @@ -708,14 +708,14 @@ buildCounterPartitionId--; } -buildUnnamed4240() { +buildUnnamed4075() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed4240(core.List<api.Value> o) { +checkUnnamed4075(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -735,7 +735,7 @@ o.indexed = true; o.integerValue = "foo"; o.keyValue = buildKey(); - o.listValue = buildUnnamed4240(); + o.listValue = buildUnnamed4075(); o.meaning = 42; o.stringValue = "foo"; } @@ -755,7 +755,7 @@ unittest.expect(o.indexed, unittest.isTrue); unittest.expect(o.integerValue, unittest.equals('foo')); checkKey(o.keyValue); - checkUnnamed4240(o.listValue); + checkUnnamed4075(o.listValue); unittest.expect(o.meaning, unittest.equals(42)); unittest.expect(o.stringValue, unittest.equals('foo')); } @@ -846,53 +846,53 @@ buildCounterPropertyReference--; } -buildUnnamed4241() { +buildUnnamed4076() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed4241(core.List<api.PropertyReference> o) { +checkUnnamed4076(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed4242() { +buildUnnamed4077() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed4242(core.List<api.KindExpression> o) { +checkUnnamed4077(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed4243() { +buildUnnamed4078() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed4243(core.List<api.PropertyOrder> o) { +checkUnnamed4078(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed4244() { +buildUnnamed4079() { var o = new core.List<api.PropertyExpression>(); o.add(buildPropertyExpression()); o.add(buildPropertyExpression()); return o; } -checkUnnamed4244(core.List<api.PropertyExpression> o) { +checkUnnamed4079(core.List<api.PropertyExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyExpression(o[0]); checkPropertyExpression(o[1]); @@ -905,12 +905,12 @@ if (buildCounterQuery < 3) { o.endCursor = "foo"; o.filter = buildFilter(); - o.groupBy = buildUnnamed4241(); - o.kinds = buildUnnamed4242(); + o.groupBy = buildUnnamed4076(); + o.kinds = buildUnnamed4077(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed4243(); - o.projection = buildUnnamed4244(); + o.order = buildUnnamed4078(); + o.projection = buildUnnamed4079(); o.startCursor = "foo"; } buildCounterQuery--; @@ -922,25 +922,25 @@ if (buildCounterQuery < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed4241(o.groupBy); - checkUnnamed4242(o.kinds); + checkUnnamed4076(o.groupBy); + checkUnnamed4077(o.kinds); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed4243(o.order); - checkUnnamed4244(o.projection); + checkUnnamed4078(o.order); + checkUnnamed4079(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed4245() { +buildUnnamed4080() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4245(core.List<api.EntityResult> o) { +checkUnnamed4080(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -953,7 +953,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed4245(); + o.entityResults = buildUnnamed4080(); o.moreResults = "foo"; o.skippedResults = 42; } @@ -966,7 +966,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed4245(o.entityResults); + checkUnnamed4080(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42)); } @@ -1097,14 +1097,14 @@ buildCounterRunQueryResponse--; } -buildUnnamed4246() { +buildUnnamed4081() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed4246(core.List<api.Value> o) { +checkUnnamed4081(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -1124,7 +1124,7 @@ o.indexed = true; o.integerValue = "foo"; o.keyValue = buildKey(); - o.listValue = buildUnnamed4246(); + o.listValue = buildUnnamed4081(); o.meaning = 42; o.stringValue = "foo"; } @@ -1144,7 +1144,7 @@ unittest.expect(o.indexed, unittest.isTrue); unittest.expect(o.integerValue, unittest.equals('foo')); checkKey(o.keyValue); - checkUnnamed4246(o.listValue); + checkUnnamed4081(o.listValue); unittest.expect(o.meaning, unittest.equals(42)); unittest.expect(o.stringValue, unittest.equals('foo')); }
diff --git a/generated/googleapis_beta/test/datastore/v1beta3_test.dart b/generated/googleapis_beta/test/datastore/v1beta3_test.dart index e1a6806..9aaf4ca 100644 --- a/generated/googleapis_beta/test/datastore/v1beta3_test.dart +++ b/generated/googleapis_beta/test/datastore/v1beta3_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4069() { +buildUnnamed3906() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4069(core.List<api.Key> o) { +checkUnnamed3906(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 = buildUnnamed4069(); + o.keys = buildUnnamed3906(); } buildCounterAllocateIdsRequest--; return o; @@ -78,19 +78,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed4069(o.keys); + checkUnnamed3906(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed4070() { +buildUnnamed3907() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4070(core.List<api.Key> o) { +checkUnnamed3907(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 = buildUnnamed4070(); + o.keys = buildUnnamed3907(); } buildCounterAllocateIdsResponse--; return o; @@ -110,19 +110,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed4070(o.keys); + checkUnnamed3907(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed4071() { +buildUnnamed3908() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed4071(core.List<api.Value> o) { +checkUnnamed3908(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 = buildUnnamed4071(); + o.values = buildUnnamed3908(); } buildCounterArrayValue--; return o; @@ -142,7 +142,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed4071(o.values); + checkUnnamed3908(o.values); } buildCounterArrayValue--; } @@ -183,14 +183,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed4072() { +buildUnnamed3909() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed4072(core.List<api.Mutation> o) { +checkUnnamed3909(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 = buildUnnamed4072(); + o.mutations = buildUnnamed3909(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -213,20 +213,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed4072(o.mutations); + checkUnnamed3909(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed4073() { +buildUnnamed3910() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed4073(core.List<api.MutationResult> o) { +checkUnnamed3910(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 = buildUnnamed4073(); + o.mutationResults = buildUnnamed3910(); } buildCounterCommitResponse--; return o; @@ -248,19 +248,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed4073(o.mutationResults); + checkUnnamed3910(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed4074() { +buildUnnamed3911() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed4074(core.List<api.Filter> o) { +checkUnnamed3911(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 = buildUnnamed4074(); + o.filters = buildUnnamed3911(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -281,20 +281,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed4074(o.filters); + checkUnnamed3911(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed4075() { +buildUnnamed3912() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed4075(core.Map<core.String, api.Value> o) { +checkUnnamed3912(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 = buildUnnamed4075(); + o.properties = buildUnnamed3912(); } buildCounterEntity--; return o; @@ -316,7 +316,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed4075(o.properties); + checkUnnamed3912(o.properties); } buildCounterEntity--; } @@ -365,27 +365,27 @@ buildCounterFilter--; } -buildUnnamed4076() { +buildUnnamed3913() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed4076(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed3913(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed4077() { +buildUnnamed3914() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed4077(core.List<api.GqlQueryParameter> o) { +checkUnnamed3914(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 = buildUnnamed4076(); - o.positionalBindings = buildUnnamed4077(); + o.namedBindings = buildUnnamed3913(); + o.positionalBindings = buildUnnamed3914(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -409,8 +409,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed4076(o.namedBindings); - checkUnnamed4077(o.positionalBindings); + checkUnnamed3913(o.namedBindings); + checkUnnamed3914(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -437,14 +437,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed4078() { +buildUnnamed3915() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed4078(core.List<api.PathElement> o) { +checkUnnamed3915(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 = buildUnnamed4078(); + o.path = buildUnnamed3915(); } buildCounterKey--; return o; @@ -466,7 +466,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed4078(o.path); + checkUnnamed3915(o.path); } buildCounterKey--; } @@ -511,14 +511,14 @@ buildCounterLatLng--; } -buildUnnamed4079() { +buildUnnamed3916() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4079(core.List<api.Key> o) { +checkUnnamed3916(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 = buildUnnamed4079(); + o.keys = buildUnnamed3916(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -539,46 +539,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed4079(o.keys); + checkUnnamed3916(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed4080() { +buildUnnamed3917() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4080(core.List<api.Key> o) { +checkUnnamed3917(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed4081() { +buildUnnamed3918() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4081(core.List<api.EntityResult> o) { +checkUnnamed3918(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed4082() { +buildUnnamed3919() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4082(core.List<api.EntityResult> o) { +checkUnnamed3919(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 = buildUnnamed4080(); - o.found = buildUnnamed4081(); - o.missing = buildUnnamed4082(); + o.deferred = buildUnnamed3917(); + o.found = buildUnnamed3918(); + o.missing = buildUnnamed3919(); } buildCounterLookupResponse--; return o; @@ -600,9 +600,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed4080(o.deferred); - checkUnnamed4081(o.found); - checkUnnamed4082(o.missing); + checkUnnamed3917(o.deferred); + checkUnnamed3918(o.found); + checkUnnamed3919(o.missing); } buildCounterLookupResponse--; } @@ -783,53 +783,53 @@ buildCounterPropertyReference--; } -buildUnnamed4083() { +buildUnnamed3920() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed4083(core.List<api.PropertyReference> o) { +checkUnnamed3920(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed4084() { +buildUnnamed3921() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed4084(core.List<api.KindExpression> o) { +checkUnnamed3921(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed4085() { +buildUnnamed3922() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed4085(core.List<api.PropertyOrder> o) { +checkUnnamed3922(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed4086() { +buildUnnamed3923() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed4086(core.List<api.Projection> o) { +checkUnnamed3923(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 = buildUnnamed4083(); + o.distinctOn = buildUnnamed3920(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed4084(); + o.kind = buildUnnamed3921(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed4085(); - o.projection = buildUnnamed4086(); + o.order = buildUnnamed3922(); + o.projection = buildUnnamed3923(); o.startCursor = "foo"; } buildCounterQuery--; @@ -857,27 +857,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed4083(o.distinctOn); + checkUnnamed3920(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed4084(o.kind); + checkUnnamed3921(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed4085(o.order); - checkUnnamed4086(o.projection); + checkUnnamed3922(o.order); + checkUnnamed3923(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed4087() { +buildUnnamed3924() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4087(core.List<api.EntityResult> o) { +checkUnnamed3924(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 = buildUnnamed4087(); + o.entityResults = buildUnnamed3924(); 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')); - checkUnnamed4087(o.entityResults); + checkUnnamed3924(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_beta/test/dfareporting/v2_5beta1_test.dart b/generated/googleapis_beta/test/dfareporting/v2_5beta1_test.dart index 8bb13cb..4dc47be 100644 --- a/generated/googleapis_beta/test/dfareporting/v2_5beta1_test.dart +++ b/generated/googleapis_beta/test/dfareporting/v2_5beta1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3751() { +buildUnnamed3588() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3751(core.List<core.String> o) { +checkUnnamed3588(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3752() { +buildUnnamed3589() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3752(core.List<core.String> o) { +checkUnnamed3589(core.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 = buildUnnamed3751(); + o.accountPermissionIds = buildUnnamed3588(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed3752(); + o.availablePermissionIds = buildUnnamed3589(); o.comscoreVceEnabled = true; o.countryId = "foo"; o.currencyId = "foo"; @@ -109,12 +109,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed3751(o.accountPermissionIds); + checkUnnamed3588(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); - checkUnnamed3752(o.availablePermissionIds); + checkUnnamed3589(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--; } -buildUnnamed3753() { +buildUnnamed3590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3753(core.List<core.String> o) { +checkUnnamed3590(core.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 = buildUnnamed3753(); + o.accountProfiles = buildUnnamed3590(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -191,7 +191,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed3753(o.accountProfiles); + checkUnnamed3590(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--; } -buildUnnamed3754() { +buildUnnamed3591() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed3754(core.List<api.AccountPermissionGroup> o) { +checkUnnamed3591(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 = buildUnnamed3754(); + o.accountPermissionGroups = buildUnnamed3591(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ checkAccountPermissionGroupsListResponse(api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed3754(o.accountPermissionGroups); + checkUnnamed3591(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed3755() { +buildUnnamed3592() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed3755(core.List<api.AccountPermission> o) { +checkUnnamed3592(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 = buildUnnamed3755(); + o.accountPermissions = buildUnnamed3592(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed3755(o.accountPermissions); + checkUnnamed3592(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed3756() { +buildUnnamed3593() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed3756(core.List<api.AccountUserProfile> o) { +checkUnnamed3593(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 = buildUnnamed3756(); + o.accountUserProfiles = buildUnnamed3593(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed3756(o.accountUserProfiles); + checkUnnamed3593(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed3757() { +buildUnnamed3594() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3757(core.List<api.Account> o) { +checkUnnamed3594(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 = buildUnnamed3757(); + o.accounts = buildUnnamed3594(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed3757(o.accounts); + checkUnnamed3594(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed3758() { +buildUnnamed3595() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3758(core.List<api.DimensionValue> o) { +checkUnnamed3595(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3759() { +buildUnnamed3596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3759(core.List<core.String> o) { +checkUnnamed3596(core.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 = buildUnnamed3758(); + o.filters = buildUnnamed3595(); o.kind = "foo"; - o.metricNames = buildUnnamed3759(); + o.metricNames = buildUnnamed3596(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed3758(o.filters); + checkUnnamed3595(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3759(o.metricNames); + checkUnnamed3596(o.metricNames); } buildCounterActivities--; } -buildUnnamed3760() { +buildUnnamed3597() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed3760(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed3597(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed3761() { +buildUnnamed3598() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed3761(core.List<api.EventTagOverride> o) { +checkUnnamed3598(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed3762() { +buildUnnamed3599() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed3762(core.List<api.PlacementAssignment> o) { +checkUnnamed3599(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 = buildUnnamed3760(); + o.creativeGroupAssignments = buildUnnamed3597(); 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 = buildUnnamed3761(); + o.eventTagOverrides = buildUnnamed3598(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -534,7 +534,7 @@ o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed3762(); + o.placementAssignments = buildUnnamed3599(); 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); - checkUnnamed3760(o.creativeGroupAssignments); + checkUnnamed3597(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"))); - checkUnnamed3761(o.eventTagOverrides); + checkUnnamed3598(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')); - checkUnnamed3762(o.placementAssignments); + checkUnnamed3599(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -625,14 +625,14 @@ buildCounterAdSlot--; } -buildUnnamed3763() { +buildUnnamed3600() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed3763(core.List<api.Ad> o) { +checkUnnamed3600(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 = buildUnnamed3763(); + o.ads = buildUnnamed3600(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -654,7 +654,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed3763(o.ads); + checkUnnamed3600(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -733,14 +733,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed3764() { +buildUnnamed3601() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed3764(core.List<api.AdvertiserGroup> o) { +checkUnnamed3601(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 = buildUnnamed3764(); + o.advertiserGroups = buildUnnamed3601(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -762,21 +762,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed3764(o.advertiserGroups); + checkUnnamed3601(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed3765() { +buildUnnamed3602() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed3765(core.List<api.Advertiser> o) { +checkUnnamed3602(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 = buildUnnamed3765(); + o.advertisers = buildUnnamed3602(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -798,7 +798,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed3765(o.advertisers); + checkUnnamed3602(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -828,14 +828,14 @@ buildCounterAudienceSegment--; } -buildUnnamed3766() { +buildUnnamed3603() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed3766(core.List<api.AudienceSegment> o) { +checkUnnamed3603(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 = buildUnnamed3766(); + o.audienceSegments = buildUnnamed3603(); o.id = "foo"; o.name = "foo"; } @@ -857,7 +857,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed3766(o.audienceSegments); + checkUnnamed3603(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -893,14 +893,14 @@ buildCounterBrowser--; } -buildUnnamed3767() { +buildUnnamed3604() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed3767(core.List<api.Browser> o) { +checkUnnamed3604(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 = buildUnnamed3767(); + o.browsers = buildUnnamed3604(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -921,72 +921,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed3767(o.browsers); + checkUnnamed3604(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed3768() { +buildUnnamed3605() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed3768(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed3605(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed3769() { +buildUnnamed3606() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed3769(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed3606(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed3770() { +buildUnnamed3607() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3770(core.List<core.String> o) { +checkUnnamed3607(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3771() { +buildUnnamed3608() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed3771(core.List<api.EventTagOverride> o) { +checkUnnamed3608(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed3772() { +buildUnnamed3609() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3772(core.List<core.String> o) { +checkUnnamed3609(core.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 = buildUnnamed3768(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed3605(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed3769(); + o.audienceSegmentGroups = buildUnnamed3606(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.comscoreVceEnabled = true; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed3770(); + o.creativeGroupIds = buildUnnamed3607(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed3771(); + o.eventTagOverrides = buildUnnamed3608(); 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 = buildUnnamed3772(); + o.traffickerEmails = buildUnnamed3609(); } buildCounterCampaign--; return o; @@ -1034,22 +1034,22 @@ buildCounterCampaign++; if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3768(o.additionalCreativeOptimizationConfigurations); + checkUnnamed3605(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); - checkUnnamed3769(o.audienceSegmentGroups); + checkUnnamed3606(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); - checkUnnamed3770(o.creativeGroupIds); + checkUnnamed3607(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties(o.defaultClickThroughEventTagProperties); unittest.expect(o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed3771(o.eventTagOverrides); + checkUnnamed3608(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')); - checkUnnamed3772(o.traffickerEmails); + checkUnnamed3609(o.traffickerEmails); } buildCounterCampaign--; } @@ -1086,14 +1086,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed3773() { +buildUnnamed3610() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed3773(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed3610(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 = buildUnnamed3773(); + o.campaignCreativeAssociations = buildUnnamed3610(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1115,21 +1115,21 @@ checkCampaignCreativeAssociationsListResponse(api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed3773(o.campaignCreativeAssociations); + checkUnnamed3610(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCampaignCreativeAssociationsListResponse--; } -buildUnnamed3774() { +buildUnnamed3611() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed3774(core.List<api.Campaign> o) { +checkUnnamed3611(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 = buildUnnamed3774(); + o.campaigns = buildUnnamed3611(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1151,7 +1151,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed3774(o.campaigns); + checkUnnamed3611(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1203,14 +1203,14 @@ buildCounterChangeLog--; } -buildUnnamed3775() { +buildUnnamed3612() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed3775(core.List<api.ChangeLog> o) { +checkUnnamed3612(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 = buildUnnamed3775(); + o.changeLogs = buildUnnamed3612(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1232,21 +1232,21 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed3775(o.changeLogs); + checkUnnamed3612(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed3776() { +buildUnnamed3613() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed3776(core.List<api.City> o) { +checkUnnamed3613(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 = buildUnnamed3776(); + o.cities = buildUnnamed3613(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1267,7 +1267,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed3776(o.cities); + checkUnnamed3613(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1450,14 +1450,14 @@ buildCounterConnectionType--; } -buildUnnamed3777() { +buildUnnamed3614() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed3777(core.List<api.ConnectionType> o) { +checkUnnamed3614(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 = buildUnnamed3777(); + o.connectionTypes = buildUnnamed3614(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1478,20 +1478,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed3777(o.connectionTypes); + checkUnnamed3614(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed3778() { +buildUnnamed3615() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed3778(core.List<api.ContentCategory> o) { +checkUnnamed3615(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 = buildUnnamed3778(); + o.contentCategories = buildUnnamed3615(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1513,7 +1513,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed3778(o.contentCategories); + checkUnnamed3615(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1545,14 +1545,14 @@ buildCounterContentCategory--; } -buildUnnamed3779() { +buildUnnamed3616() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed3779(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed3616(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 = buildUnnamed3779(); + o.customVariables = buildUnnamed3616(); o.encryptedUserId = "foo"; o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; @@ -1584,7 +1584,7 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed3779(o.customVariables); + checkUnnamed3616(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--; } -buildUnnamed3780() { +buildUnnamed3617() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed3780(core.List<api.ConversionError> o) { +checkUnnamed3617(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 = buildUnnamed3780(); + o.errors = buildUnnamed3617(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1652,20 +1652,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed3780(o.errors); + checkUnnamed3617(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed3781() { +buildUnnamed3618() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed3781(core.List<api.Conversion> o) { +checkUnnamed3618(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 = buildUnnamed3781(); + o.conversions = buildUnnamed3618(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1687,21 +1687,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed3781(o.conversions); + checkUnnamed3618(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed3782() { +buildUnnamed3619() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed3782(core.List<api.ConversionStatus> o) { +checkUnnamed3619(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 = buildUnnamed3782(); + o.status = buildUnnamed3619(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1725,19 +1725,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3782(o.status); + checkUnnamed3619(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed3783() { +buildUnnamed3620() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed3783(core.List<api.Country> o) { +checkUnnamed3620(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 = buildUnnamed3783(); + o.countries = buildUnnamed3620(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -1758,7 +1758,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed3783(o.countries); + checkUnnamed3620(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -1791,157 +1791,157 @@ buildCounterCountry--; } -buildUnnamed3784() { +buildUnnamed3621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3784(core.List<core.String> o) { +checkUnnamed3621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3785() { +buildUnnamed3622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3785(core.List<core.String> o) { +checkUnnamed3622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3786() { +buildUnnamed3623() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed3786(core.List<api.ClickTag> o) { +checkUnnamed3623(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed3787() { +buildUnnamed3624() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3787(core.List<core.String> o) { +checkUnnamed3624(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3788() { +buildUnnamed3625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3788(core.List<core.String> o) { +checkUnnamed3625(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3789() { +buildUnnamed3626() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed3789(core.List<api.CreativeCustomEvent> o) { +checkUnnamed3626(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed3790() { +buildUnnamed3627() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed3790(core.List<api.CreativeAsset> o) { +checkUnnamed3627(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed3791() { +buildUnnamed3628() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed3791(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed3628(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed3792() { +buildUnnamed3629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3792(core.List<core.String> o) { +checkUnnamed3629(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3793() { +buildUnnamed3630() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed3793(core.List<api.CreativeCustomEvent> o) { +checkUnnamed3630(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed3794() { +buildUnnamed3631() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed3794(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed3631(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed3795() { +buildUnnamed3632() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed3795(core.List<api.CreativeCustomEvent> o) { +checkUnnamed3632(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 = buildUnnamed3784(); + o.adTagKeys = buildUnnamed3621(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -1965,19 +1965,19 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = "foo"; - o.backupImageFeatures = buildUnnamed3785(); + o.backupImageFeatures = buildUnnamed3622(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed3786(); + o.clickTags = buildUnnamed3623(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed3787(); - o.compatibility = buildUnnamed3788(); + o.companionCreatives = buildUnnamed3624(); + o.compatibility = buildUnnamed3625(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed3789(); - o.creativeAssets = buildUnnamed3790(); - o.creativeFieldAssignments = buildUnnamed3791(); - o.customKeyValues = buildUnnamed3792(); - o.exitCustomEvents = buildUnnamed3793(); + o.counterCustomEvents = buildUnnamed3626(); + o.creativeAssets = buildUnnamed3627(); + o.creativeFieldAssignments = buildUnnamed3628(); + o.customKeyValues = buildUnnamed3629(); + o.exitCustomEvents = buildUnnamed3630(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2003,8 +2003,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed3794(); - o.timerCustomEvents = buildUnnamed3795(); + o.thirdPartyUrls = buildUnnamed3631(); + o.timerCustomEvents = buildUnnamed3632(); 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')); - checkUnnamed3784(o.adTagKeys); + checkUnnamed3621(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')); - checkUnnamed3785(o.backupImageFeatures); + checkUnnamed3622(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed3786(o.clickTags); + checkUnnamed3623(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed3787(o.companionCreatives); - checkUnnamed3788(o.compatibility); + checkUnnamed3624(o.companionCreatives); + checkUnnamed3625(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed3789(o.counterCustomEvents); - checkUnnamed3790(o.creativeAssets); - checkUnnamed3791(o.creativeFieldAssignments); - checkUnnamed3792(o.customKeyValues); - checkUnnamed3793(o.exitCustomEvents); + checkUnnamed3626(o.counterCustomEvents); + checkUnnamed3627(o.creativeAssets); + checkUnnamed3628(o.creativeFieldAssignments); + checkUnnamed3629(o.customKeyValues); + checkUnnamed3630(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')); - checkUnnamed3794(o.thirdPartyUrls); - checkUnnamed3795(o.timerCustomEvents); + checkUnnamed3631(o.thirdPartyUrls); + checkUnnamed3632(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--; } -buildUnnamed3796() { +buildUnnamed3633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3796(core.List<core.String> o) { +checkUnnamed3633(core.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 = buildUnnamed3796(); + o.detectedFeatures = buildUnnamed3633(); 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)); - checkUnnamed3796(o.detectedFeatures); + checkUnnamed3633(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--; } -buildUnnamed3797() { +buildUnnamed3634() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed3797(core.List<api.ClickTag> o) { +checkUnnamed3634(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed3798() { +buildUnnamed3635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3798(core.List<core.String> o) { +checkUnnamed3635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3799() { +buildUnnamed3636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3799(core.List<core.String> o) { +checkUnnamed3636(core.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 = buildUnnamed3797(); - o.detectedFeatures = buildUnnamed3798(); + o.clickTags = buildUnnamed3634(); + o.detectedFeatures = buildUnnamed3635(); o.kind = "foo"; - o.warnedValidationRules = buildUnnamed3799(); + o.warnedValidationRules = buildUnnamed3636(); } buildCounterCreativeAssetMetadata--; return o; @@ -2273,48 +2273,48 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed3797(o.clickTags); - checkUnnamed3798(o.detectedFeatures); + checkUnnamed3634(o.clickTags); + checkUnnamed3635(o.detectedFeatures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3799(o.warnedValidationRules); + checkUnnamed3636(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed3800() { +buildUnnamed3637() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed3800(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed3637(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed3801() { +buildUnnamed3638() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed3801(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed3638(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed3802() { +buildUnnamed3639() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed3802(core.List<api.RichMediaExitOverride> o) { +checkUnnamed3639(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 = buildUnnamed3800(); - o.creativeGroupAssignments = buildUnnamed3801(); + o.companionCreativeOverrides = buildUnnamed3637(); + o.creativeGroupAssignments = buildUnnamed3638(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed3802(); + o.richMediaExitOverrides = buildUnnamed3639(); 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); - checkUnnamed3800(o.companionCreativeOverrides); - checkUnnamed3801(o.creativeGroupAssignments); + checkUnnamed3637(o.companionCreativeOverrides); + checkUnnamed3638(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"))); - checkUnnamed3802(o.richMediaExitOverrides); + checkUnnamed3639(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--; } -buildUnnamed3803() { +buildUnnamed3640() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed3803(core.List<api.CreativeFieldValue> o) { +checkUnnamed3640(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 = buildUnnamed3803(); + o.creativeFieldValues = buildUnnamed3640(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2504,21 +2504,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed3803(o.creativeFieldValues); + checkUnnamed3640(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed3804() { +buildUnnamed3641() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed3804(core.List<api.CreativeField> o) { +checkUnnamed3641(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 = buildUnnamed3804(); + o.creativeFields = buildUnnamed3641(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2540,7 +2540,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed3804(o.creativeFields); + checkUnnamed3641(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2601,14 +2601,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed3805() { +buildUnnamed3642() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed3805(core.List<api.CreativeGroup> o) { +checkUnnamed3642(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 = buildUnnamed3805(); + o.creativeGroups = buildUnnamed3642(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2630,21 +2630,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed3805(o.creativeGroups); + checkUnnamed3642(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed3806() { +buildUnnamed3643() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed3806(core.List<api.OptimizationActivity> o) { +checkUnnamed3643(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 = buildUnnamed3806(); + o.optimizationActivitys = buildUnnamed3643(); 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')); - checkUnnamed3806(o.optimizationActivitys); + checkUnnamed3643(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed3807() { +buildUnnamed3644() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed3807(core.List<api.CreativeAssignment> o) { +checkUnnamed3644(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 = buildUnnamed3807(); + o.creativeAssignments = buildUnnamed3644(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -2705,7 +2705,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed3807(o.creativeAssignments); + checkUnnamed3644(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--; } -buildUnnamed3808() { +buildUnnamed3645() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed3808(core.List<api.Creative> o) { +checkUnnamed3645(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 = buildUnnamed3808(); + o.creatives = buildUnnamed3645(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2763,60 +2763,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed3808(o.creatives); + checkUnnamed3645(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed3809() { +buildUnnamed3646() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3809(core.List<api.Dimension> o) { +checkUnnamed3646(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3810() { +buildUnnamed3647() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3810(core.List<api.Dimension> o) { +checkUnnamed3647(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3811() { +buildUnnamed3648() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3811(core.List<api.Metric> o) { +checkUnnamed3648(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3812() { +buildUnnamed3649() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3812(core.List<api.Metric> o) { +checkUnnamed3649(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 = buildUnnamed3809(); - o.dimensionFilters = buildUnnamed3810(); + o.breakdown = buildUnnamed3646(); + o.dimensionFilters = buildUnnamed3647(); o.kind = "foo"; - o.metrics = buildUnnamed3811(); - o.overlapMetrics = buildUnnamed3812(); + o.metrics = buildUnnamed3648(); + o.overlapMetrics = buildUnnamed3649(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -2840,11 +2840,11 @@ checkCrossDimensionReachReportCompatibleFields(api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed3809(o.breakdown); - checkUnnamed3810(o.dimensionFilters); + checkUnnamed3646(o.breakdown); + checkUnnamed3647(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3811(o.metrics); - checkUnnamed3812(o.overlapMetrics); + checkUnnamed3648(o.metrics); + checkUnnamed3649(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } @@ -2872,14 +2872,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed3813() { +buildUnnamed3650() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3813(core.List<api.DimensionValue> o) { +checkUnnamed3650(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 = buildUnnamed3813(); + o.filteredEventIds = buildUnnamed3650(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -2900,7 +2900,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed3813(o.filteredEventIds); + checkUnnamed3650(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -2931,27 +2931,27 @@ buildCounterDateRange--; } -buildUnnamed3814() { +buildUnnamed3651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3814(core.List<core.String> o) { +checkUnnamed3651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3815() { +buildUnnamed3652() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3815(core.List<core.int> o) { +checkUnnamed3652(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 = buildUnnamed3814(); - o.hoursOfDay = buildUnnamed3815(); + o.daysOfWeek = buildUnnamed3651(); + o.hoursOfDay = buildUnnamed3652(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -2973,8 +2973,8 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed3814(o.daysOfWeek); - checkUnnamed3815(o.hoursOfDay); + checkUnnamed3651(o.daysOfWeek); + checkUnnamed3652(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; @@ -3126,14 +3126,14 @@ buildCounterDimensionValue--; } -buildUnnamed3816() { +buildUnnamed3653() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3816(core.List<api.DimensionValue> o) { +checkUnnamed3653(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 = buildUnnamed3816(); + o.items = buildUnnamed3653(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3157,21 +3157,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3816(o.items); + checkUnnamed3653(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed3817() { +buildUnnamed3654() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed3817(core.List<api.DimensionFilter> o) { +checkUnnamed3654(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 = buildUnnamed3817(); + o.filters = buildUnnamed3654(); 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"))); - checkUnnamed3817(o.filters); + checkUnnamed3654(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); } buildCounterDimensionValueRequest--; } -buildUnnamed3818() { +buildUnnamed3655() { var o = new core.List<api.DirectorySiteContactAssignment>(); o.add(buildDirectorySiteContactAssignment()); o.add(buildDirectorySiteContactAssignment()); return o; } -checkUnnamed3818(core.List<api.DirectorySiteContactAssignment> o) { +checkUnnamed3655(core.List<api.DirectorySiteContactAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySiteContactAssignment(o[0]); checkDirectorySiteContactAssignment(o[1]); } -buildUnnamed3819() { +buildUnnamed3656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3819(core.List<core.String> o) { +checkUnnamed3656(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3820() { +buildUnnamed3657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3820(core.List<core.String> o) { +checkUnnamed3657(core.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 = buildUnnamed3818(); + o.contactAssignments = buildUnnamed3655(); o.countryId = "foo"; o.currencyId = "foo"; o.description = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed3819(); - o.interstitialTagFormats = buildUnnamed3820(); + o.inpageTagFormats = buildUnnamed3656(); + o.interstitialTagFormats = buildUnnamed3657(); o.kind = "foo"; o.name = "foo"; o.parentId = "foo"; @@ -3271,14 +3271,14 @@ buildCounterDirectorySite++; if (buildCounterDirectorySite < 3) { unittest.expect(o.active, unittest.isTrue); - checkUnnamed3818(o.contactAssignments); + checkUnnamed3655(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); - checkUnnamed3819(o.inpageTagFormats); - checkUnnamed3820(o.interstitialTagFormats); + checkUnnamed3656(o.inpageTagFormats); + checkUnnamed3657(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--; } -buildUnnamed3821() { +buildUnnamed3658() { var o = new core.List<api.DirectorySiteContact>(); o.add(buildDirectorySiteContact()); o.add(buildDirectorySiteContact()); return o; } -checkUnnamed3821(core.List<api.DirectorySiteContact> o) { +checkUnnamed3658(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 = buildUnnamed3821(); + o.directorySiteContacts = buildUnnamed3658(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3375,7 +3375,7 @@ checkDirectorySiteContactsListResponse(api.DirectorySiteContactsListResponse o) { buildCounterDirectorySiteContactsListResponse++; if (buildCounterDirectorySiteContactsListResponse < 3) { - checkUnnamed3821(o.directorySiteContacts); + checkUnnamed3658(o.directorySiteContacts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3413,14 +3413,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed3822() { +buildUnnamed3659() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed3822(core.List<api.DirectorySite> o) { +checkUnnamed3659(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 = buildUnnamed3822(); + o.directorySites = buildUnnamed3659(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3442,7 +3442,7 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed3822(o.directorySites); + checkUnnamed3659(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3474,14 +3474,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed3823() { +buildUnnamed3660() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed3823(core.List<api.DynamicTargetingKey> o) { +checkUnnamed3660(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 = buildUnnamed3823(); + o.dynamicTargetingKeys = buildUnnamed3660(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -3502,7 +3502,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed3823(o.dynamicTargetingKeys); + checkUnnamed3660(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -3533,14 +3533,14 @@ buildCounterEncryptionInfo--; } -buildUnnamed3824() { +buildUnnamed3661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3824(core.List<core.String> o) { +checkUnnamed3661(core.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 = buildUnnamed3824(); + o.siteIds = buildUnnamed3661(); 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')); - checkUnnamed3824(o.siteIds); + checkUnnamed3661(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--; } -buildUnnamed3825() { +buildUnnamed3662() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed3825(core.List<api.EventTag> o) { +checkUnnamed3662(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 = buildUnnamed3825(); + o.eventTags = buildUnnamed3662(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -3648,7 +3648,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed3825(o.eventTags); + checkUnnamed3662(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -3712,14 +3712,14 @@ buildCounterFile--; } -buildUnnamed3826() { +buildUnnamed3663() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed3826(core.List<api.File> o) { +checkUnnamed3663(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 = buildUnnamed3826(); + o.items = buildUnnamed3663(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3743,7 +3743,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3826(o.items); + checkUnnamed3663(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3796,14 +3796,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed3827() { +buildUnnamed3664() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed3827(core.List<api.FloodlightActivity> o) { +checkUnnamed3664(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 = buildUnnamed3827(); + o.floodlightActivities = buildUnnamed3664(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3825,47 +3825,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed3827(o.floodlightActivities); + checkUnnamed3664(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed3828() { +buildUnnamed3665() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed3828(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed3665(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed3829() { +buildUnnamed3666() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed3829(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed3666(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed3830() { +buildUnnamed3667() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3830(core.List<core.String> o) { +checkUnnamed3667(core.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 = buildUnnamed3828(); + o.defaultTags = buildUnnamed3665(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -3896,14 +3896,14 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed3829(); + o.publisherTags = buildUnnamed3666(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed3830(); + o.userDefinedVariableTypes = buildUnnamed3667(); } buildCounterFloodlightActivity--; return o; @@ -3917,7 +3917,7 @@ checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed3828(o.defaultTags); + checkUnnamed3665(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')); - checkUnnamed3829(o.publisherTags); + checkUnnamed3666(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')); - checkUnnamed3830(o.userDefinedVariableTypes); + checkUnnamed3667(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4008,14 +4008,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed3831() { +buildUnnamed3668() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed3831(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed3668(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 = buildUnnamed3831(); + o.floodlightActivityGroups = buildUnnamed3668(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4037,7 +4037,7 @@ checkFloodlightActivityGroupsListResponse(api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed3831(o.floodlightActivityGroups); + checkUnnamed3668(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4073,40 +4073,40 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed3832() { +buildUnnamed3669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3832(core.List<core.String> o) { +checkUnnamed3669(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3833() { +buildUnnamed3670() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed3833(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed3670(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed3834() { +buildUnnamed3671() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed3834(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed3671(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 = buildUnnamed3832(); + o.standardVariableTypes = buildUnnamed3669(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed3833(); - o.userDefinedVariableConfigurations = buildUnnamed3834(); + o.thirdPartyAuthenticationTokens = buildUnnamed3670(); + o.userDefinedVariableConfigurations = buildUnnamed3671(); } buildCounterFloodlightConfiguration--; return o; @@ -4156,23 +4156,23 @@ checkLookbackConfiguration(o.lookbackConfiguration); unittest.expect(o.naturalSearchConversionAttributionOption, unittest.equals('foo')); checkOmnitureSettings(o.omnitureSettings); - checkUnnamed3832(o.standardVariableTypes); + checkUnnamed3669(o.standardVariableTypes); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed3833(o.thirdPartyAuthenticationTokens); - checkUnnamed3834(o.userDefinedVariableConfigurations); + checkUnnamed3670(o.thirdPartyAuthenticationTokens); + checkUnnamed3671(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed3835() { +buildUnnamed3672() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed3835(core.List<api.FloodlightConfiguration> o) { +checkUnnamed3672(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 = buildUnnamed3835(); + o.floodlightConfigurations = buildUnnamed3672(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4193,46 +4193,46 @@ checkFloodlightConfigurationsListResponse(api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed3835(o.floodlightConfigurations); + checkUnnamed3672(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed3836() { +buildUnnamed3673() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3836(core.List<api.Dimension> o) { +checkUnnamed3673(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3837() { +buildUnnamed3674() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3837(core.List<api.Dimension> o) { +checkUnnamed3674(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3838() { +buildUnnamed3675() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3838(core.List<api.Metric> o) { +checkUnnamed3675(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 = buildUnnamed3836(); - o.dimensions = buildUnnamed3837(); + o.dimensionFilters = buildUnnamed3673(); + o.dimensions = buildUnnamed3674(); o.kind = "foo"; - o.metrics = buildUnnamed3838(); + o.metrics = buildUnnamed3675(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4255,10 +4255,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed3836(o.dimensionFilters); - checkUnnamed3837(o.dimensions); + checkUnnamed3673(o.dimensionFilters); + checkUnnamed3674(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3838(o.metrics); + checkUnnamed3675(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4311,66 +4311,66 @@ buildCounterFsCommand--; } -buildUnnamed3839() { +buildUnnamed3676() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed3839(core.List<api.City> o) { +checkUnnamed3676(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed3840() { +buildUnnamed3677() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed3840(core.List<api.Country> o) { +checkUnnamed3677(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed3841() { +buildUnnamed3678() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed3841(core.List<api.Metro> o) { +checkUnnamed3678(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed3842() { +buildUnnamed3679() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed3842(core.List<api.PostalCode> o) { +checkUnnamed3679(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed3843() { +buildUnnamed3680() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed3843(core.List<api.Region> o) { +checkUnnamed3680(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 = buildUnnamed3839(); - o.countries = buildUnnamed3840(); + o.cities = buildUnnamed3676(); + o.countries = buildUnnamed3677(); o.excludeCountries = true; - o.metros = buildUnnamed3841(); - o.postalCodes = buildUnnamed3842(); - o.regions = buildUnnamed3843(); + o.metros = buildUnnamed3678(); + o.postalCodes = buildUnnamed3679(); + o.regions = buildUnnamed3680(); } buildCounterGeoTargeting--; return o; @@ -4395,24 +4395,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed3839(o.cities); - checkUnnamed3840(o.countries); + checkUnnamed3676(o.cities); + checkUnnamed3677(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed3841(o.metros); - checkUnnamed3842(o.postalCodes); - checkUnnamed3843(o.regions); + checkUnnamed3678(o.metros); + checkUnnamed3679(o.postalCodes); + checkUnnamed3680(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed3844() { +buildUnnamed3681() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed3844(core.List<api.AdSlot> o) { +checkUnnamed3681(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 = buildUnnamed3844(); + o.adSlots = buildUnnamed3681(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -4452,7 +4452,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3844(o.adSlots); + checkUnnamed3681(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--; } -buildUnnamed3845() { +buildUnnamed3682() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed3845(core.List<api.InventoryItem> o) { +checkUnnamed3682(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 = buildUnnamed3845(); + o.inventoryItems = buildUnnamed3682(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4504,7 +4504,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed3845(o.inventoryItems); + checkUnnamed3682(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4557,14 +4557,14 @@ buildCounterLandingPage--; } -buildUnnamed3846() { +buildUnnamed3683() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed3846(core.List<api.LandingPage> o) { +checkUnnamed3683(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 = buildUnnamed3846(); + o.landingPages = buildUnnamed3683(); } buildCounterLandingPagesListResponse--; return o; @@ -4586,7 +4586,7 @@ buildCounterLandingPagesListResponse++; if (buildCounterLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3846(o.landingPages); + checkUnnamed3683(o.landingPages); } buildCounterLandingPagesListResponse--; } @@ -4610,14 +4610,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed3847() { +buildUnnamed3684() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed3847(core.List<api.ListPopulationTerm> o) { +checkUnnamed3684(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 = buildUnnamed3847(); + o.terms = buildUnnamed3684(); } buildCounterListPopulationClause--; return o; @@ -4637,19 +4637,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed3847(o.terms); + checkUnnamed3684(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed3848() { +buildUnnamed3685() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed3848(core.List<api.ListPopulationClause> o) { +checkUnnamed3685(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 = buildUnnamed3848(); + o.listPopulationClauses = buildUnnamed3685(); } buildCounterListPopulationRule--; return o; @@ -4673,7 +4673,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed3848(o.listPopulationClauses); + checkUnnamed3685(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -4803,14 +4803,14 @@ buildCounterMetro--; } -buildUnnamed3849() { +buildUnnamed3686() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed3849(core.List<api.Metro> o) { +checkUnnamed3686(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 = buildUnnamed3849(); + o.metros = buildUnnamed3686(); } buildCounterMetrosListResponse--; return o; @@ -4832,7 +4832,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3849(o.metros); + checkUnnamed3686(o.metros); } buildCounterMetrosListResponse--; } @@ -4864,14 +4864,14 @@ buildCounterMobileCarrier--; } -buildUnnamed3850() { +buildUnnamed3687() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed3850(core.List<api.MobileCarrier> o) { +checkUnnamed3687(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 = buildUnnamed3850(); + o.mobileCarriers = buildUnnamed3687(); } buildCounterMobileCarriersListResponse--; return o; @@ -4893,19 +4893,19 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3850(o.mobileCarriers); + checkUnnamed3687(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } -buildUnnamed3851() { +buildUnnamed3688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3851(core.List<core.String> o) { +checkUnnamed3688(core.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 = buildUnnamed3851(); + o.objectIds = buildUnnamed3688(); o.status = "foo"; } buildCounterObjectFilter--; @@ -4928,7 +4928,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3851(o.objectIds); + checkUnnamed3688(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5032,14 +5032,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed3852() { +buildUnnamed3689() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed3852(core.List<api.OperatingSystemVersion> o) { +checkUnnamed3689(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 = buildUnnamed3852(); + o.operatingSystemVersions = buildUnnamed3689(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5061,19 +5061,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3852(o.operatingSystemVersions); + checkUnnamed3689(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed3853() { +buildUnnamed3690() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed3853(core.List<api.OperatingSystem> o) { +checkUnnamed3690(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 = buildUnnamed3853(); + o.operatingSystems = buildUnnamed3690(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5095,7 +5095,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3853(o.operatingSystems); + checkUnnamed3690(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5123,53 +5123,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed3854() { +buildUnnamed3691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3854(core.List<core.String> o) { +checkUnnamed3691(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3855() { +buildUnnamed3692() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed3855(core.List<api.OrderContact> o) { +checkUnnamed3692(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed3856() { +buildUnnamed3693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3856(core.List<core.String> o) { +checkUnnamed3693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3857() { +buildUnnamed3694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3857(core.List<core.String> o) { +checkUnnamed3694(core.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 = buildUnnamed3854(); + o.approverUserProfileIds = buildUnnamed3691(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed3855(); + o.contacts = buildUnnamed3692(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -5196,8 +5196,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed3856(); - o.siteNames = buildUnnamed3857(); + o.siteId = buildUnnamed3693(); + o.siteNames = buildUnnamed3694(); 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')); - checkUnnamed3854(o.approverUserProfileIds); + checkUnnamed3691(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed3855(o.contacts); + checkUnnamed3692(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')); - checkUnnamed3856(o.siteId); - checkUnnamed3857(o.siteNames); + checkUnnamed3693(o.siteId); + checkUnnamed3694(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -5259,27 +5259,27 @@ buildCounterOrderContact--; } -buildUnnamed3858() { +buildUnnamed3695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3858(core.List<core.String> o) { +checkUnnamed3695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3859() { +buildUnnamed3696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3859(core.List<core.String> o) { +checkUnnamed3696(core.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 = buildUnnamed3858(); + o.approvedByUserProfileIds = buildUnnamed3695(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed3859(); + o.lastSentRecipients = buildUnnamed3696(); 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')); - checkUnnamed3858(o.approvedByUserProfileIds); + checkUnnamed3695(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')); - checkUnnamed3859(o.lastSentRecipients); + checkUnnamed3696(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--; } -buildUnnamed3860() { +buildUnnamed3697() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed3860(core.List<api.OrderDocument> o) { +checkUnnamed3697(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 = buildUnnamed3860(); + o.orderDocuments = buildUnnamed3697(); } buildCounterOrderDocumentsListResponse--; return o; @@ -5367,19 +5367,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3860(o.orderDocuments); + checkUnnamed3697(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed3861() { +buildUnnamed3698() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed3861(core.List<api.Order> o) { +checkUnnamed3698(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 = buildUnnamed3861(); + o.orders = buildUnnamed3698(); } buildCounterOrdersListResponse--; return o; @@ -5403,58 +5403,58 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3861(o.orders); + checkUnnamed3698(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed3862() { +buildUnnamed3699() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3862(core.List<api.Dimension> o) { +checkUnnamed3699(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3863() { +buildUnnamed3700() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3863(core.List<api.Dimension> o) { +checkUnnamed3700(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3864() { +buildUnnamed3701() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3864(core.List<api.Metric> o) { +checkUnnamed3701(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3865() { +buildUnnamed3702() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3865(core.List<api.Dimension> o) { +checkUnnamed3702(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 = buildUnnamed3862(); - o.customFloodlightVariables = buildUnnamed3863(); + o.conversionDimensions = buildUnnamed3699(); + o.customFloodlightVariables = buildUnnamed3700(); o.kind = "foo"; - o.metrics = buildUnnamed3864(); - o.perInteractionDimensions = buildUnnamed3865(); + o.metrics = buildUnnamed3701(); + o.perInteractionDimensions = buildUnnamed3702(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -5478,23 +5478,23 @@ checkPathToConversionReportCompatibleFields(api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed3862(o.conversionDimensions); - checkUnnamed3863(o.customFloodlightVariables); + checkUnnamed3699(o.conversionDimensions); + checkUnnamed3700(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3864(o.metrics); - checkUnnamed3865(o.perInteractionDimensions); + checkUnnamed3701(o.metrics); + checkUnnamed3702(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed3866() { +buildUnnamed3703() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3866(core.List<core.String> o) { +checkUnnamed3703(core.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 = buildUnnamed3866(); + o.tagFormats = buildUnnamed3703(); 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')); - checkUnnamed3866(o.tagFormats); + checkUnnamed3703(o.tagFormats); checkTagSetting(o.tagSetting); } buildCounterPlacement--; @@ -5614,14 +5614,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed3867() { +buildUnnamed3704() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3867(core.List<core.String> o) { +checkUnnamed3704(core.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 = buildUnnamed3867(); + o.childPlacementIds = buildUnnamed3704(); 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); - checkUnnamed3867(o.childPlacementIds); + checkUnnamed3704(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -5696,14 +5696,14 @@ buildCounterPlacementGroup--; } -buildUnnamed3868() { +buildUnnamed3705() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed3868(core.List<api.PlacementGroup> o) { +checkUnnamed3705(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 = buildUnnamed3868(); + o.placementGroups = buildUnnamed3705(); } buildCounterPlacementGroupsListResponse--; return o; @@ -5727,19 +5727,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3868(o.placementGroups); + checkUnnamed3705(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed3869() { +buildUnnamed3706() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed3869(core.List<api.PlacementStrategy> o) { +checkUnnamed3706(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 = buildUnnamed3869(); + o.placementStrategies = buildUnnamed3706(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -5763,7 +5763,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3869(o.placementStrategies); + checkUnnamed3706(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -5793,14 +5793,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed3870() { +buildUnnamed3707() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed3870(core.List<api.TagData> o) { +checkUnnamed3707(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 = buildUnnamed3870(); + o.tagDatas = buildUnnamed3707(); } buildCounterPlacementTag--; return o; @@ -5822,19 +5822,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed3870(o.tagDatas); + checkUnnamed3707(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed3871() { +buildUnnamed3708() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed3871(core.List<api.PlacementTag> o) { +checkUnnamed3708(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 = buildUnnamed3871(); + o.placementTags = buildUnnamed3708(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -5856,19 +5856,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3871(o.placementTags); + checkUnnamed3708(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed3872() { +buildUnnamed3709() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed3872(core.List<api.Placement> o) { +checkUnnamed3709(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 = buildUnnamed3872(); + o.placements = buildUnnamed3709(); } buildCounterPlacementsListResponse--; return o; @@ -5892,7 +5892,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3872(o.placements); + checkUnnamed3709(o.placements); } buildCounterPlacementsListResponse--; } @@ -5920,14 +5920,14 @@ buildCounterPlatformType--; } -buildUnnamed3873() { +buildUnnamed3710() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed3873(core.List<api.PlatformType> o) { +checkUnnamed3710(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 = buildUnnamed3873(); + o.platformTypes = buildUnnamed3710(); } buildCounterPlatformTypesListResponse--; return o; @@ -5949,7 +5949,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3873(o.platformTypes); + checkUnnamed3710(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6016,14 +6016,14 @@ buildCounterPostalCode--; } -buildUnnamed3874() { +buildUnnamed3711() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed3874(core.List<api.PostalCode> o) { +checkUnnamed3711(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 = buildUnnamed3874(); + o.postalCodes = buildUnnamed3711(); } buildCounterPostalCodesListResponse--; return o; @@ -6045,19 +6045,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3874(o.postalCodes); + checkUnnamed3711(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed3875() { +buildUnnamed3712() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed3875(core.List<api.Flight> o) { +checkUnnamed3712(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 = buildUnnamed3875(); + o.flights = buildUnnamed3712(); 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"))); - checkUnnamed3875(o.flights); + checkUnnamed3712(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--; } -buildUnnamed3876() { +buildUnnamed3713() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed3876(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed3713(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 = buildUnnamed3876(); + o.pricingPeriods = buildUnnamed3713(); 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')); - checkUnnamed3876(o.pricingPeriods); + checkUnnamed3713(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--; } -buildUnnamed3877() { +buildUnnamed3714() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed3877(core.List<api.Project> o) { +checkUnnamed3714(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 = buildUnnamed3877(); + o.projects = buildUnnamed3714(); } buildCounterProjectsListResponse--; return o; @@ -6257,71 +6257,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3877(o.projects); + checkUnnamed3714(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed3878() { +buildUnnamed3715() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3878(core.List<api.Dimension> o) { +checkUnnamed3715(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3879() { +buildUnnamed3716() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3879(core.List<api.Dimension> o) { +checkUnnamed3716(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3880() { +buildUnnamed3717() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3880(core.List<api.Metric> o) { +checkUnnamed3717(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3881() { +buildUnnamed3718() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3881(core.List<api.Metric> o) { +checkUnnamed3718(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3882() { +buildUnnamed3719() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3882(core.List<api.Metric> o) { +checkUnnamed3719(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 = buildUnnamed3878(); - o.dimensions = buildUnnamed3879(); + o.dimensionFilters = buildUnnamed3715(); + o.dimensions = buildUnnamed3716(); o.kind = "foo"; - o.metrics = buildUnnamed3880(); - o.pivotedActivityMetrics = buildUnnamed3881(); - o.reachByFrequencyMetrics = buildUnnamed3882(); + o.metrics = buildUnnamed3717(); + o.pivotedActivityMetrics = buildUnnamed3718(); + o.reachByFrequencyMetrics = buildUnnamed3719(); } buildCounterReachReportCompatibleFields--; return o; @@ -6346,12 +6346,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed3878(o.dimensionFilters); - checkUnnamed3879(o.dimensions); + checkUnnamed3715(o.dimensionFilters); + checkUnnamed3716(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3880(o.metrics); - checkUnnamed3881(o.pivotedActivityMetrics); - checkUnnamed3882(o.reachByFrequencyMetrics); + checkUnnamed3717(o.metrics); + checkUnnamed3718(o.pivotedActivityMetrics); + checkUnnamed3719(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -6408,14 +6408,14 @@ buildCounterRegion--; } -buildUnnamed3883() { +buildUnnamed3720() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed3883(core.List<api.Region> o) { +checkUnnamed3720(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 = buildUnnamed3883(); + o.regions = buildUnnamed3720(); } buildCounterRegionsListResponse--; return o; @@ -6437,7 +6437,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3883(o.regions); + checkUnnamed3720(o.regions); } buildCounterRegionsListResponse--; } @@ -6485,27 +6485,27 @@ buildCounterRemarketingList--; } -buildUnnamed3884() { +buildUnnamed3721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3884(core.List<core.String> o) { +checkUnnamed3721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3885() { +buildUnnamed3722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3885(core.List<core.String> o) { +checkUnnamed3722(core.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 = buildUnnamed3884(); - o.sharedAdvertiserIds = buildUnnamed3885(); + o.sharedAccountIds = buildUnnamed3721(); + o.sharedAdvertiserIds = buildUnnamed3722(); } buildCounterRemarketingListShare--; return o; @@ -6530,20 +6530,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed3884(o.sharedAccountIds); - checkUnnamed3885(o.sharedAdvertiserIds); + checkUnnamed3721(o.sharedAccountIds); + checkUnnamed3722(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed3886() { +buildUnnamed3723() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed3886(core.List<api.RemarketingList> o) { +checkUnnamed3723(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 = buildUnnamed3886(); + o.remarketingLists = buildUnnamed3723(); } buildCounterRemarketingListsListResponse--; return o; @@ -6567,45 +6567,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3886(o.remarketingLists); + checkUnnamed3723(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed3887() { +buildUnnamed3724() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3887(core.List<api.DimensionValue> o) { +checkUnnamed3724(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3888() { +buildUnnamed3725() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3888(core.List<api.SortedDimension> o) { +checkUnnamed3725(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3889() { +buildUnnamed3726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3889(core.List<core.String> o) { +checkUnnamed3726(core.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 = buildUnnamed3887(); - o.dimensions = buildUnnamed3888(); - o.metricNames = buildUnnamed3889(); + o.dimensionFilters = buildUnnamed3724(); + o.dimensions = buildUnnamed3725(); + o.metricNames = buildUnnamed3726(); } buildCounterReportCriteria--; return o; @@ -6633,60 +6633,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed3887(o.dimensionFilters); - checkUnnamed3888(o.dimensions); - checkUnnamed3889(o.metricNames); + checkUnnamed3724(o.dimensionFilters); + checkUnnamed3725(o.dimensions); + checkUnnamed3726(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed3890() { +buildUnnamed3727() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3890(core.List<api.SortedDimension> o) { +checkUnnamed3727(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3891() { +buildUnnamed3728() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3891(core.List<api.DimensionValue> o) { +checkUnnamed3728(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3892() { +buildUnnamed3729() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3892(core.List<core.String> o) { +checkUnnamed3729(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3893() { +buildUnnamed3730() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3893(core.List<core.String> o) { +checkUnnamed3730(core.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 = buildUnnamed3890(); + o.breakdown = buildUnnamed3727(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed3891(); - o.metricNames = buildUnnamed3892(); - o.overlapMetricNames = buildUnnamed3893(); + o.dimensionFilters = buildUnnamed3728(); + o.metricNames = buildUnnamed3729(); + o.overlapMetricNames = buildUnnamed3730(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -6712,25 +6712,25 @@ checkReportCrossDimensionReachCriteria(api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed3890(o.breakdown); + checkUnnamed3727(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed3891(o.dimensionFilters); - checkUnnamed3892(o.metricNames); - checkUnnamed3893(o.overlapMetricNames); + checkUnnamed3728(o.dimensionFilters); + checkUnnamed3729(o.metricNames); + checkUnnamed3730(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed3894() { +buildUnnamed3731() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed3894(core.List<api.Recipient> o) { +checkUnnamed3731(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 = buildUnnamed3894(); + o.recipients = buildUnnamed3731(); } 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')); - checkUnnamed3894(o.recipients); + checkUnnamed3731(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed3895() { +buildUnnamed3732() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3895(core.List<api.DimensionValue> o) { +checkUnnamed3732(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3896() { +buildUnnamed3733() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3896(core.List<api.DimensionValue> o) { +checkUnnamed3733(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3897() { +buildUnnamed3734() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3897(core.List<api.SortedDimension> o) { +checkUnnamed3734(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3898() { +buildUnnamed3735() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3898(core.List<core.String> o) { +checkUnnamed3735(core.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 = buildUnnamed3895(); + o.customRichMediaEvents = buildUnnamed3732(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed3896(); - o.dimensions = buildUnnamed3897(); + o.dimensionFilters = buildUnnamed3733(); + o.dimensions = buildUnnamed3734(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3898(); + o.metricNames = buildUnnamed3735(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -6856,90 +6856,90 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed3895(o.customRichMediaEvents); + checkUnnamed3732(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed3896(o.dimensionFilters); - checkUnnamed3897(o.dimensions); + checkUnnamed3733(o.dimensionFilters); + checkUnnamed3734(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed3898(o.metricNames); + checkUnnamed3735(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed3899() { +buildUnnamed3736() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3899(core.List<api.DimensionValue> o) { +checkUnnamed3736(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3900() { +buildUnnamed3737() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3900(core.List<api.SortedDimension> o) { +checkUnnamed3737(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3901() { +buildUnnamed3738() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3901(core.List<api.SortedDimension> o) { +checkUnnamed3738(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3902() { +buildUnnamed3739() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3902(core.List<api.DimensionValue> o) { +checkUnnamed3739(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3903() { +buildUnnamed3740() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3903(core.List<core.String> o) { +checkUnnamed3740(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3904() { +buildUnnamed3741() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3904(core.List<api.SortedDimension> o) { +checkUnnamed3741(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 = buildUnnamed3899(); - o.conversionDimensions = buildUnnamed3900(); - o.customFloodlightVariables = buildUnnamed3901(); - o.customRichMediaEvents = buildUnnamed3902(); + o.activityFilters = buildUnnamed3736(); + o.conversionDimensions = buildUnnamed3737(); + o.customFloodlightVariables = buildUnnamed3738(); + o.customRichMediaEvents = buildUnnamed3739(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed3903(); - o.perInteractionDimensions = buildUnnamed3904(); + o.metricNames = buildUnnamed3740(); + o.perInteractionDimensions = buildUnnamed3741(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7002,66 +7002,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed3899(o.activityFilters); - checkUnnamed3900(o.conversionDimensions); - checkUnnamed3901(o.customFloodlightVariables); - checkUnnamed3902(o.customRichMediaEvents); + checkUnnamed3736(o.activityFilters); + checkUnnamed3737(o.conversionDimensions); + checkUnnamed3738(o.customFloodlightVariables); + checkUnnamed3739(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed3903(o.metricNames); - checkUnnamed3904(o.perInteractionDimensions); + checkUnnamed3740(o.metricNames); + checkUnnamed3741(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed3905() { +buildUnnamed3742() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed3905(core.List<api.DimensionValue> o) { +checkUnnamed3742(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed3906() { +buildUnnamed3743() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed3906(core.List<api.SortedDimension> o) { +checkUnnamed3743(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed3907() { +buildUnnamed3744() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3907(core.List<core.String> o) { +checkUnnamed3744(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3908() { +buildUnnamed3745() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3908(core.List<core.String> o) { +checkUnnamed3745(core.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 = buildUnnamed3905(); - o.dimensions = buildUnnamed3906(); + o.dimensionFilters = buildUnnamed3742(); + o.dimensions = buildUnnamed3743(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed3907(); - o.reachByFrequencyMetricNames = buildUnnamed3908(); + o.metricNames = buildUnnamed3744(); + o.reachByFrequencyMetricNames = buildUnnamed3745(); } buildCounterReportReachCriteria--; return o; @@ -7091,23 +7091,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed3905(o.dimensionFilters); - checkUnnamed3906(o.dimensions); + checkUnnamed3742(o.dimensionFilters); + checkUnnamed3743(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed3907(o.metricNames); - checkUnnamed3908(o.reachByFrequencyMetricNames); + checkUnnamed3744(o.metricNames); + checkUnnamed3745(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed3909() { +buildUnnamed3746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3909(core.List<core.String> o) { +checkUnnamed3746(core.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 = buildUnnamed3909(); + o.repeatsOnWeekDays = buildUnnamed3746(); 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')); - checkUnnamed3909(o.repeatsOnWeekDays); + checkUnnamed3746(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--; } -buildUnnamed3910() { +buildUnnamed3747() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3910(core.List<api.Dimension> o) { +checkUnnamed3747(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3911() { +buildUnnamed3748() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed3911(core.List<api.Dimension> o) { +checkUnnamed3748(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed3912() { +buildUnnamed3749() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3912(core.List<api.Metric> o) { +checkUnnamed3749(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed3913() { +buildUnnamed3750() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed3913(core.List<api.Metric> o) { +checkUnnamed3750(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 = buildUnnamed3910(); - o.dimensions = buildUnnamed3911(); + o.dimensionFilters = buildUnnamed3747(); + o.dimensions = buildUnnamed3748(); o.kind = "foo"; - o.metrics = buildUnnamed3912(); - o.pivotedActivityMetrics = buildUnnamed3913(); + o.metrics = buildUnnamed3749(); + o.pivotedActivityMetrics = buildUnnamed3750(); } buildCounterReportCompatibleFields--; return o; @@ -7267,23 +7267,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed3910(o.dimensionFilters); - checkUnnamed3911(o.dimensions); + checkUnnamed3747(o.dimensionFilters); + checkUnnamed3748(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3912(o.metrics); - checkUnnamed3913(o.pivotedActivityMetrics); + checkUnnamed3749(o.metrics); + checkUnnamed3750(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed3914() { +buildUnnamed3751() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed3914(core.List<api.Report> o) { +checkUnnamed3751(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 = buildUnnamed3914(); + o.items = buildUnnamed3751(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -7307,7 +7307,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3914(o.items); + checkUnnamed3751(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -7360,14 +7360,14 @@ buildCounterRichMediaExitOverride--; } -buildUnnamed3915() { +buildUnnamed3752() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed3915(core.List<api.SiteContact> o) { +checkUnnamed3752(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 = buildUnnamed3915(); + o.siteContacts = buildUnnamed3752(); 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')); - checkUnnamed3915(o.siteContacts); + checkUnnamed3752(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); } @@ -7478,14 +7478,14 @@ buildCounterSiteSettings--; } -buildUnnamed3916() { +buildUnnamed3753() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed3916(core.List<api.Site> o) { +checkUnnamed3753(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 = buildUnnamed3916(); + o.sites = buildUnnamed3753(); } buildCounterSitesListResponse--; return o; @@ -7509,7 +7509,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3916(o.sites); + checkUnnamed3753(o.sites); } buildCounterSitesListResponse--; } @@ -7541,14 +7541,14 @@ buildCounterSize--; } -buildUnnamed3917() { +buildUnnamed3754() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed3917(core.List<api.Size> o) { +checkUnnamed3754(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 = buildUnnamed3917(); + o.sizes = buildUnnamed3754(); } buildCounterSizesListResponse--; return o; @@ -7570,7 +7570,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3917(o.sizes); + checkUnnamed3754(o.sizes); } buildCounterSizesListResponse--; } @@ -7598,14 +7598,14 @@ buildCounterSortedDimension--; } -buildUnnamed3918() { +buildUnnamed3755() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3918(core.List<core.String> o) { +checkUnnamed3755(core.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 = buildUnnamed3918(); + o.availablePermissionIds = buildUnnamed3755(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -7630,7 +7630,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3918(o.availablePermissionIds); + checkUnnamed3755(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--; } -buildUnnamed3919() { +buildUnnamed3756() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed3919(core.List<api.Subaccount> o) { +checkUnnamed3756(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 = buildUnnamed3919(); + o.subaccounts = buildUnnamed3756(); } buildCounterSubaccountsListResponse--; return o; @@ -7669,7 +7669,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3919(o.subaccounts); + checkUnnamed3756(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -7809,14 +7809,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed3920() { +buildUnnamed3757() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed3920(core.List<api.TargetableRemarketingList> o) { +checkUnnamed3757(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 = buildUnnamed3920(); + o.targetableRemarketingLists = buildUnnamed3757(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -7840,84 +7840,84 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3920(o.targetableRemarketingLists); + checkUnnamed3757(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } -buildUnnamed3921() { +buildUnnamed3758() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed3921(core.List<api.Browser> o) { +checkUnnamed3758(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed3922() { +buildUnnamed3759() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed3922(core.List<api.ConnectionType> o) { +checkUnnamed3759(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed3923() { +buildUnnamed3760() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed3923(core.List<api.MobileCarrier> o) { +checkUnnamed3760(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed3924() { +buildUnnamed3761() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed3924(core.List<api.OperatingSystemVersion> o) { +checkUnnamed3761(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed3925() { +buildUnnamed3762() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed3925(core.List<api.OperatingSystem> o) { +checkUnnamed3762(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed3926() { +buildUnnamed3763() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed3926(core.List<api.PlatformType> o) { +checkUnnamed3763(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 = buildUnnamed3921(); - o.connectionTypes = buildUnnamed3922(); - o.mobileCarriers = buildUnnamed3923(); - o.operatingSystemVersions = buildUnnamed3924(); - o.operatingSystems = buildUnnamed3925(); - o.platformTypes = buildUnnamed3926(); + o.browsers = buildUnnamed3758(); + o.connectionTypes = buildUnnamed3759(); + o.mobileCarriers = buildUnnamed3760(); + o.operatingSystemVersions = buildUnnamed3761(); + o.operatingSystems = buildUnnamed3762(); + o.platformTypes = buildUnnamed3763(); } buildCounterTechnologyTargeting--; return o; @@ -7942,12 +7942,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed3921(o.browsers); - checkUnnamed3922(o.connectionTypes); - checkUnnamed3923(o.mobileCarriers); - checkUnnamed3924(o.operatingSystemVersions); - checkUnnamed3925(o.operatingSystems); - checkUnnamed3926(o.platformTypes); + checkUnnamed3758(o.browsers); + checkUnnamed3759(o.connectionTypes); + checkUnnamed3760(o.mobileCarriers); + checkUnnamed3761(o.operatingSystemVersions); + checkUnnamed3762(o.operatingSystems); + checkUnnamed3763(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -8050,14 +8050,14 @@ buildCounterUserProfile--; } -buildUnnamed3927() { +buildUnnamed3764() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed3927(core.List<api.UserProfile> o) { +checkUnnamed3764(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 = buildUnnamed3927(); + o.items = buildUnnamed3764(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -8080,20 +8080,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3927(o.items); + checkUnnamed3764(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed3928() { +buildUnnamed3765() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed3928(core.List<api.UserRolePermission> o) { +checkUnnamed3765(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 = buildUnnamed3928(); + o.permissions = buildUnnamed3765(); 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')); - checkUnnamed3928(o.permissions); + checkUnnamed3765(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -8182,14 +8182,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed3929() { +buildUnnamed3766() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed3929(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed3766(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 = buildUnnamed3929(); + o.userRolePermissionGroups = buildUnnamed3766(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -8211,19 +8211,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3929(o.userRolePermissionGroups); + checkUnnamed3766(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed3930() { +buildUnnamed3767() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed3930(core.List<api.UserRolePermission> o) { +checkUnnamed3767(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 = buildUnnamed3930(); + o.userRolePermissions = buildUnnamed3767(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -8245,19 +8245,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3930(o.userRolePermissions); + checkUnnamed3767(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed3931() { +buildUnnamed3768() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed3931(core.List<api.UserRole> o) { +checkUnnamed3768(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 = buildUnnamed3931(); + o.userRoles = buildUnnamed3768(); } buildCounterUserRolesListResponse--; return o; @@ -8281,1137 +8281,1137 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3931(o.userRoles); + checkUnnamed3768(o.userRoles); } buildCounterUserRolesListResponse--; } -buildUnnamed3932() { +buildUnnamed3769() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3932(core.List<core.String> o) { +checkUnnamed3769(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3933() { +buildUnnamed3770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3933(core.List<core.String> o) { +checkUnnamed3770(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3934() { +buildUnnamed3771() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3934(core.List<core.String> o) { +checkUnnamed3771(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3935() { +buildUnnamed3772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3935(core.List<core.String> o) { +checkUnnamed3772(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3936() { +buildUnnamed3773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3936(core.List<core.String> o) { +checkUnnamed3773(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3937() { +buildUnnamed3774() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3937(core.List<core.String> o) { +checkUnnamed3774(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3938() { +buildUnnamed3775() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3938(core.List<core.String> o) { +checkUnnamed3775(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3939() { +buildUnnamed3776() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3939(core.List<core.String> o) { +checkUnnamed3776(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3940() { +buildUnnamed3777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3940(core.List<core.String> o) { +checkUnnamed3777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3941() { +buildUnnamed3778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3941(core.List<core.String> o) { +checkUnnamed3778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3942() { +buildUnnamed3779() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3942(core.List<core.String> o) { +checkUnnamed3779(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3943() { +buildUnnamed3780() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3943(core.List<core.String> o) { +checkUnnamed3780(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3944() { +buildUnnamed3781() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3944(core.List<core.String> o) { +checkUnnamed3781(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3945() { +buildUnnamed3782() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3945(core.List<core.String> o) { +checkUnnamed3782(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3946() { +buildUnnamed3783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3946(core.List<core.String> o) { +checkUnnamed3783(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3947() { +buildUnnamed3784() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3947(core.List<core.String> o) { +checkUnnamed3784(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3948() { +buildUnnamed3785() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3948(core.List<core.String> o) { +checkUnnamed3785(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3949() { +buildUnnamed3786() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3949(core.List<core.String> o) { +checkUnnamed3786(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3950() { +buildUnnamed3787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3950(core.List<core.String> o) { +checkUnnamed3787(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3951() { +buildUnnamed3788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3951(core.List<core.String> o) { +checkUnnamed3788(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3952() { +buildUnnamed3789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3952(core.List<core.String> o) { +checkUnnamed3789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3953() { +buildUnnamed3790() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3953(core.List<core.String> o) { +checkUnnamed3790(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3954() { +buildUnnamed3791() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3954(core.List<core.String> o) { +checkUnnamed3791(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3955() { +buildUnnamed3792() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3955(core.List<core.String> o) { +checkUnnamed3792(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3956() { +buildUnnamed3793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3956(core.List<core.String> o) { +checkUnnamed3793(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3957() { +buildUnnamed3794() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3957(core.List<core.String> o) { +checkUnnamed3794(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3958() { +buildUnnamed3795() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3958(core.List<core.String> o) { +checkUnnamed3795(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3959() { +buildUnnamed3796() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3959(core.List<core.String> o) { +checkUnnamed3796(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3960() { +buildUnnamed3797() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3960(core.List<core.String> o) { +checkUnnamed3797(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3961() { +buildUnnamed3798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3961(core.List<core.String> o) { +checkUnnamed3798(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3962() { +buildUnnamed3799() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3962(core.List<core.String> o) { +checkUnnamed3799(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3963() { +buildUnnamed3800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3963(core.List<core.String> o) { +checkUnnamed3800(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3964() { +buildUnnamed3801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3964(core.List<core.String> o) { +checkUnnamed3801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3965() { +buildUnnamed3802() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3965(core.List<core.String> o) { +checkUnnamed3802(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3966() { +buildUnnamed3803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3966(core.List<core.String> o) { +checkUnnamed3803(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3967() { +buildUnnamed3804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3967(core.List<core.String> o) { +checkUnnamed3804(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3968() { +buildUnnamed3805() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3968(core.List<core.String> o) { +checkUnnamed3805(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3969() { +buildUnnamed3806() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3969(core.List<core.String> o) { +checkUnnamed3806(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3970() { +buildUnnamed3807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3970(core.List<core.String> o) { +checkUnnamed3807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3971() { +buildUnnamed3808() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3971(core.List<core.String> o) { +checkUnnamed3808(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3972() { +buildUnnamed3809() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3972(core.List<core.String> o) { +checkUnnamed3809(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3973() { +buildUnnamed3810() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3973(core.List<core.String> o) { +checkUnnamed3810(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3974() { +buildUnnamed3811() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3974(core.List<core.String> o) { +checkUnnamed3811(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3975() { +buildUnnamed3812() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3975(core.List<core.String> o) { +checkUnnamed3812(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3976() { +buildUnnamed3813() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3976(core.List<core.String> o) { +checkUnnamed3813(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3977() { +buildUnnamed3814() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3977(core.List<core.String> o) { +checkUnnamed3814(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3978() { +buildUnnamed3815() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3978(core.List<core.String> o) { +checkUnnamed3815(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3979() { +buildUnnamed3816() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3979(core.List<core.String> o) { +checkUnnamed3816(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3980() { +buildUnnamed3817() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3980(core.List<core.String> o) { +checkUnnamed3817(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3981() { +buildUnnamed3818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3981(core.List<core.String> o) { +checkUnnamed3818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3982() { +buildUnnamed3819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3982(core.List<core.String> o) { +checkUnnamed3819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3983() { +buildUnnamed3820() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3983(core.List<core.String> o) { +checkUnnamed3820(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3984() { +buildUnnamed3821() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3984(core.List<core.String> o) { +checkUnnamed3821(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3985() { +buildUnnamed3822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3985(core.List<core.String> o) { +checkUnnamed3822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3986() { +buildUnnamed3823() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3986(core.List<core.String> o) { +checkUnnamed3823(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3987() { +buildUnnamed3824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3987(core.List<core.String> o) { +checkUnnamed3824(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3988() { +buildUnnamed3825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3988(core.List<core.String> o) { +checkUnnamed3825(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3989() { +buildUnnamed3826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3989(core.List<core.String> o) { +checkUnnamed3826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3990() { +buildUnnamed3827() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3990(core.List<core.String> o) { +checkUnnamed3827(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3991() { +buildUnnamed3828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3991(core.List<core.String> o) { +checkUnnamed3828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3992() { +buildUnnamed3829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3992(core.List<core.String> o) { +checkUnnamed3829(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3993() { +buildUnnamed3830() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3993(core.List<core.String> o) { +checkUnnamed3830(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3994() { +buildUnnamed3831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3994(core.List<core.String> o) { +checkUnnamed3831(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3995() { +buildUnnamed3832() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3995(core.List<core.String> o) { +checkUnnamed3832(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3996() { +buildUnnamed3833() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3996(core.List<core.String> o) { +checkUnnamed3833(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3997() { +buildUnnamed3834() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3997(core.List<core.String> o) { +checkUnnamed3834(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3998() { +buildUnnamed3835() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3998(core.List<core.String> o) { +checkUnnamed3835(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3999() { +buildUnnamed3836() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3999(core.List<core.String> o) { +checkUnnamed3836(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4000() { +buildUnnamed3837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4000(core.List<core.String> o) { +checkUnnamed3837(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4001() { +buildUnnamed3838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4001(core.List<core.String> o) { +checkUnnamed3838(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4002() { +buildUnnamed3839() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4002(core.List<core.String> o) { +checkUnnamed3839(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4003() { +buildUnnamed3840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4003(core.List<core.String> o) { +checkUnnamed3840(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4004() { +buildUnnamed3841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4004(core.List<core.String> o) { +checkUnnamed3841(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4005() { +buildUnnamed3842() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4005(core.List<core.String> o) { +checkUnnamed3842(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4006() { +buildUnnamed3843() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4006(core.List<core.String> o) { +checkUnnamed3843(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4007() { +buildUnnamed3844() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4007(core.List<core.String> o) { +checkUnnamed3844(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4008() { +buildUnnamed3845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4008(core.List<core.String> o) { +checkUnnamed3845(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4009() { +buildUnnamed3846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4009(core.List<core.String> o) { +checkUnnamed3846(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4010() { +buildUnnamed3847() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4010(core.List<core.String> o) { +checkUnnamed3847(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4011() { +buildUnnamed3848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4011(core.List<core.String> o) { +checkUnnamed3848(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4012() { +buildUnnamed3849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4012(core.List<core.String> o) { +checkUnnamed3849(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4013() { +buildUnnamed3850() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4013(core.List<core.String> o) { +checkUnnamed3850(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4014() { +buildUnnamed3851() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4014(core.List<core.String> o) { +checkUnnamed3851(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4015() { +buildUnnamed3852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4015(core.List<core.String> o) { +checkUnnamed3852(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4016() { +buildUnnamed3853() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4016(core.List<core.String> o) { +checkUnnamed3853(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4017() { +buildUnnamed3854() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4017(core.List<core.String> o) { +checkUnnamed3854(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4018() { +buildUnnamed3855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4018(core.List<core.String> o) { +checkUnnamed3855(core.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 = buildUnnamed3932(); + var arg_ids = buildUnnamed3769(); 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 = buildUnnamed3933(); + var arg_ids = buildUnnamed3770(); 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 = buildUnnamed3934(); - var arg_campaignIds = buildUnnamed3935(); + var arg_audienceSegmentIds = buildUnnamed3771(); + var arg_campaignIds = buildUnnamed3772(); var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed3936(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed3937(); + var arg_creativeIds = buildUnnamed3773(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed3774(); var arg_creativeType = "foo"; var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed3938(); - var arg_landingPageIds = buildUnnamed3939(); + var arg_ids = buildUnnamed3775(); + var arg_landingPageIds = buildUnnamed3776(); var arg_maxResults = 42; var arg_overriddenEventTagId = "foo"; var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed3940(); - var arg_remarketingListIds = buildUnnamed3941(); + var arg_placementIds = buildUnnamed3777(); + var arg_remarketingListIds = buildUnnamed3778(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3942(); + var arg_sizeIds = buildUnnamed3779(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_sslCompliant = true; var arg_sslRequired = true; - var arg_type = buildUnnamed3943(); + var arg_type = buildUnnamed3780(); 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 = buildUnnamed3944(); + var arg_ids = buildUnnamed3781(); 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 = buildUnnamed3945(); - var arg_floodlightConfigurationIds = buildUnnamed3946(); - var arg_ids = buildUnnamed3947(); + var arg_advertiserGroupIds = buildUnnamed3782(); + var arg_floodlightConfigurationIds = buildUnnamed3783(); + var arg_ids = buildUnnamed3784(); 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 = buildUnnamed3948(); - var arg_advertiserIds = buildUnnamed3949(); + var arg_advertiserGroupIds = buildUnnamed3785(); + var arg_advertiserIds = buildUnnamed3786(); var arg_archived = true; var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed3950(); - var arg_ids = buildUnnamed3951(); + var arg_excludedIds = buildUnnamed3787(); + var arg_ids = buildUnnamed3788(); 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 = buildUnnamed3952(); + var arg_ids = buildUnnamed3789(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed3953(); + var arg_objectIds = buildUnnamed3790(); var arg_objectType = "foo"; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed3954(); + var arg_userProfileIds = buildUnnamed3791(); 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 = buildUnnamed3955(); - var arg_dartIds = buildUnnamed3956(); + var arg_countryDartIds = buildUnnamed3792(); + var arg_dartIds = buildUnnamed3793(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed3957(); + var arg_regionDartIds = buildUnnamed3794(); 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 = buildUnnamed3958(); + var arg_ids = buildUnnamed3795(); 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 = buildUnnamed3959(); + var arg_ids = buildUnnamed3796(); 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 = buildUnnamed3960(); - var arg_ids = buildUnnamed3961(); + var arg_advertiserIds = buildUnnamed3797(); + var arg_ids = buildUnnamed3798(); 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 = buildUnnamed3962(); + var arg_advertiserIds = buildUnnamed3799(); var arg_groupNumber = 42; - var arg_ids = buildUnnamed3963(); + var arg_ids = buildUnnamed3800(); 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 = buildUnnamed3964(); - var arg_creativeFieldIds = buildUnnamed3965(); - var arg_ids = buildUnnamed3966(); + var arg_companionCreativeIds = buildUnnamed3801(); + var arg_creativeFieldIds = buildUnnamed3802(); + var arg_ids = buildUnnamed3803(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed3967(); + var arg_renderingIds = buildUnnamed3804(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed3968(); + var arg_sizeIds = buildUnnamed3805(); var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed3969(); + var arg_types = buildUnnamed3806(); 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 = buildUnnamed3970(); - var arg_ids = buildUnnamed3971(); + var arg_directorySiteIds = buildUnnamed3807(); + var arg_ids = buildUnnamed3808(); 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 = buildUnnamed3972(); + var arg_ids = buildUnnamed3809(); 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 = buildUnnamed3973(); + var arg_names = buildUnnamed3810(); 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 = buildUnnamed3974(); - var arg_ids = buildUnnamed3975(); + var arg_eventTagTypes = buildUnnamed3811(); + var arg_ids = buildUnnamed3812(); 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 = buildUnnamed3976(); + var arg_floodlightActivityGroupIds = buildUnnamed3813(); var arg_floodlightActivityGroupName = "foo"; var arg_floodlightActivityGroupTagString = "foo"; var arg_floodlightActivityGroupType = "foo"; var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed3977(); + var arg_ids = buildUnnamed3814(); 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 = buildUnnamed3978(); + var arg_ids = buildUnnamed3815(); 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 = buildUnnamed3979(); + var arg_ids = buildUnnamed3816(); 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 = buildUnnamed3980(); + var arg_ids = buildUnnamed3817(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed3981(); + var arg_orderId = buildUnnamed3818(); var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed3982(); + var arg_siteId = buildUnnamed3819(); 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 = buildUnnamed3983(); + var arg_ids = buildUnnamed3820(); var arg_maxResults = 42; - var arg_orderId = buildUnnamed3984(); + var arg_orderId = buildUnnamed3821(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3985(); + var arg_siteId = buildUnnamed3822(); 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 = buildUnnamed3986(); + var arg_ids = buildUnnamed3823(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed3987(); + var arg_siteId = buildUnnamed3824(); 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 = buildUnnamed3988(); + var arg_advertiserIds = buildUnnamed3825(); var arg_archived = true; - var arg_campaignIds = buildUnnamed3989(); - var arg_contentCategoryIds = buildUnnamed3990(); - var arg_directorySiteIds = buildUnnamed3991(); - var arg_ids = buildUnnamed3992(); + var arg_campaignIds = buildUnnamed3826(); + var arg_contentCategoryIds = buildUnnamed3827(); + var arg_directorySiteIds = buildUnnamed3828(); + var arg_ids = buildUnnamed3829(); 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 = buildUnnamed3993(); - var arg_pricingTypes = buildUnnamed3994(); + var arg_placementStrategyIds = buildUnnamed3830(); + var arg_pricingTypes = buildUnnamed3831(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed3995(); + var arg_siteIds = buildUnnamed3832(); 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 = buildUnnamed3996(); + var arg_ids = buildUnnamed3833(); 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 = buildUnnamed3997(); - var arg_tagFormats = buildUnnamed3998(); + var arg_placementIds = buildUnnamed3834(); + var arg_tagFormats = buildUnnamed3835(); 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 = buildUnnamed3999(); + var arg_advertiserIds = buildUnnamed3836(); var arg_archived = true; - var arg_campaignIds = buildUnnamed4000(); - var arg_compatibilities = buildUnnamed4001(); - var arg_contentCategoryIds = buildUnnamed4002(); - var arg_directorySiteIds = buildUnnamed4003(); - var arg_groupIds = buildUnnamed4004(); - var arg_ids = buildUnnamed4005(); + var arg_campaignIds = buildUnnamed3837(); + var arg_compatibilities = buildUnnamed3838(); + var arg_contentCategoryIds = buildUnnamed3839(); + var arg_directorySiteIds = buildUnnamed3840(); + var arg_groupIds = buildUnnamed3841(); + var arg_ids = buildUnnamed3842(); 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 = buildUnnamed4006(); - var arg_pricingTypes = buildUnnamed4007(); + var arg_placementStrategyIds = buildUnnamed3843(); + var arg_pricingTypes = buildUnnamed3844(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed4008(); - var arg_sizeIds = buildUnnamed4009(); + var arg_siteIds = buildUnnamed3845(); + var arg_sizeIds = buildUnnamed3846(); 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 = buildUnnamed4010(); - var arg_ids = buildUnnamed4011(); + var arg_advertiserIds = buildUnnamed3847(); + var arg_ids = buildUnnamed3848(); 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 = buildUnnamed4012(); - var arg_directorySiteIds = buildUnnamed4013(); - var arg_ids = buildUnnamed4014(); + var arg_campaignIds = buildUnnamed3849(); + var arg_directorySiteIds = buildUnnamed3850(); + var arg_ids = buildUnnamed3851(); 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 = buildUnnamed4015(); + var arg_ids = buildUnnamed3852(); 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 = buildUnnamed4016(); + var arg_ids = buildUnnamed3853(); 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 = buildUnnamed4017(); + var arg_ids = buildUnnamed3854(); 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 = buildUnnamed4018(); + var arg_ids = buildUnnamed3855(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_searchString = "foo";
diff --git a/generated/googleapis_beta/test/dns/v2beta1_test.dart b/generated/googleapis_beta/test/dns/v2beta1_test.dart index b2b0821..c944c80 100644 --- a/generated/googleapis_beta/test/dns/v2beta1_test.dart +++ b/generated/googleapis_beta/test/dns/v2beta1_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4136() { +buildUnnamed3973() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed4136(core.List<api.ResourceRecordSet> o) { +checkUnnamed3973(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed4137() { +buildUnnamed3974() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed4137(core.List<api.ResourceRecordSet> o) { +checkUnnamed3974(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 = buildUnnamed4136(); - o.deletions = buildUnnamed4137(); + o.additions = buildUnnamed3973(); + o.deletions = buildUnnamed3974(); o.id = "foo"; o.isServing = true; o.kind = "foo"; @@ -97,8 +97,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed4136(o.additions); - checkUnnamed4137(o.deletions); + checkUnnamed3973(o.additions); + checkUnnamed3974(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isServing, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -108,14 +108,14 @@ buildCounterChange--; } -buildUnnamed4138() { +buildUnnamed3975() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed4138(core.List<api.Change> o) { +checkUnnamed3975(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -126,7 +126,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed4138(); + o.changes = buildUnnamed3975(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -138,7 +138,7 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed4138(o.changes); + checkUnnamed3975(o.changes); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -146,14 +146,14 @@ buildCounterChangesListResponse--; } -buildUnnamed4139() { +buildUnnamed3976() { var o = new core.List<api.DnsKeyDigest>(); o.add(buildDnsKeyDigest()); o.add(buildDnsKeyDigest()); return o; } -checkUnnamed4139(core.List<api.DnsKeyDigest> o) { +checkUnnamed3976(core.List<api.DnsKeyDigest> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeyDigest(o[0]); checkDnsKeyDigest(o[1]); @@ -167,7 +167,7 @@ o.algorithm = "foo"; o.creationTime = "foo"; o.description = "foo"; - o.digests = buildUnnamed4139(); + o.digests = buildUnnamed3976(); o.id = "foo"; o.isActive = true; o.keyLength = 42; @@ -186,7 +186,7 @@ unittest.expect(o.algorithm, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed4139(o.digests); + checkUnnamed3976(o.digests); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.keyLength, unittest.equals(42)); @@ -244,14 +244,14 @@ buildCounterDnsKeySpec--; } -buildUnnamed4140() { +buildUnnamed3977() { var o = new core.List<api.DnsKey>(); o.add(buildDnsKey()); o.add(buildDnsKey()); return o; } -checkUnnamed4140(core.List<api.DnsKey> o) { +checkUnnamed3977(core.List<api.DnsKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKey(o[0]); checkDnsKey(o[1]); @@ -262,7 +262,7 @@ var o = new api.DnsKeysListResponse(); buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - o.dnsKeys = buildUnnamed4140(); + o.dnsKeys = buildUnnamed3977(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -274,7 +274,7 @@ checkDnsKeysListResponse(api.DnsKeysListResponse o) { buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - checkUnnamed4140(o.dnsKeys); + checkUnnamed3977(o.dnsKeys); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -282,14 +282,14 @@ buildCounterDnsKeysListResponse--; } -buildUnnamed4141() { +buildUnnamed3978() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4141(core.List<core.String> o) { +checkUnnamed3978(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -308,7 +308,7 @@ o.kind = "foo"; o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed4141(); + o.nameServers = buildUnnamed3978(); } buildCounterManagedZone--; return o; @@ -325,19 +325,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed4141(o.nameServers); + checkUnnamed3978(o.nameServers); } buildCounterManagedZone--; } -buildUnnamed4142() { +buildUnnamed3979() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed4142(core.List<api.DnsKeySpec> o) { +checkUnnamed3979(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -348,7 +348,7 @@ var o = new api.ManagedZoneDnsSecConfig(); buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - o.defaultKeySpecs = buildUnnamed4142(); + o.defaultKeySpecs = buildUnnamed3979(); o.kind = "foo"; o.nonExistence = "foo"; o.state = "foo"; @@ -360,7 +360,7 @@ checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - checkUnnamed4142(o.defaultKeySpecs); + checkUnnamed3979(o.defaultKeySpecs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nonExistence, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -368,14 +368,14 @@ buildCounterManagedZoneDnsSecConfig--; } -buildUnnamed4143() { +buildUnnamed3980() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4143(core.List<api.Operation> o) { +checkUnnamed3980(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -389,7 +389,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.operations = buildUnnamed4143(); + o.operations = buildUnnamed3980(); } buildCounterManagedZoneOperationsListResponse--; return o; @@ -401,7 +401,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4143(o.operations); + checkUnnamed3980(o.operations); } buildCounterManagedZoneOperationsListResponse--; } @@ -425,14 +425,14 @@ buildCounterManagedZonesDeleteResponse--; } -buildUnnamed4144() { +buildUnnamed3981() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed4144(core.List<api.ManagedZone> o) { +checkUnnamed3981(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -445,7 +445,7 @@ if (buildCounterManagedZonesListResponse < 3) { o.header = buildResponseHeader(); o.kind = "foo"; - o.managedZones = buildUnnamed4144(); + o.managedZones = buildUnnamed3981(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -457,7 +457,7 @@ if (buildCounterManagedZonesListResponse < 3) { checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4144(o.managedZones); + checkUnnamed3981(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -563,14 +563,14 @@ buildCounterProject--; } -buildUnnamed4145() { +buildUnnamed3982() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed4145(core.List<api.DnsKeySpec> o) { +checkUnnamed3982(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -589,7 +589,7 @@ o.rrsetDeletionsPerChange = 42; o.rrsetsPerManagedZone = 42; o.totalRrdataSizePerChange = 42; - o.whitelistedKeySpecs = buildUnnamed4145(); + o.whitelistedKeySpecs = buildUnnamed3982(); } buildCounterQuota--; return o; @@ -606,32 +606,32 @@ unittest.expect(o.rrsetDeletionsPerChange, unittest.equals(42)); unittest.expect(o.rrsetsPerManagedZone, unittest.equals(42)); unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); - checkUnnamed4145(o.whitelistedKeySpecs); + checkUnnamed3982(o.whitelistedKeySpecs); } buildCounterQuota--; } -buildUnnamed4146() { +buildUnnamed3983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4146(core.List<core.String> o) { +checkUnnamed3983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4147() { +buildUnnamed3984() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4147(core.List<core.String> o) { +checkUnnamed3984(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -644,8 +644,8 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed4146(); - o.signatureRrdatas = buildUnnamed4147(); + o.rrdatas = buildUnnamed3983(); + o.signatureRrdatas = buildUnnamed3984(); o.ttl = 42; o.type = "foo"; } @@ -658,22 +658,22 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4146(o.rrdatas); - checkUnnamed4147(o.signatureRrdatas); + checkUnnamed3983(o.rrdatas); + checkUnnamed3984(o.signatureRrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed4148() { +buildUnnamed3985() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed4148(core.List<api.ResourceRecordSet> o) { +checkUnnamed3985(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -687,7 +687,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed4148(); + o.rrsets = buildUnnamed3985(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -699,7 +699,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4148(o.rrsets); + checkUnnamed3985(o.rrsets); } buildCounterResourceRecordSetsListResponse--; } @@ -1046,11 +1046,11 @@ }); - unittest.group("resource-DnskeysResourceApi", () { + unittest.group("resource-DnsKeysResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); - api.DnskeysResourceApi res = new api.DnsApi(mock).dnskeys; + api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; var arg_project = "foo"; var arg_managedZone = "foo"; var arg_dnsKeyId = "foo"; @@ -1098,7 +1098,7 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); - api.DnskeysResourceApi res = new api.DnsApi(mock).dnskeys; + api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; var arg_project = "foo"; var arg_managedZone = "foo"; var arg_digestType = "foo";
diff --git a/generated/googleapis_beta/test/genomics/v1beta2_test.dart b/generated/googleapis_beta/test/genomics/v1beta2_test.dart index 9fa1295..3858414 100644 --- a/generated/googleapis_beta/test/genomics/v1beta2_test.dart +++ b/generated/googleapis_beta/test/genomics/v1beta2_test.dart
@@ -51,30 +51,30 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3458() { +buildUnnamed3272() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3458(core.List<core.String> o) { +checkUnnamed3272(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3459() { +buildUnnamed3273() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3458(); - o["y"] = buildUnnamed3458(); + o["x"] = buildUnnamed3272(); + o["y"] = buildUnnamed3272(); return o; } -checkUnnamed3459(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3273(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3458(o["x"]); - checkUnnamed3458(o["y"]); + checkUnnamed3272(o["x"]); + checkUnnamed3272(o["y"]); } core.int buildCounterAnnotation = 0; @@ -84,7 +84,7 @@ if (buildCounterAnnotation < 3) { o.annotationSetId = "foo"; o.id = "foo"; - o.info = buildUnnamed3459(); + o.info = buildUnnamed3273(); o.name = "foo"; o.position = buildRangePosition(); o.transcript = buildTranscript(); @@ -100,7 +100,7 @@ if (buildCounterAnnotation < 3) { unittest.expect(o.annotationSetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3459(o.info); + checkUnnamed3273(o.info); unittest.expect(o.name, unittest.equals('foo')); checkRangePosition(o.position); checkTranscript(o.transcript); @@ -110,30 +110,30 @@ buildCounterAnnotation--; } -buildUnnamed3460() { +buildUnnamed3274() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3460(core.List<core.String> o) { +checkUnnamed3274(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3461() { +buildUnnamed3275() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3460(); - o["y"] = buildUnnamed3460(); + o["x"] = buildUnnamed3274(); + o["y"] = buildUnnamed3274(); return o; } -checkUnnamed3461(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3275(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3460(o["x"]); - checkUnnamed3460(o["y"]); + checkUnnamed3274(o["x"]); + checkUnnamed3274(o["y"]); } core.int buildCounterAnnotationSet = 0; @@ -143,7 +143,7 @@ if (buildCounterAnnotationSet < 3) { o.datasetId = "foo"; o.id = "foo"; - o.info = buildUnnamed3461(); + o.info = buildUnnamed3275(); o.name = "foo"; o.referenceSetId = "foo"; o.sourceUri = "foo"; @@ -158,7 +158,7 @@ if (buildCounterAnnotationSet < 3) { unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3461(o.info); + checkUnnamed3275(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sourceUri, unittest.equals('foo')); @@ -167,14 +167,14 @@ buildCounterAnnotationSet--; } -buildUnnamed3462() { +buildUnnamed3276() { var o = new core.List<api.BatchAnnotationsResponseEntry>(); o.add(buildBatchAnnotationsResponseEntry()); o.add(buildBatchAnnotationsResponseEntry()); return o; } -checkUnnamed3462(core.List<api.BatchAnnotationsResponseEntry> o) { +checkUnnamed3276(core.List<api.BatchAnnotationsResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkBatchAnnotationsResponseEntry(o[0]); checkBatchAnnotationsResponseEntry(o[1]); @@ -185,7 +185,7 @@ var o = new api.BatchAnnotationsResponse(); buildCounterBatchAnnotationsResponse++; if (buildCounterBatchAnnotationsResponse < 3) { - o.entries = buildUnnamed3462(); + o.entries = buildUnnamed3276(); } buildCounterBatchAnnotationsResponse--; return o; @@ -194,7 +194,7 @@ checkBatchAnnotationsResponse(api.BatchAnnotationsResponse o) { buildCounterBatchAnnotationsResponse++; if (buildCounterBatchAnnotationsResponse < 3) { - checkUnnamed3462(o.entries); + checkUnnamed3276(o.entries); } buildCounterBatchAnnotationsResponse--; } @@ -241,14 +241,14 @@ buildCounterBatchAnnotationsResponseEntryStatus--; } -buildUnnamed3463() { +buildUnnamed3277() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed3463(core.List<api.Annotation> o) { +checkUnnamed3277(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -259,7 +259,7 @@ var o = new api.BatchCreateAnnotationsRequest(); buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - o.annotations = buildUnnamed3463(); + o.annotations = buildUnnamed3277(); } buildCounterBatchCreateAnnotationsRequest--; return o; @@ -268,61 +268,61 @@ checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { buildCounterBatchCreateAnnotationsRequest++; if (buildCounterBatchCreateAnnotationsRequest < 3) { - checkUnnamed3463(o.annotations); + checkUnnamed3277(o.annotations); } buildCounterBatchCreateAnnotationsRequest--; } -buildUnnamed3464() { +buildUnnamed3278() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3464(core.List<core.int> o) { +checkUnnamed3278(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)); } -buildUnnamed3465() { +buildUnnamed3279() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3465(core.List<core.double> o) { +checkUnnamed3279(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)); } -buildUnnamed3466() { +buildUnnamed3280() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3466(core.List<core.String> o) { +checkUnnamed3280(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3467() { +buildUnnamed3281() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3466(); - o["y"] = buildUnnamed3466(); + o["x"] = buildUnnamed3280(); + o["y"] = buildUnnamed3280(); return o; } -checkUnnamed3467(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3281(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3466(o["x"]); - checkUnnamed3466(o["y"]); + checkUnnamed3280(o["x"]); + checkUnnamed3280(o["y"]); } core.int buildCounterCall = 0; @@ -332,9 +332,9 @@ if (buildCounterCall < 3) { o.callSetId = "foo"; o.callSetName = "foo"; - o.genotype = buildUnnamed3464(); - o.genotypeLikelihood = buildUnnamed3465(); - o.info = buildUnnamed3467(); + o.genotype = buildUnnamed3278(); + o.genotypeLikelihood = buildUnnamed3279(); + o.info = buildUnnamed3281(); o.phaseset = "foo"; } buildCounterCall--; @@ -346,48 +346,48 @@ if (buildCounterCall < 3) { unittest.expect(o.callSetId, unittest.equals('foo')); unittest.expect(o.callSetName, unittest.equals('foo')); - checkUnnamed3464(o.genotype); - checkUnnamed3465(o.genotypeLikelihood); - checkUnnamed3467(o.info); + checkUnnamed3278(o.genotype); + checkUnnamed3279(o.genotypeLikelihood); + checkUnnamed3281(o.info); unittest.expect(o.phaseset, unittest.equals('foo')); } buildCounterCall--; } -buildUnnamed3468() { +buildUnnamed3282() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3468(core.List<core.String> o) { +checkUnnamed3282(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3469() { +buildUnnamed3283() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3468(); - o["y"] = buildUnnamed3468(); + o["x"] = buildUnnamed3282(); + o["y"] = buildUnnamed3282(); return o; } -checkUnnamed3469(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3283(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3468(o["x"]); - checkUnnamed3468(o["y"]); + checkUnnamed3282(o["x"]); + checkUnnamed3282(o["y"]); } -buildUnnamed3470() { +buildUnnamed3284() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3470(core.List<core.String> o) { +checkUnnamed3284(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -400,10 +400,10 @@ if (buildCounterCallSet < 3) { o.created = "foo"; o.id = "foo"; - o.info = buildUnnamed3469(); + o.info = buildUnnamed3283(); o.name = "foo"; o.sampleId = "foo"; - o.variantSetIds = buildUnnamed3470(); + o.variantSetIds = buildUnnamed3284(); } buildCounterCallSet--; return o; @@ -414,10 +414,10 @@ if (buildCounterCallSet < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3469(o.info); + checkUnnamed3283(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); - checkUnnamed3470(o.variantSetIds); + checkUnnamed3284(o.variantSetIds); } buildCounterCallSet--; } @@ -493,27 +493,27 @@ buildCounterDataset--; } -buildUnnamed3471() { +buildUnnamed3285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3471(core.List<core.String> o) { +checkUnnamed3285(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3472() { +buildUnnamed3286() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3472(core.List<core.String> o) { +checkUnnamed3286(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -527,9 +527,9 @@ o.align = true; o.callVariants = true; o.gcsOutputPath = "foo"; - o.pairedSourceUris = buildUnnamed3471(); + o.pairedSourceUris = buildUnnamed3285(); o.projectNumber = "foo"; - o.sourceUris = buildUnnamed3472(); + o.sourceUris = buildUnnamed3286(); } buildCounterExperimentalCreateJobRequest--; return o; @@ -541,9 +541,9 @@ unittest.expect(o.align, unittest.isTrue); unittest.expect(o.callVariants, unittest.isTrue); unittest.expect(o.gcsOutputPath, unittest.equals('foo')); - checkUnnamed3471(o.pairedSourceUris); + checkUnnamed3285(o.pairedSourceUris); unittest.expect(o.projectNumber, unittest.equals('foo')); - checkUnnamed3472(o.sourceUris); + checkUnnamed3286(o.sourceUris); } buildCounterExperimentalCreateJobRequest--; } @@ -567,27 +567,27 @@ buildCounterExperimentalCreateJobResponse--; } -buildUnnamed3473() { +buildUnnamed3287() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3473(core.List<core.String> o) { +checkUnnamed3287(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3474() { +buildUnnamed3288() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3474(core.List<core.String> o) { +checkUnnamed3288(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -600,8 +600,8 @@ if (buildCounterExportReadGroupSetsRequest < 3) { o.exportUri = "foo"; o.projectNumber = "foo"; - o.readGroupSetIds = buildUnnamed3473(); - o.referenceNames = buildUnnamed3474(); + o.readGroupSetIds = buildUnnamed3287(); + o.referenceNames = buildUnnamed3288(); } buildCounterExportReadGroupSetsRequest--; return o; @@ -612,8 +612,8 @@ if (buildCounterExportReadGroupSetsRequest < 3) { unittest.expect(o.exportUri, unittest.equals('foo')); unittest.expect(o.projectNumber, unittest.equals('foo')); - checkUnnamed3473(o.readGroupSetIds); - checkUnnamed3474(o.referenceNames); + checkUnnamed3287(o.readGroupSetIds); + checkUnnamed3288(o.referenceNames); } buildCounterExportReadGroupSetsRequest--; } @@ -637,14 +637,14 @@ buildCounterExportReadGroupSetsResponse--; } -buildUnnamed3475() { +buildUnnamed3289() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3475(core.List<core.String> o) { +checkUnnamed3289(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -657,7 +657,7 @@ if (buildCounterExportVariantSetRequest < 3) { o.bigqueryDataset = "foo"; o.bigqueryTable = "foo"; - o.callSetIds = buildUnnamed3475(); + o.callSetIds = buildUnnamed3289(); o.format = "foo"; o.projectNumber = "foo"; } @@ -670,7 +670,7 @@ if (buildCounterExportVariantSetRequest < 3) { unittest.expect(o.bigqueryDataset, unittest.equals('foo')); unittest.expect(o.bigqueryTable, unittest.equals('foo')); - checkUnnamed3475(o.callSetIds); + checkUnnamed3289(o.callSetIds); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.projectNumber, unittest.equals('foo')); } @@ -717,14 +717,14 @@ buildCounterExternalId--; } -buildUnnamed3476() { +buildUnnamed3290() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3476(core.List<core.String> o) { +checkUnnamed3290(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -738,7 +738,7 @@ o.datasetId = "foo"; o.partitionStrategy = "foo"; o.referenceSetId = "foo"; - o.sourceUris = buildUnnamed3476(); + o.sourceUris = buildUnnamed3290(); } buildCounterImportReadGroupSetsRequest--; return o; @@ -750,7 +750,7 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.partitionStrategy, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); - checkUnnamed3476(o.sourceUris); + checkUnnamed3290(o.sourceUris); } buildCounterImportReadGroupSetsRequest--; } @@ -774,14 +774,14 @@ buildCounterImportReadGroupSetsResponse--; } -buildUnnamed3477() { +buildUnnamed3291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3477(core.List<core.String> o) { +checkUnnamed3291(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -794,7 +794,7 @@ if (buildCounterImportVariantsRequest < 3) { o.format = "foo"; o.normalizeReferenceNames = true; - o.sourceUris = buildUnnamed3477(); + o.sourceUris = buildUnnamed3291(); } buildCounterImportVariantsRequest--; return o; @@ -805,7 +805,7 @@ if (buildCounterImportVariantsRequest < 3) { unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.normalizeReferenceNames, unittest.isTrue); - checkUnnamed3477(o.sourceUris); + checkUnnamed3291(o.sourceUris); } buildCounterImportVariantsRequest--; } @@ -848,40 +848,40 @@ buildCounterInt32Value--; } -buildUnnamed3478() { +buildUnnamed3292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3478(core.List<core.String> o) { +checkUnnamed3292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3479() { +buildUnnamed3293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3479(core.List<core.String> o) { +checkUnnamed3293(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3480() { +buildUnnamed3294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3480(core.List<core.String> o) { +checkUnnamed3294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -894,13 +894,13 @@ if (buildCounterJob < 3) { o.created = "foo"; o.detailedStatus = "foo"; - o.errors = buildUnnamed3478(); + o.errors = buildUnnamed3292(); o.id = "foo"; - o.importedIds = buildUnnamed3479(); + o.importedIds = buildUnnamed3293(); o.projectNumber = "foo"; o.request = buildJobRequest(); o.status = "foo"; - o.warnings = buildUnnamed3480(); + o.warnings = buildUnnamed3294(); } buildCounterJob--; return o; @@ -911,38 +911,38 @@ if (buildCounterJob < 3) { unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.detailedStatus, unittest.equals('foo')); - checkUnnamed3478(o.errors); + checkUnnamed3292(o.errors); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3479(o.importedIds); + checkUnnamed3293(o.importedIds); unittest.expect(o.projectNumber, unittest.equals('foo')); checkJobRequest(o.request); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed3480(o.warnings); + checkUnnamed3294(o.warnings); } buildCounterJob--; } -buildUnnamed3481() { +buildUnnamed3295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3481(core.List<core.String> o) { +checkUnnamed3295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3482() { +buildUnnamed3296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3482(core.List<core.String> o) { +checkUnnamed3296(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -953,8 +953,8 @@ var o = new api.JobRequest(); buildCounterJobRequest++; if (buildCounterJobRequest < 3) { - o.destination = buildUnnamed3481(); - o.source = buildUnnamed3482(); + o.destination = buildUnnamed3295(); + o.source = buildUnnamed3296(); o.type = "foo"; } buildCounterJobRequest--; @@ -964,21 +964,21 @@ checkJobRequest(api.JobRequest o) { buildCounterJobRequest++; if (buildCounterJobRequest < 3) { - checkUnnamed3481(o.destination); - checkUnnamed3482(o.source); + checkUnnamed3295(o.destination); + checkUnnamed3296(o.source); unittest.expect(o.type, unittest.equals('foo')); } buildCounterJobRequest--; } -buildUnnamed3483() { +buildUnnamed3297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3483(core.List<core.String> o) { +checkUnnamed3297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -990,7 +990,7 @@ buildCounterKeyValue++; if (buildCounterKeyValue < 3) { o.key = "foo"; - o.value = buildUnnamed3483(); + o.value = buildUnnamed3297(); } buildCounterKeyValue--; return o; @@ -1000,19 +1000,19 @@ buildCounterKeyValue++; if (buildCounterKeyValue < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed3483(o.value); + checkUnnamed3297(o.value); } buildCounterKeyValue--; } -buildUnnamed3484() { +buildUnnamed3298() { var o = new core.List<api.CigarUnit>(); o.add(buildCigarUnit()); o.add(buildCigarUnit()); return o; } -checkUnnamed3484(core.List<api.CigarUnit> o) { +checkUnnamed3298(core.List<api.CigarUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkCigarUnit(o[0]); checkCigarUnit(o[1]); @@ -1023,7 +1023,7 @@ var o = new api.LinearAlignment(); buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - o.cigar = buildUnnamed3484(); + o.cigar = buildUnnamed3298(); o.mappingQuality = 42; o.position = buildPosition(); } @@ -1034,7 +1034,7 @@ checkLinearAlignment(api.LinearAlignment o) { buildCounterLinearAlignment++; if (buildCounterLinearAlignment < 3) { - checkUnnamed3484(o.cigar); + checkUnnamed3298(o.cigar); unittest.expect(o.mappingQuality, unittest.equals(42)); checkPosition(o.position); } @@ -1064,14 +1064,14 @@ buildCounterListBasesResponse--; } -buildUnnamed3485() { +buildUnnamed3299() { var o = new core.List<api.CoverageBucket>(); o.add(buildCoverageBucket()); o.add(buildCoverageBucket()); return o; } -checkUnnamed3485(core.List<api.CoverageBucket> o) { +checkUnnamed3299(core.List<api.CoverageBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverageBucket(o[0]); checkCoverageBucket(o[1]); @@ -1083,7 +1083,7 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { o.bucketWidth = "foo"; - o.coverageBuckets = buildUnnamed3485(); + o.coverageBuckets = buildUnnamed3299(); o.nextPageToken = "foo"; } buildCounterListCoverageBucketsResponse--; @@ -1094,20 +1094,20 @@ buildCounterListCoverageBucketsResponse++; if (buildCounterListCoverageBucketsResponse < 3) { unittest.expect(o.bucketWidth, unittest.equals('foo')); - checkUnnamed3485(o.coverageBuckets); + checkUnnamed3299(o.coverageBuckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoverageBucketsResponse--; } -buildUnnamed3486() { +buildUnnamed3300() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed3486(core.List<api.Dataset> o) { +checkUnnamed3300(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1118,7 +1118,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed3486(); + o.datasets = buildUnnamed3300(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1128,20 +1128,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed3486(o.datasets); + checkUnnamed3300(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed3487() { +buildUnnamed3301() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3487(core.List<api.Variant> o) { +checkUnnamed3301(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -1152,7 +1152,7 @@ var o = new api.MergeVariantsRequest(); buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - o.variants = buildUnnamed3487(); + o.variants = buildUnnamed3301(); } buildCounterMergeVariantsRequest--; return o; @@ -1161,35 +1161,35 @@ checkMergeVariantsRequest(api.MergeVariantsRequest o) { buildCounterMergeVariantsRequest++; if (buildCounterMergeVariantsRequest < 3) { - checkUnnamed3487(o.variants); + checkUnnamed3301(o.variants); } buildCounterMergeVariantsRequest--; } -buildUnnamed3488() { +buildUnnamed3302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3488(core.List<core.String> o) { +checkUnnamed3302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3489() { +buildUnnamed3303() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3488(); - o["y"] = buildUnnamed3488(); + o["x"] = buildUnnamed3302(); + o["y"] = buildUnnamed3302(); return o; } -checkUnnamed3489(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3303(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3488(o["x"]); - checkUnnamed3488(o["y"]); + checkUnnamed3302(o["x"]); + checkUnnamed3302(o["y"]); } core.int buildCounterMetadata = 0; @@ -1199,7 +1199,7 @@ if (buildCounterMetadata < 3) { o.description = "foo"; o.id = "foo"; - o.info = buildUnnamed3489(); + o.info = buildUnnamed3303(); o.key = "foo"; o.number = "foo"; o.type = "foo"; @@ -1214,7 +1214,7 @@ if (buildCounterMetadata < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3489(o.info); + checkUnnamed3303(o.info); unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.number, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1321,43 +1321,43 @@ buildCounterRangePosition--; } -buildUnnamed3490() { +buildUnnamed3304() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3490(core.List<core.int> o) { +checkUnnamed3304(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)); } -buildUnnamed3491() { +buildUnnamed3305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3491(core.List<core.String> o) { +checkUnnamed3305(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3492() { +buildUnnamed3306() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3491(); - o["y"] = buildUnnamed3491(); + o["x"] = buildUnnamed3305(); + o["y"] = buildUnnamed3305(); return o; } -checkUnnamed3492(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3306(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3491(o["x"]); - checkUnnamed3491(o["y"]); + checkUnnamed3305(o["x"]); + checkUnnamed3305(o["y"]); } core.int buildCounterRead = 0; @@ -1365,7 +1365,7 @@ var o = new api.Read(); buildCounterRead++; if (buildCounterRead < 3) { - o.alignedQuality = buildUnnamed3490(); + o.alignedQuality = buildUnnamed3304(); o.alignedSequence = "foo"; o.alignment = buildLinearAlignment(); o.duplicateFragment = true; @@ -1373,7 +1373,7 @@ o.fragmentLength = 42; o.fragmentName = "foo"; o.id = "foo"; - o.info = buildUnnamed3492(); + o.info = buildUnnamed3306(); o.nextMatePosition = buildPosition(); o.numberReads = 42; o.properPlacement = true; @@ -1390,7 +1390,7 @@ checkRead(api.Read o) { buildCounterRead++; if (buildCounterRead < 3) { - checkUnnamed3490(o.alignedQuality); + checkUnnamed3304(o.alignedQuality); unittest.expect(o.alignedSequence, unittest.equals('foo')); checkLinearAlignment(o.alignment); unittest.expect(o.duplicateFragment, unittest.isTrue); @@ -1398,7 +1398,7 @@ unittest.expect(o.fragmentLength, unittest.equals(42)); unittest.expect(o.fragmentName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3492(o.info); + checkUnnamed3306(o.info); checkPosition(o.nextMatePosition); unittest.expect(o.numberReads, unittest.equals(42)); unittest.expect(o.properPlacement, unittest.isTrue); @@ -1411,40 +1411,40 @@ buildCounterRead--; } -buildUnnamed3493() { +buildUnnamed3307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3493(core.List<core.String> o) { +checkUnnamed3307(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3494() { +buildUnnamed3308() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3493(); - o["y"] = buildUnnamed3493(); + o["x"] = buildUnnamed3307(); + o["y"] = buildUnnamed3307(); return o; } -checkUnnamed3494(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3308(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3493(o["x"]); - checkUnnamed3493(o["y"]); + checkUnnamed3307(o["x"]); + checkUnnamed3307(o["y"]); } -buildUnnamed3495() { +buildUnnamed3309() { var o = new core.List<api.ReadGroupProgram>(); o.add(buildReadGroupProgram()); o.add(buildReadGroupProgram()); return o; } -checkUnnamed3495(core.List<api.ReadGroupProgram> o) { +checkUnnamed3309(core.List<api.ReadGroupProgram> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupProgram(o[0]); checkReadGroupProgram(o[1]); @@ -1459,10 +1459,10 @@ o.description = "foo"; o.experiment = buildReadGroupExperiment(); o.id = "foo"; - o.info = buildUnnamed3494(); + o.info = buildUnnamed3308(); o.name = "foo"; o.predictedInsertSize = 42; - o.programs = buildUnnamed3495(); + o.programs = buildUnnamed3309(); o.referenceSetId = "foo"; o.sampleId = "foo"; } @@ -1477,10 +1477,10 @@ unittest.expect(o.description, unittest.equals('foo')); checkReadGroupExperiment(o.experiment); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3494(o.info); + checkUnnamed3308(o.info); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.predictedInsertSize, unittest.equals(42)); - checkUnnamed3495(o.programs); + checkUnnamed3309(o.programs); unittest.expect(o.referenceSetId, unittest.equals('foo')); unittest.expect(o.sampleId, unittest.equals('foo')); } @@ -1539,40 +1539,40 @@ buildCounterReadGroupProgram--; } -buildUnnamed3496() { +buildUnnamed3310() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3496(core.List<core.String> o) { +checkUnnamed3310(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3497() { +buildUnnamed3311() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3496(); - o["y"] = buildUnnamed3496(); + o["x"] = buildUnnamed3310(); + o["y"] = buildUnnamed3310(); return o; } -checkUnnamed3497(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3311(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3496(o["x"]); - checkUnnamed3496(o["y"]); + checkUnnamed3310(o["x"]); + checkUnnamed3310(o["y"]); } -buildUnnamed3498() { +buildUnnamed3312() { var o = new core.List<api.ReadGroup>(); o.add(buildReadGroup()); o.add(buildReadGroup()); return o; } -checkUnnamed3498(core.List<api.ReadGroup> o) { +checkUnnamed3312(core.List<api.ReadGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroup(o[0]); checkReadGroup(o[1]); @@ -1586,9 +1586,9 @@ o.datasetId = "foo"; o.filename = "foo"; o.id = "foo"; - o.info = buildUnnamed3497(); + o.info = buildUnnamed3311(); o.name = "foo"; - o.readGroups = buildUnnamed3498(); + o.readGroups = buildUnnamed3312(); o.referenceSetId = "foo"; } buildCounterReadGroupSet--; @@ -1601,22 +1601,22 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.filename, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3497(o.info); + checkUnnamed3311(o.info); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3498(o.readGroups); + checkUnnamed3312(o.readGroups); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterReadGroupSet--; } -buildUnnamed3499() { +buildUnnamed3313() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3499(core.List<core.String> o) { +checkUnnamed3313(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1632,7 +1632,7 @@ o.md5checksum = "foo"; o.name = "foo"; o.ncbiTaxonId = 42; - o.sourceAccessions = buildUnnamed3499(); + o.sourceAccessions = buildUnnamed3313(); o.sourceURI = "foo"; } buildCounterReference--; @@ -1647,7 +1647,7 @@ unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed3499(o.sourceAccessions); + checkUnnamed3313(o.sourceAccessions); unittest.expect(o.sourceURI, unittest.equals('foo')); } buildCounterReference--; @@ -1674,27 +1674,27 @@ buildCounterReferenceBound--; } -buildUnnamed3500() { +buildUnnamed3314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3500(core.List<core.String> o) { +checkUnnamed3314(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3501() { +buildUnnamed3315() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3501(core.List<core.String> o) { +checkUnnamed3315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1710,8 +1710,8 @@ o.id = "foo"; o.md5checksum = "foo"; o.ncbiTaxonId = 42; - o.referenceIds = buildUnnamed3500(); - o.sourceAccessions = buildUnnamed3501(); + o.referenceIds = buildUnnamed3314(); + o.sourceAccessions = buildUnnamed3315(); o.sourceURI = "foo"; } buildCounterReferenceSet--; @@ -1726,34 +1726,34 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.md5checksum, unittest.equals('foo')); unittest.expect(o.ncbiTaxonId, unittest.equals(42)); - checkUnnamed3500(o.referenceIds); - checkUnnamed3501(o.sourceAccessions); + checkUnnamed3314(o.referenceIds); + checkUnnamed3315(o.sourceAccessions); unittest.expect(o.sourceURI, unittest.equals('foo')); } buildCounterReferenceSet--; } -buildUnnamed3502() { +buildUnnamed3316() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3502(core.List<core.String> o) { +checkUnnamed3316(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3503() { +buildUnnamed3317() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3503(core.List<core.String> o) { +checkUnnamed3317(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1764,12 +1764,12 @@ var o = new api.SearchAnnotationSetsRequest(); buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - o.datasetIds = buildUnnamed3502(); + o.datasetIds = buildUnnamed3316(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; - o.types = buildUnnamed3503(); + o.types = buildUnnamed3317(); } buildCounterSearchAnnotationSetsRequest--; return o; @@ -1778,24 +1778,24 @@ checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { buildCounterSearchAnnotationSetsRequest++; if (buildCounterSearchAnnotationSetsRequest < 3) { - checkUnnamed3502(o.datasetIds); + checkUnnamed3316(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')); - checkUnnamed3503(o.types); + checkUnnamed3317(o.types); } buildCounterSearchAnnotationSetsRequest--; } -buildUnnamed3504() { +buildUnnamed3318() { var o = new core.List<api.AnnotationSet>(); o.add(buildAnnotationSet()); o.add(buildAnnotationSet()); return o; } -checkUnnamed3504(core.List<api.AnnotationSet> o) { +checkUnnamed3318(core.List<api.AnnotationSet> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationSet(o[0]); checkAnnotationSet(o[1]); @@ -1806,7 +1806,7 @@ var o = new api.SearchAnnotationSetsResponse(); buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - o.annotationSets = buildUnnamed3504(); + o.annotationSets = buildUnnamed3318(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationSetsResponse--; @@ -1816,20 +1816,20 @@ checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { buildCounterSearchAnnotationSetsResponse++; if (buildCounterSearchAnnotationSetsResponse < 3) { - checkUnnamed3504(o.annotationSets); + checkUnnamed3318(o.annotationSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationSetsResponse--; } -buildUnnamed3505() { +buildUnnamed3319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3505(core.List<core.String> o) { +checkUnnamed3319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1840,7 +1840,7 @@ var o = new api.SearchAnnotationsRequest(); buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - o.annotationSetIds = buildUnnamed3505(); + o.annotationSetIds = buildUnnamed3319(); o.pageSize = 42; o.pageToken = "foo"; o.range = buildQueryRange(); @@ -1852,7 +1852,7 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { buildCounterSearchAnnotationsRequest++; if (buildCounterSearchAnnotationsRequest < 3) { - checkUnnamed3505(o.annotationSetIds); + checkUnnamed3319(o.annotationSetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); checkQueryRange(o.range); @@ -1860,14 +1860,14 @@ buildCounterSearchAnnotationsRequest--; } -buildUnnamed3506() { +buildUnnamed3320() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed3506(core.List<api.Annotation> o) { +checkUnnamed3320(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -1878,7 +1878,7 @@ var o = new api.SearchAnnotationsResponse(); buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - o.annotations = buildUnnamed3506(); + o.annotations = buildUnnamed3320(); o.nextPageToken = "foo"; } buildCounterSearchAnnotationsResponse--; @@ -1888,20 +1888,20 @@ checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { buildCounterSearchAnnotationsResponse++; if (buildCounterSearchAnnotationsResponse < 3) { - checkUnnamed3506(o.annotations); + checkUnnamed3320(o.annotations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAnnotationsResponse--; } -buildUnnamed3507() { +buildUnnamed3321() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3507(core.List<core.String> o) { +checkUnnamed3321(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1915,7 +1915,7 @@ o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.variantSetIds = buildUnnamed3507(); + o.variantSetIds = buildUnnamed3321(); } buildCounterSearchCallSetsRequest--; return o; @@ -1927,19 +1927,19 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3507(o.variantSetIds); + checkUnnamed3321(o.variantSetIds); } buildCounterSearchCallSetsRequest--; } -buildUnnamed3508() { +buildUnnamed3322() { var o = new core.List<api.CallSet>(); o.add(buildCallSet()); o.add(buildCallSet()); return o; } -checkUnnamed3508(core.List<api.CallSet> o) { +checkUnnamed3322(core.List<api.CallSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCallSet(o[0]); checkCallSet(o[1]); @@ -1950,7 +1950,7 @@ var o = new api.SearchCallSetsResponse(); buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - o.callSets = buildUnnamed3508(); + o.callSets = buildUnnamed3322(); o.nextPageToken = "foo"; } buildCounterSearchCallSetsResponse--; @@ -1960,20 +1960,20 @@ checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { buildCounterSearchCallSetsResponse++; if (buildCounterSearchCallSetsResponse < 3) { - checkUnnamed3508(o.callSets); + checkUnnamed3322(o.callSets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchCallSetsResponse--; } -buildUnnamed3509() { +buildUnnamed3323() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3509(core.List<core.String> o) { +checkUnnamed3323(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1989,7 +1989,7 @@ o.pageSize = 42; o.pageToken = "foo"; o.projectNumber = "foo"; - o.status = buildUnnamed3509(); + o.status = buildUnnamed3323(); } buildCounterSearchJobsRequest--; return o; @@ -2003,19 +2003,19 @@ unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.projectNumber, unittest.equals('foo')); - checkUnnamed3509(o.status); + checkUnnamed3323(o.status); } buildCounterSearchJobsRequest--; } -buildUnnamed3510() { +buildUnnamed3324() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3510(core.List<api.Job> o) { +checkUnnamed3324(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -2026,7 +2026,7 @@ var o = new api.SearchJobsResponse(); buildCounterSearchJobsResponse++; if (buildCounterSearchJobsResponse < 3) { - o.jobs = buildUnnamed3510(); + o.jobs = buildUnnamed3324(); o.nextPageToken = "foo"; } buildCounterSearchJobsResponse--; @@ -2036,20 +2036,20 @@ checkSearchJobsResponse(api.SearchJobsResponse o) { buildCounterSearchJobsResponse++; if (buildCounterSearchJobsResponse < 3) { - checkUnnamed3510(o.jobs); + checkUnnamed3324(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchJobsResponse--; } -buildUnnamed3511() { +buildUnnamed3325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3511(core.List<core.String> o) { +checkUnnamed3325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2060,7 +2060,7 @@ var o = new api.SearchReadGroupSetsRequest(); buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - o.datasetIds = buildUnnamed3511(); + o.datasetIds = buildUnnamed3325(); o.name = "foo"; o.pageSize = 42; o.pageToken = "foo"; @@ -2072,7 +2072,7 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { buildCounterSearchReadGroupSetsRequest++; if (buildCounterSearchReadGroupSetsRequest < 3) { - checkUnnamed3511(o.datasetIds); + checkUnnamed3325(o.datasetIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -2080,14 +2080,14 @@ buildCounterSearchReadGroupSetsRequest--; } -buildUnnamed3512() { +buildUnnamed3326() { var o = new core.List<api.ReadGroupSet>(); o.add(buildReadGroupSet()); o.add(buildReadGroupSet()); return o; } -checkUnnamed3512(core.List<api.ReadGroupSet> o) { +checkUnnamed3326(core.List<api.ReadGroupSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReadGroupSet(o[0]); checkReadGroupSet(o[1]); @@ -2099,7 +2099,7 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { o.nextPageToken = "foo"; - o.readGroupSets = buildUnnamed3512(); + o.readGroupSets = buildUnnamed3326(); } buildCounterSearchReadGroupSetsResponse--; return o; @@ -2109,32 +2109,32 @@ buildCounterSearchReadGroupSetsResponse++; if (buildCounterSearchReadGroupSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3512(o.readGroupSets); + checkUnnamed3326(o.readGroupSets); } buildCounterSearchReadGroupSetsResponse--; } -buildUnnamed3513() { +buildUnnamed3327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3513(core.List<core.String> o) { +checkUnnamed3327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3514() { +buildUnnamed3328() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3514(core.List<core.String> o) { +checkUnnamed3328(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2148,8 +2148,8 @@ o.end = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.readGroupIds = buildUnnamed3513(); - o.readGroupSetIds = buildUnnamed3514(); + o.readGroupIds = buildUnnamed3327(); + o.readGroupSetIds = buildUnnamed3328(); o.referenceName = "foo"; o.start = "foo"; } @@ -2163,22 +2163,22 @@ unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3513(o.readGroupIds); - checkUnnamed3514(o.readGroupSetIds); + checkUnnamed3327(o.readGroupIds); + checkUnnamed3328(o.readGroupSetIds); unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); } buildCounterSearchReadsRequest--; } -buildUnnamed3515() { +buildUnnamed3329() { var o = new core.List<api.Read>(); o.add(buildRead()); o.add(buildRead()); return o; } -checkUnnamed3515(core.List<api.Read> o) { +checkUnnamed3329(core.List<api.Read> o) { unittest.expect(o, unittest.hasLength(2)); checkRead(o[0]); checkRead(o[1]); @@ -2189,7 +2189,7 @@ var o = new api.SearchReadsResponse(); buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - o.alignments = buildUnnamed3515(); + o.alignments = buildUnnamed3329(); o.nextPageToken = "foo"; } buildCounterSearchReadsResponse--; @@ -2199,33 +2199,33 @@ checkSearchReadsResponse(api.SearchReadsResponse o) { buildCounterSearchReadsResponse++; if (buildCounterSearchReadsResponse < 3) { - checkUnnamed3515(o.alignments); + checkUnnamed3329(o.alignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchReadsResponse--; } -buildUnnamed3516() { +buildUnnamed3330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3516(core.List<core.String> o) { +checkUnnamed3330(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3517() { +buildUnnamed3331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3517(core.List<core.String> o) { +checkUnnamed3331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2236,9 +2236,9 @@ var o = new api.SearchReferenceSetsRequest(); buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - o.accessions = buildUnnamed3516(); + o.accessions = buildUnnamed3330(); o.assemblyId = "foo"; - o.md5checksums = buildUnnamed3517(); + o.md5checksums = buildUnnamed3331(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2249,23 +2249,23 @@ checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { buildCounterSearchReferenceSetsRequest++; if (buildCounterSearchReferenceSetsRequest < 3) { - checkUnnamed3516(o.accessions); + checkUnnamed3330(o.accessions); unittest.expect(o.assemblyId, unittest.equals('foo')); - checkUnnamed3517(o.md5checksums); + checkUnnamed3331(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchReferenceSetsRequest--; } -buildUnnamed3518() { +buildUnnamed3332() { var o = new core.List<api.ReferenceSet>(); o.add(buildReferenceSet()); o.add(buildReferenceSet()); return o; } -checkUnnamed3518(core.List<api.ReferenceSet> o) { +checkUnnamed3332(core.List<api.ReferenceSet> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceSet(o[0]); checkReferenceSet(o[1]); @@ -2277,7 +2277,7 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { o.nextPageToken = "foo"; - o.referenceSets = buildUnnamed3518(); + o.referenceSets = buildUnnamed3332(); } buildCounterSearchReferenceSetsResponse--; return o; @@ -2287,32 +2287,32 @@ buildCounterSearchReferenceSetsResponse++; if (buildCounterSearchReferenceSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3518(o.referenceSets); + checkUnnamed3332(o.referenceSets); } buildCounterSearchReferenceSetsResponse--; } -buildUnnamed3519() { +buildUnnamed3333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3519(core.List<core.String> o) { +checkUnnamed3333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3520() { +buildUnnamed3334() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3520(core.List<core.String> o) { +checkUnnamed3334(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2323,8 +2323,8 @@ var o = new api.SearchReferencesRequest(); buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - o.accessions = buildUnnamed3519(); - o.md5checksums = buildUnnamed3520(); + o.accessions = buildUnnamed3333(); + o.md5checksums = buildUnnamed3334(); o.pageSize = 42; o.pageToken = "foo"; o.referenceSetId = "foo"; @@ -2336,8 +2336,8 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) { buildCounterSearchReferencesRequest++; if (buildCounterSearchReferencesRequest < 3) { - checkUnnamed3519(o.accessions); - checkUnnamed3520(o.md5checksums); + checkUnnamed3333(o.accessions); + checkUnnamed3334(o.md5checksums); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.referenceSetId, unittest.equals('foo')); @@ -2345,14 +2345,14 @@ buildCounterSearchReferencesRequest--; } -buildUnnamed3521() { +buildUnnamed3335() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed3521(core.List<api.Reference> o) { +checkUnnamed3335(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -2364,7 +2364,7 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { o.nextPageToken = "foo"; - o.references = buildUnnamed3521(); + o.references = buildUnnamed3335(); } buildCounterSearchReferencesResponse--; return o; @@ -2374,19 +2374,19 @@ buildCounterSearchReferencesResponse++; if (buildCounterSearchReferencesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3521(o.references); + checkUnnamed3335(o.references); } buildCounterSearchReferencesResponse--; } -buildUnnamed3522() { +buildUnnamed3336() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3522(core.List<core.String> o) { +checkUnnamed3336(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2397,7 +2397,7 @@ var o = new api.SearchVariantSetsRequest(); buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - o.datasetIds = buildUnnamed3522(); + o.datasetIds = buildUnnamed3336(); o.pageSize = 42; o.pageToken = "foo"; } @@ -2408,21 +2408,21 @@ checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { buildCounterSearchVariantSetsRequest++; if (buildCounterSearchVariantSetsRequest < 3) { - checkUnnamed3522(o.datasetIds); + checkUnnamed3336(o.datasetIds); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); } buildCounterSearchVariantSetsRequest--; } -buildUnnamed3523() { +buildUnnamed3337() { var o = new core.List<api.VariantSet>(); o.add(buildVariantSet()); o.add(buildVariantSet()); return o; } -checkUnnamed3523(core.List<api.VariantSet> o) { +checkUnnamed3337(core.List<api.VariantSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantSet(o[0]); checkVariantSet(o[1]); @@ -2434,7 +2434,7 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { o.nextPageToken = "foo"; - o.variantSets = buildUnnamed3523(); + o.variantSets = buildUnnamed3337(); } buildCounterSearchVariantSetsResponse--; return o; @@ -2444,32 +2444,32 @@ buildCounterSearchVariantSetsResponse++; if (buildCounterSearchVariantSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3523(o.variantSets); + checkUnnamed3337(o.variantSets); } buildCounterSearchVariantSetsResponse--; } -buildUnnamed3524() { +buildUnnamed3338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3524(core.List<core.String> o) { +checkUnnamed3338(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3525() { +buildUnnamed3339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3525(core.List<core.String> o) { +checkUnnamed3339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2480,7 +2480,7 @@ var o = new api.SearchVariantsRequest(); buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - o.callSetIds = buildUnnamed3524(); + o.callSetIds = buildUnnamed3338(); o.end = "foo"; o.maxCalls = 42; o.pageSize = 42; @@ -2488,7 +2488,7 @@ o.referenceName = "foo"; o.start = "foo"; o.variantName = "foo"; - o.variantSetIds = buildUnnamed3525(); + o.variantSetIds = buildUnnamed3339(); } buildCounterSearchVariantsRequest--; return o; @@ -2497,7 +2497,7 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) { buildCounterSearchVariantsRequest++; if (buildCounterSearchVariantsRequest < 3) { - checkUnnamed3524(o.callSetIds); + checkUnnamed3338(o.callSetIds); unittest.expect(o.end, unittest.equals('foo')); unittest.expect(o.maxCalls, unittest.equals(42)); unittest.expect(o.pageSize, unittest.equals(42)); @@ -2505,19 +2505,19 @@ unittest.expect(o.referenceName, unittest.equals('foo')); unittest.expect(o.start, unittest.equals('foo')); unittest.expect(o.variantName, unittest.equals('foo')); - checkUnnamed3525(o.variantSetIds); + checkUnnamed3339(o.variantSetIds); } buildCounterSearchVariantsRequest--; } -buildUnnamed3526() { +buildUnnamed3340() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed3526(core.List<api.Variant> o) { +checkUnnamed3340(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); @@ -2529,7 +2529,7 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { o.nextPageToken = "foo"; - o.variants = buildUnnamed3526(); + o.variants = buildUnnamed3340(); } buildCounterSearchVariantsResponse--; return o; @@ -2539,19 +2539,19 @@ buildCounterSearchVariantsResponse++; if (buildCounterSearchVariantsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3526(o.variants); + checkUnnamed3340(o.variants); } buildCounterSearchVariantsResponse--; } -buildUnnamed3527() { +buildUnnamed3341() { var o = new core.List<api.TranscriptExon>(); o.add(buildTranscriptExon()); o.add(buildTranscriptExon()); return o; } -checkUnnamed3527(core.List<api.TranscriptExon> o) { +checkUnnamed3341(core.List<api.TranscriptExon> o) { unittest.expect(o, unittest.hasLength(2)); checkTranscriptExon(o[0]); checkTranscriptExon(o[1]); @@ -2563,7 +2563,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { o.codingSequence = buildTranscriptCodingSequence(); - o.exons = buildUnnamed3527(); + o.exons = buildUnnamed3341(); o.geneId = "foo"; } buildCounterTranscript--; @@ -2574,7 +2574,7 @@ buildCounterTranscript++; if (buildCounterTranscript < 3) { checkTranscriptCodingSequence(o.codingSequence); - checkUnnamed3527(o.exons); + checkUnnamed3341(o.exons); unittest.expect(o.geneId, unittest.equals('foo')); } buildCounterTranscript--; @@ -2624,79 +2624,79 @@ buildCounterTranscriptExon--; } -buildUnnamed3528() { +buildUnnamed3342() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3528(core.List<core.String> o) { +checkUnnamed3342(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3529() { +buildUnnamed3343() { var o = new core.List<api.Call>(); o.add(buildCall()); o.add(buildCall()); return o; } -checkUnnamed3529(core.List<api.Call> o) { +checkUnnamed3343(core.List<api.Call> o) { unittest.expect(o, unittest.hasLength(2)); checkCall(o[0]); checkCall(o[1]); } -buildUnnamed3530() { +buildUnnamed3344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3530(core.List<core.String> o) { +checkUnnamed3344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3531() { +buildUnnamed3345() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3531(core.List<core.String> o) { +checkUnnamed3345(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3532() { +buildUnnamed3346() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed3531(); - o["y"] = buildUnnamed3531(); + o["x"] = buildUnnamed3345(); + o["y"] = buildUnnamed3345(); return o; } -checkUnnamed3532(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed3346(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3531(o["x"]); - checkUnnamed3531(o["y"]); + checkUnnamed3345(o["x"]); + checkUnnamed3345(o["y"]); } -buildUnnamed3533() { +buildUnnamed3347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3533(core.List<core.String> o) { +checkUnnamed3347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2707,14 +2707,14 @@ var o = new api.Variant(); buildCounterVariant++; if (buildCounterVariant < 3) { - o.alternateBases = buildUnnamed3528(); - o.calls = buildUnnamed3529(); + o.alternateBases = buildUnnamed3342(); + o.calls = buildUnnamed3343(); o.created = "foo"; o.end = "foo"; - o.filter = buildUnnamed3530(); + o.filter = buildUnnamed3344(); o.id = "foo"; - o.info = buildUnnamed3532(); - o.names = buildUnnamed3533(); + o.info = buildUnnamed3346(); + o.names = buildUnnamed3347(); o.quality = 42.0; o.referenceBases = "foo"; o.referenceName = "foo"; @@ -2728,14 +2728,14 @@ checkVariant(api.Variant o) { buildCounterVariant++; if (buildCounterVariant < 3) { - checkUnnamed3528(o.alternateBases); - checkUnnamed3529(o.calls); + checkUnnamed3342(o.alternateBases); + checkUnnamed3343(o.calls); unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.end, unittest.equals('foo')); - checkUnnamed3530(o.filter); + checkUnnamed3344(o.filter); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3532(o.info); - checkUnnamed3533(o.names); + checkUnnamed3346(o.info); + checkUnnamed3347(o.names); unittest.expect(o.quality, unittest.equals(42.0)); unittest.expect(o.referenceBases, unittest.equals('foo')); unittest.expect(o.referenceName, unittest.equals('foo')); @@ -2745,27 +2745,27 @@ buildCounterVariant--; } -buildUnnamed3534() { +buildUnnamed3348() { var o = new core.List<api.VariantAnnotationCondition>(); o.add(buildVariantAnnotationCondition()); o.add(buildVariantAnnotationCondition()); return o; } -checkUnnamed3534(core.List<api.VariantAnnotationCondition> o) { +checkUnnamed3348(core.List<api.VariantAnnotationCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkVariantAnnotationCondition(o[0]); checkVariantAnnotationCondition(o[1]); } -buildUnnamed3535() { +buildUnnamed3349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3535(core.List<core.String> o) { +checkUnnamed3349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2778,10 +2778,10 @@ if (buildCounterVariantAnnotation < 3) { o.alternateBases = "foo"; o.clinicalSignificance = "foo"; - o.conditions = buildUnnamed3534(); + o.conditions = buildUnnamed3348(); o.effect = "foo"; o.geneId = "foo"; - o.transcriptIds = buildUnnamed3535(); + o.transcriptIds = buildUnnamed3349(); o.type = "foo"; } buildCounterVariantAnnotation--; @@ -2793,36 +2793,36 @@ if (buildCounterVariantAnnotation < 3) { unittest.expect(o.alternateBases, unittest.equals('foo')); unittest.expect(o.clinicalSignificance, unittest.equals('foo')); - checkUnnamed3534(o.conditions); + checkUnnamed3348(o.conditions); unittest.expect(o.effect, unittest.equals('foo')); unittest.expect(o.geneId, unittest.equals('foo')); - checkUnnamed3535(o.transcriptIds); + checkUnnamed3349(o.transcriptIds); unittest.expect(o.type, unittest.equals('foo')); } buildCounterVariantAnnotation--; } -buildUnnamed3536() { +buildUnnamed3350() { var o = new core.List<api.ExternalId>(); o.add(buildExternalId()); o.add(buildExternalId()); return o; } -checkUnnamed3536(core.List<api.ExternalId> o) { +checkUnnamed3350(core.List<api.ExternalId> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalId(o[0]); checkExternalId(o[1]); } -buildUnnamed3537() { +buildUnnamed3351() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3537(core.List<core.String> o) { +checkUnnamed3351(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2834,8 +2834,8 @@ buildCounterVariantAnnotationCondition++; if (buildCounterVariantAnnotationCondition < 3) { o.conceptId = "foo"; - o.externalIds = buildUnnamed3536(); - o.names = buildUnnamed3537(); + o.externalIds = buildUnnamed3350(); + o.names = buildUnnamed3351(); o.omimId = "foo"; } buildCounterVariantAnnotationCondition--; @@ -2846,34 +2846,34 @@ buildCounterVariantAnnotationCondition++; if (buildCounterVariantAnnotationCondition < 3) { unittest.expect(o.conceptId, unittest.equals('foo')); - checkUnnamed3536(o.externalIds); - checkUnnamed3537(o.names); + checkUnnamed3350(o.externalIds); + checkUnnamed3351(o.names); unittest.expect(o.omimId, unittest.equals('foo')); } buildCounterVariantAnnotationCondition--; } -buildUnnamed3538() { +buildUnnamed3352() { var o = new core.List<api.Metadata>(); o.add(buildMetadata()); o.add(buildMetadata()); return o; } -checkUnnamed3538(core.List<api.Metadata> o) { +checkUnnamed3352(core.List<api.Metadata> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadata(o[0]); checkMetadata(o[1]); } -buildUnnamed3539() { +buildUnnamed3353() { var o = new core.List<api.ReferenceBound>(); o.add(buildReferenceBound()); o.add(buildReferenceBound()); return o; } -checkUnnamed3539(core.List<api.ReferenceBound> o) { +checkUnnamed3353(core.List<api.ReferenceBound> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceBound(o[0]); checkReferenceBound(o[1]); @@ -2887,9 +2887,9 @@ o.datasetId = "foo"; o.description = "foo"; o.id = "foo"; - o.metadata = buildUnnamed3538(); + o.metadata = buildUnnamed3352(); o.name = "foo"; - o.referenceBounds = buildUnnamed3539(); + o.referenceBounds = buildUnnamed3353(); o.referenceSetId = "foo"; } buildCounterVariantSet--; @@ -2902,9 +2902,9 @@ unittest.expect(o.datasetId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3538(o.metadata); + checkUnnamed3352(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3539(o.referenceBounds); + checkUnnamed3353(o.referenceBounds); unittest.expect(o.referenceSetId, unittest.equals('foo')); } buildCounterVariantSet--;
diff --git a/generated/googleapis_beta/test/language/v1beta1_test.dart b/generated/googleapis_beta/test/language/v1beta1_test.dart index 67d1d66..2a48d75 100644 --- a/generated/googleapis_beta/test/language/v1beta1_test.dart +++ b/generated/googleapis_beta/test/language/v1beta1_test.dart
@@ -72,14 +72,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed3641() { +buildUnnamed3473() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3641(core.List<api.Entity> o) { +checkUnnamed3473(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -90,7 +90,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed3641(); + o.entities = buildUnnamed3473(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -100,7 +100,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed3641(o.entities); + checkUnnamed3473(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -169,40 +169,40 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed3642() { +buildUnnamed3474() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3642(core.List<api.Entity> o) { +checkUnnamed3474(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed3643() { +buildUnnamed3475() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3643(core.List<api.Sentence> o) { +checkUnnamed3475(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3644() { +buildUnnamed3476() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3644(core.List<api.Token> o) { +checkUnnamed3476(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -214,10 +214,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed3642(); + o.entities = buildUnnamed3474(); o.language = "foo"; - o.sentences = buildUnnamed3643(); - o.tokens = buildUnnamed3644(); + o.sentences = buildUnnamed3475(); + o.tokens = buildUnnamed3476(); } buildCounterAnnotateTextResponse--; return o; @@ -227,10 +227,10 @@ buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { checkSentiment(o.documentSentiment); - checkUnnamed3642(o.entities); + checkUnnamed3474(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3643(o.sentences); - checkUnnamed3644(o.tokens); + checkUnnamed3475(o.sentences); + checkUnnamed3476(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -281,27 +281,27 @@ buildCounterDocument--; } -buildUnnamed3645() { +buildUnnamed3477() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed3645(core.List<api.EntityMention> o) { +checkUnnamed3477(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed3646() { +buildUnnamed3478() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3646(core.Map<core.String, core.String> o) { +checkUnnamed3478(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')); @@ -312,8 +312,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed3645(); - o.metadata = buildUnnamed3646(); + o.mentions = buildUnnamed3477(); + o.metadata = buildUnnamed3478(); o.name = "foo"; o.salience = 42.0; o.type = "foo"; @@ -325,8 +325,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3645(o.mentions); - checkUnnamed3646(o.metadata); + checkUnnamed3477(o.mentions); + checkUnnamed3478(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); unittest.expect(o.type, unittest.equals('foo')); @@ -435,30 +435,30 @@ buildCounterSentiment--; } -buildUnnamed3647() { +buildUnnamed3479() { 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; } -checkUnnamed3647(core.Map<core.String, core.Object> o) { +checkUnnamed3479(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')); } -buildUnnamed3648() { +buildUnnamed3480() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3647()); - o.add(buildUnnamed3647()); + o.add(buildUnnamed3479()); + o.add(buildUnnamed3479()); return o; } -checkUnnamed3648(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3480(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3647(o[0]); - checkUnnamed3647(o[1]); + checkUnnamed3479(o[0]); + checkUnnamed3479(o[1]); } core.int buildCounterStatus = 0; @@ -467,7 +467,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3648(); + o.details = buildUnnamed3480(); o.message = "foo"; } buildCounterStatus--; @@ -478,7 +478,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3648(o.details); + checkUnnamed3480(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis_beta/test/logging/v2beta1_test.dart b/generated/googleapis_beta/test/logging/v2beta1_test.dart index 238a4e3..531270e 100644 --- a/generated/googleapis_beta/test/logging/v2beta1_test.dart +++ b/generated/googleapis_beta/test/logging/v2beta1_test.dart
@@ -77,12 +77,14 @@ o.cacheHit = true; o.cacheLookup = true; o.cacheValidatedWithOriginServer = true; + o.latency = "foo"; o.referer = "foo"; o.remoteIp = "foo"; o.requestMethod = "foo"; o.requestSize = "foo"; o.requestUrl = "foo"; o.responseSize = "foo"; + o.serverIp = "foo"; o.status = 42; o.userAgent = "foo"; } @@ -97,12 +99,14 @@ unittest.expect(o.cacheHit, unittest.isTrue); unittest.expect(o.cacheLookup, unittest.isTrue); unittest.expect(o.cacheValidatedWithOriginServer, unittest.isTrue); + unittest.expect(o.latency, unittest.equals('foo')); unittest.expect(o.referer, unittest.equals('foo')); unittest.expect(o.remoteIp, unittest.equals('foo')); unittest.expect(o.requestMethod, unittest.equals('foo')); unittest.expect(o.requestSize, unittest.equals('foo')); unittest.expect(o.requestUrl, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); + unittest.expect(o.serverIp, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.userAgent, unittest.equals('foo')); } @@ -132,14 +136,27 @@ buildCounterLabelDescriptor--; } -buildUnnamed4149() { +buildUnnamed3986() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4149(core.List<core.String> o) { +checkUnnamed3986(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3987() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3987(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -154,8 +171,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.partialSuccess = true; - o.projectIds = buildUnnamed4149(); + o.projectIds = buildUnnamed3986(); + o.resourceNames = buildUnnamed3987(); } buildCounterListLogEntriesRequest--; return o; @@ -168,46 +185,32 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - unittest.expect(o.partialSuccess, unittest.isTrue); - checkUnnamed4149(o.projectIds); + checkUnnamed3986(o.projectIds); + checkUnnamed3987(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed4150() { +buildUnnamed3988() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed4150(core.List<api.LogEntry> o) { +checkUnnamed3988(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed4151() { - var o = new core.Map<core.String, api.Status>(); - o["x"] = buildStatus(); - o["y"] = buildStatus(); - return o; -} - -checkUnnamed4151(core.Map<core.String, api.Status> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStatus(o["x"]); - checkStatus(o["y"]); -} - core.int buildCounterListLogEntriesResponse = 0; buildListLogEntriesResponse() { var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed4150(); + o.entries = buildUnnamed3988(); o.nextPageToken = "foo"; - o.projectIdErrors = buildUnnamed4151(); } buildCounterListLogEntriesResponse--; return o; @@ -216,21 +219,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed4150(o.entries); + checkUnnamed3988(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4151(o.projectIdErrors); } buildCounterListLogEntriesResponse--; } -buildUnnamed4152() { +buildUnnamed3989() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed4152(core.List<api.LogMetric> o) { +checkUnnamed3989(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -241,7 +243,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed4152(); + o.metrics = buildUnnamed3989(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -251,20 +253,20 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed4152(o.metrics); + checkUnnamed3989(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed4153() { +buildUnnamed3990() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed4153(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3990(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -276,7 +278,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed4153(); + o.resourceDescriptors = buildUnnamed3990(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -286,19 +288,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4153(o.resourceDescriptors); + checkUnnamed3990(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed4154() { +buildUnnamed3991() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed4154(core.List<api.LogSink> o) { +checkUnnamed3991(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -310,7 +312,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed4154(); + o.sinks = buildUnnamed3991(); } buildCounterListSinksResponse--; return o; @@ -320,45 +322,45 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4154(o.sinks); + checkUnnamed3991(o.sinks); } buildCounterListSinksResponse--; } -buildUnnamed4155() { +buildUnnamed3992() { 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; } -checkUnnamed4155(core.Map<core.String, core.Object> o) { +checkUnnamed3992(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')); } -buildUnnamed4156() { +buildUnnamed3993() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4156(core.Map<core.String, core.String> o) { +checkUnnamed3993(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')); } -buildUnnamed4157() { +buildUnnamed3994() { 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; } -checkUnnamed4157(core.Map<core.String, core.Object> o) { +checkUnnamed3994(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')); @@ -371,11 +373,11 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed4155(); - o.labels = buildUnnamed4156(); + o.jsonPayload = buildUnnamed3992(); + o.labels = buildUnnamed3993(); o.logName = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed4157(); + o.protoPayload = buildUnnamed3994(); o.resource = buildMonitoredResource(); o.severity = "foo"; o.textPayload = "foo"; @@ -390,11 +392,11 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed4155(o.jsonPayload); - checkUnnamed4156(o.labels); + checkUnnamed3992(o.jsonPayload); + checkUnnamed3993(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed4157(o.protoPayload); + checkUnnamed3994(o.protoPayload); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); unittest.expect(o.textPayload, unittest.equals('foo')); @@ -461,6 +463,7 @@ o.description = "foo"; o.filter = "foo"; o.name = "foo"; + o.version = "foo"; } buildCounterLogMetric--; return o; @@ -472,6 +475,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals('foo')); } buildCounterLogMetric--; } @@ -482,9 +486,12 @@ buildCounterLogSink++; if (buildCounterLogSink < 3) { o.destination = "foo"; + o.endTime = "foo"; o.filter = "foo"; o.name = "foo"; o.outputVersionFormat = "foo"; + o.startTime = "foo"; + o.writerIdentity = "foo"; } buildCounterLogSink--; return o; @@ -494,21 +501,24 @@ buildCounterLogSink++; if (buildCounterLogSink < 3) { unittest.expect(o.destination, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.outputVersionFormat, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.writerIdentity, unittest.equals('foo')); } buildCounterLogSink--; } -buildUnnamed4158() { +buildUnnamed3995() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4158(core.Map<core.String, core.String> o) { +checkUnnamed3995(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')); @@ -519,7 +529,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed4158(); + o.labels = buildUnnamed3995(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -529,20 +539,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed4158(o.labels); + checkUnnamed3995(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed4159() { +buildUnnamed3996() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed4159(core.List<api.LabelDescriptor> o) { +checkUnnamed3996(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -555,7 +565,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed4159(); + o.labels = buildUnnamed3996(); o.name = "foo"; o.type = "foo"; } @@ -568,34 +578,34 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4159(o.labels); + checkUnnamed3996(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResourceDescriptor--; } -buildUnnamed4160() { +buildUnnamed3997() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed4160(core.List<api.LogLine> o) { +checkUnnamed3997(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed4161() { +buildUnnamed3998() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed4161(core.List<api.SourceReference> o) { +checkUnnamed3998(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -618,7 +628,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed4160(); + o.line = buildUnnamed3997(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -628,7 +638,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed4161(); + o.sourceReference = buildUnnamed3998(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -658,7 +668,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed4160(o.line); + checkUnnamed3997(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -668,7 +678,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed4161(o.sourceReference); + checkUnnamed3998(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -726,76 +736,27 @@ buildCounterSourceReference--; } -buildUnnamed4162() { - 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; -} - -checkUnnamed4162(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')); -} - -buildUnnamed4163() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4162()); - o.add(buildUnnamed4162()); - return o; -} - -checkUnnamed4163(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4162(o[0]); - checkUnnamed4162(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed4163(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4163(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -buildUnnamed4164() { +buildUnnamed3999() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed4164(core.List<api.LogEntry> o) { +checkUnnamed3999(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed4165() { +buildUnnamed4000() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4165(core.Map<core.String, core.String> o) { +checkUnnamed4000(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')); @@ -806,8 +767,8 @@ var o = new api.WriteLogEntriesRequest(); buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - o.entries = buildUnnamed4164(); - o.labels = buildUnnamed4165(); + o.entries = buildUnnamed3999(); + o.labels = buildUnnamed4000(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -819,8 +780,8 @@ checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { - checkUnnamed4164(o.entries); - checkUnnamed4165(o.labels); + checkUnnamed3999(o.entries); + checkUnnamed4000(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -1009,15 +970,6 @@ }); - 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-WriteLogEntriesRequest", () { unittest.test("to-json--from-json", () { var o = buildWriteLogEntriesRequest(); @@ -1036,6 +988,55 @@ }); + unittest.group("resource-BillingAccountsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.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 + 8), unittest.equals("v2beta1/")); + pathOffset += 8; + // 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.group("resource-EntriesResourceApi", () { unittest.test("method--list", () { @@ -1185,6 +1186,55 @@ }); + unittest.group("resource-OrganizationsLogsResourceApi", () { + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.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 + 8), unittest.equals("v2beta1/")); + pathOffset += 8; + // 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.group("resource-ProjectsLogsResourceApi", () { unittest.test("method--delete", () { @@ -1240,7 +1290,7 @@ var mock = new HttpServerMock(); api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; var arg_request = buildLogMetric(); - var arg_projectName = "foo"; + var arg_parent = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.LogMetric.fromJson(json); checkLogMetric(obj); @@ -1279,7 +1329,7 @@ var resp = convert.JSON.encode(buildLogMetric()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectName).then(unittest.expectAsync(((api.LogMetric response) { + res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.LogMetric response) { checkLogMetric(response); }))); }); @@ -1378,9 +1428,9 @@ var mock = new HttpServerMock(); api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.metrics; - var arg_projectName = "foo"; - var arg_pageToken = "foo"; + 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; @@ -1408,8 +1458,8 @@ 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["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1418,7 +1468,7 @@ var resp = convert.JSON.encode(buildListLogMetricsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectName, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLogMetricsResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLogMetricsResponse response) { checkListLogMetricsResponse(response); }))); }); @@ -1481,7 +1531,8 @@ var mock = new HttpServerMock(); api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; var arg_request = buildLogSink(); - var arg_projectName = "foo"; + 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); @@ -1512,6 +1563,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); var h = { @@ -1520,7 +1572,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_projectName).then(unittest.expectAsync(((api.LogSink response) { + res.create(arg_request, arg_parent, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { checkLogSink(response); }))); }); @@ -1619,9 +1671,9 @@ var mock = new HttpServerMock(); api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.sinks; - var arg_projectName = "foo"; - var arg_pageToken = "foo"; + 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; @@ -1649,8 +1701,8 @@ 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["pageToken"].first, unittest.equals(arg_pageToken)); var h = { @@ -1659,7 +1711,7 @@ var resp = convert.JSON.encode(buildListSinksResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.list(arg_projectName, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListSinksResponse response) { + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListSinksResponse response) { checkListSinksResponse(response); }))); }); @@ -1670,6 +1722,7 @@ api.ProjectsSinksResourceApi res = new api.LoggingApi(mock).projects.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); @@ -1700,6 +1753,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["uniqueWriterIdentity"].first, unittest.equals("$arg_uniqueWriterIdentity")); var h = { @@ -1708,7 +1762,7 @@ var resp = convert.JSON.encode(buildLogSink()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.update(arg_request, arg_sinkName).then(unittest.expectAsync(((api.LogSink response) { + res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWriterIdentity).then(unittest.expectAsync(((api.LogSink response) { checkLogSink(response); }))); });
diff --git a/generated/googleapis_beta/test/ml/v1beta1_test.dart b/generated/googleapis_beta/test/ml/v1beta1_test.dart new file mode 100644 index 0000000..df18144 --- /dev/null +++ b/generated/googleapis_beta/test/ml/v1beta1_test.dart
@@ -0,0 +1,1995 @@ +library googleapis_beta.ml.v1beta1.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_beta/ml/v1beta1.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 buildCounterGoogleApiHttpBody = 0; +buildGoogleApiHttpBody() { + var o = new api.GoogleApiHttpBody(); + buildCounterGoogleApiHttpBody++; + if (buildCounterGoogleApiHttpBody < 3) { + o.contentType = "foo"; + o.data = "foo"; + } + buildCounterGoogleApiHttpBody--; + return o; +} + +checkGoogleApiHttpBody(api.GoogleApiHttpBody o) { + buildCounterGoogleApiHttpBody++; + if (buildCounterGoogleApiHttpBody < 3) { + unittest.expect(o.contentType, unittest.equals('foo')); + unittest.expect(o.data, unittest.equals('foo')); + } + buildCounterGoogleApiHttpBody--; +} + +core.int buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric = 0; +buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric() { + var o = new api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(); + buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric++; + if (buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric < 3) { + o.objectiveValue = 42.0; + o.trainingStep = "foo"; + } + buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric--; + return o; +} + +checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric o) { + buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric++; + if (buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric < 3) { + unittest.expect(o.objectiveValue, unittest.equals(42.0)); + unittest.expect(o.trainingStep, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric--; +} + +core.int buildCounterGoogleCloudMlV1beta1CancelJobRequest = 0; +buildGoogleCloudMlV1beta1CancelJobRequest() { + var o = new api.GoogleCloudMlV1beta1CancelJobRequest(); + buildCounterGoogleCloudMlV1beta1CancelJobRequest++; + if (buildCounterGoogleCloudMlV1beta1CancelJobRequest < 3) { + } + buildCounterGoogleCloudMlV1beta1CancelJobRequest--; + return o; +} + +checkGoogleCloudMlV1beta1CancelJobRequest(api.GoogleCloudMlV1beta1CancelJobRequest o) { + buildCounterGoogleCloudMlV1beta1CancelJobRequest++; + if (buildCounterGoogleCloudMlV1beta1CancelJobRequest < 3) { + } + buildCounterGoogleCloudMlV1beta1CancelJobRequest--; +} + +core.int buildCounterGoogleCloudMlV1beta1GetConfigResponse = 0; +buildGoogleCloudMlV1beta1GetConfigResponse() { + var o = new api.GoogleCloudMlV1beta1GetConfigResponse(); + buildCounterGoogleCloudMlV1beta1GetConfigResponse++; + if (buildCounterGoogleCloudMlV1beta1GetConfigResponse < 3) { + o.serviceAccount = "foo"; + o.serviceAccountProject = "foo"; + } + buildCounterGoogleCloudMlV1beta1GetConfigResponse--; + return o; +} + +checkGoogleCloudMlV1beta1GetConfigResponse(api.GoogleCloudMlV1beta1GetConfigResponse o) { + buildCounterGoogleCloudMlV1beta1GetConfigResponse++; + if (buildCounterGoogleCloudMlV1beta1GetConfigResponse < 3) { + unittest.expect(o.serviceAccount, unittest.equals('foo')); + unittest.expect(o.serviceAccountProject, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1GetConfigResponse--; +} + +buildUnnamed3437() { + var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric>(); + o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric()); + o.add(buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric()); + return o; +} + +checkUnnamed3437(core.List<api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[0]); + checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o[1]); +} + +buildUnnamed3438() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3438(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 buildCounterGoogleCloudMlV1beta1HyperparameterOutput = 0; +buildGoogleCloudMlV1beta1HyperparameterOutput() { + var o = new api.GoogleCloudMlV1beta1HyperparameterOutput(); + buildCounterGoogleCloudMlV1beta1HyperparameterOutput++; + if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) { + o.allMetrics = buildUnnamed3437(); + o.finalMetric = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(); + o.hyperparameters = buildUnnamed3438(); + o.trialId = "foo"; + } + buildCounterGoogleCloudMlV1beta1HyperparameterOutput--; + return o; +} + +checkGoogleCloudMlV1beta1HyperparameterOutput(api.GoogleCloudMlV1beta1HyperparameterOutput o) { + buildCounterGoogleCloudMlV1beta1HyperparameterOutput++; + if (buildCounterGoogleCloudMlV1beta1HyperparameterOutput < 3) { + checkUnnamed3437(o.allMetrics); + checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(o.finalMetric); + checkUnnamed3438(o.hyperparameters); + unittest.expect(o.trialId, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1HyperparameterOutput--; +} + +buildUnnamed3439() { + var o = new core.List<api.GoogleCloudMlV1beta1ParameterSpec>(); + o.add(buildGoogleCloudMlV1beta1ParameterSpec()); + o.add(buildGoogleCloudMlV1beta1ParameterSpec()); + return o; +} + +checkUnnamed3439(core.List<api.GoogleCloudMlV1beta1ParameterSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1beta1ParameterSpec(o[0]); + checkGoogleCloudMlV1beta1ParameterSpec(o[1]); +} + +core.int buildCounterGoogleCloudMlV1beta1HyperparameterSpec = 0; +buildGoogleCloudMlV1beta1HyperparameterSpec() { + var o = new api.GoogleCloudMlV1beta1HyperparameterSpec(); + buildCounterGoogleCloudMlV1beta1HyperparameterSpec++; + if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) { + o.goal = "foo"; + o.maxParallelTrials = 42; + o.maxTrials = 42; + o.params = buildUnnamed3439(); + } + buildCounterGoogleCloudMlV1beta1HyperparameterSpec--; + return o; +} + +checkGoogleCloudMlV1beta1HyperparameterSpec(api.GoogleCloudMlV1beta1HyperparameterSpec o) { + buildCounterGoogleCloudMlV1beta1HyperparameterSpec++; + if (buildCounterGoogleCloudMlV1beta1HyperparameterSpec < 3) { + unittest.expect(o.goal, unittest.equals('foo')); + unittest.expect(o.maxParallelTrials, unittest.equals(42)); + unittest.expect(o.maxTrials, unittest.equals(42)); + checkUnnamed3439(o.params); + } + buildCounterGoogleCloudMlV1beta1HyperparameterSpec--; +} + +core.int buildCounterGoogleCloudMlV1beta1Job = 0; +buildGoogleCloudMlV1beta1Job() { + var o = new api.GoogleCloudMlV1beta1Job(); + buildCounterGoogleCloudMlV1beta1Job++; + if (buildCounterGoogleCloudMlV1beta1Job < 3) { + o.createTime = "foo"; + o.endTime = "foo"; + o.errorMessage = "foo"; + o.jobId = "foo"; + o.predictionInput = buildGoogleCloudMlV1beta1PredictionInput(); + o.predictionOutput = buildGoogleCloudMlV1beta1PredictionOutput(); + o.startTime = "foo"; + o.state = "foo"; + o.trainingInput = buildGoogleCloudMlV1beta1TrainingInput(); + o.trainingOutput = buildGoogleCloudMlV1beta1TrainingOutput(); + } + buildCounterGoogleCloudMlV1beta1Job--; + return o; +} + +checkGoogleCloudMlV1beta1Job(api.GoogleCloudMlV1beta1Job o) { + buildCounterGoogleCloudMlV1beta1Job++; + if (buildCounterGoogleCloudMlV1beta1Job < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.errorMessage, unittest.equals('foo')); + unittest.expect(o.jobId, unittest.equals('foo')); + checkGoogleCloudMlV1beta1PredictionInput(o.predictionInput); + checkGoogleCloudMlV1beta1PredictionOutput(o.predictionOutput); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + checkGoogleCloudMlV1beta1TrainingInput(o.trainingInput); + checkGoogleCloudMlV1beta1TrainingOutput(o.trainingOutput); + } + buildCounterGoogleCloudMlV1beta1Job--; +} + +buildUnnamed3440() { + var o = new core.List<api.GoogleCloudMlV1beta1Job>(); + o.add(buildGoogleCloudMlV1beta1Job()); + o.add(buildGoogleCloudMlV1beta1Job()); + return o; +} + +checkUnnamed3440(core.List<api.GoogleCloudMlV1beta1Job> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1beta1Job(o[0]); + checkGoogleCloudMlV1beta1Job(o[1]); +} + +core.int buildCounterGoogleCloudMlV1beta1ListJobsResponse = 0; +buildGoogleCloudMlV1beta1ListJobsResponse() { + var o = new api.GoogleCloudMlV1beta1ListJobsResponse(); + buildCounterGoogleCloudMlV1beta1ListJobsResponse++; + if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) { + o.jobs = buildUnnamed3440(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudMlV1beta1ListJobsResponse--; + return o; +} + +checkGoogleCloudMlV1beta1ListJobsResponse(api.GoogleCloudMlV1beta1ListJobsResponse o) { + buildCounterGoogleCloudMlV1beta1ListJobsResponse++; + if (buildCounterGoogleCloudMlV1beta1ListJobsResponse < 3) { + checkUnnamed3440(o.jobs); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1ListJobsResponse--; +} + +buildUnnamed3441() { + var o = new core.List<api.GoogleCloudMlV1beta1Model>(); + o.add(buildGoogleCloudMlV1beta1Model()); + o.add(buildGoogleCloudMlV1beta1Model()); + return o; +} + +checkUnnamed3441(core.List<api.GoogleCloudMlV1beta1Model> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1beta1Model(o[0]); + checkGoogleCloudMlV1beta1Model(o[1]); +} + +core.int buildCounterGoogleCloudMlV1beta1ListModelsResponse = 0; +buildGoogleCloudMlV1beta1ListModelsResponse() { + var o = new api.GoogleCloudMlV1beta1ListModelsResponse(); + buildCounterGoogleCloudMlV1beta1ListModelsResponse++; + if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) { + o.models = buildUnnamed3441(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudMlV1beta1ListModelsResponse--; + return o; +} + +checkGoogleCloudMlV1beta1ListModelsResponse(api.GoogleCloudMlV1beta1ListModelsResponse o) { + buildCounterGoogleCloudMlV1beta1ListModelsResponse++; + if (buildCounterGoogleCloudMlV1beta1ListModelsResponse < 3) { + checkUnnamed3441(o.models); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1ListModelsResponse--; +} + +buildUnnamed3442() { + var o = new core.List<api.GoogleCloudMlV1beta1Version>(); + o.add(buildGoogleCloudMlV1beta1Version()); + o.add(buildGoogleCloudMlV1beta1Version()); + return o; +} + +checkUnnamed3442(core.List<api.GoogleCloudMlV1beta1Version> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1beta1Version(o[0]); + checkGoogleCloudMlV1beta1Version(o[1]); +} + +core.int buildCounterGoogleCloudMlV1beta1ListVersionsResponse = 0; +buildGoogleCloudMlV1beta1ListVersionsResponse() { + var o = new api.GoogleCloudMlV1beta1ListVersionsResponse(); + buildCounterGoogleCloudMlV1beta1ListVersionsResponse++; + if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) { + o.nextPageToken = "foo"; + o.versions = buildUnnamed3442(); + } + buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; + return o; +} + +checkGoogleCloudMlV1beta1ListVersionsResponse(api.GoogleCloudMlV1beta1ListVersionsResponse o) { + buildCounterGoogleCloudMlV1beta1ListVersionsResponse++; + if (buildCounterGoogleCloudMlV1beta1ListVersionsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed3442(o.versions); + } + buildCounterGoogleCloudMlV1beta1ListVersionsResponse--; +} + +core.int buildCounterGoogleCloudMlV1beta1Model = 0; +buildGoogleCloudMlV1beta1Model() { + var o = new api.GoogleCloudMlV1beta1Model(); + buildCounterGoogleCloudMlV1beta1Model++; + if (buildCounterGoogleCloudMlV1beta1Model < 3) { + o.defaultVersion = buildGoogleCloudMlV1beta1Version(); + o.description = "foo"; + o.name = "foo"; + } + buildCounterGoogleCloudMlV1beta1Model--; + return o; +} + +checkGoogleCloudMlV1beta1Model(api.GoogleCloudMlV1beta1Model o) { + buildCounterGoogleCloudMlV1beta1Model++; + if (buildCounterGoogleCloudMlV1beta1Model < 3) { + checkGoogleCloudMlV1beta1Version(o.defaultVersion); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1Model--; +} + +core.int buildCounterGoogleCloudMlV1beta1OperationMetadata = 0; +buildGoogleCloudMlV1beta1OperationMetadata() { + var o = new api.GoogleCloudMlV1beta1OperationMetadata(); + buildCounterGoogleCloudMlV1beta1OperationMetadata++; + if (buildCounterGoogleCloudMlV1beta1OperationMetadata < 3) { + o.createTime = "foo"; + o.endTime = "foo"; + o.isCancellationRequested = true; + o.modelName = "foo"; + o.operationType = "foo"; + o.startTime = "foo"; + o.version = buildGoogleCloudMlV1beta1Version(); + } + buildCounterGoogleCloudMlV1beta1OperationMetadata--; + return o; +} + +checkGoogleCloudMlV1beta1OperationMetadata(api.GoogleCloudMlV1beta1OperationMetadata o) { + buildCounterGoogleCloudMlV1beta1OperationMetadata++; + if (buildCounterGoogleCloudMlV1beta1OperationMetadata < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.isCancellationRequested, unittest.isTrue); + unittest.expect(o.modelName, unittest.equals('foo')); + unittest.expect(o.operationType, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + checkGoogleCloudMlV1beta1Version(o.version); + } + buildCounterGoogleCloudMlV1beta1OperationMetadata--; +} + +buildUnnamed3443() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3443(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3444() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed3444(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)); +} + +core.int buildCounterGoogleCloudMlV1beta1ParameterSpec = 0; +buildGoogleCloudMlV1beta1ParameterSpec() { + var o = new api.GoogleCloudMlV1beta1ParameterSpec(); + buildCounterGoogleCloudMlV1beta1ParameterSpec++; + if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { + o.categoricalValues = buildUnnamed3443(); + o.discreteValues = buildUnnamed3444(); + o.maxValue = 42.0; + o.minValue = 42.0; + o.parameterName = "foo"; + o.scaleType = "foo"; + o.type = "foo"; + } + buildCounterGoogleCloudMlV1beta1ParameterSpec--; + return o; +} + +checkGoogleCloudMlV1beta1ParameterSpec(api.GoogleCloudMlV1beta1ParameterSpec o) { + buildCounterGoogleCloudMlV1beta1ParameterSpec++; + if (buildCounterGoogleCloudMlV1beta1ParameterSpec < 3) { + checkUnnamed3443(o.categoricalValues); + checkUnnamed3444(o.discreteValues); + unittest.expect(o.maxValue, unittest.equals(42.0)); + unittest.expect(o.minValue, unittest.equals(42.0)); + unittest.expect(o.parameterName, unittest.equals('foo')); + unittest.expect(o.scaleType, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1ParameterSpec--; +} + +core.int buildCounterGoogleCloudMlV1beta1PredictRequest = 0; +buildGoogleCloudMlV1beta1PredictRequest() { + var o = new api.GoogleCloudMlV1beta1PredictRequest(); + buildCounterGoogleCloudMlV1beta1PredictRequest++; + if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { + o.httpBody = buildGoogleApiHttpBody(); + } + buildCounterGoogleCloudMlV1beta1PredictRequest--; + return o; +} + +checkGoogleCloudMlV1beta1PredictRequest(api.GoogleCloudMlV1beta1PredictRequest o) { + buildCounterGoogleCloudMlV1beta1PredictRequest++; + if (buildCounterGoogleCloudMlV1beta1PredictRequest < 3) { + checkGoogleApiHttpBody(o.httpBody); + } + buildCounterGoogleCloudMlV1beta1PredictRequest--; +} + +buildUnnamed3445() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3445(core.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 buildCounterGoogleCloudMlV1beta1PredictionInput = 0; +buildGoogleCloudMlV1beta1PredictionInput() { + var o = new api.GoogleCloudMlV1beta1PredictionInput(); + buildCounterGoogleCloudMlV1beta1PredictionInput++; + if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { + o.dataFormat = "foo"; + o.inputPaths = buildUnnamed3445(); + o.maxWorkerCount = "foo"; + o.modelName = "foo"; + o.outputPath = "foo"; + o.region = "foo"; + o.versionName = "foo"; + } + buildCounterGoogleCloudMlV1beta1PredictionInput--; + return o; +} + +checkGoogleCloudMlV1beta1PredictionInput(api.GoogleCloudMlV1beta1PredictionInput o) { + buildCounterGoogleCloudMlV1beta1PredictionInput++; + if (buildCounterGoogleCloudMlV1beta1PredictionInput < 3) { + unittest.expect(o.dataFormat, unittest.equals('foo')); + checkUnnamed3445(o.inputPaths); + unittest.expect(o.maxWorkerCount, unittest.equals('foo')); + unittest.expect(o.modelName, unittest.equals('foo')); + unittest.expect(o.outputPath, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + unittest.expect(o.versionName, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1PredictionInput--; +} + +core.int buildCounterGoogleCloudMlV1beta1PredictionOutput = 0; +buildGoogleCloudMlV1beta1PredictionOutput() { + var o = new api.GoogleCloudMlV1beta1PredictionOutput(); + buildCounterGoogleCloudMlV1beta1PredictionOutput++; + if (buildCounterGoogleCloudMlV1beta1PredictionOutput < 3) { + o.errorCount = "foo"; + o.outputPath = "foo"; + o.predictionCount = "foo"; + } + buildCounterGoogleCloudMlV1beta1PredictionOutput--; + return o; +} + +checkGoogleCloudMlV1beta1PredictionOutput(api.GoogleCloudMlV1beta1PredictionOutput o) { + buildCounterGoogleCloudMlV1beta1PredictionOutput++; + if (buildCounterGoogleCloudMlV1beta1PredictionOutput < 3) { + unittest.expect(o.errorCount, unittest.equals('foo')); + unittest.expect(o.outputPath, unittest.equals('foo')); + unittest.expect(o.predictionCount, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1PredictionOutput--; +} + +core.int buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest = 0; +buildGoogleCloudMlV1beta1SetDefaultVersionRequest() { + var o = new api.GoogleCloudMlV1beta1SetDefaultVersionRequest(); + buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++; + if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) { + } + buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--; + return o; +} + +checkGoogleCloudMlV1beta1SetDefaultVersionRequest(api.GoogleCloudMlV1beta1SetDefaultVersionRequest o) { + buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest++; + if (buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest < 3) { + } + buildCounterGoogleCloudMlV1beta1SetDefaultVersionRequest--; +} + +buildUnnamed3446() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3446(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3447() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3447(core.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 buildCounterGoogleCloudMlV1beta1TrainingInput = 0; +buildGoogleCloudMlV1beta1TrainingInput() { + var o = new api.GoogleCloudMlV1beta1TrainingInput(); + buildCounterGoogleCloudMlV1beta1TrainingInput++; + if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { + o.args = buildUnnamed3446(); + o.hyperparameters = buildGoogleCloudMlV1beta1HyperparameterSpec(); + o.masterType = "foo"; + o.packageUris = buildUnnamed3447(); + o.parameterServerCount = "foo"; + o.parameterServerType = "foo"; + o.pythonModule = "foo"; + o.region = "foo"; + o.scaleTier = "foo"; + o.workerCount = "foo"; + o.workerType = "foo"; + } + buildCounterGoogleCloudMlV1beta1TrainingInput--; + return o; +} + +checkGoogleCloudMlV1beta1TrainingInput(api.GoogleCloudMlV1beta1TrainingInput o) { + buildCounterGoogleCloudMlV1beta1TrainingInput++; + if (buildCounterGoogleCloudMlV1beta1TrainingInput < 3) { + checkUnnamed3446(o.args); + checkGoogleCloudMlV1beta1HyperparameterSpec(o.hyperparameters); + unittest.expect(o.masterType, unittest.equals('foo')); + checkUnnamed3447(o.packageUris); + unittest.expect(o.parameterServerCount, unittest.equals('foo')); + unittest.expect(o.parameterServerType, unittest.equals('foo')); + unittest.expect(o.pythonModule, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + unittest.expect(o.scaleTier, unittest.equals('foo')); + unittest.expect(o.workerCount, unittest.equals('foo')); + unittest.expect(o.workerType, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1TrainingInput--; +} + +buildUnnamed3448() { + var o = new core.List<api.GoogleCloudMlV1beta1HyperparameterOutput>(); + o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); + o.add(buildGoogleCloudMlV1beta1HyperparameterOutput()); + return o; +} + +checkUnnamed3448(core.List<api.GoogleCloudMlV1beta1HyperparameterOutput> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1beta1HyperparameterOutput(o[0]); + checkGoogleCloudMlV1beta1HyperparameterOutput(o[1]); +} + +core.int buildCounterGoogleCloudMlV1beta1TrainingOutput = 0; +buildGoogleCloudMlV1beta1TrainingOutput() { + var o = new api.GoogleCloudMlV1beta1TrainingOutput(); + buildCounterGoogleCloudMlV1beta1TrainingOutput++; + if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { + o.completedTrialCount = "foo"; + o.trials = buildUnnamed3448(); + } + buildCounterGoogleCloudMlV1beta1TrainingOutput--; + return o; +} + +checkGoogleCloudMlV1beta1TrainingOutput(api.GoogleCloudMlV1beta1TrainingOutput o) { + buildCounterGoogleCloudMlV1beta1TrainingOutput++; + if (buildCounterGoogleCloudMlV1beta1TrainingOutput < 3) { + unittest.expect(o.completedTrialCount, unittest.equals('foo')); + checkUnnamed3448(o.trials); + } + buildCounterGoogleCloudMlV1beta1TrainingOutput--; +} + +core.int buildCounterGoogleCloudMlV1beta1Version = 0; +buildGoogleCloudMlV1beta1Version() { + var o = new api.GoogleCloudMlV1beta1Version(); + buildCounterGoogleCloudMlV1beta1Version++; + if (buildCounterGoogleCloudMlV1beta1Version < 3) { + o.createTime = "foo"; + o.deploymentUri = "foo"; + o.description = "foo"; + o.isDefault = true; + o.lastUseTime = "foo"; + o.name = "foo"; + } + buildCounterGoogleCloudMlV1beta1Version--; + return o; +} + +checkGoogleCloudMlV1beta1Version(api.GoogleCloudMlV1beta1Version o) { + buildCounterGoogleCloudMlV1beta1Version++; + if (buildCounterGoogleCloudMlV1beta1Version < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.deploymentUri, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.isDefault, unittest.isTrue); + unittest.expect(o.lastUseTime, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1beta1Version--; +} + +buildUnnamed3449() { + var o = new core.List<api.GoogleLongrunningOperation>(); + o.add(buildGoogleLongrunningOperation()); + o.add(buildGoogleLongrunningOperation()); + return o; +} + +checkUnnamed3449(core.List<api.GoogleLongrunningOperation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleLongrunningOperation(o[0]); + checkGoogleLongrunningOperation(o[1]); +} + +core.int buildCounterGoogleLongrunningListOperationsResponse = 0; +buildGoogleLongrunningListOperationsResponse() { + var o = new api.GoogleLongrunningListOperationsResponse(); + buildCounterGoogleLongrunningListOperationsResponse++; + if (buildCounterGoogleLongrunningListOperationsResponse < 3) { + o.nextPageToken = "foo"; + o.operations = buildUnnamed3449(); + } + buildCounterGoogleLongrunningListOperationsResponse--; + return o; +} + +checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperationsResponse o) { + buildCounterGoogleLongrunningListOperationsResponse++; + if (buildCounterGoogleLongrunningListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed3449(o.operations); + } + buildCounterGoogleLongrunningListOperationsResponse--; +} + +buildUnnamed3450() { + 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; +} + +checkUnnamed3450(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')); +} + +buildUnnamed3451() { + 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; +} + +checkUnnamed3451(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')); +} + +core.int buildCounterGoogleLongrunningOperation = 0; +buildGoogleLongrunningOperation() { + var o = new api.GoogleLongrunningOperation(); + buildCounterGoogleLongrunningOperation++; + if (buildCounterGoogleLongrunningOperation < 3) { + o.done = true; + o.error = buildGoogleRpcStatus(); + o.metadata = buildUnnamed3450(); + o.name = "foo"; + o.response = buildUnnamed3451(); + } + buildCounterGoogleLongrunningOperation--; + return o; +} + +checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { + buildCounterGoogleLongrunningOperation++; + if (buildCounterGoogleLongrunningOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkGoogleRpcStatus(o.error); + checkUnnamed3450(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed3451(o.response); + } + buildCounterGoogleLongrunningOperation--; +} + +core.int buildCounterGoogleProtobufEmpty = 0; +buildGoogleProtobufEmpty() { + var o = new api.GoogleProtobufEmpty(); + buildCounterGoogleProtobufEmpty++; + if (buildCounterGoogleProtobufEmpty < 3) { + } + buildCounterGoogleProtobufEmpty--; + return o; +} + +checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { + buildCounterGoogleProtobufEmpty++; + if (buildCounterGoogleProtobufEmpty < 3) { + } + buildCounterGoogleProtobufEmpty--; +} + +buildUnnamed3452() { + 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; +} + +checkUnnamed3452(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')); +} + +buildUnnamed3453() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed3452()); + o.add(buildUnnamed3452()); + return o; +} + +checkUnnamed3453(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed3452(o[0]); + checkUnnamed3452(o[1]); +} + +core.int buildCounterGoogleRpcStatus = 0; +buildGoogleRpcStatus() { + var o = new api.GoogleRpcStatus(); + buildCounterGoogleRpcStatus++; + if (buildCounterGoogleRpcStatus < 3) { + o.code = 42; + o.details = buildUnnamed3453(); + o.message = "foo"; + } + buildCounterGoogleRpcStatus--; + return o; +} + +checkGoogleRpcStatus(api.GoogleRpcStatus o) { + buildCounterGoogleRpcStatus++; + if (buildCounterGoogleRpcStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed3453(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterGoogleRpcStatus--; +} + + +main() { + unittest.group("obj-schema-GoogleApiHttpBody", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleApiHttpBody(); + var od = new api.GoogleApiHttpBody.fromJson(o.toJson()); + checkGoogleApiHttpBody(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(); + var od = new api.GoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1HyperparameterOutputHyperparameterMetric(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1CancelJobRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1CancelJobRequest(); + var od = new api.GoogleCloudMlV1beta1CancelJobRequest.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1CancelJobRequest(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1GetConfigResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1GetConfigResponse(); + var od = new api.GoogleCloudMlV1beta1GetConfigResponse.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1GetConfigResponse(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1HyperparameterOutput", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1HyperparameterOutput(); + var od = new api.GoogleCloudMlV1beta1HyperparameterOutput.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1HyperparameterOutput(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1HyperparameterSpec", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1HyperparameterSpec(); + var od = new api.GoogleCloudMlV1beta1HyperparameterSpec.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1HyperparameterSpec(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1Job", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1Job(); + var od = new api.GoogleCloudMlV1beta1Job.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1Job(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1ListJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1ListJobsResponse(); + var od = new api.GoogleCloudMlV1beta1ListJobsResponse.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1ListJobsResponse(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1ListModelsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1ListModelsResponse(); + var od = new api.GoogleCloudMlV1beta1ListModelsResponse.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1ListModelsResponse(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1ListVersionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1ListVersionsResponse(); + var od = new api.GoogleCloudMlV1beta1ListVersionsResponse.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1ListVersionsResponse(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1Model", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1Model(); + var od = new api.GoogleCloudMlV1beta1Model.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1Model(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1OperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1OperationMetadata(); + var od = new api.GoogleCloudMlV1beta1OperationMetadata.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1OperationMetadata(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1ParameterSpec", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1ParameterSpec(); + var od = new api.GoogleCloudMlV1beta1ParameterSpec.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1ParameterSpec(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1PredictRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1PredictRequest(); + var od = new api.GoogleCloudMlV1beta1PredictRequest.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1PredictRequest(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1PredictionInput", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1PredictionInput(); + var od = new api.GoogleCloudMlV1beta1PredictionInput.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1PredictionInput(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1PredictionOutput", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1PredictionOutput(); + var od = new api.GoogleCloudMlV1beta1PredictionOutput.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1PredictionOutput(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1SetDefaultVersionRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1SetDefaultVersionRequest(); + var od = new api.GoogleCloudMlV1beta1SetDefaultVersionRequest.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1SetDefaultVersionRequest(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1TrainingInput", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1TrainingInput(); + var od = new api.GoogleCloudMlV1beta1TrainingInput.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1TrainingInput(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1TrainingOutput", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1TrainingOutput(); + var od = new api.GoogleCloudMlV1beta1TrainingOutput.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1TrainingOutput(od); + }); + }); + + + unittest.group("obj-schema-GoogleCloudMlV1beta1Version", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1beta1Version(); + var od = new api.GoogleCloudMlV1beta1Version.fromJson(o.toJson()); + checkGoogleCloudMlV1beta1Version(od); + }); + }); + + + unittest.group("obj-schema-GoogleLongrunningListOperationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleLongrunningListOperationsResponse(); + var od = new api.GoogleLongrunningListOperationsResponse.fromJson(o.toJson()); + checkGoogleLongrunningListOperationsResponse(od); + }); + }); + + + unittest.group("obj-schema-GoogleLongrunningOperation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleLongrunningOperation(); + var od = new api.GoogleLongrunningOperation.fromJson(o.toJson()); + checkGoogleLongrunningOperation(od); + }); + }); + + + unittest.group("obj-schema-GoogleProtobufEmpty", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleProtobufEmpty(); + var od = new api.GoogleProtobufEmpty.fromJson(o.toJson()); + checkGoogleProtobufEmpty(od); + }); + }); + + + unittest.group("obj-schema-GoogleRpcStatus", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleRpcStatus(); + var od = new api.GoogleRpcStatus.fromJson(o.toJson()); + checkGoogleRpcStatus(od); + }); + }); + + + unittest.group("resource-ProjectsResourceApi", () { + unittest.test("method--getConfig", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.MlApi(mock).projects; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1GetConfigResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.getConfig(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1GetConfigResponse response) { + checkGoogleCloudMlV1beta1GetConfigResponse(response); + }))); + }); + + unittest.test("method--predict", () { + + var mock = new HttpServerMock(); + api.ProjectsResourceApi res = new api.MlApi(mock).projects; + var arg_request = buildGoogleCloudMlV1beta1PredictRequest(); + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GoogleCloudMlV1beta1PredictRequest.fromJson(json); + checkGoogleCloudMlV1beta1PredictRequest(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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleApiHttpBody()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.predict(arg_request, arg_name).then(unittest.expectAsync(((api.GoogleApiHttpBody response) { + checkGoogleApiHttpBody(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsJobsResourceApi", () { + unittest.test("method--cancel", () { + + var mock = new HttpServerMock(); + api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; + var arg_request = buildGoogleCloudMlV1beta1CancelJobRequest(); + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GoogleCloudMlV1beta1CancelJobRequest.fromJson(json); + checkGoogleCloudMlV1beta1CancelJobRequest(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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleProtobufEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.GoogleProtobufEmpty response) { + checkGoogleProtobufEmpty(response); + }))); + }); + + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; + var arg_request = buildGoogleCloudMlV1beta1Job(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GoogleCloudMlV1beta1Job.fromJson(json); + checkGoogleCloudMlV1beta1Job(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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1Job()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Job response) { + checkGoogleCloudMlV1beta1Job(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1Job()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Job response) { + checkGoogleCloudMlV1beta1Job(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; + var arg_parent = "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; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildGoogleCloudMlV1beta1ListJobsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1ListJobsResponse response) { + checkGoogleCloudMlV1beta1ListJobsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsModelsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; + var arg_request = buildGoogleCloudMlV1beta1Model(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GoogleCloudMlV1beta1Model.fromJson(json); + checkGoogleCloudMlV1beta1Model(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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1Model()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Model response) { + checkGoogleCloudMlV1beta1Model(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1Model()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Model response) { + checkGoogleCloudMlV1beta1Model(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; + 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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1ListModelsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1ListModelsResponse response) { + checkGoogleCloudMlV1beta1ListModelsResponse(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsModelsVersionsResourceApi", () { + unittest.test("method--create", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; + var arg_request = buildGoogleCloudMlV1beta1Version(); + var arg_parent = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GoogleCloudMlV1beta1Version.fromJson(json); + checkGoogleCloudMlV1beta1Version(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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1Version()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Version response) { + checkGoogleCloudMlV1beta1Version(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; + 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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1ListVersionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1ListVersionsResponse response) { + checkGoogleCloudMlV1beta1ListVersionsResponse(response); + }))); + }); + + unittest.test("method--setDefault", () { + + var mock = new HttpServerMock(); + api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; + var arg_request = buildGoogleCloudMlV1beta1SetDefaultVersionRequest(); + var arg_name = "foo"; + mock.register(unittest.expectAsync((http.BaseRequest req, json) { + var obj = new api.GoogleCloudMlV1beta1SetDefaultVersionRequest.fromJson(json); + checkGoogleCloudMlV1beta1SetDefaultVersionRequest(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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleCloudMlV1beta1Version()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.setDefault(arg_request, arg_name).then(unittest.expectAsync(((api.GoogleCloudMlV1beta1Version response) { + checkGoogleCloudMlV1beta1Version(response); + }))); + }); + + }); + + + unittest.group("resource-ProjectsOperationsResourceApi", () { + unittest.test("method--cancel", () { + + var mock = new HttpServerMock(); + api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleProtobufEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.cancel(arg_name).then(unittest.expectAsync(((api.GoogleProtobufEmpty response) { + checkGoogleProtobufEmpty(response); + }))); + }); + + unittest.test("method--delete", () { + + var mock = new HttpServerMock(); + api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleProtobufEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.delete(arg_name).then(unittest.expectAsync(((api.GoogleProtobufEmpty response) { + checkGoogleProtobufEmpty(response); + }))); + }); + + unittest.test("method--get", () { + + var mock = new HttpServerMock(); + api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; + var arg_name = "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 + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.get(arg_name).then(unittest.expectAsync(((api.GoogleLongrunningOperation response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--list", () { + + var mock = new HttpServerMock(); + api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; + var arg_name = "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; + var index; + var subPart; + unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/")); + pathOffset += 8; + // 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["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + + + var h = { + "content-type" : "application/json; charset=utf-8", + }; + var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.GoogleLongrunningListOperationsResponse response) { + checkGoogleLongrunningListOperationsResponse(response); + }))); + }); + + }); + + +} +
diff --git a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart index e76dfe9..b586174 100644 --- a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart +++ b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
@@ -93,14 +93,14 @@ buildCounterAttachmentInfo--; } -buildUnnamed4126() { +buildUnnamed3963() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4126(core.Map<core.String, core.String> o) { +checkUnnamed3963(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')); @@ -119,7 +119,7 @@ o.indoorLevel = buildIndoorLevel(); o.latLng = buildLatLng(); o.placeId = "foo"; - o.properties = buildUnnamed4126(); + o.properties = buildUnnamed3963(); o.provisioningKey = "foo"; o.status = "foo"; } @@ -138,7 +138,7 @@ checkIndoorLevel(o.indoorLevel); checkLatLng(o.latLng); unittest.expect(o.placeId, unittest.equals('foo')); - checkUnnamed4126(o.properties); + checkUnnamed3963(o.properties); unittest.expect(o.provisioningKey, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } @@ -168,14 +168,14 @@ buildCounterBeaconAttachment--; } -buildUnnamed4127() { +buildUnnamed3964() { var o = new core.List<api.AttachmentInfo>(); o.add(buildAttachmentInfo()); o.add(buildAttachmentInfo()); return o; } -checkUnnamed4127(core.List<api.AttachmentInfo> o) { +checkUnnamed3964(core.List<api.AttachmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachmentInfo(o[0]); checkAttachmentInfo(o[1]); @@ -187,7 +187,7 @@ buildCounterBeaconInfo++; if (buildCounterBeaconInfo < 3) { o.advertisedId = buildAdvertisedId(); - o.attachments = buildUnnamed4127(); + o.attachments = buildUnnamed3964(); o.beaconName = "foo"; } buildCounterBeaconInfo--; @@ -198,7 +198,7 @@ buildCounterBeaconInfo++; if (buildCounterBeaconInfo < 3) { checkAdvertisedId(o.advertisedId); - checkUnnamed4127(o.attachments); + checkUnnamed3964(o.attachments); unittest.expect(o.beaconName, unittest.equals('foo')); } buildCounterBeaconInfo--; @@ -246,14 +246,14 @@ buildCounterDeleteAttachmentsResponse--; } -buildUnnamed4128() { +buildUnnamed3965() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4128(core.List<core.String> o) { +checkUnnamed3965(core.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 @@ var o = new api.Diagnostics(); buildCounterDiagnostics++; if (buildCounterDiagnostics < 3) { - o.alerts = buildUnnamed4128(); + o.alerts = buildUnnamed3965(); o.beaconName = "foo"; o.estimatedLowBatteryDate = buildDate(); } @@ -275,7 +275,7 @@ checkDiagnostics(api.Diagnostics o) { buildCounterDiagnostics++; if (buildCounterDiagnostics < 3) { - checkUnnamed4128(o.alerts); + checkUnnamed3965(o.alerts); unittest.expect(o.beaconName, unittest.equals('foo')); checkDate(o.estimatedLowBatteryDate); } @@ -351,27 +351,27 @@ buildCounterEphemeralIdRegistrationParams--; } -buildUnnamed4129() { +buildUnnamed3966() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4129(core.List<core.String> o) { +checkUnnamed3966(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4130() { +buildUnnamed3967() { var o = new core.List<api.Observation>(); o.add(buildObservation()); o.add(buildObservation()); return o; } -checkUnnamed4130(core.List<api.Observation> o) { +checkUnnamed3967(core.List<api.Observation> o) { unittest.expect(o, unittest.hasLength(2)); checkObservation(o[0]); checkObservation(o[1]); @@ -382,8 +382,8 @@ var o = new api.GetInfoForObservedBeaconsRequest(); buildCounterGetInfoForObservedBeaconsRequest++; if (buildCounterGetInfoForObservedBeaconsRequest < 3) { - o.namespacedTypes = buildUnnamed4129(); - o.observations = buildUnnamed4130(); + o.namespacedTypes = buildUnnamed3966(); + o.observations = buildUnnamed3967(); } buildCounterGetInfoForObservedBeaconsRequest--; return o; @@ -392,20 +392,20 @@ checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) { buildCounterGetInfoForObservedBeaconsRequest++; if (buildCounterGetInfoForObservedBeaconsRequest < 3) { - checkUnnamed4129(o.namespacedTypes); - checkUnnamed4130(o.observations); + checkUnnamed3966(o.namespacedTypes); + checkUnnamed3967(o.observations); } buildCounterGetInfoForObservedBeaconsRequest--; } -buildUnnamed4131() { +buildUnnamed3968() { var o = new core.List<api.BeaconInfo>(); o.add(buildBeaconInfo()); o.add(buildBeaconInfo()); return o; } -checkUnnamed4131(core.List<api.BeaconInfo> o) { +checkUnnamed3968(core.List<api.BeaconInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBeaconInfo(o[0]); checkBeaconInfo(o[1]); @@ -416,7 +416,7 @@ var o = new api.GetInfoForObservedBeaconsResponse(); buildCounterGetInfoForObservedBeaconsResponse++; if (buildCounterGetInfoForObservedBeaconsResponse < 3) { - o.beacons = buildUnnamed4131(); + o.beacons = buildUnnamed3968(); } buildCounterGetInfoForObservedBeaconsResponse--; return o; @@ -425,7 +425,7 @@ checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) { buildCounterGetInfoForObservedBeaconsResponse++; if (buildCounterGetInfoForObservedBeaconsResponse < 3) { - checkUnnamed4131(o.beacons); + checkUnnamed3968(o.beacons); } buildCounterGetInfoForObservedBeaconsResponse--; } @@ -470,14 +470,14 @@ buildCounterLatLng--; } -buildUnnamed4132() { +buildUnnamed3969() { var o = new core.List<api.BeaconAttachment>(); o.add(buildBeaconAttachment()); o.add(buildBeaconAttachment()); return o; } -checkUnnamed4132(core.List<api.BeaconAttachment> o) { +checkUnnamed3969(core.List<api.BeaconAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkBeaconAttachment(o[0]); checkBeaconAttachment(o[1]); @@ -488,7 +488,7 @@ var o = new api.ListBeaconAttachmentsResponse(); buildCounterListBeaconAttachmentsResponse++; if (buildCounterListBeaconAttachmentsResponse < 3) { - o.attachments = buildUnnamed4132(); + o.attachments = buildUnnamed3969(); } buildCounterListBeaconAttachmentsResponse--; return o; @@ -497,19 +497,19 @@ checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) { buildCounterListBeaconAttachmentsResponse++; if (buildCounterListBeaconAttachmentsResponse < 3) { - checkUnnamed4132(o.attachments); + checkUnnamed3969(o.attachments); } buildCounterListBeaconAttachmentsResponse--; } -buildUnnamed4133() { +buildUnnamed3970() { var o = new core.List<api.Beacon>(); o.add(buildBeacon()); o.add(buildBeacon()); return o; } -checkUnnamed4133(core.List<api.Beacon> o) { +checkUnnamed3970(core.List<api.Beacon> o) { unittest.expect(o, unittest.hasLength(2)); checkBeacon(o[0]); checkBeacon(o[1]); @@ -520,7 +520,7 @@ var o = new api.ListBeaconsResponse(); buildCounterListBeaconsResponse++; if (buildCounterListBeaconsResponse < 3) { - o.beacons = buildUnnamed4133(); + o.beacons = buildUnnamed3970(); o.nextPageToken = "foo"; o.totalCount = "foo"; } @@ -531,21 +531,21 @@ checkListBeaconsResponse(api.ListBeaconsResponse o) { buildCounterListBeaconsResponse++; if (buildCounterListBeaconsResponse < 3) { - checkUnnamed4133(o.beacons); + checkUnnamed3970(o.beacons); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalCount, unittest.equals('foo')); } buildCounterListBeaconsResponse--; } -buildUnnamed4134() { +buildUnnamed3971() { var o = new core.List<api.Diagnostics>(); o.add(buildDiagnostics()); o.add(buildDiagnostics()); return o; } -checkUnnamed4134(core.List<api.Diagnostics> o) { +checkUnnamed3971(core.List<api.Diagnostics> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostics(o[0]); checkDiagnostics(o[1]); @@ -556,7 +556,7 @@ var o = new api.ListDiagnosticsResponse(); buildCounterListDiagnosticsResponse++; if (buildCounterListDiagnosticsResponse < 3) { - o.diagnostics = buildUnnamed4134(); + o.diagnostics = buildUnnamed3971(); o.nextPageToken = "foo"; } buildCounterListDiagnosticsResponse--; @@ -566,20 +566,20 @@ checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) { buildCounterListDiagnosticsResponse++; if (buildCounterListDiagnosticsResponse < 3) { - checkUnnamed4134(o.diagnostics); + checkUnnamed3971(o.diagnostics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDiagnosticsResponse--; } -buildUnnamed4135() { +buildUnnamed3972() { var o = new core.List<api.Namespace>(); o.add(buildNamespace()); o.add(buildNamespace()); return o; } -checkUnnamed4135(core.List<api.Namespace> o) { +checkUnnamed3972(core.List<api.Namespace> o) { unittest.expect(o, unittest.hasLength(2)); checkNamespace(o[0]); checkNamespace(o[1]); @@ -590,7 +590,7 @@ var o = new api.ListNamespacesResponse(); buildCounterListNamespacesResponse++; if (buildCounterListNamespacesResponse < 3) { - o.namespaces = buildUnnamed4135(); + o.namespaces = buildUnnamed3972(); } buildCounterListNamespacesResponse--; return o; @@ -599,7 +599,7 @@ checkListNamespacesResponse(api.ListNamespacesResponse o) { buildCounterListNamespacesResponse++; if (buildCounterListNamespacesResponse < 3) { - checkUnnamed4135(o.namespaces); + checkUnnamed3972(o.namespaces); } buildCounterListNamespacesResponse--; }
diff --git a/generated/googleapis_beta/test/pubsub/v1beta2_test.dart b/generated/googleapis_beta/test/pubsub/v1beta2_test.dart index 062e17b..ffae91d 100644 --- a/generated/googleapis_beta/test/pubsub/v1beta2_test.dart +++ b/generated/googleapis_beta/test/pubsub/v1beta2_test.dart
@@ -51,14 +51,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4024() { +buildUnnamed3861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4024(core.List<core.String> o) { +checkUnnamed3861(core.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 = buildUnnamed4024(); + o.ackIds = buildUnnamed3861(); } buildCounterAcknowledgeRequest--; return o; @@ -78,19 +78,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed4024(o.ackIds); + checkUnnamed3861(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed4025() { +buildUnnamed3862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4025(core.List<core.String> o) { +checkUnnamed3862(core.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 = buildUnnamed4025(); + o.members = buildUnnamed3862(); o.role = "foo"; } buildCounterBinding--; @@ -111,7 +111,7 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { - checkUnnamed4025(o.members); + checkUnnamed3862(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -134,14 +134,14 @@ buildCounterEmpty--; } -buildUnnamed4026() { +buildUnnamed3863() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed4026(core.List<api.Subscription> o) { +checkUnnamed3863(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 = buildUnnamed4026(); + o.subscriptions = buildUnnamed3863(); } buildCounterListSubscriptionsResponse--; return o; @@ -163,19 +163,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4026(o.subscriptions); + checkUnnamed3863(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed4027() { +buildUnnamed3864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4027(core.List<core.String> o) { +checkUnnamed3864(core.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 = buildUnnamed4027(); + o.subscriptions = buildUnnamed3864(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -197,19 +197,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4027(o.subscriptions); + checkUnnamed3864(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed4028() { +buildUnnamed3865() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed4028(core.List<api.Topic> o) { +checkUnnamed3865(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 = buildUnnamed4028(); + o.topics = buildUnnamed3865(); } buildCounterListTopicsResponse--; return o; @@ -231,19 +231,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4028(o.topics); + checkUnnamed3865(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed4029() { +buildUnnamed3866() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4029(core.List<core.String> o) { +checkUnnamed3866(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -256,7 +256,7 @@ if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; o.ackId = "foo"; - o.ackIds = buildUnnamed4029(); + o.ackIds = buildUnnamed3866(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -267,7 +267,7 @@ if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); unittest.expect(o.ackId, unittest.equals('foo')); - checkUnnamed4029(o.ackIds); + checkUnnamed3866(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -291,14 +291,14 @@ buildCounterModifyPushConfigRequest--; } -buildUnnamed4030() { +buildUnnamed3867() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed4030(core.List<api.Binding> o) { +checkUnnamed3867(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -309,7 +309,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed4030(); + o.bindings = buildUnnamed3867(); o.etag = "foo"; o.version = 42; } @@ -320,21 +320,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed4030(o.bindings); + checkUnnamed3867(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed4031() { +buildUnnamed3868() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed4031(core.List<api.PubsubMessage> o) { +checkUnnamed3868(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -345,7 +345,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed4031(); + o.messages = buildUnnamed3868(); } buildCounterPublishRequest--; return o; @@ -354,19 +354,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed4031(o.messages); + checkUnnamed3868(o.messages); } buildCounterPublishRequest--; } -buildUnnamed4032() { +buildUnnamed3869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4032(core.List<core.String> o) { +checkUnnamed3869(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -377,7 +377,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed4032(); + o.messageIds = buildUnnamed3869(); } buildCounterPublishResponse--; return o; @@ -386,19 +386,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed4032(o.messageIds); + checkUnnamed3869(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed4033() { +buildUnnamed3870() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4033(core.Map<core.String, core.String> o) { +checkUnnamed3870(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')); @@ -409,7 +409,7 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed4033(); + o.attributes = buildUnnamed3870(); o.data = "foo"; o.messageId = "foo"; o.publishTime = "foo"; @@ -421,7 +421,7 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed4033(o.attributes); + checkUnnamed3870(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); @@ -450,14 +450,14 @@ buildCounterPullRequest--; } -buildUnnamed4034() { +buildUnnamed3871() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed4034(core.List<api.ReceivedMessage> o) { +checkUnnamed3871(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -468,7 +468,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed4034(); + o.receivedMessages = buildUnnamed3871(); } buildCounterPullResponse--; return o; @@ -477,19 +477,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed4034(o.receivedMessages); + checkUnnamed3871(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed4035() { +buildUnnamed3872() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4035(core.Map<core.String, core.String> o) { +checkUnnamed3872(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')); @@ -500,7 +500,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed4035(); + o.attributes = buildUnnamed3872(); o.pushEndpoint = "foo"; } buildCounterPushConfig--; @@ -510,7 +510,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed4035(o.attributes); + checkUnnamed3872(o.attributes); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } buildCounterPushConfig--; @@ -581,14 +581,14 @@ buildCounterSubscription--; } -buildUnnamed4036() { +buildUnnamed3873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4036(core.List<core.String> o) { +checkUnnamed3873(core.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,7 +599,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed4036(); + o.permissions = buildUnnamed3873(); } buildCounterTestIamPermissionsRequest--; return o; @@ -608,19 +608,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed4036(o.permissions); + checkUnnamed3873(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed4037() { +buildUnnamed3874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4037(core.List<core.String> o) { +checkUnnamed3874(core.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,7 +631,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed4037(); + o.permissions = buildUnnamed3874(); } buildCounterTestIamPermissionsResponse--; return o; @@ -640,7 +640,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed4037(o.permissions); + checkUnnamed3874(o.permissions); } buildCounterTestIamPermissionsResponse--; }
diff --git a/generated/googleapis_beta/test/replicapool/v1beta2_test.dart b/generated/googleapis_beta/test/replicapool/v1beta2_test.dart index d750a28..efe89f4 100644 --- a/generated/googleapis_beta/test/replicapool/v1beta2_test.dart +++ b/generated/googleapis_beta/test/replicapool/v1beta2_test.dart
@@ -51,27 +51,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4115() { +buildUnnamed3952() { var o = new core.List<api.ReplicaPoolAutoHealingPolicy>(); o.add(buildReplicaPoolAutoHealingPolicy()); o.add(buildReplicaPoolAutoHealingPolicy()); return o; } -checkUnnamed4115(core.List<api.ReplicaPoolAutoHealingPolicy> o) { +checkUnnamed3952(core.List<api.ReplicaPoolAutoHealingPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkReplicaPoolAutoHealingPolicy(o[0]); checkReplicaPoolAutoHealingPolicy(o[1]); } -buildUnnamed4116() { +buildUnnamed3953() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4116(core.List<core.String> o) { +checkUnnamed3953(core.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 @@ var o = new api.InstanceGroupManager(); buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { - o.autoHealingPolicies = buildUnnamed4115(); + o.autoHealingPolicies = buildUnnamed3952(); o.baseInstanceName = "foo"; o.creationTimestamp = "foo"; o.currentSize = 42; @@ -94,7 +94,7 @@ o.kind = "foo"; o.name = "foo"; o.selfLink = "foo"; - o.targetPools = buildUnnamed4116(); + o.targetPools = buildUnnamed3953(); o.targetSize = 42; } buildCounterInstanceGroupManager--; @@ -104,7 +104,7 @@ checkInstanceGroupManager(api.InstanceGroupManager o) { buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { - checkUnnamed4115(o.autoHealingPolicies); + checkUnnamed3952(o.autoHealingPolicies); unittest.expect(o.baseInstanceName, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.currentSize, unittest.equals(42)); @@ -116,20 +116,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed4116(o.targetPools); + checkUnnamed3953(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); } buildCounterInstanceGroupManager--; } -buildUnnamed4117() { +buildUnnamed3954() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed4117(core.List<api.InstanceGroupManager> o) { +checkUnnamed3954(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -141,7 +141,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed4117(); + o.items = buildUnnamed3954(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -154,7 +154,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4117(o.items); + checkUnnamed3954(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -162,14 +162,14 @@ buildCounterInstanceGroupManagerList--; } -buildUnnamed4118() { +buildUnnamed3955() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4118(core.List<core.String> o) { +checkUnnamed3955(core.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.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed4118(); + o.instances = buildUnnamed3955(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -189,19 +189,19 @@ checkInstanceGroupManagersAbandonInstancesRequest(api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed4118(o.instances); + checkUnnamed3955(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed4119() { +buildUnnamed3956() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4119(core.List<core.String> o) { +checkUnnamed3956(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -212,7 +212,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed4119(); + o.instances = buildUnnamed3956(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -221,19 +221,19 @@ checkInstanceGroupManagersDeleteInstancesRequest(api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed4119(o.instances); + checkUnnamed3956(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed4120() { +buildUnnamed3957() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4120(core.List<core.String> o) { +checkUnnamed3957(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -244,7 +244,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed4120(); + o.instances = buildUnnamed3957(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -253,7 +253,7 @@ checkInstanceGroupManagersRecreateInstancesRequest(api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed4120(o.instances); + checkUnnamed3957(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } @@ -277,14 +277,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed4121() { +buildUnnamed3958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4121(core.List<core.String> o) { +checkUnnamed3958(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -296,7 +296,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed4121(); + o.targetPools = buildUnnamed3958(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -306,7 +306,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed4121(o.targetPools); + checkUnnamed3958(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } @@ -334,14 +334,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed4122() { +buildUnnamed3959() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed4122(core.List<api.OperationErrorErrors> o) { +checkUnnamed3959(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -352,7 +352,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed4122(); + o.errors = buildUnnamed3959(); } buildCounterOperationError--; return o; @@ -361,7 +361,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed4122(o.errors); + checkUnnamed3959(o.errors); } buildCounterOperationError--; } @@ -387,14 +387,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed4123() { +buildUnnamed3960() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed4123(core.List<api.OperationWarningsData> o) { +checkUnnamed3960(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -406,7 +406,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed4123(); + o.data = buildUnnamed3960(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -417,20 +417,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed4123(o.data); + checkUnnamed3960(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed4124() { +buildUnnamed3961() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed4124(core.List<api.OperationWarnings> o) { +checkUnnamed3961(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -461,7 +461,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed4124(); + o.warnings = buildUnnamed3961(); o.zone = "foo"; } buildCounterOperation--; @@ -491,20 +491,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed4124(o.warnings); + checkUnnamed3961(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed4125() { +buildUnnamed3962() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4125(core.List<api.Operation> o) { +checkUnnamed3962(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -516,7 +516,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed4125(); + o.items = buildUnnamed3962(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -529,7 +529,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4125(o.items); + checkUnnamed3962(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_beta/test/replicapoolupdater/v1beta1_test.dart b/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart index c0bfc3d..8eb951a 100644 --- a/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart +++ b/generated/googleapis_beta/test/replicapoolupdater/v1beta1_test.dart
@@ -74,14 +74,14 @@ buildCounterInstanceUpdateErrorErrors--; } -buildUnnamed3737() { +buildUnnamed3574() { var o = new core.List<api.InstanceUpdateErrorErrors>(); o.add(buildInstanceUpdateErrorErrors()); o.add(buildInstanceUpdateErrorErrors()); return o; } -checkUnnamed3737(core.List<api.InstanceUpdateErrorErrors> o) { +checkUnnamed3574(core.List<api.InstanceUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceUpdateErrorErrors(o[0]); checkInstanceUpdateErrorErrors(o[1]); @@ -92,7 +92,7 @@ var o = new api.InstanceUpdateError(); buildCounterInstanceUpdateError++; if (buildCounterInstanceUpdateError < 3) { - o.errors = buildUnnamed3737(); + o.errors = buildUnnamed3574(); } buildCounterInstanceUpdateError--; return o; @@ -101,7 +101,7 @@ checkInstanceUpdateError(api.InstanceUpdateError o) { buildCounterInstanceUpdateError++; if (buildCounterInstanceUpdateError < 3) { - checkUnnamed3737(o.errors); + checkUnnamed3574(o.errors); } buildCounterInstanceUpdateError--; } @@ -129,14 +129,14 @@ buildCounterInstanceUpdate--; } -buildUnnamed3738() { +buildUnnamed3575() { var o = new core.List<api.InstanceUpdate>(); o.add(buildInstanceUpdate()); o.add(buildInstanceUpdate()); return o; } -checkUnnamed3738(core.List<api.InstanceUpdate> o) { +checkUnnamed3575(core.List<api.InstanceUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceUpdate(o[0]); checkInstanceUpdate(o[1]); @@ -147,7 +147,7 @@ var o = new api.InstanceUpdateList(); buildCounterInstanceUpdateList++; if (buildCounterInstanceUpdateList < 3) { - o.items = buildUnnamed3738(); + o.items = buildUnnamed3575(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -159,7 +159,7 @@ checkInstanceUpdateList(api.InstanceUpdateList o) { buildCounterInstanceUpdateList++; if (buildCounterInstanceUpdateList < 3) { - checkUnnamed3738(o.items); + checkUnnamed3575(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -190,14 +190,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3739() { +buildUnnamed3576() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3739(core.List<api.OperationErrorErrors> o) { +checkUnnamed3576(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -208,7 +208,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3739(); + o.errors = buildUnnamed3576(); } buildCounterOperationError--; return o; @@ -217,7 +217,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3739(o.errors); + checkUnnamed3576(o.errors); } buildCounterOperationError--; } @@ -243,14 +243,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3740() { +buildUnnamed3577() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3740(core.List<api.OperationWarningsData> o) { +checkUnnamed3577(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -262,7 +262,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3740(); + o.data = buildUnnamed3577(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -273,20 +273,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3740(o.data); + checkUnnamed3577(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3741() { +buildUnnamed3578() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3741(core.List<api.OperationWarnings> o) { +checkUnnamed3578(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -317,7 +317,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3741(); + o.warnings = buildUnnamed3578(); o.zone = "foo"; } buildCounterOperation--; @@ -347,20 +347,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3741(o.warnings); + checkUnnamed3578(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3742() { +buildUnnamed3579() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3742(core.List<api.Operation> o) { +checkUnnamed3579(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -372,7 +372,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3742(); + o.items = buildUnnamed3579(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -385,7 +385,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3742(o.items); + checkUnnamed3579(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -416,14 +416,14 @@ buildCounterRollingUpdateErrorErrors--; } -buildUnnamed3743() { +buildUnnamed3580() { var o = new core.List<api.RollingUpdateErrorErrors>(); o.add(buildRollingUpdateErrorErrors()); o.add(buildRollingUpdateErrorErrors()); return o; } -checkUnnamed3743(core.List<api.RollingUpdateErrorErrors> o) { +checkUnnamed3580(core.List<api.RollingUpdateErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkRollingUpdateErrorErrors(o[0]); checkRollingUpdateErrorErrors(o[1]); @@ -434,7 +434,7 @@ var o = new api.RollingUpdateError(); buildCounterRollingUpdateError++; if (buildCounterRollingUpdateError < 3) { - o.errors = buildUnnamed3743(); + o.errors = buildUnnamed3580(); } buildCounterRollingUpdateError--; return o; @@ -443,7 +443,7 @@ checkRollingUpdateError(api.RollingUpdateError o) { buildCounterRollingUpdateError++; if (buildCounterRollingUpdateError < 3) { - checkUnnamed3743(o.errors); + checkUnnamed3580(o.errors); } buildCounterRollingUpdateError--; } @@ -524,14 +524,14 @@ buildCounterRollingUpdate--; } -buildUnnamed3744() { +buildUnnamed3581() { var o = new core.List<api.RollingUpdate>(); o.add(buildRollingUpdate()); o.add(buildRollingUpdate()); return o; } -checkUnnamed3744(core.List<api.RollingUpdate> o) { +checkUnnamed3581(core.List<api.RollingUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkRollingUpdate(o[0]); checkRollingUpdate(o[1]); @@ -542,7 +542,7 @@ var o = new api.RollingUpdateList(); buildCounterRollingUpdateList++; if (buildCounterRollingUpdateList < 3) { - o.items = buildUnnamed3744(); + o.items = buildUnnamed3581(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -554,7 +554,7 @@ checkRollingUpdateList(api.RollingUpdateList o) { buildCounterRollingUpdateList++; if (buildCounterRollingUpdateList < 3) { - checkUnnamed3744(o.items); + checkUnnamed3581(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_beta/test/resourceviews/v1beta1_test.dart b/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart index beedd31..4f9d86e 100644 --- a/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart +++ b/generated/googleapis_beta/test/resourceviews/v1beta1_test.dart
@@ -72,14 +72,14 @@ buildCounterLabel--; } -buildUnnamed4038() { +buildUnnamed3875() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4038(core.List<core.String> o) { +checkUnnamed3875(core.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.RegionViewsAddResourcesRequest(); buildCounterRegionViewsAddResourcesRequest++; if (buildCounterRegionViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed4038(); + o.resources = buildUnnamed3875(); } buildCounterRegionViewsAddResourcesRequest--; return o; @@ -99,7 +99,7 @@ checkRegionViewsAddResourcesRequest(api.RegionViewsAddResourcesRequest o) { buildCounterRegionViewsAddResourcesRequest++; if (buildCounterRegionViewsAddResourcesRequest < 3) { - checkUnnamed4038(o.resources); + checkUnnamed3875(o.resources); } buildCounterRegionViewsAddResourcesRequest--; } @@ -123,14 +123,14 @@ buildCounterRegionViewsInsertResponse--; } -buildUnnamed4039() { +buildUnnamed3876() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4039(core.List<core.String> o) { +checkUnnamed3876(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -141,7 +141,7 @@ var o = new api.RegionViewsListResourcesResponse(); buildCounterRegionViewsListResourcesResponse++; if (buildCounterRegionViewsListResourcesResponse < 3) { - o.members = buildUnnamed4039(); + o.members = buildUnnamed3876(); o.nextPageToken = "foo"; } buildCounterRegionViewsListResourcesResponse--; @@ -151,20 +151,20 @@ checkRegionViewsListResourcesResponse(api.RegionViewsListResourcesResponse o) { buildCounterRegionViewsListResourcesResponse++; if (buildCounterRegionViewsListResourcesResponse < 3) { - checkUnnamed4039(o.members); + checkUnnamed3876(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRegionViewsListResourcesResponse--; } -buildUnnamed4040() { +buildUnnamed3877() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed4040(core.List<api.ResourceView> o) { +checkUnnamed3877(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -176,7 +176,7 @@ buildCounterRegionViewsListResponse++; if (buildCounterRegionViewsListResponse < 3) { o.nextPageToken = "foo"; - o.resourceViews = buildUnnamed4040(); + o.resourceViews = buildUnnamed3877(); } buildCounterRegionViewsListResponse--; return o; @@ -186,19 +186,19 @@ buildCounterRegionViewsListResponse++; if (buildCounterRegionViewsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4040(o.resourceViews); + checkUnnamed3877(o.resourceViews); } buildCounterRegionViewsListResponse--; } -buildUnnamed4041() { +buildUnnamed3878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4041(core.List<core.String> o) { +checkUnnamed3878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -209,7 +209,7 @@ var o = new api.RegionViewsRemoveResourcesRequest(); buildCounterRegionViewsRemoveResourcesRequest++; if (buildCounterRegionViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed4041(); + o.resources = buildUnnamed3878(); } buildCounterRegionViewsRemoveResourcesRequest--; return o; @@ -218,32 +218,32 @@ checkRegionViewsRemoveResourcesRequest(api.RegionViewsRemoveResourcesRequest o) { buildCounterRegionViewsRemoveResourcesRequest++; if (buildCounterRegionViewsRemoveResourcesRequest < 3) { - checkUnnamed4041(o.resources); + checkUnnamed3878(o.resources); } buildCounterRegionViewsRemoveResourcesRequest--; } -buildUnnamed4042() { +buildUnnamed3879() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed4042(core.List<api.Label> o) { +checkUnnamed3879(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); } -buildUnnamed4043() { +buildUnnamed3880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4043(core.List<core.String> o) { +checkUnnamed3880(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -258,9 +258,9 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed4042(); + o.labels = buildUnnamed3879(); o.lastModified = "foo"; - o.members = buildUnnamed4043(); + o.members = buildUnnamed3880(); o.name = "foo"; o.numMembers = 42; o.selfLink = "foo"; @@ -276,9 +276,9 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4042(o.labels); + checkUnnamed3879(o.labels); unittest.expect(o.lastModified, unittest.equals('foo')); - checkUnnamed4043(o.members); + checkUnnamed3880(o.members); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.numMembers, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -286,14 +286,14 @@ buildCounterResourceView--; } -buildUnnamed4044() { +buildUnnamed3881() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4044(core.List<core.String> o) { +checkUnnamed3881(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -304,7 +304,7 @@ var o = new api.ZoneViewsAddResourcesRequest(); buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed4044(); + o.resources = buildUnnamed3881(); } buildCounterZoneViewsAddResourcesRequest--; return o; @@ -313,7 +313,7 @@ checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - checkUnnamed4044(o.resources); + checkUnnamed3881(o.resources); } buildCounterZoneViewsAddResourcesRequest--; } @@ -337,14 +337,14 @@ buildCounterZoneViewsInsertResponse--; } -buildUnnamed4045() { +buildUnnamed3882() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4045(core.List<core.String> o) { +checkUnnamed3882(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -355,7 +355,7 @@ var o = new api.ZoneViewsListResourcesResponse(); buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - o.members = buildUnnamed4045(); + o.members = buildUnnamed3882(); o.nextPageToken = "foo"; } buildCounterZoneViewsListResourcesResponse--; @@ -365,20 +365,20 @@ checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - checkUnnamed4045(o.members); + checkUnnamed3882(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterZoneViewsListResourcesResponse--; } -buildUnnamed4046() { +buildUnnamed3883() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed4046(core.List<api.ResourceView> o) { +checkUnnamed3883(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -390,7 +390,7 @@ buildCounterZoneViewsListResponse++; if (buildCounterZoneViewsListResponse < 3) { o.nextPageToken = "foo"; - o.resourceViews = buildUnnamed4046(); + o.resourceViews = buildUnnamed3883(); } buildCounterZoneViewsListResponse--; return o; @@ -400,19 +400,19 @@ buildCounterZoneViewsListResponse++; if (buildCounterZoneViewsListResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4046(o.resourceViews); + checkUnnamed3883(o.resourceViews); } buildCounterZoneViewsListResponse--; } -buildUnnamed4047() { +buildUnnamed3884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4047(core.List<core.String> o) { +checkUnnamed3884(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -423,7 +423,7 @@ var o = new api.ZoneViewsRemoveResourcesRequest(); buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed4047(); + o.resources = buildUnnamed3884(); } buildCounterZoneViewsRemoveResourcesRequest--; return o; @@ -432,7 +432,7 @@ checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - checkUnnamed4047(o.resources); + checkUnnamed3884(o.resources); } buildCounterZoneViewsRemoveResourcesRequest--; }
diff --git a/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart b/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart index a503a7b..b9fe716 100644 --- a/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart +++ b/generated/googleapis_beta/test/resourceviews/v1beta2_test.dart
@@ -72,30 +72,30 @@ buildCounterLabel--; } -buildUnnamed3707() { +buildUnnamed3544() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3707(core.List<core.int> o) { +checkUnnamed3544(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)); } -buildUnnamed3708() { +buildUnnamed3545() { var o = new core.Map<core.String, core.List<core.int>>(); - o["x"] = buildUnnamed3707(); - o["y"] = buildUnnamed3707(); + o["x"] = buildUnnamed3544(); + o["y"] = buildUnnamed3544(); return o; } -checkUnnamed3708(core.Map<core.String, core.List<core.int>> o) { +checkUnnamed3545(core.Map<core.String, core.List<core.int>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3707(o["x"]); - checkUnnamed3707(o["y"]); + checkUnnamed3544(o["x"]); + checkUnnamed3544(o["y"]); } core.int buildCounterListResourceResponseItem = 0; @@ -103,7 +103,7 @@ var o = new api.ListResourceResponseItem(); buildCounterListResourceResponseItem++; if (buildCounterListResourceResponseItem < 3) { - o.endpoints = buildUnnamed3708(); + o.endpoints = buildUnnamed3545(); o.resource = "foo"; } buildCounterListResourceResponseItem--; @@ -113,7 +113,7 @@ checkListResourceResponseItem(api.ListResourceResponseItem o) { buildCounterListResourceResponseItem++; if (buildCounterListResourceResponseItem < 3) { - checkUnnamed3708(o.endpoints); + checkUnnamed3545(o.endpoints); unittest.expect(o.resource, unittest.equals('foo')); } buildCounterListResourceResponseItem--; @@ -142,14 +142,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed3709() { +buildUnnamed3546() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed3709(core.List<api.OperationErrorErrors> o) { +checkUnnamed3546(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -160,7 +160,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed3709(); + o.errors = buildUnnamed3546(); } buildCounterOperationError--; return o; @@ -169,7 +169,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed3709(o.errors); + checkUnnamed3546(o.errors); } buildCounterOperationError--; } @@ -195,14 +195,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed3710() { +buildUnnamed3547() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed3710(core.List<api.OperationWarningsData> o) { +checkUnnamed3547(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -214,7 +214,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3710(); + o.data = buildUnnamed3547(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -225,20 +225,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3710(o.data); + checkUnnamed3547(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed3711() { +buildUnnamed3548() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed3711(core.List<api.OperationWarnings> o) { +checkUnnamed3548(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -269,7 +269,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed3711(); + o.warnings = buildUnnamed3548(); o.zone = "foo"; } buildCounterOperation--; @@ -299,20 +299,20 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3711(o.warnings); + checkUnnamed3548(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed3712() { +buildUnnamed3549() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3712(core.List<api.Operation> o) { +checkUnnamed3549(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -324,7 +324,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed3712(); + o.items = buildUnnamed3549(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -337,7 +337,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3712(o.items); + checkUnnamed3549(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -345,40 +345,40 @@ buildCounterOperationList--; } -buildUnnamed3713() { +buildUnnamed3550() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3713(core.List<api.ServiceEndpoint> o) { +checkUnnamed3550(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); } -buildUnnamed3714() { +buildUnnamed3551() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed3714(core.List<api.Label> o) { +checkUnnamed3551(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); } -buildUnnamed3715() { +buildUnnamed3552() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3715(core.List<core.String> o) { +checkUnnamed3552(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -391,14 +391,14 @@ if (buildCounterResourceView < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.endpoints = buildUnnamed3713(); + o.endpoints = buildUnnamed3550(); o.fingerprint = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3714(); + o.labels = buildUnnamed3551(); o.name = "foo"; o.network = "foo"; - o.resources = buildUnnamed3715(); + o.resources = buildUnnamed3552(); o.selfLink = "foo"; o.size = 42; } @@ -411,14 +411,14 @@ if (buildCounterResourceView < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3713(o.endpoints); + checkUnnamed3550(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3714(o.labels); + checkUnnamed3551(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed3715(o.resources); + checkUnnamed3552(o.resources); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.size, unittest.equals(42)); } @@ -446,14 +446,14 @@ buildCounterServiceEndpoint--; } -buildUnnamed3716() { +buildUnnamed3553() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3716(core.List<core.String> o) { +checkUnnamed3553(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -464,7 +464,7 @@ var o = new api.ZoneViewsAddResourcesRequest(); buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - o.resources = buildUnnamed3716(); + o.resources = buildUnnamed3553(); } buildCounterZoneViewsAddResourcesRequest--; return o; @@ -473,19 +473,19 @@ checkZoneViewsAddResourcesRequest(api.ZoneViewsAddResourcesRequest o) { buildCounterZoneViewsAddResourcesRequest++; if (buildCounterZoneViewsAddResourcesRequest < 3) { - checkUnnamed3716(o.resources); + checkUnnamed3553(o.resources); } buildCounterZoneViewsAddResourcesRequest--; } -buildUnnamed3717() { +buildUnnamed3554() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3717(core.List<api.ServiceEndpoint> o) { +checkUnnamed3554(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); @@ -496,7 +496,7 @@ var o = new api.ZoneViewsGetServiceResponse(); buildCounterZoneViewsGetServiceResponse++; if (buildCounterZoneViewsGetServiceResponse < 3) { - o.endpoints = buildUnnamed3717(); + o.endpoints = buildUnnamed3554(); o.fingerprint = "foo"; } buildCounterZoneViewsGetServiceResponse--; @@ -506,20 +506,20 @@ checkZoneViewsGetServiceResponse(api.ZoneViewsGetServiceResponse o) { buildCounterZoneViewsGetServiceResponse++; if (buildCounterZoneViewsGetServiceResponse < 3) { - checkUnnamed3717(o.endpoints); + checkUnnamed3554(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); } buildCounterZoneViewsGetServiceResponse--; } -buildUnnamed3718() { +buildUnnamed3555() { var o = new core.List<api.ResourceView>(); o.add(buildResourceView()); o.add(buildResourceView()); return o; } -checkUnnamed3718(core.List<api.ResourceView> o) { +checkUnnamed3555(core.List<api.ResourceView> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceView(o[0]); checkResourceView(o[1]); @@ -530,7 +530,7 @@ var o = new api.ZoneViewsList(); buildCounterZoneViewsList++; if (buildCounterZoneViewsList < 3) { - o.items = buildUnnamed3718(); + o.items = buildUnnamed3555(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -542,7 +542,7 @@ checkZoneViewsList(api.ZoneViewsList o) { buildCounterZoneViewsList++; if (buildCounterZoneViewsList < 3) { - checkUnnamed3718(o.items); + checkUnnamed3555(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -550,14 +550,14 @@ buildCounterZoneViewsList--; } -buildUnnamed3719() { +buildUnnamed3556() { var o = new core.List<api.ListResourceResponseItem>(); o.add(buildListResourceResponseItem()); o.add(buildListResourceResponseItem()); return o; } -checkUnnamed3719(core.List<api.ListResourceResponseItem> o) { +checkUnnamed3556(core.List<api.ListResourceResponseItem> o) { unittest.expect(o, unittest.hasLength(2)); checkListResourceResponseItem(o[0]); checkListResourceResponseItem(o[1]); @@ -568,7 +568,7 @@ var o = new api.ZoneViewsListResourcesResponse(); buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - o.items = buildUnnamed3719(); + o.items = buildUnnamed3556(); o.network = "foo"; o.nextPageToken = "foo"; } @@ -579,21 +579,21 @@ checkZoneViewsListResourcesResponse(api.ZoneViewsListResourcesResponse o) { buildCounterZoneViewsListResourcesResponse++; if (buildCounterZoneViewsListResourcesResponse < 3) { - checkUnnamed3719(o.items); + checkUnnamed3556(o.items); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterZoneViewsListResourcesResponse--; } -buildUnnamed3720() { +buildUnnamed3557() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3720(core.List<core.String> o) { +checkUnnamed3557(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -604,7 +604,7 @@ var o = new api.ZoneViewsRemoveResourcesRequest(); buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - o.resources = buildUnnamed3720(); + o.resources = buildUnnamed3557(); } buildCounterZoneViewsRemoveResourcesRequest--; return o; @@ -613,19 +613,19 @@ checkZoneViewsRemoveResourcesRequest(api.ZoneViewsRemoveResourcesRequest o) { buildCounterZoneViewsRemoveResourcesRequest++; if (buildCounterZoneViewsRemoveResourcesRequest < 3) { - checkUnnamed3720(o.resources); + checkUnnamed3557(o.resources); } buildCounterZoneViewsRemoveResourcesRequest--; } -buildUnnamed3721() { +buildUnnamed3558() { var o = new core.List<api.ServiceEndpoint>(); o.add(buildServiceEndpoint()); o.add(buildServiceEndpoint()); return o; } -checkUnnamed3721(core.List<api.ServiceEndpoint> o) { +checkUnnamed3558(core.List<api.ServiceEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceEndpoint(o[0]); checkServiceEndpoint(o[1]); @@ -636,7 +636,7 @@ var o = new api.ZoneViewsSetServiceRequest(); buildCounterZoneViewsSetServiceRequest++; if (buildCounterZoneViewsSetServiceRequest < 3) { - o.endpoints = buildUnnamed3721(); + o.endpoints = buildUnnamed3558(); o.fingerprint = "foo"; o.resourceName = "foo"; } @@ -647,7 +647,7 @@ checkZoneViewsSetServiceRequest(api.ZoneViewsSetServiceRequest o) { buildCounterZoneViewsSetServiceRequest++; if (buildCounterZoneViewsSetServiceRequest < 3) { - checkUnnamed3721(o.endpoints); + checkUnnamed3558(o.endpoints); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); }
diff --git a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart index fd793da..14e2285 100644 --- a/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart +++ b/generated/googleapis_beta/test/runtimeconfig/v1beta1_test.dart
@@ -108,14 +108,14 @@ buildCounterEndCondition--; } -buildUnnamed4213() { +buildUnnamed4048() { var o = new core.List<api.RuntimeConfig>(); o.add(buildRuntimeConfig()); o.add(buildRuntimeConfig()); return o; } -checkUnnamed4213(core.List<api.RuntimeConfig> o) { +checkUnnamed4048(core.List<api.RuntimeConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkRuntimeConfig(o[0]); checkRuntimeConfig(o[1]); @@ -126,7 +126,7 @@ var o = new api.ListConfigsResponse(); buildCounterListConfigsResponse++; if (buildCounterListConfigsResponse < 3) { - o.configs = buildUnnamed4213(); + o.configs = buildUnnamed4048(); o.nextPageToken = "foo"; } buildCounterListConfigsResponse--; @@ -136,20 +136,20 @@ checkListConfigsResponse(api.ListConfigsResponse o) { buildCounterListConfigsResponse++; if (buildCounterListConfigsResponse < 3) { - checkUnnamed4213(o.configs); + checkUnnamed4048(o.configs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListConfigsResponse--; } -buildUnnamed4214() { +buildUnnamed4049() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4214(core.List<api.Variable> o) { +checkUnnamed4049(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -161,7 +161,7 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { o.nextPageToken = "foo"; - o.variables = buildUnnamed4214(); + o.variables = buildUnnamed4049(); } buildCounterListVariablesResponse--; return o; @@ -171,19 +171,19 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4214(o.variables); + checkUnnamed4049(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed4215() { +buildUnnamed4050() { var o = new core.List<api.Waiter>(); o.add(buildWaiter()); o.add(buildWaiter()); return o; } -checkUnnamed4215(core.List<api.Waiter> o) { +checkUnnamed4050(core.List<api.Waiter> o) { unittest.expect(o, unittest.hasLength(2)); checkWaiter(o[0]); checkWaiter(o[1]); @@ -195,7 +195,7 @@ buildCounterListWaitersResponse++; if (buildCounterListWaitersResponse < 3) { o.nextPageToken = "foo"; - o.waiters = buildUnnamed4215(); + o.waiters = buildUnnamed4050(); } buildCounterListWaitersResponse--; return o; @@ -205,32 +205,32 @@ buildCounterListWaitersResponse++; if (buildCounterListWaitersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4215(o.waiters); + checkUnnamed4050(o.waiters); } buildCounterListWaitersResponse--; } -buildUnnamed4216() { +buildUnnamed4051() { 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; } -checkUnnamed4216(core.Map<core.String, core.Object> o) { +checkUnnamed4051(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')); } -buildUnnamed4217() { +buildUnnamed4052() { 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; } -checkUnnamed4217(core.Map<core.String, core.Object> o) { +checkUnnamed4052(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')); @@ -243,9 +243,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4216(); + o.metadata = buildUnnamed4051(); o.name = "foo"; - o.response = buildUnnamed4217(); + o.response = buildUnnamed4052(); } buildCounterOperation--; return o; @@ -256,9 +256,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4216(o.metadata); + checkUnnamed4051(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4217(o.response); + checkUnnamed4052(o.response); } buildCounterOperation--; } @@ -284,30 +284,30 @@ buildCounterRuntimeConfig--; } -buildUnnamed4218() { +buildUnnamed4053() { 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; } -checkUnnamed4218(core.Map<core.String, core.Object> o) { +checkUnnamed4053(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')); } -buildUnnamed4219() { +buildUnnamed4054() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4218()); - o.add(buildUnnamed4218()); + o.add(buildUnnamed4053()); + o.add(buildUnnamed4053()); return o; } -checkUnnamed4219(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4054(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4218(o[0]); - checkUnnamed4218(o[1]); + checkUnnamed4053(o[0]); + checkUnnamed4053(o[1]); } core.int buildCounterStatus = 0; @@ -316,7 +316,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4219(); + o.details = buildUnnamed4054(); o.message = "foo"; } buildCounterStatus--; @@ -327,7 +327,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4219(o.details); + checkUnnamed4054(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -527,6 +527,7 @@ api.ProjectsConfigsResourceApi res = new api.RuntimeconfigApi(mock).projects.configs; var arg_request = buildRuntimeConfig(); var arg_parent = "foo"; + var arg_requestId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.RuntimeConfig.fromJson(json); checkRuntimeConfig(obj); @@ -557,6 +558,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId)); var h = { @@ -565,7 +567,7 @@ var resp = convert.JSON.encode(buildRuntimeConfig()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.RuntimeConfig response) { + res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.RuntimeConfig response) { checkRuntimeConfig(response); }))); }); @@ -817,6 +819,7 @@ api.ProjectsConfigsVariablesResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.variables; var arg_request = buildVariable(); var arg_parent = "foo"; + var arg_requestId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Variable.fromJson(json); checkVariable(obj); @@ -847,6 +850,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId)); var h = { @@ -855,7 +859,7 @@ var resp = convert.JSON.encode(buildVariable()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Variable response) { + res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.Variable response) { checkVariable(response); }))); }); @@ -1111,6 +1115,7 @@ api.ProjectsConfigsWaitersResourceApi res = new api.RuntimeconfigApi(mock).projects.configs.waiters; var arg_request = buildWaiter(); var arg_parent = "foo"; + var arg_requestId = "foo"; mock.register(unittest.expectAsync((http.BaseRequest req, json) { var obj = new api.Waiter.fromJson(json); checkWaiter(obj); @@ -1141,6 +1146,7 @@ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["requestId"].first, unittest.equals(arg_requestId)); var h = { @@ -1149,7 +1155,7 @@ var resp = convert.JSON.encode(buildOperation()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.create(arg_request, arg_parent).then(unittest.expectAsync(((api.Operation response) { + res.create(arg_request, arg_parent, requestId: arg_requestId).then(unittest.expectAsync(((api.Operation response) { checkOperation(response); }))); });
diff --git a/generated/googleapis_beta/test/speech/v1beta1_test.dart b/generated/googleapis_beta/test/speech/v1beta1_test.dart index 03791e5..f8fcfb8 100644 --- a/generated/googleapis_beta/test/speech/v1beta1_test.dart +++ b/generated/googleapis_beta/test/speech/v1beta1_test.dart
@@ -106,14 +106,14 @@ buildCounterEmpty--; } -buildUnnamed4088() { +buildUnnamed3925() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4088(core.List<api.Operation> o) { +checkUnnamed3925(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -125,7 +125,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4088(); + o.operations = buildUnnamed3925(); } buildCounterListOperationsResponse--; return o; @@ -135,32 +135,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4088(o.operations); + checkUnnamed3925(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4089() { +buildUnnamed3926() { 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; } -checkUnnamed4089(core.Map<core.String, core.Object> o) { +checkUnnamed3926(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')); } -buildUnnamed4090() { +buildUnnamed3927() { 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; } -checkUnnamed4090(core.Map<core.String, core.Object> o) { +checkUnnamed3927(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')); @@ -173,9 +173,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4089(); + o.metadata = buildUnnamed3926(); o.name = "foo"; - o.response = buildUnnamed4090(); + o.response = buildUnnamed3927(); } buildCounterOperation--; return o; @@ -186,9 +186,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4089(o.metadata); + checkUnnamed3926(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4090(o.response); + checkUnnamed3927(o.response); } buildCounterOperation--; } @@ -243,14 +243,14 @@ buildCounterRecognitionConfig--; } -buildUnnamed4091() { +buildUnnamed3928() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4091(core.List<core.String> o) { +checkUnnamed3928(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -261,7 +261,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed4091(); + o.phrases = buildUnnamed3928(); } buildCounterSpeechContext--; return o; @@ -270,7 +270,7 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed4091(o.phrases); + checkUnnamed3928(o.phrases); } buildCounterSpeechContext--; } @@ -296,14 +296,14 @@ buildCounterSpeechRecognitionAlternative--; } -buildUnnamed4092() { +buildUnnamed3929() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed4092(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed3929(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -314,7 +314,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed4092(); + o.alternatives = buildUnnamed3929(); } buildCounterSpeechRecognitionResult--; return o; @@ -323,35 +323,35 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed4092(o.alternatives); + checkUnnamed3929(o.alternatives); } buildCounterSpeechRecognitionResult--; } -buildUnnamed4093() { +buildUnnamed3930() { 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; } -checkUnnamed4093(core.Map<core.String, core.Object> o) { +checkUnnamed3930(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')); } -buildUnnamed4094() { +buildUnnamed3931() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4093()); - o.add(buildUnnamed4093()); + o.add(buildUnnamed3930()); + o.add(buildUnnamed3930()); return o; } -checkUnnamed4094(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3931(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4093(o[0]); - checkUnnamed4093(o[1]); + checkUnnamed3930(o[0]); + checkUnnamed3930(o[1]); } core.int buildCounterStatus = 0; @@ -360,7 +360,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4094(); + o.details = buildUnnamed3931(); o.message = "foo"; } buildCounterStatus--; @@ -371,7 +371,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4094(o.details); + checkUnnamed3931(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -398,14 +398,14 @@ buildCounterSyncRecognizeRequest--; } -buildUnnamed4095() { +buildUnnamed3932() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed4095(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed3932(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -416,7 +416,7 @@ var o = new api.SyncRecognizeResponse(); buildCounterSyncRecognizeResponse++; if (buildCounterSyncRecognizeResponse < 3) { - o.results = buildUnnamed4095(); + o.results = buildUnnamed3932(); } buildCounterSyncRecognizeResponse--; return o; @@ -425,7 +425,7 @@ checkSyncRecognizeResponse(api.SyncRecognizeResponse o) { buildCounterSyncRecognizeResponse++; if (buildCounterSyncRecognizeResponse < 3) { - checkUnnamed4095(o.results); + checkUnnamed3932(o.results); } buildCounterSyncRecognizeResponse--; }
diff --git a/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart index b45e5da..ff51b51 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta3_test.dart
@@ -113,14 +113,14 @@ buildCounterBackupRun--; } -buildUnnamed3622() { +buildUnnamed3454() { var o = new core.List<api.BackupRun>(); o.add(buildBackupRun()); o.add(buildBackupRun()); return o; } -checkUnnamed3622(core.List<api.BackupRun> o) { +checkUnnamed3454(core.List<api.BackupRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupRun(o[0]); checkBackupRun(o[1]); @@ -131,7 +131,7 @@ var o = new api.BackupRunsListResponse(); buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - o.items = buildUnnamed3622(); + o.items = buildUnnamed3454(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ checkBackupRunsListResponse(api.BackupRunsListResponse o) { buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - checkUnnamed3622(o.items); + checkUnnamed3454(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -218,27 +218,27 @@ buildCounterDatabaseFlags--; } -buildUnnamed3623() { +buildUnnamed3455() { var o = new core.List<api.IpMapping>(); o.add(buildIpMapping()); o.add(buildIpMapping()); return o; } -checkUnnamed3623(core.List<api.IpMapping> o) { +checkUnnamed3455(core.List<api.IpMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } -buildUnnamed3624() { +buildUnnamed3456() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3624(core.List<core.String> o) { +checkUnnamed3456(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -249,19 +249,20 @@ var o = new api.DatabaseInstance(); buildCounterDatabaseInstance++; if (buildCounterDatabaseInstance < 3) { + o.connectionName = "foo"; o.currentDiskSize = "foo"; o.databaseVersion = "foo"; o.etag = "foo"; o.instance = "foo"; o.instanceType = "foo"; - o.ipAddresses = buildUnnamed3623(); + o.ipAddresses = buildUnnamed3455(); o.ipv6Address = "foo"; o.kind = "foo"; o.masterInstanceName = "foo"; o.maxDiskSize = "foo"; o.project = "foo"; o.region = "foo"; - o.replicaNames = buildUnnamed3624(); + o.replicaNames = buildUnnamed3456(); o.serverCaCert = buildSslCert(); o.serviceAccountEmailAddress = "foo"; o.settings = buildSettings(); @@ -274,19 +275,20 @@ checkDatabaseInstance(api.DatabaseInstance o) { buildCounterDatabaseInstance++; if (buildCounterDatabaseInstance < 3) { + unittest.expect(o.connectionName, unittest.equals('foo')); unittest.expect(o.currentDiskSize, unittest.equals('foo')); unittest.expect(o.databaseVersion, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.instance, unittest.equals('foo')); unittest.expect(o.instanceType, unittest.equals('foo')); - checkUnnamed3623(o.ipAddresses); + checkUnnamed3455(o.ipAddresses); unittest.expect(o.ipv6Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.masterInstanceName, unittest.equals('foo')); unittest.expect(o.maxDiskSize, unittest.equals('foo')); unittest.expect(o.project, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed3624(o.replicaNames); + checkUnnamed3456(o.replicaNames); checkSslCert(o.serverCaCert); unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); checkSettings(o.settings); @@ -295,27 +297,27 @@ buildCounterDatabaseInstance--; } -buildUnnamed3625() { +buildUnnamed3457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3625(core.List<core.String> o) { +checkUnnamed3457(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3626() { +buildUnnamed3458() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3626(core.List<core.String> o) { +checkUnnamed3458(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -326,9 +328,9 @@ var o = new api.ExportContext(); buildCounterExportContext++; if (buildCounterExportContext < 3) { - o.database = buildUnnamed3625(); + o.database = buildUnnamed3457(); o.kind = "foo"; - o.table = buildUnnamed3626(); + o.table = buildUnnamed3458(); o.uri = "foo"; } buildCounterExportContext--; @@ -338,35 +340,35 @@ checkExportContext(api.ExportContext o) { buildCounterExportContext++; if (buildCounterExportContext < 3) { - checkUnnamed3625(o.database); + checkUnnamed3457(o.database); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3626(o.table); + checkUnnamed3458(o.table); unittest.expect(o.uri, unittest.equals('foo')); } buildCounterExportContext--; } -buildUnnamed3627() { +buildUnnamed3459() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3627(core.List<core.String> o) { +checkUnnamed3459(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3628() { +buildUnnamed3460() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3628(core.List<core.String> o) { +checkUnnamed3460(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -377,8 +379,8 @@ var o = new api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedStringValues = buildUnnamed3627(); - o.appliesTo = buildUnnamed3628(); + o.allowedStringValues = buildUnnamed3459(); + o.appliesTo = buildUnnamed3460(); o.kind = "foo"; o.maxValue = "foo"; o.minValue = "foo"; @@ -392,8 +394,8 @@ checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed3627(o.allowedStringValues); - checkUnnamed3628(o.appliesTo); + checkUnnamed3459(o.allowedStringValues); + checkUnnamed3460(o.appliesTo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maxValue, unittest.equals('foo')); unittest.expect(o.minValue, unittest.equals('foo')); @@ -403,14 +405,14 @@ buildCounterFlag--; } -buildUnnamed3629() { +buildUnnamed3461() { var o = new core.List<api.Flag>(); o.add(buildFlag()); o.add(buildFlag()); return o; } -checkUnnamed3629(core.List<api.Flag> o) { +checkUnnamed3461(core.List<api.Flag> o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -421,7 +423,7 @@ var o = new api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed3629(); + o.items = buildUnnamed3461(); o.kind = "foo"; } buildCounterFlagsListResponse--; @@ -431,20 +433,20 @@ checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed3629(o.items); + checkUnnamed3461(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFlagsListResponse--; } -buildUnnamed3630() { +buildUnnamed3462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3630(core.List<core.String> o) { +checkUnnamed3462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -457,7 +459,7 @@ if (buildCounterImportContext < 3) { o.database = "foo"; o.kind = "foo"; - o.uri = buildUnnamed3630(); + o.uri = buildUnnamed3462(); } buildCounterImportContext--; return o; @@ -468,19 +470,19 @@ if (buildCounterImportContext < 3) { unittest.expect(o.database, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3630(o.uri); + checkUnnamed3462(o.uri); } buildCounterImportContext--; } -buildUnnamed3631() { +buildUnnamed3463() { var o = new core.List<api.OperationError>(); o.add(buildOperationError()); o.add(buildOperationError()); return o; } -checkUnnamed3631(core.List<api.OperationError> o) { +checkUnnamed3463(core.List<api.OperationError> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -493,7 +495,7 @@ if (buildCounterInstanceOperation < 3) { o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.error = buildUnnamed3631(); + o.error = buildUnnamed3463(); o.exportContext = buildExportContext(); o.importContext = buildImportContext(); o.instance = "foo"; @@ -513,7 +515,7 @@ if (buildCounterInstanceOperation < 3) { unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed3631(o.error); + checkUnnamed3463(o.error); checkExportContext(o.exportContext); checkImportContext(o.importContext); unittest.expect(o.instance, unittest.equals('foo')); @@ -708,14 +710,14 @@ buildCounterInstancesInsertResponse--; } -buildUnnamed3632() { +buildUnnamed3464() { var o = new core.List<api.DatabaseInstance>(); o.add(buildDatabaseInstance()); o.add(buildDatabaseInstance()); return o; } -checkUnnamed3632(core.List<api.DatabaseInstance> o) { +checkUnnamed3464(core.List<api.DatabaseInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); @@ -726,7 +728,7 @@ var o = new api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed3632(); + o.items = buildUnnamed3464(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -737,7 +739,7 @@ checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed3632(o.items); + checkUnnamed3464(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -870,14 +872,14 @@ buildCounterInstancesUpdateResponse--; } -buildUnnamed3633() { +buildUnnamed3465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3633(core.List<core.String> o) { +checkUnnamed3465(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -888,7 +890,7 @@ var o = new api.IpConfiguration(); buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - o.authorizedNetworks = buildUnnamed3633(); + o.authorizedNetworks = buildUnnamed3465(); o.enabled = true; o.kind = "foo"; o.requireSsl = true; @@ -900,7 +902,7 @@ checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - checkUnnamed3633(o.authorizedNetworks); + checkUnnamed3465(o.authorizedNetworks); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requireSsl, unittest.isTrue); @@ -973,14 +975,14 @@ buildCounterOperationError--; } -buildUnnamed3634() { +buildUnnamed3466() { var o = new core.List<api.InstanceOperation>(); o.add(buildInstanceOperation()); o.add(buildInstanceOperation()); return o; } -checkUnnamed3634(core.List<api.InstanceOperation> o) { +checkUnnamed3466(core.List<api.InstanceOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceOperation(o[0]); checkInstanceOperation(o[1]); @@ -991,7 +993,7 @@ var o = new api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed3634(); + o.items = buildUnnamed3466(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1002,7 +1004,7 @@ checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed3634(o.items); + checkUnnamed3466(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1030,40 +1032,40 @@ buildCounterSetRootPasswordContext--; } -buildUnnamed3635() { +buildUnnamed3467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3635(core.List<core.String> o) { +checkUnnamed3467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3636() { +buildUnnamed3468() { var o = new core.List<api.BackupConfiguration>(); o.add(buildBackupConfiguration()); o.add(buildBackupConfiguration()); return o; } -checkUnnamed3636(core.List<api.BackupConfiguration> o) { +checkUnnamed3468(core.List<api.BackupConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupConfiguration(o[0]); checkBackupConfiguration(o[1]); } -buildUnnamed3637() { +buildUnnamed3469() { var o = new core.List<api.DatabaseFlags>(); o.add(buildDatabaseFlags()); o.add(buildDatabaseFlags()); return o; } -checkUnnamed3637(core.List<api.DatabaseFlags> o) { +checkUnnamed3469(core.List<api.DatabaseFlags> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); @@ -1075,9 +1077,9 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.activationPolicy = "foo"; - o.authorizedGaeApplications = buildUnnamed3635(); - o.backupConfiguration = buildUnnamed3636(); - o.databaseFlags = buildUnnamed3637(); + o.authorizedGaeApplications = buildUnnamed3467(); + o.backupConfiguration = buildUnnamed3468(); + o.databaseFlags = buildUnnamed3469(); o.databaseReplicationEnabled = true; o.ipConfiguration = buildIpConfiguration(); o.kind = "foo"; @@ -1095,9 +1097,9 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.activationPolicy, unittest.equals('foo')); - checkUnnamed3635(o.authorizedGaeApplications); - checkUnnamed3636(o.backupConfiguration); - checkUnnamed3637(o.databaseFlags); + checkUnnamed3467(o.authorizedGaeApplications); + checkUnnamed3468(o.backupConfiguration); + checkUnnamed3469(o.databaseFlags); unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); checkIpConfiguration(o.ipConfiguration); unittest.expect(o.kind, unittest.equals('foo')); @@ -1227,14 +1229,14 @@ buildCounterSslCertsInsertResponse--; } -buildUnnamed3638() { +buildUnnamed3470() { var o = new core.List<api.SslCert>(); o.add(buildSslCert()); o.add(buildSslCert()); return o; } -checkUnnamed3638(core.List<api.SslCert> o) { +checkUnnamed3470(core.List<api.SslCert> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -1245,7 +1247,7 @@ var o = new api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed3638(); + o.items = buildUnnamed3470(); o.kind = "foo"; } buildCounterSslCertsListResponse--; @@ -1255,20 +1257,20 @@ checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed3638(o.items); + checkUnnamed3470(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSslCertsListResponse--; } -buildUnnamed3639() { +buildUnnamed3471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3639(core.List<core.String> o) { +checkUnnamed3471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1282,7 +1284,7 @@ o.DiskQuota = "foo"; o.RAM = "foo"; o.kind = "foo"; - o.region = buildUnnamed3639(); + o.region = buildUnnamed3471(); o.tier = "foo"; } buildCounterTier--; @@ -1295,20 +1297,20 @@ unittest.expect(o.DiskQuota, unittest.equals('foo')); unittest.expect(o.RAM, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3639(o.region); + checkUnnamed3471(o.region); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterTier--; } -buildUnnamed3640() { +buildUnnamed3472() { var o = new core.List<api.Tier>(); o.add(buildTier()); o.add(buildTier()); return o; } -checkUnnamed3640(core.List<api.Tier> o) { +checkUnnamed3472(core.List<api.Tier> o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -1319,7 +1321,7 @@ var o = new api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed3640(); + o.items = buildUnnamed3472(); o.kind = "foo"; } buildCounterTiersListResponse--; @@ -1329,7 +1331,7 @@ checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed3640(o.items); + checkUnnamed3472(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTiersListResponse--;
diff --git a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart index 4b87540..64b3c62 100644 --- a/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart +++ b/generated/googleapis_beta/test/sqladmin/v1beta4_test.dart
@@ -142,14 +142,14 @@ buildCounterBackupRun--; } -buildUnnamed4048() { +buildUnnamed3885() { var o = new core.List<api.BackupRun>(); o.add(buildBackupRun()); o.add(buildBackupRun()); return o; } -checkUnnamed4048(core.List<api.BackupRun> o) { +checkUnnamed3885(core.List<api.BackupRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBackupRun(o[0]); checkBackupRun(o[1]); @@ -160,7 +160,7 @@ var o = new api.BackupRunsListResponse(); buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - o.items = buildUnnamed4048(); + o.items = buildUnnamed3885(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -171,7 +171,7 @@ checkBackupRunsListResponse(api.BackupRunsListResponse o) { buildCounterBackupRunsListResponse++; if (buildCounterBackupRunsListResponse < 3) { - checkUnnamed4048(o.items); + checkUnnamed3885(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -299,40 +299,40 @@ buildCounterDatabaseInstanceFailoverReplica--; } -buildUnnamed4049() { +buildUnnamed3886() { var o = new core.List<api.IpMapping>(); o.add(buildIpMapping()); o.add(buildIpMapping()); return o; } -checkUnnamed4049(core.List<api.IpMapping> o) { +checkUnnamed3886(core.List<api.IpMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkIpMapping(o[0]); checkIpMapping(o[1]); } -buildUnnamed4050() { +buildUnnamed3887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4050(core.List<core.String> o) { +checkUnnamed3887(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4051() { +buildUnnamed3888() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4051(core.List<core.String> o) { +checkUnnamed3888(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -344,12 +344,13 @@ buildCounterDatabaseInstance++; if (buildCounterDatabaseInstance < 3) { o.backendType = "foo"; + o.connectionName = "foo"; o.currentDiskSize = "foo"; o.databaseVersion = "foo"; o.etag = "foo"; o.failoverReplica = buildDatabaseInstanceFailoverReplica(); o.instanceType = "foo"; - o.ipAddresses = buildUnnamed4049(); + o.ipAddresses = buildUnnamed3886(); o.ipv6Address = "foo"; o.kind = "foo"; o.masterInstanceName = "foo"; @@ -359,13 +360,13 @@ o.project = "foo"; o.region = "foo"; o.replicaConfiguration = buildReplicaConfiguration(); - o.replicaNames = buildUnnamed4050(); + o.replicaNames = buildUnnamed3887(); o.selfLink = "foo"; o.serverCaCert = buildSslCert(); o.serviceAccountEmailAddress = "foo"; o.settings = buildSettings(); o.state = "foo"; - o.suspensionReason = buildUnnamed4051(); + o.suspensionReason = buildUnnamed3888(); } buildCounterDatabaseInstance--; return o; @@ -375,12 +376,13 @@ buildCounterDatabaseInstance++; if (buildCounterDatabaseInstance < 3) { unittest.expect(o.backendType, unittest.equals('foo')); + unittest.expect(o.connectionName, unittest.equals('foo')); unittest.expect(o.currentDiskSize, unittest.equals('foo')); unittest.expect(o.databaseVersion, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); checkDatabaseInstanceFailoverReplica(o.failoverReplica); unittest.expect(o.instanceType, unittest.equals('foo')); - checkUnnamed4049(o.ipAddresses); + checkUnnamed3886(o.ipAddresses); unittest.expect(o.ipv6Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.masterInstanceName, unittest.equals('foo')); @@ -390,25 +392,25 @@ unittest.expect(o.project, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); checkReplicaConfiguration(o.replicaConfiguration); - checkUnnamed4050(o.replicaNames); + checkUnnamed3887(o.replicaNames); unittest.expect(o.selfLink, unittest.equals('foo')); checkSslCert(o.serverCaCert); unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); checkSettings(o.settings); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed4051(o.suspensionReason); + checkUnnamed3888(o.suspensionReason); } buildCounterDatabaseInstance--; } -buildUnnamed4052() { +buildUnnamed3889() { var o = new core.List<api.Database>(); o.add(buildDatabase()); o.add(buildDatabase()); return o; } -checkUnnamed4052(core.List<api.Database> o) { +checkUnnamed3889(core.List<api.Database> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -419,7 +421,7 @@ var o = new api.DatabasesListResponse(); buildCounterDatabasesListResponse++; if (buildCounterDatabasesListResponse < 3) { - o.items = buildUnnamed4052(); + o.items = buildUnnamed3889(); o.kind = "foo"; } buildCounterDatabasesListResponse--; @@ -429,7 +431,7 @@ checkDatabasesListResponse(api.DatabasesListResponse o) { buildCounterDatabasesListResponse++; if (buildCounterDatabasesListResponse < 3) { - checkUnnamed4052(o.items); + checkUnnamed3889(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatabasesListResponse--; @@ -454,27 +456,27 @@ buildCounterExportContextCsvExportOptions--; } -buildUnnamed4053() { +buildUnnamed3890() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4053(core.List<core.String> o) { +checkUnnamed3890(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4054() { +buildUnnamed3891() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4054(core.List<core.String> o) { +checkUnnamed3891(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -486,7 +488,7 @@ buildCounterExportContextSqlExportOptions++; if (buildCounterExportContextSqlExportOptions < 3) { o.schemaOnly = true; - o.tables = buildUnnamed4054(); + o.tables = buildUnnamed3891(); } buildCounterExportContextSqlExportOptions--; return o; @@ -496,7 +498,7 @@ buildCounterExportContextSqlExportOptions++; if (buildCounterExportContextSqlExportOptions < 3) { unittest.expect(o.schemaOnly, unittest.isTrue); - checkUnnamed4054(o.tables); + checkUnnamed3891(o.tables); } buildCounterExportContextSqlExportOptions--; } @@ -507,7 +509,7 @@ buildCounterExportContext++; if (buildCounterExportContext < 3) { o.csvExportOptions = buildExportContextCsvExportOptions(); - o.databases = buildUnnamed4053(); + o.databases = buildUnnamed3890(); o.fileType = "foo"; o.kind = "foo"; o.sqlExportOptions = buildExportContextSqlExportOptions(); @@ -521,7 +523,7 @@ buildCounterExportContext++; if (buildCounterExportContext < 3) { checkExportContextCsvExportOptions(o.csvExportOptions); - checkUnnamed4053(o.databases); + checkUnnamed3890(o.databases); unittest.expect(o.fileType, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkExportContextSqlExportOptions(o.sqlExportOptions); @@ -551,27 +553,27 @@ buildCounterFailoverContext--; } -buildUnnamed4055() { +buildUnnamed3892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4055(core.List<core.String> o) { +checkUnnamed3892(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4056() { +buildUnnamed3893() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4056(core.List<core.String> o) { +checkUnnamed3893(core.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,8 +584,8 @@ var o = new api.Flag(); buildCounterFlag++; if (buildCounterFlag < 3) { - o.allowedStringValues = buildUnnamed4055(); - o.appliesTo = buildUnnamed4056(); + o.allowedStringValues = buildUnnamed3892(); + o.appliesTo = buildUnnamed3893(); o.kind = "foo"; o.maxValue = "foo"; o.minValue = "foo"; @@ -598,8 +600,8 @@ checkFlag(api.Flag o) { buildCounterFlag++; if (buildCounterFlag < 3) { - checkUnnamed4055(o.allowedStringValues); - checkUnnamed4056(o.appliesTo); + checkUnnamed3892(o.allowedStringValues); + checkUnnamed3893(o.appliesTo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.maxValue, unittest.equals('foo')); unittest.expect(o.minValue, unittest.equals('foo')); @@ -610,14 +612,14 @@ buildCounterFlag--; } -buildUnnamed4057() { +buildUnnamed3894() { var o = new core.List<api.Flag>(); o.add(buildFlag()); o.add(buildFlag()); return o; } -checkUnnamed4057(core.List<api.Flag> o) { +checkUnnamed3894(core.List<api.Flag> o) { unittest.expect(o, unittest.hasLength(2)); checkFlag(o[0]); checkFlag(o[1]); @@ -628,7 +630,7 @@ var o = new api.FlagsListResponse(); buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - o.items = buildUnnamed4057(); + o.items = buildUnnamed3894(); o.kind = "foo"; } buildCounterFlagsListResponse--; @@ -638,20 +640,20 @@ checkFlagsListResponse(api.FlagsListResponse o) { buildCounterFlagsListResponse++; if (buildCounterFlagsListResponse < 3) { - checkUnnamed4057(o.items); + checkUnnamed3894(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFlagsListResponse--; } -buildUnnamed4058() { +buildUnnamed3895() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4058(core.List<core.String> o) { +checkUnnamed3895(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -662,7 +664,7 @@ var o = new api.ImportContextCsvImportOptions(); buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - o.columns = buildUnnamed4058(); + o.columns = buildUnnamed3895(); o.table = "foo"; } buildCounterImportContextCsvImportOptions--; @@ -672,7 +674,7 @@ checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { buildCounterImportContextCsvImportOptions++; if (buildCounterImportContextCsvImportOptions < 3) { - checkUnnamed4058(o.columns); + checkUnnamed3895(o.columns); unittest.expect(o.table, unittest.equals('foo')); } buildCounterImportContextCsvImportOptions--; @@ -781,14 +783,14 @@ buildCounterInstancesImportRequest--; } -buildUnnamed4059() { +buildUnnamed3896() { var o = new core.List<api.DatabaseInstance>(); o.add(buildDatabaseInstance()); o.add(buildDatabaseInstance()); return o; } -checkUnnamed4059(core.List<api.DatabaseInstance> o) { +checkUnnamed3896(core.List<api.DatabaseInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseInstance(o[0]); checkDatabaseInstance(o[1]); @@ -799,7 +801,7 @@ var o = new api.InstancesListResponse(); buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - o.items = buildUnnamed4059(); + o.items = buildUnnamed3896(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -810,7 +812,7 @@ checkInstancesListResponse(api.InstancesListResponse o) { buildCounterInstancesListResponse++; if (buildCounterInstancesListResponse < 3) { - checkUnnamed4059(o.items); + checkUnnamed3896(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -836,14 +838,14 @@ buildCounterInstancesRestoreBackupRequest--; } -buildUnnamed4060() { +buildUnnamed3897() { var o = new core.List<api.AclEntry>(); o.add(buildAclEntry()); o.add(buildAclEntry()); return o; } -checkUnnamed4060(core.List<api.AclEntry> o) { +checkUnnamed3897(core.List<api.AclEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAclEntry(o[0]); checkAclEntry(o[1]); @@ -854,7 +856,7 @@ var o = new api.IpConfiguration(); buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - o.authorizedNetworks = buildUnnamed4060(); + o.authorizedNetworks = buildUnnamed3897(); o.ipv4Enabled = true; o.requireSsl = true; } @@ -865,7 +867,7 @@ checkIpConfiguration(api.IpConfiguration o) { buildCounterIpConfiguration++; if (buildCounterIpConfiguration < 3) { - checkUnnamed4060(o.authorizedNetworks); + checkUnnamed3897(o.authorizedNetworks); unittest.expect(o.ipv4Enabled, unittest.isTrue); unittest.expect(o.requireSsl, unittest.isTrue); } @@ -1071,14 +1073,14 @@ buildCounterOperationError--; } -buildUnnamed4061() { +buildUnnamed3898() { var o = new core.List<api.OperationError>(); o.add(buildOperationError()); o.add(buildOperationError()); return o; } -checkUnnamed4061(core.List<api.OperationError> o) { +checkUnnamed3898(core.List<api.OperationError> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationError(o[0]); checkOperationError(o[1]); @@ -1089,7 +1091,7 @@ var o = new api.OperationErrors(); buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - o.errors = buildUnnamed4061(); + o.errors = buildUnnamed3898(); o.kind = "foo"; } buildCounterOperationErrors--; @@ -1099,20 +1101,20 @@ checkOperationErrors(api.OperationErrors o) { buildCounterOperationErrors++; if (buildCounterOperationErrors < 3) { - checkUnnamed4061(o.errors); + checkUnnamed3898(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOperationErrors--; } -buildUnnamed4062() { +buildUnnamed3899() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4062(core.List<api.Operation> o) { +checkUnnamed3899(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1123,7 +1125,7 @@ var o = new api.OperationsListResponse(); buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - o.items = buildUnnamed4062(); + o.items = buildUnnamed3899(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1134,7 +1136,7 @@ checkOperationsListResponse(api.OperationsListResponse o) { buildCounterOperationsListResponse++; if (buildCounterOperationsListResponse < 3) { - checkUnnamed4062(o.items); + checkUnnamed3899(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1187,27 +1189,27 @@ buildCounterRestoreBackupContext--; } -buildUnnamed4063() { +buildUnnamed3900() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4063(core.List<core.String> o) { +checkUnnamed3900(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4064() { +buildUnnamed3901() { var o = new core.List<api.DatabaseFlags>(); o.add(buildDatabaseFlags()); o.add(buildDatabaseFlags()); return o; } -checkUnnamed4064(core.List<api.DatabaseFlags> o) { +checkUnnamed3901(core.List<api.DatabaseFlags> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabaseFlags(o[0]); checkDatabaseFlags(o[1]); @@ -1219,12 +1221,12 @@ buildCounterSettings++; if (buildCounterSettings < 3) { o.activationPolicy = "foo"; - o.authorizedGaeApplications = buildUnnamed4063(); + o.authorizedGaeApplications = buildUnnamed3900(); o.backupConfiguration = buildBackupConfiguration(); o.crashSafeReplicationEnabled = true; o.dataDiskSizeGb = "foo"; o.dataDiskType = "foo"; - o.databaseFlags = buildUnnamed4064(); + o.databaseFlags = buildUnnamed3901(); o.databaseReplicationEnabled = true; o.ipConfiguration = buildIpConfiguration(); o.kind = "foo"; @@ -1244,12 +1246,12 @@ buildCounterSettings++; if (buildCounterSettings < 3) { unittest.expect(o.activationPolicy, unittest.equals('foo')); - checkUnnamed4063(o.authorizedGaeApplications); + checkUnnamed3900(o.authorizedGaeApplications); checkBackupConfiguration(o.backupConfiguration); unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); unittest.expect(o.dataDiskType, unittest.equals('foo')); - checkUnnamed4064(o.databaseFlags); + checkUnnamed3901(o.databaseFlags); unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); checkIpConfiguration(o.ipConfiguration); unittest.expect(o.kind, unittest.equals('foo')); @@ -1383,14 +1385,14 @@ buildCounterSslCertsInsertResponse--; } -buildUnnamed4065() { +buildUnnamed3902() { var o = new core.List<api.SslCert>(); o.add(buildSslCert()); o.add(buildSslCert()); return o; } -checkUnnamed4065(core.List<api.SslCert> o) { +checkUnnamed3902(core.List<api.SslCert> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCert(o[0]); checkSslCert(o[1]); @@ -1401,7 +1403,7 @@ var o = new api.SslCertsListResponse(); buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - o.items = buildUnnamed4065(); + o.items = buildUnnamed3902(); o.kind = "foo"; } buildCounterSslCertsListResponse--; @@ -1411,20 +1413,20 @@ checkSslCertsListResponse(api.SslCertsListResponse o) { buildCounterSslCertsListResponse++; if (buildCounterSslCertsListResponse < 3) { - checkUnnamed4065(o.items); + checkUnnamed3902(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSslCertsListResponse--; } -buildUnnamed4066() { +buildUnnamed3903() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4066(core.List<core.String> o) { +checkUnnamed3903(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1438,7 +1440,7 @@ o.DiskQuota = "foo"; o.RAM = "foo"; o.kind = "foo"; - o.region = buildUnnamed4066(); + o.region = buildUnnamed3903(); o.tier = "foo"; } buildCounterTier--; @@ -1451,20 +1453,20 @@ unittest.expect(o.DiskQuota, unittest.equals('foo')); unittest.expect(o.RAM, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4066(o.region); + checkUnnamed3903(o.region); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterTier--; } -buildUnnamed4067() { +buildUnnamed3904() { var o = new core.List<api.Tier>(); o.add(buildTier()); o.add(buildTier()); return o; } -checkUnnamed4067(core.List<api.Tier> o) { +checkUnnamed3904(core.List<api.Tier> o) { unittest.expect(o, unittest.hasLength(2)); checkTier(o[0]); checkTier(o[1]); @@ -1475,7 +1477,7 @@ var o = new api.TiersListResponse(); buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - o.items = buildUnnamed4067(); + o.items = buildUnnamed3904(); o.kind = "foo"; } buildCounterTiersListResponse--; @@ -1485,7 +1487,7 @@ checkTiersListResponse(api.TiersListResponse o) { buildCounterTiersListResponse++; if (buildCounterTiersListResponse < 3) { - checkUnnamed4067(o.items); + checkUnnamed3904(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTiersListResponse--; @@ -1522,14 +1524,14 @@ buildCounterUser--; } -buildUnnamed4068() { +buildUnnamed3905() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed4068(core.List<api.User> o) { +checkUnnamed3905(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -1540,7 +1542,7 @@ var o = new api.UsersListResponse(); buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - o.items = buildUnnamed4068(); + o.items = buildUnnamed3905(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1551,7 +1553,7 @@ checkUsersListResponse(api.UsersListResponse o) { buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - checkUnnamed4068(o.items); + checkUnnamed3905(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); }
diff --git a/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart b/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart index 1df08da..18b747e 100644 --- a/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart +++ b/generated/googleapis_beta/test/taskqueue/v1beta2_test.dart
@@ -84,40 +84,40 @@ buildCounterTask--; } -buildUnnamed4019() { +buildUnnamed3856() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4019(core.List<core.String> o) { +checkUnnamed3856(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4020() { +buildUnnamed3857() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4020(core.List<core.String> o) { +checkUnnamed3857(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4021() { +buildUnnamed3858() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4021(core.List<core.String> o) { +checkUnnamed3858(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -128,9 +128,9 @@ var o = new api.TaskQueueAcl(); buildCounterTaskQueueAcl++; if (buildCounterTaskQueueAcl < 3) { - o.adminEmails = buildUnnamed4019(); - o.consumerEmails = buildUnnamed4020(); - o.producerEmails = buildUnnamed4021(); + o.adminEmails = buildUnnamed3856(); + o.consumerEmails = buildUnnamed3857(); + o.producerEmails = buildUnnamed3858(); } buildCounterTaskQueueAcl--; return o; @@ -139,9 +139,9 @@ checkTaskQueueAcl(api.TaskQueueAcl o) { buildCounterTaskQueueAcl++; if (buildCounterTaskQueueAcl < 3) { - checkUnnamed4019(o.adminEmails); - checkUnnamed4020(o.consumerEmails); - checkUnnamed4021(o.producerEmails); + checkUnnamed3856(o.adminEmails); + checkUnnamed3857(o.consumerEmails); + checkUnnamed3858(o.producerEmails); } buildCounterTaskQueueAcl--; } @@ -198,14 +198,14 @@ buildCounterTaskQueue--; } -buildUnnamed4022() { +buildUnnamed3859() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed4022(core.List<api.Task> o) { +checkUnnamed3859(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -216,7 +216,7 @@ var o = new api.Tasks(); buildCounterTasks++; if (buildCounterTasks < 3) { - o.items = buildUnnamed4022(); + o.items = buildUnnamed3859(); o.kind = "foo"; } buildCounterTasks--; @@ -226,20 +226,20 @@ checkTasks(api.Tasks o) { buildCounterTasks++; if (buildCounterTasks < 3) { - checkUnnamed4022(o.items); + checkUnnamed3859(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTasks--; } -buildUnnamed4023() { +buildUnnamed3860() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed4023(core.List<api.Task> o) { +checkUnnamed3860(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -250,7 +250,7 @@ var o = new api.Tasks2(); buildCounterTasks2++; if (buildCounterTasks2 < 3) { - o.items = buildUnnamed4023(); + o.items = buildUnnamed3860(); o.kind = "foo"; } buildCounterTasks2--; @@ -260,7 +260,7 @@ checkTasks2(api.Tasks2 o) { buildCounterTasks2++; if (buildCounterTasks2 < 3) { - checkUnnamed4023(o.items); + checkUnnamed3860(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTasks2--;
diff --git a/generated/googleapis_beta/test/toolresults/v1beta3_test.dart b/generated/googleapis_beta/test/toolresults/v1beta3_test.dart index 507820b..5adaec6 100644 --- a/generated/googleapis_beta/test/toolresults/v1beta3_test.dart +++ b/generated/googleapis_beta/test/toolresults/v1beta3_test.dart
@@ -237,14 +237,14 @@ buildCounterInconclusiveDetail--; } -buildUnnamed3694() { +buildUnnamed3531() { var o = new core.List<api.Execution>(); o.add(buildExecution()); o.add(buildExecution()); return o; } -checkUnnamed3694(core.List<api.Execution> o) { +checkUnnamed3531(core.List<api.Execution> o) { unittest.expect(o, unittest.hasLength(2)); checkExecution(o[0]); checkExecution(o[1]); @@ -255,7 +255,7 @@ var o = new api.ListExecutionsResponse(); buildCounterListExecutionsResponse++; if (buildCounterListExecutionsResponse < 3) { - o.executions = buildUnnamed3694(); + o.executions = buildUnnamed3531(); o.nextPageToken = "foo"; } buildCounterListExecutionsResponse--; @@ -265,20 +265,20 @@ checkListExecutionsResponse(api.ListExecutionsResponse o) { buildCounterListExecutionsResponse++; if (buildCounterListExecutionsResponse < 3) { - checkUnnamed3694(o.executions); + checkUnnamed3531(o.executions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListExecutionsResponse--; } -buildUnnamed3695() { +buildUnnamed3532() { var o = new core.List<api.History>(); o.add(buildHistory()); o.add(buildHistory()); return o; } -checkUnnamed3695(core.List<api.History> o) { +checkUnnamed3532(core.List<api.History> o) { unittest.expect(o, unittest.hasLength(2)); checkHistory(o[0]); checkHistory(o[1]); @@ -289,7 +289,7 @@ var o = new api.ListHistoriesResponse(); buildCounterListHistoriesResponse++; if (buildCounterListHistoriesResponse < 3) { - o.histories = buildUnnamed3695(); + o.histories = buildUnnamed3532(); o.nextPageToken = "foo"; } buildCounterListHistoriesResponse--; @@ -299,20 +299,20 @@ checkListHistoriesResponse(api.ListHistoriesResponse o) { buildCounterListHistoriesResponse++; if (buildCounterListHistoriesResponse < 3) { - checkUnnamed3695(o.histories); + checkUnnamed3532(o.histories); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHistoriesResponse--; } -buildUnnamed3696() { +buildUnnamed3533() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed3696(core.List<api.Image> o) { +checkUnnamed3533(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -324,7 +324,7 @@ buildCounterListStepThumbnailsResponse++; if (buildCounterListStepThumbnailsResponse < 3) { o.nextPageToken = "foo"; - o.thumbnails = buildUnnamed3696(); + o.thumbnails = buildUnnamed3533(); } buildCounterListStepThumbnailsResponse--; return o; @@ -334,19 +334,19 @@ buildCounterListStepThumbnailsResponse++; if (buildCounterListStepThumbnailsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3696(o.thumbnails); + checkUnnamed3533(o.thumbnails); } buildCounterListStepThumbnailsResponse--; } -buildUnnamed3697() { +buildUnnamed3534() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed3697(core.List<api.Step> o) { +checkUnnamed3534(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -358,7 +358,7 @@ buildCounterListStepsResponse++; if (buildCounterListStepsResponse < 3) { o.nextPageToken = "foo"; - o.steps = buildUnnamed3697(); + o.steps = buildUnnamed3534(); } buildCounterListStepsResponse--; return o; @@ -368,7 +368,7 @@ buildCounterListStepsResponse++; if (buildCounterListStepsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3697(o.steps); + checkUnnamed3534(o.steps); } buildCounterListStepsResponse--; } @@ -421,14 +421,14 @@ buildCounterProjectSettings--; } -buildUnnamed3698() { +buildUnnamed3535() { var o = new core.List<api.FileReference>(); o.add(buildFileReference()); o.add(buildFileReference()); return o; } -checkUnnamed3698(core.List<api.FileReference> o) { +checkUnnamed3535(core.List<api.FileReference> o) { unittest.expect(o, unittest.hasLength(2)); checkFileReference(o[0]); checkFileReference(o[1]); @@ -439,7 +439,7 @@ var o = new api.PublishXunitXmlFilesRequest(); buildCounterPublishXunitXmlFilesRequest++; if (buildCounterPublishXunitXmlFilesRequest < 3) { - o.xunitXmlFiles = buildUnnamed3698(); + o.xunitXmlFiles = buildUnnamed3535(); } buildCounterPublishXunitXmlFilesRequest--; return o; @@ -448,7 +448,7 @@ checkPublishXunitXmlFilesRequest(api.PublishXunitXmlFilesRequest o) { buildCounterPublishXunitXmlFilesRequest++; if (buildCounterPublishXunitXmlFilesRequest < 3) { - checkUnnamed3698(o.xunitXmlFiles); + checkUnnamed3535(o.xunitXmlFiles); } buildCounterPublishXunitXmlFilesRequest--; } @@ -495,14 +495,14 @@ buildCounterStackTrace--; } -buildUnnamed3699() { +buildUnnamed3536() { var o = new core.List<api.Any>(); o.add(buildAny()); o.add(buildAny()); return o; } -checkUnnamed3699(core.List<api.Any> o) { +checkUnnamed3536(core.List<api.Any> o) { unittest.expect(o, unittest.hasLength(2)); checkAny(o[0]); checkAny(o[1]); @@ -514,7 +514,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3699(); + o.details = buildUnnamed3536(); o.message = "foo"; } buildCounterStatus--; @@ -525,33 +525,33 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3699(o.details); + checkUnnamed3536(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3700() { +buildUnnamed3537() { var o = new core.List<api.StepDimensionValueEntry>(); o.add(buildStepDimensionValueEntry()); o.add(buildStepDimensionValueEntry()); return o; } -checkUnnamed3700(core.List<api.StepDimensionValueEntry> o) { +checkUnnamed3537(core.List<api.StepDimensionValueEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkStepDimensionValueEntry(o[0]); checkStepDimensionValueEntry(o[1]); } -buildUnnamed3701() { +buildUnnamed3538() { var o = new core.List<api.StepLabelsEntry>(); o.add(buildStepLabelsEntry()); o.add(buildStepLabelsEntry()); return o; } -checkUnnamed3701(core.List<api.StepLabelsEntry> o) { +checkUnnamed3538(core.List<api.StepLabelsEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkStepLabelsEntry(o[0]); checkStepLabelsEntry(o[1]); @@ -566,9 +566,9 @@ o.creationTime = buildTimestamp(); o.description = "foo"; o.deviceUsageDuration = buildDuration(); - o.dimensionValue = buildUnnamed3700(); + o.dimensionValue = buildUnnamed3537(); o.hasImages = true; - o.labels = buildUnnamed3701(); + o.labels = buildUnnamed3538(); o.name = "foo"; o.outcome = buildOutcome(); o.runDuration = buildDuration(); @@ -588,9 +588,9 @@ checkTimestamp(o.creationTime); unittest.expect(o.description, unittest.equals('foo')); checkDuration(o.deviceUsageDuration); - checkUnnamed3700(o.dimensionValue); + checkUnnamed3537(o.dimensionValue); unittest.expect(o.hasImages, unittest.isTrue); - checkUnnamed3701(o.labels); + checkUnnamed3538(o.labels); unittest.expect(o.name, unittest.equals('foo')); checkOutcome(o.outcome); checkDuration(o.runDuration); @@ -686,27 +686,27 @@ buildCounterTestCaseReference--; } -buildUnnamed3702() { +buildUnnamed3539() { var o = new core.List<api.TestIssue>(); o.add(buildTestIssue()); o.add(buildTestIssue()); return o; } -checkUnnamed3702(core.List<api.TestIssue> o) { +checkUnnamed3539(core.List<api.TestIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkTestIssue(o[0]); checkTestIssue(o[1]); } -buildUnnamed3703() { +buildUnnamed3540() { var o = new core.List<api.TestSuiteOverview>(); o.add(buildTestSuiteOverview()); o.add(buildTestSuiteOverview()); return o; } -checkUnnamed3703(core.List<api.TestSuiteOverview> o) { +checkUnnamed3540(core.List<api.TestSuiteOverview> o) { unittest.expect(o, unittest.hasLength(2)); checkTestSuiteOverview(o[0]); checkTestSuiteOverview(o[1]); @@ -717,8 +717,8 @@ var o = new api.TestExecutionStep(); buildCounterTestExecutionStep++; if (buildCounterTestExecutionStep < 3) { - o.testIssues = buildUnnamed3702(); - o.testSuiteOverviews = buildUnnamed3703(); + o.testIssues = buildUnnamed3539(); + o.testSuiteOverviews = buildUnnamed3540(); o.testTiming = buildTestTiming(); o.toolExecution = buildToolExecution(); } @@ -729,8 +729,8 @@ checkTestExecutionStep(api.TestExecutionStep o) { buildCounterTestExecutionStep++; if (buildCounterTestExecutionStep < 3) { - checkUnnamed3702(o.testIssues); - checkUnnamed3703(o.testSuiteOverviews); + checkUnnamed3539(o.testIssues); + checkUnnamed3540(o.testSuiteOverviews); checkTestTiming(o.testTiming); checkToolExecution(o.toolExecution); } @@ -852,40 +852,40 @@ buildCounterTimestamp--; } -buildUnnamed3704() { +buildUnnamed3541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3704(core.List<core.String> o) { +checkUnnamed3541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3705() { +buildUnnamed3542() { var o = new core.List<api.FileReference>(); o.add(buildFileReference()); o.add(buildFileReference()); return o; } -checkUnnamed3705(core.List<api.FileReference> o) { +checkUnnamed3542(core.List<api.FileReference> o) { unittest.expect(o, unittest.hasLength(2)); checkFileReference(o[0]); checkFileReference(o[1]); } -buildUnnamed3706() { +buildUnnamed3543() { var o = new core.List<api.ToolOutputReference>(); o.add(buildToolOutputReference()); o.add(buildToolOutputReference()); return o; } -checkUnnamed3706(core.List<api.ToolOutputReference> o) { +checkUnnamed3543(core.List<api.ToolOutputReference> o) { unittest.expect(o, unittest.hasLength(2)); checkToolOutputReference(o[0]); checkToolOutputReference(o[1]); @@ -896,10 +896,10 @@ var o = new api.ToolExecution(); buildCounterToolExecution++; if (buildCounterToolExecution < 3) { - o.commandLineArguments = buildUnnamed3704(); + o.commandLineArguments = buildUnnamed3541(); o.exitCode = buildToolExitCode(); - o.toolLogs = buildUnnamed3705(); - o.toolOutputs = buildUnnamed3706(); + o.toolLogs = buildUnnamed3542(); + o.toolOutputs = buildUnnamed3543(); } buildCounterToolExecution--; return o; @@ -908,10 +908,10 @@ checkToolExecution(api.ToolExecution o) { buildCounterToolExecution++; if (buildCounterToolExecution < 3) { - checkUnnamed3704(o.commandLineArguments); + checkUnnamed3541(o.commandLineArguments); checkToolExitCode(o.exitCode); - checkUnnamed3705(o.toolLogs); - checkUnnamed3706(o.toolOutputs); + checkUnnamed3542(o.toolLogs); + checkUnnamed3543(o.toolOutputs); } buildCounterToolExecution--; }